2 # From configure.in Revision: 70459 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
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
='3.1'
579 PACKAGE_STRING
='python 3.1'
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 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
725 HAVE_GETHOSTBYNAME_R_6_ARG
726 HAVE_GETHOSTBYNAME_R_5_ARG
727 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 3.1 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 3.1:";;
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-ipv6 Enable ipv6
(with ipv4
) support
1322 --disable-ipv6 Disable ipv6 support
1323 --enable-big-digits[=BITS
]
1324 use big digits
for Python longs
[BITS
=30]
1327 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1328 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1329 --with-universal-archs=ARCH
1330 select architectures
for universal build
("32-bit",
1332 --with-framework-name=FRAMEWORK
1333 specify an alternate name of the framework built
1334 with
--enable-framework
1335 --without-gcc never use gcc
1336 --with-cxx-main=<compiler
>
1337 compile main
() and link python executable with C
++
1339 --with-suffix=.exe
set executable suffix
1340 --with-pydebug build with Py_DEBUG defined
1341 --with-libs='lib1 ...' link against additional libs
1342 --with-system-ffi build _ctypes module using an installed ffi library
1343 --with-signal-module disable
/enable signal module
1344 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1345 --with(out
)-threads[=DIRECTORY
]
1346 disable
/enable thread support
1347 --with(out
)-thread[=DIRECTORY
]
1348 deprecated
; use
--with(out
)-threads
1349 --with-pth use GNU pth threading libraries
1350 --with(out
)-doc-strings disable
/enable documentation
strings
1351 --with(out
)-tsc enable
/disable timestamp counter profile
1352 --with(out
)-pymalloc disable
/enable specialized mallocs
1353 --with-wctype-functions use wctype.h functions
1354 --with-fpectl enable SIGFPE catching
1355 --with-libm=STRING math library
1356 --with-libc=STRING C library
1357 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1358 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1359 loop
(not available on all compilers
)
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1371 Use these variables to override the choices made by
`configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to <http://www.python.org/python-bugs>.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1435 python configure 3.1
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by python $as_me 3.1, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 # Check that the precious variables saved in the cache have kept the same
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1733 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1737 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1744 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1745 echo "$as_me: former value
: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1747 echo "$as_me: current value
: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1765 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1766 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_config_headers="$ac_config_headers pyconfig.h"
1811 # We don't use PACKAGE_ variables, and they cause conflicts
1812 # with other autoconf-based packages that include Python.h
1813 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1815 mv confdefs.h.new confdefs.h
1823 # The later defininition of _XOPEN_SOURCE disables certain features
1824 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1826 cat >>confdefs.h <<\_ACEOF
1827 #define _GNU_SOURCE 1
1831 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1832 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1835 cat >>confdefs.h <<\_ACEOF
1836 #define _NETBSD_SOURCE 1
1840 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1841 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1844 cat >>confdefs.h <<\_ACEOF
1845 #define __BSD_VISIBLE 1
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1852 cat >>confdefs.h <<\_ACEOF
1853 #define _BSD_TYPES 1
1857 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1858 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1861 cat >>confdefs.h <<\_ACEOF
1862 #define _DARWIN_C_SOURCE 1
1867 define_xopen_source=yes
1869 # Arguments passed to configure.
1871 CONFIG_ARGS="$ac_configure_args"
1873 # Check whether --enable-universalsdk was given.
1874 if test "${enable_universalsdk+set}" = set; then
1875 enableval=$enable_universalsdk;
1878 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1884 enable_universalsdk=
1887 UNIVERSALSDK=$enableval
1894 enable_universalsdk=
1903 UNIVERSAL_ARCHS="32-bit"
1904 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1905 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1907 # Check whether --with-universal-archs was given.
1908 if test "${with_universal_archs+set}" = set; then
1909 withval=$with_universal_archs;
1910 { echo "$as_me:$LINENO: result: $withval" >&5
1911 echo "${ECHO_T}$withval" >&6; }
1912 UNIVERSAL_ARCHS="$withval"
1916 { echo "$as_me:$LINENO: result: 32-bit" >&5
1917 echo "${ECHO_T}32-bit" >&6; }
1925 # Check whether --with-framework-name was given.
1926 if test "${with_framework_name+set}" = set; then
1927 withval=$with_framework_name;
1928 PYTHONFRAMEWORK=${withval}
1929 PYTHONFRAMEWORKDIR=${withval}.framework
1930 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1934 PYTHONFRAMEWORK=Python
1935 PYTHONFRAMEWORKDIR=Python.framework
1936 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1940 # Check whether --enable-framework was given.
1941 if test "${enable_framework+set}" = set; then
1942 enableval=$enable_framework;
1945 enableval=/Library/Frameworks
1950 PYTHONFRAMEWORKDIR=no-framework
1951 PYTHONFRAMEWORKPREFIX=
1952 PYTHONFRAMEWORKINSTALLDIR=
1953 FRAMEWORKINSTALLFIRST=
1954 FRAMEWORKINSTALLLAST=
1955 FRAMEWORKALTINSTALLFIRST=
1956 FRAMEWORKALTINSTALLLAST=
1957 if test "x${prefix}" = "xNONE"; then
1958 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1960 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1965 PYTHONFRAMEWORKPREFIX=$enableval
1966 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1967 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1968 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1969 if test "$UNIVERSAL_ARCHS" = "all"
1971 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1972 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1974 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1975 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1978 if test "x${prefix}" = "xNONE" ; then
1979 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1981 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1983 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1985 # Add files for Mac specific code to the list of output
1987 ac_config_files="$ac_config_files Mac/Makefile"
1989 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1991 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1993 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2000 PYTHONFRAMEWORKDIR=no-framework
2001 PYTHONFRAMEWORKPREFIX=
2002 PYTHONFRAMEWORKINSTALLDIR=
2003 FRAMEWORKINSTALLFIRST=
2004 FRAMEWORKINSTALLLAST=
2005 FRAMEWORKALTINSTALLFIRST=
2006 FRAMEWORKALTINSTALLLAST=
2007 if test "x${prefix}" = "xNONE" ; then
2008 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2010 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2014 if test "$UNIVERSAL_ARCHS" = "all"
2016 FRAMEWORKINSTALLLAST=update4wayuniversal
2017 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2034 ## AC_HELP_STRING(--with-dyld,
2035 ## Use (OpenStep|Rhapsody) dynamic linker))
2037 # Set name for machine-dependent library files
2039 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2040 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2041 if test -z "$MACHDEP"
2043 ac_sys_system=`uname
-s`
2044 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2045 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2046 ac_sys_release=`uname
-v`
2048 ac_sys_release=`uname
-r`
2050 ac_md_system=`echo $ac_sys_system |
2051 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2052 ac_md_release=`echo $ac_sys_release |
2053 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2054 MACHDEP="$ac_md_system$ac_md_release"
2057 cygwin*) MACHDEP="cygwin";;
2058 darwin*) MACHDEP="darwin";;
2059 atheos*) MACHDEP="atheos";;
2060 irix646) MACHDEP="irix6";;
2061 '') MACHDEP="unknown";;
2065 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2066 # disable features if it is defined, without any means to access these
2067 # features as extensions. For these systems, we skip the definition of
2068 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2069 # some feature, make sure there is no alternative way to access this
2070 # feature. Also, when using wildcards, make sure you have verified the
2071 # need for not defining _XOPEN_SOURCE on all systems matching the
2072 # wildcard, and that the wildcard does not include future systems
2073 # (which may remove their limitations).
2074 case $ac_sys_system/$ac_sys_release in
2075 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2076 # even though select is a POSIX function. Reported by J. Ribbens.
2077 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2078 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2079 define_xopen_source=no
2080 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2081 # also defined. This can be overridden by defining _BSD_SOURCE
2082 # As this has a different meaning on Linux, only define it on OpenBSD
2084 cat >>confdefs.h <<\_ACEOF
2085 #define _BSD_SOURCE 1
2089 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2090 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2092 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2093 define_xopen_source=no;;
2094 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2095 # of union __?sigval. Reported by Stuart Bishop.
2097 define_xopen_source=no;;
2098 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2099 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2100 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2101 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2102 define_xopen_source=no;;
2103 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2104 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2106 define_xopen_source=no;;
2107 # On FreeBSD 4, the math functions C89 does not cover are never defined
2108 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2110 define_xopen_source=no;;
2111 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2112 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2113 # identifies itself as Darwin/7.*
2114 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2115 # disables platform specific features beyond repair.
2116 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2117 # has no effect, don't bother defining them
2119 define_xopen_source=no;;
2120 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2121 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2122 # or has another value. By not (re)defining it, the defaults come in place.
2124 define_xopen_source=no;;
2126 if test `uname
-r` -eq 1; then
2127 define_xopen_source=no
2130 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2131 # defining NI_NUMERICHOST.
2133 define_xopen_source=no
2138 if test $define_xopen_source = yes
2140 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2141 # defined precisely as g++ defines it
2142 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2144 case $ac_sys_system/$ac_sys_release in
2145 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2147 cat >>confdefs.h <<\_ACEOF
2148 #define _XOPEN_SOURCE 500
2154 cat >>confdefs.h <<\_ACEOF
2155 #define _XOPEN_SOURCE 600
2161 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2162 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2163 # several APIs are not declared. Since this is also needed in some
2164 # cases for HP-UX, we define it globally.
2165 # except for Solaris 10, where it must not be defined,
2166 # as it implies XPG4.2
2167 case $ac_sys_system/$ac_sys_release in
2172 cat >>confdefs.h <<\_ACEOF
2173 #define _XOPEN_SOURCE_EXTENDED 1
2180 cat >>confdefs.h <<\_ACEOF
2181 #define _POSIX_C_SOURCE 200112L
2188 # SGI compilers allow the specification of the both the ABI and the
2189 # ISA on the command line. Depending on the values of these switches,
2190 # different and often incompatable code will be generated.
2192 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2193 # thus supply support for various ABI/ISA combinations. The MACHDEP
2194 # variable is also adjusted.
2197 if test ! -z "$SGI_ABI"
2200 LDFLAGS="$SGI_ABI $LDFLAGS"
2201 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2203 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2204 echo "${ECHO_T}$MACHDEP" >&6; }
2206 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2207 # it may influence the way we can build extensions, so distutils
2211 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2212 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2214 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2215 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2216 ac_sys_machine=`uname
-m`
2217 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2218 echo "${ECHO_T}$ac_sys_machine" >&6; }
2220 # checks for alternative programs
2222 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2223 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2224 # just to get things to compile and link. Users are free to override OPT
2225 # when running configure or make. The build should not break if they do.
2226 # BASECFLAGS should generally not be messed with, however.
2228 # XXX shouldn't some/most/all of this code be merged with the stuff later
2229 # on that fiddles with OPT and BASECFLAGS?
2230 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2231 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2233 # Check whether --with-gcc was given.
2234 if test "${with_gcc+set}" = set; then
2242 without_gcc=$withval;;
2246 case $ac_sys_system in
2256 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2257 echo "${ECHO_T}$without_gcc" >&6; }
2259 # If the user switches compilers, we can't believe the cache
2260 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2262 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2263 (it is also a good idea to do 'make clean' before compiling)" >&5
2264 echo "$as_me: error: cached CC is different -- throw away $cache_file
2265 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2266 { (exit 1); exit 1; }; }
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2276 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test -n "$CC"; then
2304 { echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6; }
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2313 if test -z "$ac_cv_prog_CC"; then
2315 # Extract the first word of "gcc", so it can be a program name with args.
2316 set dummy gcc; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_ac_ct_CC="gcc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2351 if test "x$ac_ct_CC" = x; then
2354 case $cross_compiling:$ac_tool_warned in
2356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&5
2359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet. If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2362 ac_tool_warned=yes ;;
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}cc; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_CC="${ac_tool_prefix}cc"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 if test -n "$CC"; then
2401 { echo "$as_me:$LINENO: result: $CC" >&5
2402 echo "${ECHO_T}$CC" >&6; }
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2411 if test -z "$CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2431 ac_prog_rejected=yes
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457 if test -n "$CC"; then
2458 { echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6; }
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2467 if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in cl.exe
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 if test -n "$CC"; then
2500 { echo "$as_me:$LINENO: result: $CC" >&5
2501 echo "${ECHO_T}$CC" >&6; }
2503 { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2508 test -n "$CC" && break
2511 if test -z "$CC"; then
2513 for ac_prog in cl.exe
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_CC="$ac_prog"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6; }
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2552 test -n "$ac_ct_CC" && break
2555 if test "x$ac_ct_CC" = x; then
2558 case $cross_compiling:$ac_tool_warned in
2560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2561 whose name does not start with the host triplet. If you think this
2562 configuration is useful to you, please write to autoconf@gnu.org." >&5
2563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2566 ac_tool_warned=yes ;;
2575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2576 See \`config.log
' for more details." >&5
2577 echo "$as_me: error: no acceptable C compiler found in \$PATH
2578 See \`config.log' for more details.
" >&2;}
2579 { (exit 1); exit 1; }; }
2581 # Provide some information about the compiler.
2582 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2583 ac_compiler=`set X $ac_compile; echo $2`
2584 { (ac_try="$ac_compiler --version >&5"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compiler --version >&5") 2>&5
2592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2593 (exit $ac_status); }
2594 { (ac_try="$ac_compiler -v >&5"
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compiler -v >&5") 2>&5
2602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2603 (exit $ac_status); }
2604 { (ac_try="$ac_compiler -V >&5"
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compiler -V >&5") 2>&5
2612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2613 (exit $ac_status); }
2615 cat >conftest.$ac_ext <<_ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2630 ac_clean_files_save=$ac_clean_files
2631 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2632 # Try to create an executable without -o first, disregard a.out.
2633 # It will help us diagnose broken compilers, and finding out an intuition
2635 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2636 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2637 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2639 # List of possible output files, starting from the most likely.
2640 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2641 # only as a last resort. b.out is created by i960 compilers.
2642 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2644 # The IRIX 6 linker writes into existing files which may not be
2645 # executable, retaining their permissions. Remove them first so a
2646 # subsequent execution test works.
2648 for ac_file in $ac_files
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2652 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2657 if { (ac_try="$ac_link_default"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_link_default") 2>&5
2665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2666 (exit $ac_status); }; then
2667 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2668 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2669 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2670 # so that the user can short-circuit this test for compilers unknown to
2672 for ac_file in $ac_files ''
2674 test -f "$ac_file" || continue
2676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2679 # We found the default executable, but exeext='' is most
2683 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2687 # We set ac_cv_exeext here because the later test for it is not
2688 # safe: cross compilers may not add the suffix if given an `-o'
2689 # argument, so we may need to know it at that point already.
2690 # Even if this section looks crufty: it has the advantage of
2697 test "$ac_cv_exeext" = no && ac_cv_exeext=
2703 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2704 echo "${ECHO_T}$ac_file" >&6; }
2705 if test -z "$ac_file"; then
2706 echo "$as_me: failed program was
:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2710 See \
`config.log' for more details." >&5
2711 echo "$as_me: error: C compiler cannot create executables
2712 See \`config.log
' for more details." >&2;}
2713 { (exit 77); exit 77; }; }
2716 ac_exeext=$ac_cv_exeext
2718 # Check that the compiler produces executables we can run. If not, either
2719 # the compiler is broken, or we cross compile.
2720 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2721 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2722 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2723 # If not cross compiling, check that we can run a simple program.
2724 if test "$cross_compiling" != yes; then
2725 if { ac_try='.
/$ac_file'
2726 { (case "(($ac_try" in
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_try") 2>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2737 if test "$cross_compiling" = maybe; then
2740 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2741 If you meant to cross compile, use \`--host'.
2742 See \
`config.log' for more details." >&5
2743 echo "$as_me: error: cannot run C compiled programs.
2744 If you meant to cross compile, use \`--host'.
2745 See \`config.log' for more details.
" >&2;}
2746 { (exit 1); exit 1; }; }
2750 { echo "$as_me:$LINENO: result
: yes" >&5
2751 echo "${ECHO_T}yes" >&6; }
2753 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2754 ac_clean_files=$ac_clean_files_save
2755 # Check that the compiler produces executables we can run. If not, either
2756 # the compiler is broken, or we cross compile.
2757 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2758 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2759 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2760 echo "${ECHO_T}$cross_compiling" >&6; }
2762 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2763 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2764 if { (ac_try="$ac_link"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_link") 2>&5
2772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2773 (exit $ac_status); }; then
2774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2776 # work properly (i.e., refer to `conftest.exe'), while it won't with
2778 for ac_file in conftest.exe conftest conftest.*; do
2779 test -f "$ac_file" || continue
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2789 See \
`config.log' for more details." >&5
2790 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2791 See \`config.log
' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2795 rm -f conftest$ac_cv_exeext
2796 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2797 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2799 rm -f conftest.$ac_ext
2800 EXEEXT=$ac_cv_exeext
2802 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2803 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2804 if test "${ac_cv_objext+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 rm -f conftest.o conftest.obj
2823 if { (ac_try="$ac_compile"
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compile") 2>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; then
2833 for ac_file in conftest.o conftest.obj conftest.*; do
2834 test -f "$ac_file" || continue;
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2837 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2842 echo "$as_me: failed program was:" >&5
2843 sed 's
/^
/|
/' conftest.$ac_ext >&5
2845 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2846 See \`config.log' for more details.
" >&5
2847 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2848 See \
`config.log' for more details." >&2;}
2849 { (exit 1); exit 1; }; }
2852 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2854 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2855 echo "${ECHO_T}$ac_cv_objext" >&6; }
2856 OBJEXT=$ac_cv_objext
2858 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2859 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2860 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2885 *) ac_try_echo
=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1
>conftest.err
2892 cat conftest.err
>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.
$ac_objext; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.
$ac_ext >&5
2906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2907 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2910 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2912 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2913 ac_test_CFLAGS
=${CFLAGS+set}
2914 ac_save_CFLAGS
=$CFLAGS
2915 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2917 if test "${ac_cv_prog_cc_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 ac_save_c_werror_flag
=$ac_c_werror_flag
2921 ac_c_werror_flag
=yes
2924 cat >conftest.
$ac_ext <<_ACEOF
2927 cat confdefs.h
>>conftest.
$ac_ext
2928 cat >>conftest.
$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2939 rm -f conftest.
$ac_objext
2940 if { (ac_try
="$ac_compile"
2942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_c_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.$ac_objext; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
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
2999 ac_c_werror_flag
=$ac_save_c_werror_flag
3001 cat >conftest.
$ac_ext <<_ACEOF
3004 cat confdefs.h
>>conftest.
$ac_ext
3005 cat >>conftest.
$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3016 rm -f conftest.
$ac_objext
3017 if { (ac_try
="$ac_compile"
3019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_c_werror_flag=$ac_save_c_werror_flag
3050 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3051 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3052 if test "$ac_test_CFLAGS" = set; then
3053 CFLAGS=$ac_save_CFLAGS
3054 elif test $ac_cv_prog_cc_g = yes; then
3055 if test "$GCC" = yes; then
3061 if test "$GCC" = yes; then
3067 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3068 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_cc_c89+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 ac_cv_prog_cc_c89=no
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3082 #include <sys/types.h>
3083 #include <sys/stat.h>
3084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3085 struct buf { int x; };
3086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3087 static char *e (p, i)
3093 static char *f (char * (*g) (char **, int), char **p, ...)
3098 s = g (p, va_arg (v,int));
3103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3104 function prototypes and stuff, but not '\xHH' hex character constants.
3105 These don't provoke an error unfortunately, instead are silently treated
3106 as 'x'. The following induces an error, until -std is added to get
3107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3108 array size at least. It's necessary to write '\x00'==0 to get something
3109 that's true only with -std. */
3110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3113 inside strings and character constants. */
3115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3117 int test (int i, double x);
3118 struct s1 {int (*f) (int a);};
3119 struct s2 {int (*f) (double a);};
3120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3134 CC="$ac_save_CC $ac_arg"
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3139 *) ac_try_echo
=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1
>conftest.err
3146 cat conftest.err
>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.
$ac_objext; then
3152 ac_cv_prog_cc_c89
=$ac_arg
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.
$ac_ext >&5
3160 rm -f core conftest.err conftest.
$ac_objext
3161 test "x$ac_cv_prog_cc_c89" != "xno" && break
3163 rm -f conftest.
$ac_ext
3168 case "x$ac_cv_prog_cc_c89" in
3170 { echo "$as_me:$LINENO: result: none needed" >&5
3171 echo "${ECHO_T}none needed" >&6; } ;;
3173 { echo "$as_me:$LINENO: result: unsupported" >&5
3174 echo "${ECHO_T}unsupported" >&6; } ;;
3176 CC
="$CC $ac_cv_prog_cc_c89"
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3183 ac_cpp
='$CPP $CPPFLAGS'
3184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3191 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3192 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3194 # Check whether --with-cxx_main was given.
3195 if test "${with_cxx_main+set}" = set; then
3196 withval
=$with_cxx_main;
3199 no
) with_cxx_main
=no
3201 yes) with_cxx_main
=yes
3203 *) with_cxx_main
=yes
3217 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3218 echo "${ECHO_T}$with_cxx_main" >&6; }
3224 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3225 set dummy g
++; ac_word
=$2
3226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3228 if test "${ac_cv_path_CXX+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 for as_dir
in notfound
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3256 if test -n "$CXX"; then
3257 { echo "$as_me:$LINENO: result: $CXX" >&5
3258 echo "${ECHO_T}$CXX" >&6; }
3260 { echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6; }
3265 cc
) # Extract the first word of "c++", so it can be a program name with args.
3266 set dummy c
++; ac_word
=$2
3267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269 if test "${ac_cv_path_CXX+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3278 for as_dir
in notfound
3281 test -z "$as_dir" && as_dir
=.
3282 for ac_exec_ext
in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3297 if test -n "$CXX"; then
3298 { echo "$as_me:$LINENO: result: $CXX" >&5
3299 echo "${ECHO_T}$CXX" >&6; }
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3307 if test "$CXX" = "notfound"
3314 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3316 # Extract the first word of "$ac_prog", so it can be a program name with args.
3317 set dummy
$ac_prog; ac_word
=$2
3318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_CXX+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 if test -n "$CXX"; then
3324 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir
=.
3331 for ac_exec_ext
in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CXX
="$ac_prog"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3353 test -n "$CXX" && break
3355 test -n "$CXX" || CXX
="notfound"
3357 if test "$CXX" = "notfound"
3362 if test "$preset_cxx" != "$CXX"
3364 { echo "$as_me:$LINENO: WARNING:
3366 By default, distutils will build C++ extension modules with \"$CXX\".
3367 If this is not intended, then set CXX on the configure command line.
3369 echo "$as_me: WARNING:
3371 By default, distutils will build C++ extension modules with \"$CXX\".
3372 If this is not intended, then set CXX on the configure command line.
3377 # checks for UNIX variants that set C preprocessor variables
3380 ac_cpp
='$CPP $CPPFLAGS'
3381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3384 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3385 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3386 # On Suns, sometimes $CPP names a directory.
3387 if test -n "$CPP" && test -d "$CPP"; then
3390 if test -z "$CPP"; then
3391 if test "${ac_cv_prog_CPP+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 # Double quotes because CPP needs to be expanded
3395 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398 for ac_c_preproc_warn_flag
in '' yes
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat >conftest.
$ac_ext <<_ACEOF
3409 cat confdefs.h
>>conftest.
$ac_ext
3410 cat >>conftest.
$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3413 # include <limits.h>
3415 # include <assert.h>
3419 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null && {
3432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 # Broken: fails on valid input.
3444 rm -f conftest.err conftest.$ac_ext
3446 # OK, works on sane cases. Now check whether nonexistent headers
3447 # can be detected and how.
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include <ac_nonexistent.h>
3456 if { (ac_try="$ac_cpp conftest.$ac_ext"
3458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3459 *) ac_try_echo
=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3464 grep -v '^ *+' conftest.er1
>conftest.err
3466 cat conftest.err
>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev
/null
&& {
3469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3470 test ! -s conftest.err
3472 # Broken: success on invalid input.
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.
$ac_ext >&5
3478 # Passes both tests.
3483 rm -f conftest.err conftest.
$ac_ext
3486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487 rm -f conftest.err conftest.
$ac_ext
3488 if $ac_preproc_ok; then
3500 { echo "$as_me:$LINENO: result: $CPP" >&5
3501 echo "${ECHO_T}$CPP" >&6; }
3503 for ac_c_preproc_warn_flag
in '' yes
3505 # Use a header file that comes with gcc, so configuring glibc
3506 # with a fresh cross-compiler works.
3507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508 # <limits.h> exists even on freestanding compilers.
3509 # On the NeXT, cc -E runs the code through the compiler's parser,
3510 # not just through cpp. "Syntax error" is here to catch this case.
3511 cat >conftest.
$ac_ext <<_ACEOF
3514 cat confdefs.h
>>conftest.
$ac_ext
3515 cat >>conftest.
$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3518 # include <limits.h>
3520 # include <assert.h>
3524 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3532 grep -v '^ *+' conftest.er1 >conftest.err
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null && {
3537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3538 test ! -s conftest.err
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 # Broken: fails on valid input.
3549 rm -f conftest.err conftest.$ac_ext
3551 # OK, works on sane cases. Now check whether nonexistent headers
3552 # can be detected and how.
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <ac_nonexistent.h>
3561 if { (ac_try="$ac_cpp conftest.$ac_ext"
3563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3564 *) ac_try_echo
=$ac_try;;
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3569 grep -v '^ *+' conftest.er1
>conftest.err
3571 cat conftest.err
>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev
/null
&& {
3574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3577 # Broken: success on invalid input.
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.
$ac_ext >&5
3583 # Passes both tests.
3588 rm -f conftest.err conftest.
$ac_ext
3591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3592 rm -f conftest.err conftest.
$ac_ext
3593 if $ac_preproc_ok; then
3596 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3597 See \`config.log' for more details." >&5
3598 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3599 See \`config.log' for more details." >&2;}
3600 { (exit 1); exit 1; }; }
3604 ac_cpp
='$CPP $CPPFLAGS'
3605 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3610 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3611 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3612 if test "${ac_cv_path_GREP+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 # Extract the first word of "grep ggrep" to use in msg output
3616 if test -z "$GREP"; then
3617 set dummy
grep ggrep
; ac_prog_name
=$2
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 ac_path_GREP_found
=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3624 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3627 test -z "$as_dir" && as_dir
=.
3628 for ac_prog
in grep ggrep
; do
3629 for ac_exec_ext
in '' $ac_executable_extensions; do
3630 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3632 # Check for GNU ac_path_GREP and select it if it is found.
3633 # Check for GNU $ac_path_GREP
3634 case `"$ac_path_GREP" --version 2>&1` in
3636 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3639 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 echo 'GREP' >> "conftest.nl"
3646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3647 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3648 ac_count
=`expr $ac_count + 1`
3649 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_GREP
="$ac_path_GREP"
3652 ac_path_GREP_max
=$ac_count
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3657 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3661 $ac_path_GREP_found && break 3
3671 GREP
="$ac_cv_path_GREP"
3672 if test -z "$GREP"; then
3673 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3674 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3675 { (exit 1); exit 1; }; }
3679 ac_cv_path_GREP
=$GREP
3684 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3685 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3686 GREP
="$ac_cv_path_GREP"
3689 { echo "$as_me:$LINENO: checking for egrep" >&5
3690 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3691 if test "${ac_cv_path_EGREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3695 then ac_cv_path_EGREP
="$GREP -E"
3697 # Extract the first word of "egrep" to use in msg output
3698 if test -z "$EGREP"; then
3699 set dummy
egrep; ac_prog_name
=$2
3700 if test "${ac_cv_path_EGREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_path_EGREP_found
=false
3704 # Loop through the user's path and test for each of PROGNAME-LIST
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3706 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_prog
in egrep; do
3711 for ac_exec_ext
in '' $ac_executable_extensions; do
3712 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3713 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3714 # Check for GNU ac_path_EGREP and select it if it is found.
3715 # Check for GNU $ac_path_EGREP
3716 case `"$ac_path_EGREP" --version 2>&1` in
3718 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 echo 'EGREP' >> "conftest.nl"
3728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3729 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3730 ac_count
=`expr $ac_count + 1`
3731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_EGREP
="$ac_path_EGREP"
3734 ac_path_EGREP_max
=$ac_count
3736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3739 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3743 $ac_path_EGREP_found && break 3
3753 EGREP
="$ac_cv_path_EGREP"
3754 if test -z "$EGREP"; then
3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757 { (exit 1); exit 1; }; }
3761 ac_cv_path_EGREP
=$EGREP
3767 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3768 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3769 EGREP
="$ac_cv_path_EGREP"
3773 { echo "$as_me:$LINENO: checking for AIX" >&5
3774 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "yes" >/dev
/null
2>&1; then
3788 { echo "$as_me:$LINENO: result: yes" >&5
3789 echo "${ECHO_T}yes" >&6; }
3790 cat >>confdefs.h
<<\_ACEOF
3791 #define _ALL_SOURCE 1
3795 { echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6; }
3802 # Check for unsupported systems
3803 case $ac_sys_system/$ac_sys_release in
3805 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3806 echo See README
for details.
3811 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3812 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3814 # Check whether --with-suffix was given.
3815 if test "${with_suffix+set}" = set; then
3816 withval
=$with_suffix;
3820 *) EXEEXT
=$withval;;
3824 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3825 echo "${ECHO_T}$EXEEXT" >&6; }
3827 # Test whether we're running on a non-case-sensitive system, in which
3828 # case we give a warning if no ext is given
3830 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3831 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3832 if test ! -d CaseSensitiveTestDir
; then
3833 mkdir CaseSensitiveTestDir
3836 if test -d casesensitivetestdir
3838 { echo "$as_me:$LINENO: result: yes" >&5
3839 echo "${ECHO_T}yes" >&6; }
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3846 rmdir CaseSensitiveTestDir
3851 gcc
) CC
="$CC -D_HAVE_BSDI";;
3855 case $ac_sys_system in
3858 cc|
*/cc
) CC
="$CC -Ae";;
3862 cc
) CC
="$CC -Wl,-Bexport";;
3865 # Some functions have a prototype only with that define, e.g. confstr
3867 cat >>confdefs.h
<<\_ACEOF
3868 #define __EXTENSIONS__ 1
3876 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3877 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3878 if test -z "$LIBRARY"
3880 LIBRARY
='libpython$(VERSION).a'
3882 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3883 echo "${ECHO_T}$LIBRARY" >&6; }
3885 # LDLIBRARY is the name of the library to link against (as opposed to the
3886 # name of the library into which to insert object files). BLDLIBRARY is also
3887 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3888 # is blank as the main program is not linked directly against LDLIBRARY.
3889 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3890 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3891 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3892 # DLLLIBRARY is the shared (i.e., DLL) library.
3894 # RUNSHARED is used to run shared python without installed libraries
3896 # INSTSONAME is the name of the shared library that will be use to install
3897 # on the system - some systems like version suffix, others don't
3904 LDLIBRARY
="$LIBRARY"
3905 BLDLIBRARY
='$(LDLIBRARY)'
3906 INSTSONAME
='$(LDLIBRARY)'
3911 # LINKCC is the command that links the python executable -- default is $(CC).
3912 # If CXX is set, and if it is needed to link a main function that was
3913 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3914 # python might then depend on the C++ runtime
3915 # This is altered for AIX in order to build the export list before
3918 { echo "$as_me:$LINENO: checking LINKCC" >&5
3919 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3920 if test -z "$LINKCC"
3922 LINKCC
='$(PURIFY) $(MAINCC)'
3923 case $ac_sys_system in
3926 if test $ac_sys_release -ge 5 -o \
3927 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3930 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3932 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3934 # qcc must be used because the other compilers do not
3939 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3940 echo "${ECHO_T}$LINKCC" >&6; }
3942 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3943 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3944 # Check whether --enable-shared was given.
3945 if test "${enable_shared+set}" = set; then
3946 enableval
=$enable_shared;
3950 if test -z "$enable_shared"
3952 case $ac_sys_system in
3954 enable_shared
="yes";;
3956 enable_shared
="no";;
3959 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3960 echo "${ECHO_T}$enable_shared" >&6; }
3962 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3963 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3964 # Check whether --enable-profiling was given.
3965 if test "${enable_profiling+set}" = set; then
3966 enableval
=$enable_profiling; ac_save_cc
="$CC"
3968 if test "$cross_compiling" = yes; then
3969 ac_enable_profiling
="no"
3971 cat >conftest.
$ac_ext <<_ACEOF
3974 cat confdefs.h
>>conftest.
$ac_ext
3975 cat >>conftest.
$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 int main() { return 0; }
3979 rm -f conftest
$ac_exeext
3980 if { (ac_try
="$ac_link"
3982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_link") 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990 { (case "(($ac_try" in
3991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3992 *) ac_try_echo
=$ac_try;;
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_try") 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_enable_profiling
="yes"
4001 echo "$as_me: program exited with status $ac_status" >&5
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.
$ac_ext >&5
4006 ac_enable_profiling
="no"
4008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4015 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4016 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4018 case "$ac_enable_profiling" in
4020 BASECFLAGS
="-pg $BASECFLAGS"
4021 LDFLAGS
="-pg $LDFLAGS"
4025 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4026 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4028 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4029 # library that we build, but we do not want to link against it (we
4030 # will find it with a -framework option). For this reason there is an
4031 # extra variable BLDLIBRARY against which Python and the extension
4032 # modules are linked, BLDLIBRARY. This is normally the same as
4033 # LDLIBRARY, but empty for MacOSX framework builds.
4034 if test "$enable_framework"
4036 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4037 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4040 BLDLIBRARY
='$(LDLIBRARY)'
4043 # Other platforms follow
4044 if test $enable_shared = "yes"; then
4046 cat >>confdefs.h
<<\_ACEOF
4047 #define Py_ENABLE_SHARED 1
4050 case $ac_sys_system in
4052 LDLIBRARY
='libpython$(VERSION).dll.a'
4053 DLLLIBRARY
='libpython$(VERSION).dll'
4056 LDLIBRARY
='libpython$(VERSION).so'
4057 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4058 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4059 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4061 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4062 LDLIBRARY
='libpython$(VERSION).so'
4063 BLDLIBRARY
='-L. -lpython$(VERSION)'
4064 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4065 case $ac_sys_system in
4067 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4070 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4075 LDLIBRARY
='libpython$(VERSION).so'
4078 LDLIBRARY
='libpython$(VERSION).sl'
4081 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4082 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4085 LDLIBRARY
='libpython$(VERSION).so'
4086 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4087 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4090 LDLIBRARY
='libpython$(VERSION).so'
4091 BLDLIBRARY
='-L. -lpython$(VERSION)'
4092 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4095 LDLIBRARY
='libpython$(VERSION).dylib'
4096 BLDLIBRARY
='-L. -lpython$(VERSION)'
4097 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4101 else # shared is disabled
4102 case $ac_sys_system in
4104 BLDLIBRARY
='$(LIBRARY)'
4105 LDLIBRARY
='libpython$(VERSION).dll.a'
4110 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4111 echo "${ECHO_T}$LDLIBRARY" >&6; }
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4115 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_prog_RANLIB+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test -n "$RANLIB"; then
4122 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir
=.
4129 for ac_exec_ext
in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 RANLIB
=$ac_cv_prog_RANLIB
4142 if test -n "$RANLIB"; then
4143 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4144 echo "${ECHO_T}$RANLIB" >&6; }
4146 { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4152 if test -z "$ac_cv_prog_RANLIB"; then
4153 ac_ct_RANLIB
=$RANLIB
4154 # Extract the first word of "ranlib", so it can be a program name with args.
4155 set dummy ranlib
; ac_word
=$2
4156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$ac_ct_RANLIB"; then
4162 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4168 test -z "$as_dir" && as_dir
=.
4169 for ac_exec_ext
in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4182 if test -n "$ac_ct_RANLIB"; then
4183 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4184 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4190 if test "x$ac_ct_RANLIB" = x
; then
4193 case $cross_compiling:$ac_tool_warned in
4195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4196 whose name does not start with the host triplet. If you think this
4197 configuration is useful to you, please write to autoconf@gnu.org." >&5
4198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4199 whose name does not start with the host triplet. If you think this
4200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4201 ac_tool_warned
=yes ;;
4203 RANLIB
=$ac_ct_RANLIB
4206 RANLIB
="$ac_cv_prog_RANLIB"
4210 for ac_prog
in ar aal
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy
$ac_prog; ac_word
=$2
4214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4216 if test "${ac_cv_prog_AR+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$AR"; then
4220 ac_cv_prog_AR
="$AR" # Let the user override the test.
4222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir
=.
4227 for ac_exec_ext
in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_AR
="$ac_prog"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 if test -n "$AR"; then
4241 { echo "$as_me:$LINENO: result: $AR" >&5
4242 echo "${ECHO_T}$AR" >&6; }
4244 { echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6; }
4249 test -n "$AR" && break
4251 test -n "$AR" || AR
="ar"
4255 # Extract the first word of "svnversion", so it can be a program name with args.
4256 set dummy svnversion
; ac_word
=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$SVNVERSION"; then
4263 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir
=.
4270 for ac_exec_ext
in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_SVNVERSION
="found"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4283 SVNVERSION
=$ac_cv_prog_SVNVERSION
4284 if test -n "$SVNVERSION"; then
4285 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4286 echo "${ECHO_T}$SVNVERSION" >&6; }
4288 { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4293 if test $SVNVERSION = found
4295 SVNVERSION
="svnversion \$(srcdir)"
4297 SVNVERSION
="echo exported"
4302 # install -d does not work on BSDI or HP-UX
4303 if test -z "$INSTALL"
4305 INSTALL
="${srcdir}/install-sh -c"
4309 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4310 if test -f "$ac_dir/install-sh"; then
4312 ac_install_sh
="$ac_aux_dir/install-sh -c"
4314 elif test -f "$ac_dir/install.sh"; then
4316 ac_install_sh
="$ac_aux_dir/install.sh -c"
4318 elif test -f "$ac_dir/shtool"; then
4320 ac_install_sh
="$ac_aux_dir/shtool install -c"
4324 if test -z "$ac_aux_dir"; then
4325 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4326 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4327 { (exit 1); exit 1; }; }
4330 # These three variables are undocumented and unsupported,
4331 # and are intended to be withdrawn in a future Autoconf release.
4332 # They can cause serious problems if a builder's source tree is in a directory
4333 # whose full name contains unusual characters.
4334 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4335 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4336 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4339 # Find a good install program. We prefer a C program (faster),
4340 # so one script is as good as another. But avoid the broken or
4341 # incompatible versions:
4342 # SysV /etc/install, /usr/sbin/install
4343 # SunOS /usr/etc/install
4344 # IRIX /sbin/install
4346 # AmigaOS /C/install, which installs bootblocks on floppy discs
4347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4350 # OS/2's system install, which has a completely different semantic
4351 # ./install, which can be erroneously created by make from ./install.sh.
4352 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4353 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4354 if test -z "$INSTALL"; then
4355 if test "${ac_cv_path_install+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir
=.
4363 # Account for people who put trailing slashes in PATH elements.
4365 .
/ | .
// |
/cC
/* | \
4366 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4367 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4370 # OSF1 and SCO ODT 3.0 have their own names for install.
4371 # Don't use installbsd from OSF since it installs stuff as root
4373 for ac_prog
in ginstall scoinst
install; do
4374 for ac_exec_ext
in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4376 if test $ac_prog = install &&
4377 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4378 # AIX install. It has an incompatible calling convention.
4380 elif test $ac_prog = install &&
4381 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4382 # program-specific install script used by HP pwplus--don't use.
4385 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4398 if test "${ac_cv_path_install+set}" = set; then
4399 INSTALL
=$ac_cv_path_install
4401 # As a last resort, use the slow shell script. Don't cache a
4402 # value for INSTALL within a source directory, because that will
4403 # break other packages using the cache if that directory is
4404 # removed, or if the value is a relative name.
4405 INSTALL
=$ac_install_sh
4408 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4409 echo "${ECHO_T}$INSTALL" >&6; }
4411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4412 # It thinks the first close brace ends the variable substitution.
4413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4417 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4420 # Not every filesystem supports hard links
4422 if test -z "$LN" ; then
4423 case $ac_sys_system in
4424 CYGWIN
*) LN
="ln -s";;
4425 atheos
*) LN
="ln -s";;
4430 # Check for --with-pydebug
4431 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4432 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4434 # Check whether --with-pydebug was given.
4435 if test "${with_pydebug+set}" = set; then
4436 withval
=$with_pydebug;
4437 if test "$withval" != no
4440 cat >>confdefs.h
<<\_ACEOF
4444 { echo "$as_me:$LINENO: result: yes" >&5
4445 echo "${ECHO_T}yes" >&6; };
4447 else { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4456 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4457 # merged with this chunk of code?
4459 # Optimizer/debugger flags
4460 # ------------------------
4461 # (The following bit of code is complicated enough - please keep things
4462 # indented properly. Just pretend you're editing Python code. ;-)
4464 # There are two parallel sets of case statements below, one that checks to
4465 # see if OPT was set and one that does BASECFLAGS setting based upon
4466 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4469 # tweak OPT based on compiler and platform, only if the user didn't set
4470 # it on the command line
4476 if test "$CC" != 'g++' ; then
4477 STRICT_PROTO
="-Wstrict-prototypes"
4479 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4480 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4483 case $ac_cv_prog_cc_g in
4485 if test "$Py_DEBUG" = 'true' ; then
4486 # Optimization messes up debuggers, so turn it off for
4488 OPT
="-g -Wall $STRICT_PROTO"
4490 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4494 OPT
="-O3 -Wall $STRICT_PROTO"
4497 case $ac_sys_system in
4498 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4508 # The current (beta) Monterey compiler dies with optimizations
4509 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4510 case $ac_sys_system in
4520 # The -arch flags for universal builds on OSX
4521 UNIVERSAL_ARCH_FLAGS
=
4524 # tweak BASECFLAGS based on compiler and platform
4527 # Python violates C99 rules, by casting between incompatible
4528 # pointer types. GCC may generate bad code as a result of that,
4529 # so use -fno-strict-aliasing if supported.
4530 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4531 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4533 CC
="$CC -fno-strict-aliasing"
4534 if test "$cross_compiling" = yes; then
4535 ac_cv_no_strict_aliasing_ok
=no
4537 cat >conftest.
$ac_ext <<_ACEOF
4540 cat confdefs.h
>>conftest.
$ac_ext
4541 cat >>conftest.
$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 int main() { return 0; }
4545 rm -f conftest
$ac_exeext
4546 if { (ac_try
="$ac_link"
4548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_link") 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4556 { (case "(($ac_try" in
4557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4558 *) ac_try_echo
=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_try") 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_no_strict_aliasing_ok
=yes
4567 echo "$as_me: program exited with status $ac_status" >&5
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.
$ac_ext >&5
4572 ac_cv_no_strict_aliasing_ok
=no
4574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4579 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4580 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4581 if test $ac_cv_no_strict_aliasing_ok = yes
4583 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4586 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4587 # support. Without this, treatment of subnormals doesn't follow
4589 case $ac_sys_machine in
4591 BASECFLAGS
="$BASECFLAGS -mieee"
4595 case $ac_sys_system in
4597 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4599 # is there any other compiler on Darwin besides gcc?
4601 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4602 # used to be here, but non-Apple gcc doesn't accept them.
4605 if test "${enable_universalsdk}"; then
4606 UNIVERSAL_ARCH_FLAGS
=""
4607 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4608 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4611 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4612 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4614 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4615 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4616 ARCH_RUN_32BIT
="arch -i386 -ppc"
4619 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4620 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4621 { (exit 1); exit 1; }; }
4626 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4627 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4628 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4629 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4633 # Calculate the right deployment target for this build.
4635 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4636 if test ${cur_target} '>' 10.2; then
4639 if test "${UNIVERSAL_ARCHS}" = "all"; then
4640 # Ensure that the default platform for a 4-way
4641 # universal build is OSX 10.5, that's the first
4642 # OS release where 4-way builds make sense.
4645 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4647 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4648 # environment with a value that is the same as what we'll use
4649 # in the Makefile to ensure that we'll get the same compiler
4650 # environment during configure and build time.
4651 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4652 export MACOSX_DEPLOYMENT_TARGET
4653 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4657 BASECFLAGS
="$BASECFLAGS -mieee"
4663 case $ac_sys_system in
4664 OpenUNIX
*|UnixWare
*)
4665 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4668 BASECFLAGS
="$BASECFLAGS -ieee -std"
4671 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4677 if test "$Py_DEBUG" = 'true'; then
4683 if test "$ac_arch_flags"
4685 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4688 # disable check for icc since it seems to pass, but generates a warning
4691 ac_cv_opt_olimit_ok
=no
4694 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4695 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4696 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 CC
="$CC -OPT:Olimit=0"
4701 if test "$cross_compiling" = yes; then
4702 ac_cv_opt_olimit_ok
=no
4704 cat >conftest.
$ac_ext <<_ACEOF
4707 cat confdefs.h
>>conftest.
$ac_ext
4708 cat >>conftest.
$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 int main() { return 0; }
4712 rm -f conftest
$ac_exeext
4713 if { (ac_try
="$ac_link"
4715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_link") 2>&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4723 { (case "(($ac_try" in
4724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4725 *) ac_try_echo
=$ac_try;;
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_try") 2>&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_opt_olimit_ok
=yes
4734 echo "$as_me: program exited with status $ac_status" >&5
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.
$ac_ext >&5
4739 ac_cv_opt_olimit_ok
=no
4741 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4748 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4749 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4750 if test $ac_cv_opt_olimit_ok = yes; then
4751 case $ac_sys_system in
4752 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4753 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4758 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4762 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4763 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4764 if test "${ac_cv_olimit_ok+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 CC
="$CC -Olimit 1500"
4769 if test "$cross_compiling" = yes; then
4772 cat >conftest.
$ac_ext <<_ACEOF
4775 cat confdefs.h
>>conftest.
$ac_ext
4776 cat >>conftest.
$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4778 int main() { return 0; }
4780 rm -f conftest
$ac_exeext
4781 if { (ac_try
="$ac_link"
4783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_link") 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4791 { (case "(($ac_try" in
4792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4793 *) ac_try_echo
=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_try") 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4802 echo "$as_me: program exited with status $ac_status" >&5
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.
$ac_ext >&5
4809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4816 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4817 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4818 if test $ac_cv_olimit_ok = yes; then
4819 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4823 # Check whether GCC supports PyArg_ParseTuple format
4824 if test "$GCC" = "yes"
4826 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4827 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4829 CFLAGS
="$CFLAGS -Werror"
4830 cat >conftest.
$ac_ext <<_ACEOF
4833 cat confdefs.h
>>conftest.
$ac_ext
4834 cat >>conftest.
$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4837 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4847 rm -f conftest.
$ac_objext
4848 if { (ac_try
="$ac_compile"
4850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4865 cat >>confdefs.h <<\_ACEOF
4866 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4869 { echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6; }
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 # On some compilers, pthreads are available without further options
4885 # (e.g. MacOS X). On some of these systems, the compiler will not
4886 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4887 # So we have to see first whether pthreads are available without
4888 # options before we can check whether -Kpthread improves anything.
4889 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4890 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4891 if test "${ac_cv_pthread_is_default+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test "$cross_compiling" = yes; then
4895 ac_cv_pthread_is_default=no
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 #include <pthread.h>
4906 void* routine(void* p){return NULL;}
4910 if(pthread_create(&p,NULL,routine,NULL)!=0)
4912 (void)pthread_detach(p);
4917 rm -f conftest$ac_exeext
4918 if { (ac_try="$ac_link"
4920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4921 *) ac_try_echo
=$ac_try;;
4923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4924 (eval "$ac_link") 2>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4928 { (case "(($ac_try" in
4929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4938 ac_cv_pthread_is_default=yes
4943 echo "$as_me: program exited with status $ac_status" >&5
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4948 ac_cv_pthread_is_default=no
4950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4957 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4958 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4961 if test $ac_cv_pthread_is_default = yes
4965 # -Kpthread, if available, provides the right #defines
4966 # and linker options to make pthread_create available
4967 # Some compilers won't report that they do not support -Kpthread,
4968 # so we need to run a program to see whether it really made the
4969 # function available.
4970 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4971 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4972 if test "${ac_cv_kpthread+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test "$cross_compiling" = yes; then
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 #include <pthread.h>
4989 void* routine(void* p){return NULL;}
4993 if(pthread_create(&p,NULL,routine,NULL)!=0)
4995 (void)pthread_detach(p);
5000 rm -f conftest$ac_exeext
5001 if { (ac_try="$ac_link"
5003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5004 *) ac_try_echo
=$ac_try;;
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_link") 2>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5011 { (case "(($ac_try" in
5012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_try") 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5022 echo "$as_me: program exited with status $ac_status" >&5
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5037 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5040 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5042 # -Kthread, if available, provides the right #defines
5043 # and linker options to make pthread_create available
5044 # Some compilers won't report that they do not support -Kthread,
5045 # so we need to run a program to see whether it really made the
5046 # function available.
5047 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5048 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5049 if test "${ac_cv_kthread+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 if test "$cross_compiling" = yes; then
5057 cat >conftest.$ac_ext <<_ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 #include <pthread.h>
5066 void* routine(void* p){return NULL;}
5070 if(pthread_create(&p,NULL,routine,NULL)!=0)
5072 (void)pthread_detach(p);
5077 rm -f conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5081 *) ac_try_echo
=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5088 { (case "(($ac_try" in
5089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_try") 2>&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5099 echo "$as_me: program exited with status $ac_status" >&5
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5113 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5114 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5117 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5119 # -pthread, if available, provides the right #defines
5120 # and linker options to make pthread_create available
5121 # Some compilers won't report that they do not support -pthread,
5122 # so we need to run a program to see whether it really made the
5123 # function available.
5124 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5125 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5126 if test "${ac_cv_thread+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 if test "$cross_compiling" = yes; then
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5141 #include <pthread.h>
5143 void* routine(void* p){return NULL;}
5147 if(pthread_create(&p,NULL,routine,NULL)!=0)
5149 (void)pthread_detach(p);
5154 rm -f conftest$ac_exeext
5155 if { (ac_try="$ac_link"
5157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5158 *) ac_try_echo
=$ac_try;;
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_link") 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5165 { (case "(($ac_try" in
5166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_try") 2>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5176 echo "$as_me: program exited with status $ac_status" >&5
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5190 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5191 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5194 # If we have set a CC compiler flag for thread support then
5195 # check if it works for CXX, too.
5199 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5200 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5203 if test "$ac_cv_kpthread" = "yes"
5205 CXX="$CXX -Kpthread"
5206 ac_cv_cxx_thread=yes
5207 elif test "$ac_cv_kthread" = "yes"
5210 ac_cv_cxx_thread=yes
5211 elif test "$ac_cv_pthread" = "yes"
5214 ac_cv_cxx_thread=yes
5217 if test $ac_cv_cxx_thread = yes
5219 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5220 $CXX -c conftest.$ac_ext 2>&5
5221 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5222 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5224 ac_cv_cxx_thread=yes
5230 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5231 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5236 # checks for header files
5237 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5239 if test "${ac_cv_header_stdc+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5261 rm -f conftest.$ac_objext
5262 if { (ac_try="$ac_compile"
5264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5265 *) ac_try_echo
=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5270 grep -v '^ *+' conftest.er1
>conftest.err
5272 cat conftest.err
>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.
$ac_objext; then
5278 ac_cv_header_stdc
=yes
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.
$ac_ext >&5
5283 ac_cv_header_stdc
=no
5286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5288 if test $ac_cv_header_stdc = yes; then
5289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5290 cat >conftest.
$ac_ext <<_ACEOF
5293 cat confdefs.h
>>conftest.
$ac_ext
5294 cat >>conftest.
$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300 $EGREP "memchr" >/dev
/null
2>&1; then
5303 ac_cv_header_stdc
=no
5309 if test $ac_cv_header_stdc = yes; then
5310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5311 cat >conftest.
$ac_ext <<_ACEOF
5314 cat confdefs.h
>>conftest.
$ac_ext
5315 cat >>conftest.
$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "free" >/dev
/null
2>&1; then
5324 ac_cv_header_stdc
=no
5330 if test $ac_cv_header_stdc = yes; then
5331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5332 if test "$cross_compiling" = yes; then
5335 cat >conftest.
$ac_ext <<_ACEOF
5338 cat confdefs.h
>>conftest.
$ac_ext
5339 cat >>conftest.
$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5343 #if ((' ' & 0x0FF) == 0x020)
5344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347 # define ISLOWER(c) \
5348 (('a' <= (c) && (c) <= 'i') \
5349 || ('j' <= (c) && (c) <= 'r') \
5350 || ('s' <= (c) && (c) <= 'z'))
5351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359 for (i = 0; i < 256; i++)
5360 if (XOR (islower (i), ISLOWER (i))
5361 || toupper (i) != TOUPPER (i))
5366 rm -f conftest
$ac_exeext
5367 if { (ac_try
="$ac_link"
5369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_link") 2>&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5377 { (case "(($ac_try" in
5378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5379 *) ac_try_echo
=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_try") 2>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5388 echo "$as_me: program exited with status $ac_status" >&5
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.
$ac_ext >&5
5393 ac_cv_header_stdc
=no
5395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5401 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5402 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5403 if test $ac_cv_header_stdc = yes; then
5405 cat >>confdefs.h
<<\_ACEOF
5406 #define STDC_HEADERS 1
5411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5421 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5422 inttypes.h stdint.h unistd.h
5424 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 cat >conftest.
$ac_ext <<_ACEOF
5433 cat confdefs.h
>>conftest.
$ac_ext
5434 cat >>conftest.
$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5438 #include <$ac_header>
5440 rm -f conftest.
$ac_objext
5441 if { (ac_try
="$ac_compile"
5443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_c_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 eval "$as_ac_Header=yes"
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 eval "$as_ac_Header=no"
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 ac_res=`eval echo '${'$as_ac_Header'}'`
5468 { echo "$as_me:$LINENO: result: $ac_res" >&5
5469 echo "${ECHO_T}$ac_res" >&6; }
5470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5471 cat >>confdefs.h <<_ACEOF
5472 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5534 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5536 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5537 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5539 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5540 sys/lock.h sys/mkdev.h sys/modem.h \
5541 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5542 sys/termio.h sys/time.h \
5543 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5544 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5545 bluetooth/bluetooth.h linux/tipc.h
5547 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_res=`eval echo '${'$as_ac_Header'}'`
5555 { echo "$as_me:$LINENO: result: $ac_res" >&5
5556 echo "${ECHO_T}$ac_res" >&6; }
5558 # Is the header compilable?
5559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 #include <$ac_header>
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5574 *) ac_try_echo
=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1
>conftest.err
5581 cat conftest.err
>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.
$ac_objext; then
5587 ac_header_compiler
=yes
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.
$ac_ext >&5
5592 ac_header_compiler
=no
5595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5597 echo "${ECHO_T}$ac_header_compiler" >&6; }
5599 # Is the header present?
5600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5602 cat >conftest.
$ac_ext <<_ACEOF
5605 cat confdefs.h
>>conftest.
$ac_ext
5606 cat >>conftest.
$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #include <$ac_header>
5610 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } >/dev/null && {
5623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5626 ac_header_preproc=yes
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 ac_header_preproc=no
5634 rm -f conftest.err conftest.$ac_ext
5635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5636 echo "${ECHO_T}$ac_header_preproc" >&6; }
5638 # So? What about this header?
5639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5645 ac_header_preproc=yes
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5661 ## ------------------------------------------------ ##
5662 ## Report this to http://www.python.org/python-bugs ##
5663 ## ------------------------------------------------ ##
5665 ) | sed "s/^/$as_me: WARNING: /" >&2
5668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 eval "$as_ac_Header=\$ac_header_preproc"
5675 ac_res=`eval echo '${'$as_ac_Header'}'`
5676 { echo "$as_me:$LINENO: result: $ac_res" >&5
5677 echo "${ECHO_T}$ac_res" >&6; }
5680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5695 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5696 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5697 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5698 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5724 *) ac_try_echo
=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1
>conftest.err
5731 cat conftest.err
>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.
$ac_objext; then
5737 eval "$as_ac_Header=yes"
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.
$ac_ext >&5
5742 eval "$as_ac_Header=no"
5745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5747 ac_res
=`eval echo '${'$as_ac_Header'}'`
5748 { echo "$as_me:$LINENO: result: $ac_res" >&5
5749 echo "${ECHO_T}$ac_res" >&6; }
5750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5751 cat >>confdefs.h
<<_ACEOF
5752 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5755 ac_header_dirent
=$ac_hdr; break
5759 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5760 if test $ac_header_dirent = dirent.h
; then
5761 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5763 if test "${ac_cv_search_opendir+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 ac_func_search_save_LIBS
=$LIBS
5767 cat >conftest.
$ac_ext <<_ACEOF
5770 cat confdefs.h
>>conftest.
$ac_ext
5771 cat >>conftest.
$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5774 /* Override any GCC internal prototype to avoid an error.
5775 Use char because int might match the return type of a GCC
5776 builtin and then its argument prototype would still apply. */
5789 for ac_lib
in '' dir
; do
5790 if test -z "$ac_lib"; then
5791 ac_res
="none required"
5794 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5796 rm -f conftest.
$ac_objext conftest
$ac_exeext
5797 if { (ac_try
="$ac_link"
5799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_link") 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest$ac_exeext &&
5813 $as_test_x conftest$ac_exeext; then
5814 ac_cv_search_opendir=$ac_res
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5824 if test "${ac_cv_search_opendir+set}" = set; then
5828 if test "${ac_cv_search_opendir+set}" = set; then
5831 ac_cv_search_opendir=no
5834 LIBS=$ac_func_search_save_LIBS
5836 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5837 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5838 ac_res=$ac_cv_search_opendir
5839 if test "$ac_res" != no; then
5840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5845 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5846 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5847 if test "${ac_cv_search_opendir+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 ac_func_search_save_LIBS=$LIBS
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5873 for ac_lib in '' x; do
5874 if test -z "$ac_lib"; then
5875 ac_res="none required"
5878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (ac_try="$ac_link"
5883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5884 *) ac_try_echo
=$ac_try;;
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_link") 2>conftest.er1
5889 grep -v '^ *+' conftest.er1
>conftest.err
5891 cat conftest.err
>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest
$ac_exeext &&
5897 $as_test_x conftest
$ac_exeext; then
5898 ac_cv_search_opendir
=$ac_res
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.
$ac_ext >&5
5906 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5908 if test "${ac_cv_search_opendir+set}" = set; then
5912 if test "${ac_cv_search_opendir+set}" = set; then
5915 ac_cv_search_opendir
=no
5918 LIBS
=$ac_func_search_save_LIBS
5920 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5921 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5922 ac_res
=$ac_cv_search_opendir
5923 if test "$ac_res" != no
; then
5924 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5930 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5931 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5932 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 cat >conftest.
$ac_ext <<_ACEOF
5938 cat confdefs.h
>>conftest.
$ac_ext
5939 cat >>conftest.
$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <sys/types.h>
5945 return makedev(0, 0);
5950 rm -f conftest.
$ac_objext conftest
$ac_exeext
5951 if { (ac_try
="$ac_link"
5953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_link") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest$ac_exeext &&
5967 $as_test_x conftest$ac_exeext; then
5968 ac_cv_header_sys_types_h_makedev=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_header_sys_types_h_makedev=no
5976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5977 conftest$ac_exeext conftest.$ac_ext
5980 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5981 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5983 if test $ac_cv_header_sys_types_h_makedev = no; then
5984 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5985 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5986 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5987 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5991 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5993 # Is the header compilable?
5994 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5995 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5996 cat >conftest.$ac_ext <<_ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6003 #include <sys/mkdev.h>
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6009 *) ac_try_echo
=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1
>conftest.err
6016 cat conftest.err
>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.
$ac_objext; then
6022 ac_header_compiler
=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.
$ac_ext >&5
6027 ac_header_compiler
=no
6030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6032 echo "${ECHO_T}$ac_header_compiler" >&6; }
6034 # Is the header present?
6035 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6036 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6037 cat >conftest.
$ac_ext <<_ACEOF
6040 cat confdefs.h
>>conftest.
$ac_ext
6041 cat >>conftest.
$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <sys/mkdev.h>
6045 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null && {
6058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6061 ac_header_preproc=yes
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_header_preproc=no
6069 rm -f conftest.err conftest.$ac_ext
6070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071 echo "${ECHO_T}$ac_header_preproc" >&6; }
6073 # So? What about this header?
6074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6076 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6077 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6079 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6080 ac_header_preproc=yes
6083 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6084 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6086 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6088 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6090 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6094 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6096 ## ------------------------------------------------ ##
6097 ## Report this to http://www.python.org/python-bugs ##
6098 ## ------------------------------------------------ ##
6100 ) | sed "s/^/$as_me: WARNING: /" >&2
6103 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6104 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6105 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6111 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6114 if test $ac_cv_header_sys_mkdev_h = yes; then
6116 cat >>confdefs.h <<\_ACEOF
6117 #define MAJOR_IN_MKDEV 1
6124 if test $ac_cv_header_sys_mkdev_h = no; then
6125 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6126 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6127 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6128 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6132 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6134 # Is the header compilable?
6135 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6136 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 $ac_includes_default
6144 #include <sys/sysmacros.h>
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6150 *) ac_try_echo
=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1
>conftest.err
6157 cat conftest.err
>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.
$ac_objext; then
6163 ac_header_compiler
=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6168 ac_header_compiler
=no
6171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6173 echo "${ECHO_T}$ac_header_compiler" >&6; }
6175 # Is the header present?
6176 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6177 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6178 cat >conftest.
$ac_ext <<_ACEOF
6181 cat confdefs.h
>>conftest.
$ac_ext
6182 cat >>conftest.
$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <sys/sysmacros.h>
6186 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } >/dev/null && {
6199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6202 ac_header_preproc=yes
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_header_preproc=no
6210 rm -f conftest.err conftest.$ac_ext
6211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6212 echo "${ECHO_T}$ac_header_preproc" >&6; }
6214 # So? What about this header?
6215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6217 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6218 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6220 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6221 ac_header_preproc=yes
6224 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6225 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6227 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6229 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6231 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6233 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6235 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6237 ## ------------------------------------------------ ##
6238 ## Report this to http://www.python.org/python-bugs ##
6239 ## ------------------------------------------------ ##
6241 ) | sed "s/^/$as_me: WARNING: /" >&2
6244 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6245 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6246 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6252 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6255 if test $ac_cv_header_sys_sysmacros_h = yes; then
6257 cat >>confdefs.h <<\_ACEOF
6258 #define MAJOR_IN_SYSMACROS 1
6268 # On Solaris, term.h requires curses.h
6270 for ac_header in term.h
6272 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6285 #ifdef HAVE_CURSES_H
6290 #include <$ac_header>
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6296 *) ac_try_echo
=$ac_try;;
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compile") 2>conftest.er1
6301 grep -v '^ *+' conftest.er1
>conftest.err
6303 cat conftest.err
>&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.
$ac_objext; then
6309 eval "$as_ac_Header=yes"
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.
$ac_ext >&5
6314 eval "$as_ac_Header=no"
6317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6319 ac_res
=`eval echo '${'$as_ac_Header'}'`
6320 { echo "$as_me:$LINENO: result: $ac_res" >&5
6321 echo "${ECHO_T}$ac_res" >&6; }
6322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6323 cat >>confdefs.h
<<_ACEOF
6324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332 # On Linux, netlink.h requires asm/types.h
6334 for ac_header
in linux
/netlink.h
6336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 cat >conftest.
$ac_ext <<_ACEOF
6345 cat confdefs.h
>>conftest.
$ac_ext
6346 cat >>conftest.
$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6349 #ifdef HAVE_ASM_TYPES_H
6350 #include <asm/types.h>
6352 #ifdef HAVE_SYS_SOCKET_H
6353 #include <sys/socket.h>
6357 #include <$ac_header>
6359 rm -f conftest.
$ac_objext
6360 if { (ac_try
="$ac_compile"
6362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6368 grep -v '^ *+' conftest.er1 >conftest.err
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 eval "$as_ac_Header=yes"
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 eval "$as_ac_Header=no"
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 ac_res=`eval echo '${'$as_ac_Header'}'`
6387 { echo "$as_me:$LINENO: result: $ac_res" >&5
6388 echo "${ECHO_T}$ac_res" >&6; }
6389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6390 cat >>confdefs.h <<_ACEOF
6391 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6399 # checks for typedefs
6401 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6402 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6403 cat >conftest.$ac_ext <<_ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "clock_t" >/dev/null 2>&1; then
6418 cat >>confdefs.h <<\_ACEOF
6419 #define clock_t long
6426 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6427 echo "${ECHO_T}$was_it_defined" >&6; }
6429 # Check whether using makedev requires defining _OSF_SOURCE
6430 { echo "$as_me:$LINENO: checking for makedev" >&5
6431 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <sys/types.h>
6447 rm -f conftest.$ac_objext conftest$ac_exeext
6448 if { (ac_try="$ac_link"
6450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6451 *) ac_try_echo
=$ac_try;;
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_link") 2>conftest.er1
6456 grep -v '^ *+' conftest.er1
>conftest.err
6458 cat conftest.err
>&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest
$ac_exeext &&
6464 $as_test_x conftest
$ac_exeext; then
6465 ac_cv_has_makedev
=yes
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.
$ac_ext >&5
6470 ac_cv_has_makedev
=no
6473 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6474 conftest
$ac_exeext conftest.
$ac_ext
6475 if test "$ac_cv_has_makedev" = "no"; then
6476 # we didn't link, try if _OSF_SOURCE will allow us to link
6477 cat >conftest.
$ac_ext <<_ACEOF
6480 cat confdefs.h
>>conftest.
$ac_ext
6481 cat >>conftest.
$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6484 #define _OSF_SOURCE 1
6485 #include <sys/types.h>
6495 rm -f conftest.
$ac_objext conftest
$ac_exeext
6496 if { (ac_try
="$ac_link"
6498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_link") 2>conftest.er1
6504 grep -v '^ *+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest$ac_exeext &&
6512 $as_test_x conftest$ac_exeext; then
6513 ac_cv_has_makedev=yes
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 ac_cv_has_makedev=no
6521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6522 conftest$ac_exeext conftest.$ac_ext
6523 if test "$ac_cv_has_makedev" = "yes"; then
6525 cat >>confdefs.h <<\_ACEOF
6526 #define _OSF_SOURCE 1
6531 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6532 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6533 if test "$ac_cv_has_makedev" = "yes"; then
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_MAKEDEV 1
6541 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6542 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6543 # defined, but the compiler does not support pragma redefine_extname,
6544 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6545 # structures (such as rlimit64) without declaring them. As a
6546 # work-around, disable LFS on such configurations
6549 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6550 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6558 #define _LARGEFILE_SOURCE 1
6559 #define _FILE_OFFSET_BITS 64
6560 #include <sys/resource.h>
6570 rm -f conftest.$ac_objext
6571 if { (ac_try="$ac_compile"
6573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6574 *) ac_try_echo
=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_compile") 2>conftest.er1
6579 grep -v '^ *+' conftest.er1
>conftest.err
6581 cat conftest.err
>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest.
$ac_objext; then
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.
$ac_ext >&5
6595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6596 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6597 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6598 if test "$sol_lfs_bug" = "yes"; then
6602 if test "$use_lfs" = "yes"; then
6603 # Two defines needed to enable largefile support on various platforms
6604 # These may affect some typedefs
6606 cat >>confdefs.h
<<\_ACEOF
6607 #define _LARGEFILE_SOURCE 1
6611 cat >>confdefs.h
<<\_ACEOF
6612 #define _FILE_OFFSET_BITS 64
6617 # Add some code to confdefs.h so that the test for off_t works on SCO
6618 cat >> confdefs.h
<<\EOF
6624 # Type availability checks
6625 { echo "$as_me:$LINENO: checking for mode_t" >&5
6626 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6627 if test "${ac_cv_type_mode_t+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 cat >conftest.
$ac_ext <<_ACEOF
6633 cat confdefs.h
>>conftest.
$ac_ext
6634 cat >>conftest.
$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 $ac_includes_default
6637 typedef mode_t ac__type_new_;
6641 if ((ac__type_new_ *) 0)
6643 if (sizeof (ac__type_new_))
6649 rm -f conftest.
$ac_objext
6650 if { (ac_try
="$ac_compile"
6652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compile") 2>conftest.er1
6658 grep -v '^ *+' conftest.er1 >conftest.err
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest.$ac_objext; then
6666 ac_cv_type_mode_t=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_cv_type_mode_t=no
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6677 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6678 if test $ac_cv_type_mode_t = yes; then
6682 cat >>confdefs.h <<_ACEOF
6688 { echo "$as_me:$LINENO: checking for off_t" >&5
6689 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6690 if test "${ac_cv_type_off_t+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 $ac_includes_default
6700 typedef off_t ac__type_new_;
6704 if ((ac__type_new_ *) 0)
6706 if (sizeof (ac__type_new_))
6712 rm -f conftest.$ac_objext
6713 if { (ac_try="$ac_compile"
6715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6716 *) ac_try_echo
=$ac_try;;
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_compile") 2>conftest.er1
6721 grep -v '^ *+' conftest.er1
>conftest.err
6723 cat conftest.err
>&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest.
$ac_objext; then
6729 ac_cv_type_off_t
=yes
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.
$ac_ext >&5
6737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6740 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6741 if test $ac_cv_type_off_t = yes; then
6745 cat >>confdefs.h
<<_ACEOF
6746 #define off_t long int
6751 { echo "$as_me:$LINENO: checking for pid_t" >&5
6752 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6753 if test "${ac_cv_type_pid_t+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 cat >conftest.
$ac_ext <<_ACEOF
6759 cat confdefs.h
>>conftest.
$ac_ext
6760 cat >>conftest.
$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 typedef pid_t ac__type_new_;
6767 if ((ac__type_new_ *) 0)
6769 if (sizeof (ac__type_new_))
6775 rm -f conftest.
$ac_objext
6776 if { (ac_try
="$ac_compile"
6778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_compile") 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 } && test -s conftest.$ac_objext; then
6792 ac_cv_type_pid_t=yes
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6804 if test $ac_cv_type_pid_t = yes; then
6808 cat >>confdefs.h <<_ACEOF
6814 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6815 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6816 if test "${ac_cv_type_signal+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 cat >conftest.$ac_ext <<_ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/types.h>
6831 return *(signal (0, 0)) (0) == 1;
6836 rm -f conftest.$ac_objext
6837 if { (ac_try="$ac_compile"
6839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6840 *) ac_try_echo
=$ac_try;;
6842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843 (eval "$ac_compile") 2>conftest.er1
6845 grep -v '^ *+' conftest.er1
>conftest.err
6847 cat conftest.err
>&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && {
6850 test -z "$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 } && test -s conftest.
$ac_objext; then
6853 ac_cv_type_signal
=int
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6858 ac_cv_type_signal
=void
6861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6863 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6864 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6866 cat >>confdefs.h
<<_ACEOF
6867 #define RETSIGTYPE $ac_cv_type_signal
6871 { echo "$as_me:$LINENO: checking for size_t" >&5
6872 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6873 if test "${ac_cv_type_size_t+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 cat >conftest.
$ac_ext <<_ACEOF
6879 cat confdefs.h
>>conftest.
$ac_ext
6880 cat >>conftest.
$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 $ac_includes_default
6883 typedef size_t ac__type_new_;
6887 if ((ac__type_new_ *) 0)
6889 if (sizeof (ac__type_new_))
6895 rm -f conftest.
$ac_objext
6896 if { (ac_try
="$ac_compile"
6898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6912 ac_cv_type_size_t=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_type_size_t=no
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6923 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6924 if test $ac_cv_type_size_t = yes; then
6928 cat >>confdefs.h <<_ACEOF
6929 #define size_t unsigned int
6934 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6935 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6936 if test "${ac_cv_type_uid_t+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <sys/types.h>
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 $EGREP "uid_t" >/dev/null 2>&1; then
6950 ac_cv_type_uid_t=yes
6957 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6958 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6959 if test $ac_cv_type_uid_t = no; then
6961 cat >>confdefs.h <<\_ACEOF
6966 cat >>confdefs.h <<\_ACEOF
6973 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6974 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6975 if test "${ac_cv_c_uint32_t+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
6980 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6991 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7002 *) ac_try_echo
=$ac_try;;
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7007 grep -v '^ *+' conftest.er1
>conftest.err
7009 cat conftest.err
>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.
$ac_objext; then
7016 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7017 *) ac_cv_c_uint32_t
=$ac_type ;;
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.
$ac_ext >&5
7027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7028 test "$ac_cv_c_uint32_t" != no
&& break
7031 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7032 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7033 case $ac_cv_c_uint32_t in #(
7037 cat >>confdefs.h
<<\_ACEOF
7042 cat >>confdefs.h
<<_ACEOF
7043 #define uint32_t $ac_cv_c_uint32_t
7049 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7050 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7051 if test "${ac_cv_c_uint64_t+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7056 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7057 cat >conftest.
$ac_ext <<_ACEOF
7060 cat confdefs.h
>>conftest.
$ac_ext
7061 cat >>conftest.
$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7067 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7074 rm -f conftest.
$ac_objext
7075 if { (ac_try
="$ac_compile"
7077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_compile") 2>conftest.er1
7083 grep -v '^ *+' conftest.er1 >conftest.err
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } && {
7088 test -z "$ac_c_werror_flag" ||
7089 test ! -s conftest.err
7090 } && test -s conftest.$ac_objext; then
7092 uint64_t) ac_cv_c_uint64_t=yes ;;
7093 *) ac_cv_c_uint64_t=$ac_type ;;
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 test "$ac_cv_c_uint64_t" != no && break
7107 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7108 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7109 case $ac_cv_c_uint64_t in #(
7113 cat >>confdefs.h <<\_ACEOF
7118 cat >>confdefs.h <<_ACEOF
7119 #define uint64_t $ac_cv_c_uint64_t
7125 { echo "$as_me:$LINENO: checking for int32_t" >&5
7126 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7127 if test "${ac_cv_c_int32_t+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 for ac_type in 'int32_t' 'int' 'long int' \
7132 'long long int' 'short int' 'signed char'; do
7133 cat >conftest.$ac_ext <<_ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 $ac_includes_default
7143 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7154 *) ac_try_echo
=$ac_try;;
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_compile") 2>conftest.er1
7159 grep -v '^ *+' conftest.er1
>conftest.err
7161 cat conftest.err
>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && {
7164 test -z "$ac_c_werror_flag" ||
7165 test ! -s conftest.err
7166 } && test -s conftest.
$ac_objext; then
7167 cat >conftest.
$ac_ext <<_ACEOF
7170 cat confdefs.h
>>conftest.
$ac_ext
7171 cat >>conftest.
$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 $ac_includes_default
7177 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7178 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7185 rm -f conftest.
$ac_objext
7186 if { (ac_try
="$ac_compile"
7188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_compile") 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && {
7199 test -z "$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7201 } && test -s conftest.$ac_objext; then
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7208 int32_t) ac_cv_c_int32_t=yes ;;
7209 *) ac_cv_c_int32_t=$ac_type ;;
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 test "$ac_cv_c_int32_t" != no && break
7226 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7227 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7228 case $ac_cv_c_int32_t in #(
7232 cat >>confdefs.h <<_ACEOF
7233 #define int32_t $ac_cv_c_int32_t
7239 { echo "$as_me:$LINENO: checking for int64_t" >&5
7240 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7241 if test "${ac_cv_c_int64_t+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 for ac_type in 'int64_t' 'int' 'long int' \
7246 'long long int' 'short int' 'signed char'; do
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7257 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7268 *) ac_try_echo
=$ac_try;;
7270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 (eval "$ac_compile") 2>conftest.er1
7273 grep -v '^ *+' conftest.er1
>conftest.err
7275 cat conftest.err
>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest.
$ac_objext; then
7281 cat >conftest.
$ac_ext <<_ACEOF
7284 cat confdefs.h
>>conftest.
$ac_ext
7285 cat >>conftest.
$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7291 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7292 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7299 rm -f conftest.
$ac_objext
7300 if { (ac_try
="$ac_compile"
7302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7308 grep -v '^ *+' conftest.er1 >conftest.err
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7322 int64_t) ac_cv_c_int64_t=yes ;;
7323 *) ac_cv_c_int64_t=$ac_type ;;
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 test "$ac_cv_c_int64_t" != no && break
7340 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7341 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7342 case $ac_cv_c_int64_t in #(
7346 cat >>confdefs.h <<_ACEOF
7347 #define int64_t $ac_cv_c_int64_t
7352 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7353 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7354 if test "${ac_cv_type_ssize_t+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7364 typedef ssize_t ac__type_new_;
7368 if ((ac__type_new_ *) 0)
7370 if (sizeof (ac__type_new_))
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7380 *) ac_try_echo
=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1
>conftest.err
7387 cat conftest.err
>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.
$ac_objext; then
7393 ac_cv_type_ssize_t
=yes
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.
$ac_ext >&5
7398 ac_cv_type_ssize_t
=no
7401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7403 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7404 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7405 if test $ac_cv_type_ssize_t = yes; then
7407 cat >>confdefs.h
<<\_ACEOF
7408 #define HAVE_SSIZE_T 1
7414 # Sizes of various common basic types
7415 # ANSI C requires sizeof(char) == 1, so no need to check it
7416 { echo "$as_me:$LINENO: checking for int" >&5
7417 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7418 if test "${ac_cv_type_int+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 typedef int ac__type_new_;
7432 if ((ac__type_new_ *) 0)
7434 if (sizeof (ac__type_new_))
7440 rm -f conftest.
$ac_objext
7441 if { (ac_try
="$ac_compile"
7443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7449 grep -v '^ *+' conftest.er1 >conftest.err
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.$ac_objext; then
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7468 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7470 # The cast to long int works around a bug in the HP C Compiler
7471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7472 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7473 # This bug is HP SR number 8606223364.
7474 { echo "$as_me:$LINENO: checking size of int" >&5
7475 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7476 if test "${ac_cv_sizeof_int+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 if test "$cross_compiling" = yes; then
7480 # Depending upon the size, compute the lo and hi bounds.
7481 cat >conftest.$ac_ext <<_ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 $ac_includes_default
7488 typedef int ac__type_sizeof_;
7492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7508 grep -v '^
*+' conftest.er1 >conftest.err
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.$ac_objext; then
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 typedef int ac__type_sizeof_;
7529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7545 grep -v '^
*+' conftest.er1 >conftest.err
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 ac_hi=$ac_mid; break
7555 echo "$as_me: failed program was:" >&5
7556 sed 's
/^
/|
/' conftest.$ac_ext >&5
7558 ac_lo=`expr $ac_mid + 1`
7559 if test $ac_lo -le $ac_mid; then
7563 ac_mid=`expr 2 '*' $ac_mid + 1`
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 echo "$as_me: failed program was:" >&5
7570 sed 's
/^
/|
/' conftest.$ac_ext >&5
7572 cat >conftest.$ac_ext <<_ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7578 $ac_includes_default
7579 typedef int ac__type_sizeof_;
7583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7590 rm -f conftest.$ac_objext
7591 if { (ac_try="$ac_compile"
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7599 grep -v '^
*+' conftest.er1 >conftest.err
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.$ac_objext; then
7609 cat >conftest.$ac_ext <<_ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7616 typedef int ac__type_sizeof_;
7620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7636 grep -v '^
*+' conftest.er1 >conftest.err
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 ac_lo=$ac_mid; break
7646 echo "$as_me: failed program was:" >&5
7647 sed 's
/^
/|
/' conftest.$ac_ext >&5
7649 ac_hi=`expr '(' $ac_mid ')' - 1`
7650 if test $ac_mid -le $ac_hi; then
7654 ac_mid=`expr 2 '*' $ac_mid`
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 echo "$as_me: failed program was:" >&5
7661 sed 's
/^
/|
/' conftest.$ac_ext >&5
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 # Binary search between lo and hi bounds.
7671 while test "x$ac_lo" != "x$ac_hi"; do
7672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 typedef int ac__type_sizeof_;
7684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7700 grep -v '^
*+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7710 echo "$as_me: failed program was:" >&5
7711 sed 's
/^
/|
/' conftest.$ac_ext >&5
7713 ac_lo=`expr '(' $ac_mid ')' + 1`
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 ?*) ac_cv_sizeof_int=$ac_lo;;
7720 '') if test "$ac_cv_type_int" = yes; then
7721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7722 See \`config.log' for more details.
" >&5
7723 echo "$as_me: error
: cannot compute sizeof
(int
)
7724 See \
`config.log' for more details." >&2;}
7725 { (exit 77); exit 77; }; }
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7738 typedef int ac__type_sizeof_;
7739 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7740 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7747 FILE *f = fopen ("conftest.val", "w");
7750 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7752 long int i = longval ();
7753 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7755 fprintf (f, "%ld\n", i);
7759 unsigned long int i = ulongval ();
7760 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7762 fprintf (f, "%lu\n", i);
7764 return ferror (f) || fclose (f) != 0;
7770 rm -f conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7774 *) ac_try_echo
=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7781 { (case "(($ac_try" in
7782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_try") 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_cv_sizeof_int=`cat conftest.val
`
7792 echo "$as_me: program exited with status $ac_status" >&5
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7797 if test "$ac_cv_type_int" = yes; then
7798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7799 See \`config.log
' for more details." >&5
7800 echo "$as_me: error: cannot compute sizeof (int)
7801 See \`config.log' for more details.
" >&2;}
7802 { (exit 77); exit 77; }; }
7807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7811 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7812 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7816 cat >>confdefs.h <<_ACEOF
7817 #define SIZEOF_INT $ac_cv_sizeof_int
7821 { echo "$as_me:$LINENO: checking
for long
" >&5
7822 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7823 if test "${ac_cv_type_long+set}" = set; then
7824 echo $ECHO_N "(cached
) $ECHO_C" >&6
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 $ac_includes_default
7833 typedef long ac__type_new_;
7837 if ((ac__type_new_ *) 0)
7839 if (sizeof (ac__type_new_))
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7864 echo "$as_me: failed program was
:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7873 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7875 # The cast to long int works around a bug in the HP C Compiler
7876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7878 # This bug is HP SR number 8606223364.
7879 { echo "$as_me:$LINENO: checking size of long
" >&5
7880 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7881 if test "${ac_cv_sizeof_long+set}" = set; then
7882 echo $ECHO_N "(cached
) $ECHO_C" >&6
7884 if test "$cross_compiling" = yes; then
7885 # Depending upon the size, compute the lo and hi bounds.
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 $ac_includes_default
7893 typedef long ac__type_sizeof_;
7897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7904 rm -f conftest.$ac_objext
7905 if { (ac_try="$ac_compile"
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_compile") 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest.$ac_objext; then
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7930 typedef long ac__type_sizeof_;
7934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
7958 ac_hi=$ac_mid; break
7960 echo "$as_me: failed program was
:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 ac_lo=`expr $ac_mid + 1`
7964 if test $ac_lo -le $ac_mid; then
7968 ac_mid=`expr 2 '*' $ac_mid + 1`
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 echo "$as_me: failed program was
:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7984 typedef long ac__type_sizeof_;
7988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7995 rm -f conftest.$ac_objext
7996 if { (ac_try="$ac_compile"
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_compile") 2>conftest.er1
8004 grep -v '^ *+' conftest.er1 >conftest.err
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest.$ac_objext; then
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 $ac_includes_default
8021 typedef long ac__type_sizeof_;
8025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 ac_lo=$ac_mid; break
8051 echo "$as_me: failed program was
:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 ac_hi=`expr '(' $ac_mid ')' - 1`
8055 if test $ac_mid -le $ac_hi; then
8059 ac_mid=`expr 2 '*' $ac_mid`
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 echo "$as_me: failed program was
:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 # Binary search between lo and hi bounds.
8076 while test "x
$ac_lo" != "x
$ac_hi"; do
8077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 $ac_includes_default
8085 typedef long ac__type_sizeof_;
8089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8096 rm -f conftest.$ac_objext
8097 if { (ac_try="$ac_compile"
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_compile") 2>conftest.er1
8105 grep -v '^ *+' conftest.er1 >conftest.err
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest.$ac_objext; then
8115 echo "$as_me: failed program was
:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_lo=`expr '(' $ac_mid ')' + 1`
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 ?*) ac_cv_sizeof_long=$ac_lo;;
8125 '') if test "$ac_cv_type_long" = yes; then
8126 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8127 See \
`config.log' for more details." >&5
8128 echo "$as_me: error: cannot compute sizeof (long)
8129 See \`config.log
' for more details." >&2;}
8130 { (exit 77); exit 77; }; }
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 typedef long ac__type_sizeof_;
8144 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8145 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8152 FILE *f = fopen ("conftest.val", "w");
8155 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8157 long int i = longval ();
8158 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8160 fprintf (f, "%ld\n", i);
8164 unsigned long int i = ulongval ();
8165 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8167 fprintf (f, "%lu\n", i);
8169 return ferror (f) || fclose (f) != 0;
8175 rm -f conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8186 { (case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_try") 2>&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_sizeof_long=`cat conftest.val`
8197 echo "$as_me: program exited with status $ac_status" >&5
8198 echo "$as_me: failed program was:" >&5
8199 sed 's
/^
/|
/' conftest.$ac_ext >&5
8202 if test "$ac_cv_type_long" = yes; then
8203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8204 See \`config.log' for more details.
" >&5
8205 echo "$as_me: error
: cannot compute sizeof
(long
)
8206 See \
`config.log' for more details." >&2;}
8207 { (exit 77); exit 77; }; }
8212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8216 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8217 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8221 cat >>confdefs.h <<_ACEOF
8222 #define SIZEOF_LONG $ac_cv_sizeof_long
8226 { echo "$as_me:$LINENO: checking for void *" >&5
8227 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8228 if test "${ac_cv_type_void_p+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 typedef void * ac__type_new_;
8242 if ((ac__type_new_ *) 0)
8244 if (sizeof (ac__type_new_))
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8254 *) ac_try_echo
=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1
>conftest.err
8261 cat conftest.err
>&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest.
$ac_objext; then
8267 ac_cv_type_void_p
=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.
$ac_ext >&5
8272 ac_cv_type_void_p
=no
8275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8278 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8280 # The cast to long int works around a bug in the HP C Compiler
8281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8283 # This bug is HP SR number 8606223364.
8284 { echo "$as_me:$LINENO: checking size of void *" >&5
8285 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8286 if test "${ac_cv_sizeof_void_p+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 if test "$cross_compiling" = yes; then
8290 # Depending upon the size, compute the lo and hi bounds.
8291 cat >conftest.
$ac_ext <<_ACEOF
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 typedef void * ac__type_sizeof_;
8302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8309 rm -f conftest.
$ac_objext
8310 if { (ac_try
="$ac_compile"
8312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8318 grep -v '^ *+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest.$ac_objext; then
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 typedef void * ac__type_sizeof_;
8339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8350 *) ac_try_echo
=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_compile") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1
>conftest.err
8357 cat conftest.err
>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest.
$ac_objext; then
8363 ac_hi
=$ac_mid; break
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.
$ac_ext >&5
8368 ac_lo
=`expr $ac_mid + 1`
8369 if test $ac_lo -le $ac_mid; then
8373 ac_mid
=`expr 2 '*' $ac_mid + 1`
8376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.
$ac_ext >&5
8382 cat >conftest.
$ac_ext <<_ACEOF
8385 cat confdefs.h
>>conftest.
$ac_ext
8386 cat >>conftest.
$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 typedef void * ac__type_sizeof_;
8393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8400 rm -f conftest.
$ac_objext
8401 if { (ac_try
="$ac_compile"
8403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest.$ac_objext; then
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8426 typedef void * ac__type_sizeof_;
8430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8441 *) ac_try_echo
=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1
>conftest.err
8448 cat conftest.err
>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest.
$ac_objext; then
8454 ac_lo
=$ac_mid; break
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.
$ac_ext >&5
8459 ac_hi
=`expr '(' $ac_mid ')' - 1`
8460 if test $ac_mid -le $ac_hi; then
8464 ac_mid
=`expr 2 '*' $ac_mid`
8467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.
$ac_ext >&5
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 # Binary search between lo and hi bounds.
8481 while test "x$ac_lo" != "x$ac_hi"; do
8482 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8483 cat >conftest.
$ac_ext <<_ACEOF
8486 cat confdefs.h
>>conftest.
$ac_ext
8487 cat >>conftest.
$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489 $ac_includes_default
8490 typedef void * ac__type_sizeof_;
8494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8501 rm -f conftest.
$ac_objext
8502 if { (ac_try
="$ac_compile"
8504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_compile") 2>conftest.er1
8510 grep -v '^ *+' conftest.er1 >conftest.err
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } && {
8515 test -z "$ac_c_werror_flag" ||
8516 test ! -s conftest.err
8517 } && test -s conftest.$ac_objext; then
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_lo=`expr '(' $ac_mid ')' + 1`
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8530 '') if test "$ac_cv_type_void_p" = yes; then
8531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8532 See \`config.log
' for more details." >&5
8533 echo "$as_me: error: cannot compute sizeof (void *)
8534 See \`config.log' for more details.
" >&2;}
8535 { (exit 77); exit 77; }; }
8537 ac_cv_sizeof_void_p=0
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8548 typedef void * ac__type_sizeof_;
8549 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8550 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8557 FILE *f = fopen ("conftest.val
", "w
");
8560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8562 long int i = longval ();
8563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8565 fprintf (f, "%ld
\n", i);
8569 unsigned long int i = ulongval ();
8570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8572 fprintf (f, "%lu
\n", i);
8574 return ferror (f) || fclose (f) != 0;
8580 rm -f conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>&5
8589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8591 { (case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_try") 2>&5
8598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_cv_sizeof_void_p=`cat conftest.val`
8602 echo "$as_me: program exited with status
$ac_status" >&5
8603 echo "$as_me: failed program was
:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8607 if test "$ac_cv_type_void_p" = yes; then
8608 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8609 See \
`config.log' for more details." >&5
8610 echo "$as_me: error: cannot compute sizeof (void *)
8611 See \`config.log
' for more details." >&2;}
8612 { (exit 77); exit 77; }; }
8614 ac_cv_sizeof_void_p=0
8617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8621 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8622 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8626 cat >>confdefs.h <<_ACEOF
8627 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8631 { echo "$as_me:$LINENO: checking for short" >&5
8632 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8633 if test "${ac_cv_type_short+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 typedef short ac__type_new_;
8647 if ((ac__type_new_ *) 0)
8649 if (sizeof (ac__type_new_))
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^
*+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_type_short=yes
8674 echo "$as_me: failed program was:" >&5
8675 sed 's
/^
/|
/' conftest.$ac_ext >&5
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8683 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8685 # The cast to long int works around a bug in the HP C Compiler
8686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8688 # This bug is HP SR number 8606223364.
8689 { echo "$as_me:$LINENO: checking size of short" >&5
8690 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8691 if test "${ac_cv_sizeof_short+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 if test "$cross_compiling" = yes; then
8695 # Depending upon the size, compute the lo and hi bounds.
8696 cat >conftest.
$ac_ext <<_ACEOF
8699 cat confdefs.h
>>conftest.
$ac_ext
8700 cat >>conftest.
$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8703 typedef short ac__type_sizeof_;
8707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8714 rm -f conftest.
$ac_objext
8715 if { (ac_try
="$ac_compile"
8717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 typedef short ac__type_sizeof_;
8744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8751 rm -f conftest.$ac_objext
8752 if { (ac_try="$ac_compile"
8754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8755 *) ac_try_echo
=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_compile") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1
>conftest.err
8762 cat conftest.err
>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest.
$ac_objext; then
8768 ac_hi
=$ac_mid; break
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.
$ac_ext >&5
8773 ac_lo
=`expr $ac_mid + 1`
8774 if test $ac_lo -le $ac_mid; then
8778 ac_mid
=`expr 2 '*' $ac_mid + 1`
8781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.
$ac_ext >&5
8787 cat >conftest.
$ac_ext <<_ACEOF
8790 cat confdefs.h
>>conftest.
$ac_ext
8791 cat >>conftest.
$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8793 $ac_includes_default
8794 typedef short ac__type_sizeof_;
8798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8805 rm -f conftest.
$ac_objext
8806 if { (ac_try
="$ac_compile"
8808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8812 (eval "$ac_compile") 2>conftest.er1
8814 grep -v '^ *+' conftest.er1 >conftest.err
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } && {
8819 test -z "$ac_c_werror_flag" ||
8820 test ! -s conftest.err
8821 } && test -s conftest.$ac_objext; then
8824 cat >conftest.$ac_ext <<_ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8830 $ac_includes_default
8831 typedef short ac__type_sizeof_;
8835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8846 *) ac_try_echo
=$ac_try;;
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compile") 2>conftest.er1
8851 grep -v '^ *+' conftest.er1
>conftest.err
8853 cat conftest.err
>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && {
8856 test -z "$ac_c_werror_flag" ||
8857 test ! -s conftest.err
8858 } && test -s conftest.
$ac_objext; then
8859 ac_lo
=$ac_mid; break
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.
$ac_ext >&5
8864 ac_hi
=`expr '(' $ac_mid ')' - 1`
8865 if test $ac_mid -le $ac_hi; then
8869 ac_mid
=`expr 2 '*' $ac_mid`
8872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.
$ac_ext >&5
8881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8885 # Binary search between lo and hi bounds.
8886 while test "x$ac_lo" != "x$ac_hi"; do
8887 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8888 cat >conftest.
$ac_ext <<_ACEOF
8891 cat confdefs.h
>>conftest.
$ac_ext
8892 cat >>conftest.
$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 $ac_includes_default
8895 typedef short ac__type_sizeof_;
8899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8906 rm -f conftest.
$ac_objext
8907 if { (ac_try
="$ac_compile"
8909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_compile") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest.$ac_objext; then
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_lo=`expr '(' $ac_mid ')' + 1`
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 ?*) ac_cv_sizeof_short=$ac_lo;;
8935 '') if test "$ac_cv_type_short" = yes; then
8936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8937 See \`config.log
' for more details." >&5
8938 echo "$as_me: error: cannot compute sizeof (short)
8939 See \`config.log' for more details.
" >&2;}
8940 { (exit 77); exit 77; }; }
8942 ac_cv_sizeof_short=0
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8953 typedef short ac__type_sizeof_;
8954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8962 FILE *f = fopen ("conftest.val
", "w
");
8965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8967 long int i = longval ();
8968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8970 fprintf (f, "%ld
\n", i);
8974 unsigned long int i = ulongval ();
8975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8977 fprintf (f, "%lu
\n", i);
8979 return ferror (f) || fclose (f) != 0;
8985 rm -f conftest$ac_exeext
8986 if { (ac_try="$ac_link"
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_link") 2>&5
8994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8996 { (case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
9000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_try") 2>&5
9003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_sizeof_short=`cat conftest.val`
9007 echo "$as_me: program exited with status
$ac_status" >&5
9008 echo "$as_me: failed program was
:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9012 if test "$ac_cv_type_short" = yes; then
9013 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9014 See \
`config.log' for more details." >&5
9015 echo "$as_me: error: cannot compute sizeof (short)
9016 See \`config.log
' for more details." >&2;}
9017 { (exit 77); exit 77; }; }
9019 ac_cv_sizeof_short=0
9022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9027 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9031 cat >>confdefs.h <<_ACEOF
9032 #define SIZEOF_SHORT $ac_cv_sizeof_short
9036 { echo "$as_me:$LINENO: checking for float" >&5
9037 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9038 if test "${ac_cv_type_float+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 $ac_includes_default
9048 typedef float ac__type_new_;
9052 if ((ac__type_new_ *) 0)
9054 if (sizeof (ac__type_new_))
9060 rm -f conftest.$ac_objext
9061 if { (ac_try="$ac_compile"
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_compile") 2>conftest.er1
9069 grep -v '^
*+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && {
9074 test -z "$ac_c_werror_flag" ||
9075 test ! -s conftest.err
9076 } && test -s conftest.$ac_objext; then
9077 ac_cv_type_float=yes
9079 echo "$as_me: failed program was:" >&5
9080 sed 's
/^
/|
/' conftest.$ac_ext >&5
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9088 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9090 # The cast to long int works around a bug in the HP C Compiler
9091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9093 # This bug is HP SR number 8606223364.
9094 { echo "$as_me:$LINENO: checking size of float" >&5
9095 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9096 if test "${ac_cv_sizeof_float+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 if test "$cross_compiling" = yes; then
9100 # Depending upon the size, compute the lo and hi bounds.
9101 cat >conftest.
$ac_ext <<_ACEOF
9104 cat confdefs.h
>>conftest.
$ac_ext
9105 cat >>conftest.
$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 typedef float ac__type_sizeof_;
9112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9119 rm -f conftest.
$ac_objext
9120 if { (ac_try
="$ac_compile"
9122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_compile") 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } && {
9133 test -z "$ac_c_werror_flag" ||
9134 test ! -s conftest.err
9135 } && test -s conftest.$ac_objext; then
9138 cat >conftest.$ac_ext <<_ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 $ac_includes_default
9145 typedef float ac__type_sizeof_;
9149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9160 *) ac_try_echo
=$ac_try;;
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_compile") 2>conftest.er1
9165 grep -v '^ *+' conftest.er1
>conftest.err
9167 cat conftest.err
>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && {
9170 test -z "$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 } && test -s conftest.
$ac_objext; then
9173 ac_hi
=$ac_mid; break
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.
$ac_ext >&5
9178 ac_lo
=`expr $ac_mid + 1`
9179 if test $ac_lo -le $ac_mid; then
9183 ac_mid
=`expr 2 '*' $ac_mid + 1`
9186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.
$ac_ext >&5
9192 cat >conftest.
$ac_ext <<_ACEOF
9195 cat confdefs.h
>>conftest.
$ac_ext
9196 cat >>conftest.
$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 $ac_includes_default
9199 typedef float ac__type_sizeof_;
9203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9210 rm -f conftest.
$ac_objext
9211 if { (ac_try
="$ac_compile"
9213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_compile") 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest.$ac_objext; then
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 $ac_includes_default
9236 typedef float ac__type_sizeof_;
9240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9247 rm -f conftest.$ac_objext
9248 if { (ac_try="$ac_compile"
9250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9251 *) ac_try_echo
=$ac_try;;
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_compile") 2>conftest.er1
9256 grep -v '^ *+' conftest.er1
>conftest.err
9258 cat conftest.err
>&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && {
9261 test -z "$ac_c_werror_flag" ||
9262 test ! -s conftest.err
9263 } && test -s conftest.
$ac_objext; then
9264 ac_lo
=$ac_mid; break
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.
$ac_ext >&5
9269 ac_hi
=`expr '(' $ac_mid ')' - 1`
9270 if test $ac_mid -le $ac_hi; then
9274 ac_mid
=`expr 2 '*' $ac_mid`
9277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.
$ac_ext >&5
9286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9290 # Binary search between lo and hi bounds.
9291 while test "x$ac_lo" != "x$ac_hi"; do
9292 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9293 cat >conftest.
$ac_ext <<_ACEOF
9296 cat confdefs.h
>>conftest.
$ac_ext
9297 cat >>conftest.
$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 $ac_includes_default
9300 typedef float ac__type_sizeof_;
9304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9311 rm -f conftest.
$ac_objext
9312 if { (ac_try
="$ac_compile"
9314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_compile") 2>conftest.er1
9320 grep -v '^ *+' conftest.er1 >conftest.err
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } && {
9325 test -z "$ac_c_werror_flag" ||
9326 test ! -s conftest.err
9327 } && test -s conftest.$ac_objext; then
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_lo=`expr '(' $ac_mid ')' + 1`
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 ?*) ac_cv_sizeof_float=$ac_lo;;
9340 '') if test "$ac_cv_type_float" = yes; then
9341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9342 See \`config.log
' for more details." >&5
9343 echo "$as_me: error: cannot compute sizeof (float)
9344 See \`config.log' for more details.
" >&2;}
9345 { (exit 77); exit 77; }; }
9347 ac_cv_sizeof_float=0
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 $ac_includes_default
9358 typedef float ac__type_sizeof_;
9359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9367 FILE *f = fopen ("conftest.val
", "w
");
9370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9372 long int i = longval ();
9373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9375 fprintf (f, "%ld
\n", i);
9379 unsigned long int i = ulongval ();
9380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9382 fprintf (f, "%lu
\n", i);
9384 return ferror (f) || fclose (f) != 0;
9390 rm -f conftest$ac_exeext
9391 if { (ac_try="$ac_link"
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_link") 2>&5
9399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9401 { (case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_try") 2>&5
9408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_sizeof_float=`cat conftest.val`
9412 echo "$as_me: program exited with status
$ac_status" >&5
9413 echo "$as_me: failed program was
:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9417 if test "$ac_cv_type_float" = yes; then
9418 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9419 See \
`config.log' for more details." >&5
9420 echo "$as_me: error: cannot compute sizeof (float)
9421 See \`config.log
' for more details." >&2;}
9422 { (exit 77); exit 77; }; }
9424 ac_cv_sizeof_float=0
9427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9432 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9436 cat >>confdefs.h <<_ACEOF
9437 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9441 { echo "$as_me:$LINENO: checking for double" >&5
9442 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9443 if test "${ac_cv_type_double+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 cat >conftest.$ac_ext <<_ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 $ac_includes_default
9453 typedef double ac__type_new_;
9457 if ((ac__type_new_ *) 0)
9459 if (sizeof (ac__type_new_))
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9474 grep -v '^
*+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
9482 ac_cv_type_double=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's
/^
/|
/' conftest.$ac_ext >&5
9487 ac_cv_type_double=no
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9493 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9495 # The cast to long int works around a bug in the HP C Compiler
9496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9498 # This bug is HP SR number 8606223364.
9499 { echo "$as_me:$LINENO: checking size of double" >&5
9500 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9501 if test "${ac_cv_sizeof_double+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 if test "$cross_compiling" = yes; then
9505 # Depending upon the size, compute the lo and hi bounds.
9506 cat >conftest.
$ac_ext <<_ACEOF
9509 cat confdefs.h
>>conftest.
$ac_ext
9510 cat >>conftest.
$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 $ac_includes_default
9513 typedef double ac__type_sizeof_;
9517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9524 rm -f conftest.
$ac_objext
9525 if { (ac_try
="$ac_compile"
9527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_compile") 2>conftest.er1
9533 grep -v '^ *+' conftest.er1 >conftest.err
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest.$ac_objext; then
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 $ac_includes_default
9550 typedef double ac__type_sizeof_;
9554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9561 rm -f conftest.$ac_objext
9562 if { (ac_try="$ac_compile"
9564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9565 *) ac_try_echo
=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_compile") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1
>conftest.err
9572 cat conftest.err
>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest.
$ac_objext; then
9578 ac_hi
=$ac_mid; break
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.
$ac_ext >&5
9583 ac_lo
=`expr $ac_mid + 1`
9584 if test $ac_lo -le $ac_mid; then
9588 ac_mid
=`expr 2 '*' $ac_mid + 1`
9591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9597 cat >conftest.
$ac_ext <<_ACEOF
9600 cat confdefs.h
>>conftest.
$ac_ext
9601 cat >>conftest.
$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 $ac_includes_default
9604 typedef double ac__type_sizeof_;
9608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9615 rm -f conftest.
$ac_objext
9616 if { (ac_try
="$ac_compile"
9618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622 (eval "$ac_compile") 2>conftest.er1
9624 grep -v '^ *+' conftest.er1 >conftest.err
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } && {
9629 test -z "$ac_c_werror_flag" ||
9630 test ! -s conftest.err
9631 } && test -s conftest.$ac_objext; then
9634 cat >conftest.$ac_ext <<_ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9641 typedef double ac__type_sizeof_;
9645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9652 rm -f conftest.$ac_objext
9653 if { (ac_try="$ac_compile"
9655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9656 *) ac_try_echo
=$ac_try;;
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_compile") 2>conftest.er1
9661 grep -v '^ *+' conftest.er1
>conftest.err
9663 cat conftest.err
>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest.
$ac_objext; then
9669 ac_lo
=$ac_mid; break
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.
$ac_ext >&5
9674 ac_hi
=`expr '(' $ac_mid ')' - 1`
9675 if test $ac_mid -le $ac_hi; then
9679 ac_mid
=`expr 2 '*' $ac_mid`
9682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.
$ac_ext >&5
9691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9695 # Binary search between lo and hi bounds.
9696 while test "x$ac_lo" != "x$ac_hi"; do
9697 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9698 cat >conftest.
$ac_ext <<_ACEOF
9701 cat confdefs.h
>>conftest.
$ac_ext
9702 cat >>conftest.
$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 $ac_includes_default
9705 typedef double ac__type_sizeof_;
9709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9716 rm -f conftest.
$ac_objext
9717 if { (ac_try
="$ac_compile"
9719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_lo=`expr '(' $ac_mid ')' + 1`
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9744 ?*) ac_cv_sizeof_double=$ac_lo;;
9745 '') if test "$ac_cv_type_double" = yes; then
9746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9747 See \`config.log
' for more details." >&5
9748 echo "$as_me: error: cannot compute sizeof (double)
9749 See \`config.log' for more details.
" >&2;}
9750 { (exit 77); exit 77; }; }
9752 ac_cv_sizeof_double=0
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 $ac_includes_default
9763 typedef double ac__type_sizeof_;
9764 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9765 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9772 FILE *f = fopen ("conftest.val
", "w
");
9775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9777 long int i = longval ();
9778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9780 fprintf (f, "%ld
\n", i);
9784 unsigned long int i = ulongval ();
9785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9787 fprintf (f, "%lu
\n", i);
9789 return ferror (f) || fclose (f) != 0;
9795 rm -f conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>&5
9804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_sizeof_double=`cat conftest.val`
9817 echo "$as_me: program exited with status
$ac_status" >&5
9818 echo "$as_me: failed program was
:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9822 if test "$ac_cv_type_double" = yes; then
9823 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9824 See \
`config.log' for more details." >&5
9825 echo "$as_me: error: cannot compute sizeof (double)
9826 See \`config.log
' for more details." >&2;}
9827 { (exit 77); exit 77; }; }
9829 ac_cv_sizeof_double=0
9832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9836 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9837 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9841 cat >>confdefs.h <<_ACEOF
9842 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9846 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9847 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9848 if test "${ac_cv_type_fpos_t+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9858 typedef fpos_t ac__type_new_;
9862 if ((ac__type_new_ *) 0)
9864 if (sizeof (ac__type_new_))
9870 rm -f conftest.$ac_objext
9871 if { (ac_try="$ac_compile"
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_compile") 2>conftest.er1
9879 grep -v '^
*+' conftest.er1 >conftest.err
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && {
9884 test -z "$ac_c_werror_flag" ||
9885 test ! -s conftest.err
9886 } && test -s conftest.$ac_objext; then
9887 ac_cv_type_fpos_t=yes
9889 echo "$as_me: failed program was:" >&5
9890 sed 's
/^
/|
/' conftest.$ac_ext >&5
9892 ac_cv_type_fpos_t=no
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9898 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9900 # The cast to long int works around a bug in the HP C Compiler
9901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9903 # This bug is HP SR number 8606223364.
9904 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9905 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9906 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 if test "$cross_compiling" = yes; then
9910 # Depending upon the size, compute the lo and hi bounds.
9911 cat >conftest.
$ac_ext <<_ACEOF
9914 cat confdefs.h
>>conftest.
$ac_ext
9915 cat >>conftest.
$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 $ac_includes_default
9918 typedef fpos_t ac__type_sizeof_;
9922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9929 rm -f conftest.
$ac_objext
9930 if { (ac_try
="$ac_compile"
9932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_compile") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest.$ac_objext; then
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 typedef fpos_t ac__type_sizeof_;
9959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9966 rm -f conftest.$ac_objext
9967 if { (ac_try="$ac_compile"
9969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9970 *) ac_try_echo
=$ac_try;;
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_compile") 2>conftest.er1
9975 grep -v '^ *+' conftest.er1
>conftest.err
9977 cat conftest.err
>&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.
$ac_objext; then
9983 ac_hi
=$ac_mid; break
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.
$ac_ext >&5
9988 ac_lo
=`expr $ac_mid + 1`
9989 if test $ac_lo -le $ac_mid; then
9993 ac_mid
=`expr 2 '*' $ac_mid + 1`
9996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.
$ac_ext >&5
10002 cat >conftest.
$ac_ext <<_ACEOF
10005 cat confdefs.h
>>conftest.
$ac_ext
10006 cat >>conftest.
$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 typedef fpos_t ac__type_sizeof_;
10013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10020 rm -f conftest.
$ac_objext
10021 if { (ac_try
="$ac_compile"
10022 case "(($ac_try" in
10023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_compile") 2>conftest.er1
10029 grep -v '^ *+' conftest.er1 >conftest.err
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } && {
10034 test -z "$ac_c_werror_flag" ||
10035 test ! -s conftest.err
10036 } && test -s conftest.$ac_objext; then
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 $ac_includes_default
10046 typedef fpos_t ac__type_sizeof_;
10050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10057 rm -f conftest.$ac_objext
10058 if { (ac_try="$ac_compile"
10059 case "(($ac_try" in
10060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10061 *) ac_try_echo
=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1
>conftest.err
10068 cat conftest.err
>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.
$ac_objext; then
10074 ac_lo
=$ac_mid; break
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.
$ac_ext >&5
10079 ac_hi
=`expr '(' $ac_mid ')' - 1`
10080 if test $ac_mid -le $ac_hi; then
10084 ac_mid
=`expr 2 '*' $ac_mid`
10087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.
$ac_ext >&5
10096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10100 # Binary search between lo and hi bounds.
10101 while test "x$ac_lo" != "x$ac_hi"; do
10102 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10103 cat >conftest.
$ac_ext <<_ACEOF
10106 cat confdefs.h
>>conftest.
$ac_ext
10107 cat >>conftest.
$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 $ac_includes_default
10110 typedef fpos_t ac__type_sizeof_;
10114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10121 rm -f conftest.
$ac_objext
10122 if { (ac_try
="$ac_compile"
10123 case "(($ac_try" in
10124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_compile") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest.$ac_objext; then
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_lo=`expr '(' $ac_mid ')' + 1`
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10150 '') if test "$ac_cv_type_fpos_t" = yes; then
10151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10152 See \`config.log
' for more details." >&5
10153 echo "$as_me: error: cannot compute sizeof (fpos_t)
10154 See \`config.log' for more details.
" >&2;}
10155 { (exit 77); exit 77; }; }
10157 ac_cv_sizeof_fpos_t=0
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 typedef fpos_t ac__type_sizeof_;
10169 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10170 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10172 #include <stdlib.h>
10177 FILE *f = fopen ("conftest.val
", "w
");
10180 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10182 long int i = longval ();
10183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10185 fprintf (f, "%ld
\n", i);
10189 unsigned long int i = ulongval ();
10190 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10192 fprintf (f, "%lu
\n", i);
10194 return ferror (f) || fclose (f) != 0;
10200 rm -f conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>&5
10209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_sizeof_fpos_t=`cat conftest.val`
10222 echo "$as_me: program exited with status
$ac_status" >&5
10223 echo "$as_me: failed program was
:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ( exit $ac_status )
10227 if test "$ac_cv_type_fpos_t" = yes; then
10228 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10229 See \
`config.log' for more details." >&5
10230 echo "$as_me: error: cannot compute sizeof (fpos_t)
10231 See \`config.log
' for more details." >&2;}
10232 { (exit 77); exit 77; }; }
10234 ac_cv_sizeof_fpos_t=0
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10241 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10242 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10246 cat >>confdefs.h <<_ACEOF
10247 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10251 { echo "$as_me:$LINENO: checking for size_t" >&5
10252 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10253 if test "${ac_cv_type_size_t+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 $ac_includes_default
10263 typedef size_t ac__type_new_;
10267 if ((ac__type_new_ *) 0)
10269 if (sizeof (ac__type_new_))
10275 rm -f conftest.$ac_objext
10276 if { (ac_try="$ac_compile"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_compile") 2>conftest.er1
10284 grep -v '^
*+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && {
10289 test -z "$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10291 } && test -s conftest.$ac_objext; then
10292 ac_cv_type_size_t=yes
10294 echo "$as_me: failed program was:" >&5
10295 sed 's
/^
/|
/' conftest.$ac_ext >&5
10297 ac_cv_type_size_t=no
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10303 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10305 # The cast to long int works around a bug in the HP C Compiler
10306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10308 # This bug is HP SR number 8606223364.
10309 { echo "$as_me:$LINENO: checking size of size_t" >&5
10310 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10311 if test "${ac_cv_sizeof_size_t+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 if test "$cross_compiling" = yes; then
10315 # Depending upon the size, compute the lo and hi bounds.
10316 cat >conftest.
$ac_ext <<_ACEOF
10319 cat confdefs.h
>>conftest.
$ac_ext
10320 cat >>conftest.
$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 $ac_includes_default
10323 typedef size_t ac__type_sizeof_;
10327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10334 rm -f conftest.
$ac_objext
10335 if { (ac_try
="$ac_compile"
10336 case "(($ac_try" in
10337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_compile") 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest.$ac_objext; then
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 typedef size_t ac__type_sizeof_;
10364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10375 *) ac_try_echo
=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1
>conftest.err
10382 cat conftest.err
>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.
$ac_objext; then
10388 ac_hi
=$ac_mid; break
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.
$ac_ext >&5
10393 ac_lo
=`expr $ac_mid + 1`
10394 if test $ac_lo -le $ac_mid; then
10398 ac_mid
=`expr 2 '*' $ac_mid + 1`
10401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.
$ac_ext >&5
10407 cat >conftest.
$ac_ext <<_ACEOF
10410 cat confdefs.h
>>conftest.
$ac_ext
10411 cat >>conftest.
$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 $ac_includes_default
10414 typedef size_t ac__type_sizeof_;
10418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10425 rm -f conftest.
$ac_objext
10426 if { (ac_try
="$ac_compile"
10427 case "(($ac_try" in
10428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_compile") 2>conftest.er1
10434 grep -v '^ *+' conftest.er1 >conftest.err
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest.$ac_objext; then
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10451 typedef size_t ac__type_sizeof_;
10455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10462 rm -f conftest.$ac_objext
10463 if { (ac_try="$ac_compile"
10464 case "(($ac_try" in
10465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10466 *) ac_try_echo
=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_compile") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1
>conftest.err
10473 cat conftest.err
>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest.
$ac_objext; then
10479 ac_lo
=$ac_mid; break
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.
$ac_ext >&5
10484 ac_hi
=`expr '(' $ac_mid ')' - 1`
10485 if test $ac_mid -le $ac_hi; then
10489 ac_mid
=`expr 2 '*' $ac_mid`
10492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.
$ac_ext >&5
10501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10505 # Binary search between lo and hi bounds.
10506 while test "x$ac_lo" != "x$ac_hi"; do
10507 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10508 cat >conftest.
$ac_ext <<_ACEOF
10511 cat confdefs.h
>>conftest.
$ac_ext
10512 cat >>conftest.
$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10515 typedef size_t ac__type_sizeof_;
10519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10526 rm -f conftest.
$ac_objext
10527 if { (ac_try
="$ac_compile"
10528 case "(($ac_try" in
10529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_compile") 2>conftest.er1
10535 grep -v '^ *+' conftest.er1 >conftest.err
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest.$ac_objext; then
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_lo=`expr '(' $ac_mid ')' + 1`
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10555 '') if test "$ac_cv_type_size_t" = yes; then
10556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10557 See \`config.log
' for more details." >&5
10558 echo "$as_me: error: cannot compute sizeof (size_t)
10559 See \`config.log' for more details.
" >&2;}
10560 { (exit 77); exit 77; }; }
10562 ac_cv_sizeof_size_t=0
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10573 typedef size_t ac__type_sizeof_;
10574 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10575 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10577 #include <stdlib.h>
10582 FILE *f = fopen ("conftest.val
", "w
");
10585 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10587 long int i = longval ();
10588 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10590 fprintf (f, "%ld
\n", i);
10594 unsigned long int i = ulongval ();
10595 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10597 fprintf (f, "%lu
\n", i);
10599 return ferror (f) || fclose (f) != 0;
10605 rm -f conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_link") 2>&5
10614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 ac_cv_sizeof_size_t=`cat conftest.val`
10627 echo "$as_me: program exited with status
$ac_status" >&5
10628 echo "$as_me: failed program was
:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ( exit $ac_status )
10632 if test "$ac_cv_type_size_t" = yes; then
10633 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10634 See \
`config.log' for more details." >&5
10635 echo "$as_me: error: cannot compute sizeof (size_t)
10636 See \`config.log
' for more details." >&2;}
10637 { (exit 77); exit 77; }; }
10639 ac_cv_sizeof_size_t=0
10642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10646 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10647 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10651 cat >>confdefs.h <<_ACEOF
10652 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10656 { echo "$as_me:$LINENO: checking for pid_t" >&5
10657 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10658 if test "${ac_cv_type_pid_t+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10668 typedef pid_t ac__type_new_;
10672 if ((ac__type_new_ *) 0)
10674 if (sizeof (ac__type_new_))
10680 rm -f conftest.$ac_objext
10681 if { (ac_try="$ac_compile"
10682 case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_compile") 2>conftest.er1
10689 grep -v '^
*+' conftest.er1 >conftest.err
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest.$ac_objext; then
10697 ac_cv_type_pid_t=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's
/^
/|
/' conftest.$ac_ext >&5
10702 ac_cv_type_pid_t=no
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10708 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10710 # The cast to long int works around a bug in the HP C Compiler
10711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10713 # This bug is HP SR number 8606223364.
10714 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10715 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10716 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 if test "$cross_compiling" = yes; then
10720 # Depending upon the size, compute the lo and hi bounds.
10721 cat >conftest.
$ac_ext <<_ACEOF
10724 cat confdefs.h
>>conftest.
$ac_ext
10725 cat >>conftest.
$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 $ac_includes_default
10728 typedef pid_t ac__type_sizeof_;
10732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10739 rm -f conftest.
$ac_objext
10740 if { (ac_try
="$ac_compile"
10741 case "(($ac_try" in
10742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_compile") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest.$ac_objext; then
10758 cat >conftest.$ac_ext <<_ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 $ac_includes_default
10765 typedef pid_t ac__type_sizeof_;
10769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10780 *) ac_try_echo
=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1
>conftest.err
10787 cat conftest.err
>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest.
$ac_objext; then
10793 ac_hi
=$ac_mid; break
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.
$ac_ext >&5
10798 ac_lo
=`expr $ac_mid + 1`
10799 if test $ac_lo -le $ac_mid; then
10803 ac_mid
=`expr 2 '*' $ac_mid + 1`
10806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.
$ac_ext >&5
10812 cat >conftest.
$ac_ext <<_ACEOF
10815 cat confdefs.h
>>conftest.
$ac_ext
10816 cat >>conftest.
$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 $ac_includes_default
10819 typedef pid_t ac__type_sizeof_;
10823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10830 rm -f conftest.
$ac_objext
10831 if { (ac_try
="$ac_compile"
10832 case "(($ac_try" in
10833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } && {
10844 test -z "$ac_c_werror_flag" ||
10845 test ! -s conftest.err
10846 } && test -s conftest.$ac_objext; then
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 $ac_includes_default
10856 typedef pid_t ac__type_sizeof_;
10860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10867 rm -f conftest.$ac_objext
10868 if { (ac_try="$ac_compile"
10869 case "(($ac_try" in
10870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10871 *) ac_try_echo
=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_compile") 2>conftest.er1
10876 grep -v '^ *+' conftest.er1
>conftest.err
10878 cat conftest.err
>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest.
$ac_objext; then
10884 ac_lo
=$ac_mid; break
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.
$ac_ext >&5
10889 ac_hi
=`expr '(' $ac_mid ')' - 1`
10890 if test $ac_mid -le $ac_hi; then
10894 ac_mid
=`expr 2 '*' $ac_mid`
10897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.
$ac_ext >&5
10906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10910 # Binary search between lo and hi bounds.
10911 while test "x$ac_lo" != "x$ac_hi"; do
10912 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10913 cat >conftest.
$ac_ext <<_ACEOF
10916 cat confdefs.h
>>conftest.
$ac_ext
10917 cat >>conftest.
$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 $ac_includes_default
10920 typedef pid_t ac__type_sizeof_;
10924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10931 rm -f conftest.
$ac_objext
10932 if { (ac_try
="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10940 grep -v '^ *+' conftest.er1 >conftest.err
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } && {
10945 test -z "$ac_c_werror_flag" ||
10946 test ! -s conftest.err
10947 } && test -s conftest.$ac_objext; then
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 ac_lo=`expr '(' $ac_mid ')' + 1`
10956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10960 '') if test "$ac_cv_type_pid_t" = yes; then
10961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10962 See \`config.log
' for more details." >&5
10963 echo "$as_me: error: cannot compute sizeof (pid_t)
10964 See \`config.log' for more details.
" >&2;}
10965 { (exit 77); exit 77; }; }
10967 ac_cv_sizeof_pid_t=0
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 typedef pid_t ac__type_sizeof_;
10979 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10980 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10982 #include <stdlib.h>
10987 FILE *f = fopen ("conftest.val
", "w
");
10990 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10992 long int i = longval ();
10993 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10995 fprintf (f, "%ld
\n", i);
10999 unsigned long int i = ulongval ();
11000 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11002 fprintf (f, "%lu
\n", i);
11004 return ferror (f) || fclose (f) != 0;
11010 rm -f conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>&5
11019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_sizeof_pid_t=`cat conftest.val`
11032 echo "$as_me: program exited with status
$ac_status" >&5
11033 echo "$as_me: failed program was
:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ( exit $ac_status )
11037 if test "$ac_cv_type_pid_t" = yes; then
11038 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11039 See \
`config.log' for more details." >&5
11040 echo "$as_me: error: cannot compute sizeof (pid_t)
11041 See \`config.log
' for more details." >&2;}
11042 { (exit 77); exit 77; }; }
11044 ac_cv_sizeof_pid_t=0
11047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11052 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11056 cat >>confdefs.h <<_ACEOF
11057 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11062 { echo "$as_me:$LINENO: checking for long long support" >&5
11063 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11065 cat >conftest.$ac_ext <<_ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11075 long long x; x = (long long)0;
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^
*+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest.$ac_objext; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define HAVE_LONG_LONG 1
11106 echo "$as_me: failed program was:" >&5
11107 sed 's
/^
/|
/' conftest.$ac_ext >&5
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11114 echo "${ECHO_T}$have_long_long" >&6; }
11115 if test "$have_long_long" = yes ; then
11116 { echo "$as_me:$LINENO: checking for long long" >&5
11117 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11118 if test "${ac_cv_type_long_long+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 $ac_includes_default
11128 typedef long long ac__type_new_;
11132 if ((ac__type_new_ *) 0)
11134 if (sizeof (ac__type_new_))
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_compile") 2>conftest.er1
11149 grep -v '^
*+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest.$ac_objext; then
11157 ac_cv_type_long_long=yes
11159 echo "$as_me: failed program was:" >&5
11160 sed 's
/^
/|
/' conftest.$ac_ext >&5
11162 ac_cv_type_long_long=no
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11168 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11170 # The cast to long int works around a bug in the HP C Compiler
11171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11173 # This bug is HP SR number 8606223364.
11174 { echo "$as_me:$LINENO: checking size of long long" >&5
11175 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11176 if test "${ac_cv_sizeof_long_long+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 if test "$cross_compiling" = yes; then
11180 # Depending upon the size, compute the lo and hi bounds.
11181 cat >conftest.
$ac_ext <<_ACEOF
11184 cat confdefs.h
>>conftest.
$ac_ext
11185 cat >>conftest.
$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 $ac_includes_default
11188 typedef long long ac__type_sizeof_;
11192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11199 rm -f conftest.
$ac_objext
11200 if { (ac_try
="$ac_compile"
11201 case "(($ac_try" in
11202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_compile") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest.$ac_objext; then
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 $ac_includes_default
11225 typedef long long ac__type_sizeof_;
11229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11236 rm -f conftest.$ac_objext
11237 if { (ac_try="$ac_compile"
11238 case "(($ac_try" in
11239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11240 *) ac_try_echo
=$ac_try;;
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_compile") 2>conftest.er1
11245 grep -v '^ *+' conftest.er1
>conftest.err
11247 cat conftest.err
>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest.
$ac_objext; then
11253 ac_hi
=$ac_mid; break
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.
$ac_ext >&5
11258 ac_lo
=`expr $ac_mid + 1`
11259 if test $ac_lo -le $ac_mid; then
11263 ac_mid
=`expr 2 '*' $ac_mid + 1`
11266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.
$ac_ext >&5
11272 cat >conftest.
$ac_ext <<_ACEOF
11275 cat confdefs.h
>>conftest.
$ac_ext
11276 cat >>conftest.
$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11279 typedef long long ac__type_sizeof_;
11283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11290 rm -f conftest.
$ac_objext
11291 if { (ac_try
="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest.$ac_objext; then
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 typedef long long ac__type_sizeof_;
11320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11331 *) ac_try_echo
=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1
>conftest.err
11338 cat conftest.err
>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.
$ac_objext; then
11344 ac_lo
=$ac_mid; break
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.
$ac_ext >&5
11349 ac_hi
=`expr '(' $ac_mid ')' - 1`
11350 if test $ac_mid -le $ac_hi; then
11354 ac_mid
=`expr 2 '*' $ac_mid`
11357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.
$ac_ext >&5
11366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11370 # Binary search between lo and hi bounds.
11371 while test "x$ac_lo" != "x$ac_hi"; do
11372 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11373 cat >conftest.
$ac_ext <<_ACEOF
11376 cat confdefs.h
>>conftest.
$ac_ext
11377 cat >>conftest.
$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 $ac_includes_default
11380 typedef long long ac__type_sizeof_;
11384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11391 rm -f conftest.
$ac_objext
11392 if { (ac_try
="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest.$ac_objext; then
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 ac_lo=`expr '(' $ac_mid ')' + 1`
11416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11420 '') if test "$ac_cv_type_long_long" = yes; then
11421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11422 See \`config.log
' for more details." >&5
11423 echo "$as_me: error: cannot compute sizeof (long long)
11424 See \`config.log' for more details.
" >&2;}
11425 { (exit 77); exit 77; }; }
11427 ac_cv_sizeof_long_long=0
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 $ac_includes_default
11438 typedef long long ac__type_sizeof_;
11439 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11440 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11442 #include <stdlib.h>
11447 FILE *f = fopen ("conftest.val
", "w
");
11450 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11452 long int i = longval ();
11453 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11455 fprintf (f, "%ld
\n", i);
11459 unsigned long int i = ulongval ();
11460 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11462 fprintf (f, "%lu
\n", i);
11464 return ferror (f) || fclose (f) != 0;
11470 rm -f conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>&5
11479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
11488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_sizeof_long_long=`cat conftest.val`
11492 echo "$as_me: program exited with status
$ac_status" >&5
11493 echo "$as_me: failed program was
:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 ( exit $ac_status )
11497 if test "$ac_cv_type_long_long" = yes; then
11498 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11499 See \
`config.log' for more details." >&5
11500 echo "$as_me: error: cannot compute sizeof (long long)
11501 See \`config.log
' for more details." >&2;}
11502 { (exit 77); exit 77; }; }
11504 ac_cv_sizeof_long_long=0
11507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11511 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11512 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11516 cat >>confdefs.h <<_ACEOF
11517 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11523 { echo "$as_me:$LINENO: checking for long double support" >&5
11524 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11525 have_long_double=no
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11536 long double x; x = (long double)0;
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11550 grep -v '^
*+' conftest.er1 >conftest.err
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } && {
11555 test -z "$ac_c_werror_flag" ||
11556 test ! -s conftest.err
11557 } && test -s conftest.$ac_objext; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define HAVE_LONG_DOUBLE 1
11564 have_long_double=yes
11567 echo "$as_me: failed program was:" >&5
11568 sed 's
/^
/|
/' conftest.$ac_ext >&5
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11575 echo "${ECHO_T}$have_long_double" >&6; }
11576 if test "$have_long_double" = yes ; then
11577 { echo "$as_me:$LINENO: checking for long double" >&5
11578 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11579 if test "${ac_cv_type_long_double+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 cat >conftest.$ac_ext <<_ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 $ac_includes_default
11589 typedef long double ac__type_new_;
11593 if ((ac__type_new_ *) 0)
11595 if (sizeof (ac__type_new_))
11601 rm -f conftest.$ac_objext
11602 if { (ac_try="$ac_compile"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_compile") 2>conftest.er1
11610 grep -v '^
*+' conftest.er1 >conftest.err
11612 cat conftest.err >&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && {
11615 test -z "$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 } && test -s conftest.$ac_objext; then
11618 ac_cv_type_long_double=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's
/^
/|
/' conftest.$ac_ext >&5
11623 ac_cv_type_long_double=no
11626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11629 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11631 # The cast to long int works around a bug in the HP C Compiler
11632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11634 # This bug is HP SR number 8606223364.
11635 { echo "$as_me:$LINENO: checking size of long double" >&5
11636 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11637 if test "${ac_cv_sizeof_long_double+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 if test "$cross_compiling" = yes; then
11641 # Depending upon the size, compute the lo and hi bounds.
11642 cat >conftest.
$ac_ext <<_ACEOF
11645 cat confdefs.h
>>conftest.
$ac_ext
11646 cat >>conftest.
$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11649 typedef long double ac__type_sizeof_;
11653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11660 rm -f conftest.
$ac_objext
11661 if { (ac_try
="$ac_compile"
11662 case "(($ac_try" in
11663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_compile") 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } && {
11674 test -z "$ac_c_werror_flag" ||
11675 test ! -s conftest.err
11676 } && test -s conftest.$ac_objext; then
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 $ac_includes_default
11686 typedef long double ac__type_sizeof_;
11690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11697 rm -f conftest.$ac_objext
11698 if { (ac_try="$ac_compile"
11699 case "(($ac_try" in
11700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11701 *) ac_try_echo
=$ac_try;;
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_compile") 2>conftest.er1
11706 grep -v '^ *+' conftest.er1
>conftest.err
11708 cat conftest.err
>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } && {
11711 test -z "$ac_c_werror_flag" ||
11712 test ! -s conftest.err
11713 } && test -s conftest.
$ac_objext; then
11714 ac_hi
=$ac_mid; break
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.
$ac_ext >&5
11719 ac_lo
=`expr $ac_mid + 1`
11720 if test $ac_lo -le $ac_mid; then
11724 ac_mid
=`expr 2 '*' $ac_mid + 1`
11727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.
$ac_ext >&5
11733 cat >conftest.
$ac_ext <<_ACEOF
11736 cat confdefs.h
>>conftest.
$ac_ext
11737 cat >>conftest.
$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 $ac_includes_default
11740 typedef long double ac__type_sizeof_;
11744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11751 rm -f conftest.
$ac_objext
11752 if { (ac_try
="$ac_compile"
11753 case "(($ac_try" in
11754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_compile") 2>conftest.er1
11760 grep -v '^ *+' conftest.er1 >conftest.err
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest.$ac_objext; then
11770 cat >conftest.$ac_ext <<_ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 typedef long double ac__type_sizeof_;
11781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11792 *) ac_try_echo
=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_compile") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1
>conftest.err
11799 cat conftest.err
>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && {
11802 test -z "$ac_c_werror_flag" ||
11803 test ! -s conftest.err
11804 } && test -s conftest.
$ac_objext; then
11805 ac_lo
=$ac_mid; break
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.
$ac_ext >&5
11810 ac_hi
=`expr '(' $ac_mid ')' - 1`
11811 if test $ac_mid -le $ac_hi; then
11815 ac_mid
=`expr 2 '*' $ac_mid`
11818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.
$ac_ext >&5
11827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11831 # Binary search between lo and hi bounds.
11832 while test "x$ac_lo" != "x$ac_hi"; do
11833 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11834 cat >conftest.
$ac_ext <<_ACEOF
11837 cat confdefs.h
>>conftest.
$ac_ext
11838 cat >>conftest.
$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11841 typedef long double ac__type_sizeof_;
11845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11852 rm -f conftest.
$ac_objext
11853 if { (ac_try
="$ac_compile"
11854 case "(($ac_try" in
11855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859 (eval "$ac_compile") 2>conftest.er1
11861 grep -v '^ *+' conftest.er1 >conftest.err
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } && {
11866 test -z "$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11868 } && test -s conftest.$ac_objext; then
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_lo=`expr '(' $ac_mid ')' + 1`
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11881 '') if test "$ac_cv_type_long_double" = yes; then
11882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11883 See \`config.log
' for more details." >&5
11884 echo "$as_me: error: cannot compute sizeof (long double)
11885 See \`config.log' for more details.
" >&2;}
11886 { (exit 77); exit 77; }; }
11888 ac_cv_sizeof_long_double=0
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 $ac_includes_default
11899 typedef long double ac__type_sizeof_;
11900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11903 #include <stdlib.h>
11908 FILE *f = fopen ("conftest.val
", "w
");
11911 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11913 long int i = longval ();
11914 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11916 fprintf (f, "%ld
\n", i);
11920 unsigned long int i = ulongval ();
11921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11923 fprintf (f, "%lu
\n", i);
11925 return ferror (f) || fclose (f) != 0;
11931 rm -f conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_link") 2>&5
11940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_sizeof_long_double=`cat conftest.val`
11953 echo "$as_me: program exited with status
$ac_status" >&5
11954 echo "$as_me: failed program was
:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ( exit $ac_status )
11958 if test "$ac_cv_type_long_double" = yes; then
11959 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
11960 See \
`config.log' for more details." >&5
11961 echo "$as_me: error: cannot compute sizeof (long double)
11962 See \`config.log
' for more details." >&2;}
11963 { (exit 77); exit 77; }; }
11965 ac_cv_sizeof_long_double=0
11968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11973 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11977 cat >>confdefs.h <<_ACEOF
11978 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11985 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11986 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11998 _Bool x; x = (_Bool)0;
12003 rm -f conftest.$ac_objext
12004 if { (ac_try="$ac_compile"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12012 grep -v '^
*+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12022 cat >>confdefs.h <<\_ACEOF
12023 #define HAVE_C99_BOOL 1
12029 echo "$as_me: failed program was:" >&5
12030 sed 's
/^
/|
/' conftest.$ac_ext >&5
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12037 echo "${ECHO_T}$have_c99_bool" >&6; }
12038 if test "$have_c99_bool" = yes ; then
12039 { echo "$as_me:$LINENO: checking for _Bool" >&5
12040 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12041 if test "${ac_cv_type__Bool+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12051 typedef _Bool ac__type_new_;
12055 if ((ac__type_new_ *) 0)
12057 if (sizeof (ac__type_new_))
12063 rm -f conftest.$ac_objext
12064 if { (ac_try="$ac_compile"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_compile") 2>conftest.er1
12072 grep -v '^
*+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest.$ac_objext; then
12080 ac_cv_type__Bool=yes
12082 echo "$as_me: failed program was:" >&5
12083 sed 's
/^
/|
/' conftest.$ac_ext >&5
12085 ac_cv_type__Bool=no
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12091 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12093 # The cast to long int works around a bug in the HP C Compiler
12094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12096 # This bug is HP SR number 8606223364.
12097 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12098 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12099 if test "${ac_cv_sizeof__Bool+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 if test "$cross_compiling" = yes; then
12103 # Depending upon the size, compute the lo and hi bounds.
12104 cat >conftest.
$ac_ext <<_ACEOF
12107 cat confdefs.h
>>conftest.
$ac_ext
12108 cat >>conftest.
$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 $ac_includes_default
12111 typedef _Bool ac__type_sizeof_;
12115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12122 rm -f conftest.
$ac_objext
12123 if { (ac_try
="$ac_compile"
12124 case "(($ac_try" in
12125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_compile") 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } && {
12136 test -z "$ac_c_werror_flag" ||
12137 test ! -s conftest.err
12138 } && test -s conftest.$ac_objext; then
12141 cat >conftest.$ac_ext <<_ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 typedef _Bool ac__type_sizeof_;
12152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12163 *) ac_try_echo
=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_compile") 2>conftest.er1
12168 grep -v '^ *+' conftest.er1
>conftest.err
12170 cat conftest.err
>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && {
12173 test -z "$ac_c_werror_flag" ||
12174 test ! -s conftest.err
12175 } && test -s conftest.
$ac_objext; then
12176 ac_hi
=$ac_mid; break
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.
$ac_ext >&5
12181 ac_lo
=`expr $ac_mid + 1`
12182 if test $ac_lo -le $ac_mid; then
12186 ac_mid
=`expr 2 '*' $ac_mid + 1`
12189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.
$ac_ext >&5
12195 cat >conftest.
$ac_ext <<_ACEOF
12198 cat confdefs.h
>>conftest.
$ac_ext
12199 cat >>conftest.
$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 $ac_includes_default
12202 typedef _Bool ac__type_sizeof_;
12206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12213 rm -f conftest.
$ac_objext
12214 if { (ac_try
="$ac_compile"
12215 case "(($ac_try" in
12216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_compile") 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest.$ac_objext; then
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 $ac_includes_default
12239 typedef _Bool ac__type_sizeof_;
12243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12250 rm -f conftest.$ac_objext
12251 if { (ac_try="$ac_compile"
12252 case "(($ac_try" in
12253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12254 *) ac_try_echo
=$ac_try;;
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_compile") 2>conftest.er1
12259 grep -v '^ *+' conftest.er1
>conftest.err
12261 cat conftest.err
>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && {
12264 test -z "$ac_c_werror_flag" ||
12265 test ! -s conftest.err
12266 } && test -s conftest.
$ac_objext; then
12267 ac_lo
=$ac_mid; break
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.
$ac_ext >&5
12272 ac_hi
=`expr '(' $ac_mid ')' - 1`
12273 if test $ac_mid -le $ac_hi; then
12277 ac_mid
=`expr 2 '*' $ac_mid`
12280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.
$ac_ext >&5
12289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12293 # Binary search between lo and hi bounds.
12294 while test "x$ac_lo" != "x$ac_hi"; do
12295 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12296 cat >conftest.
$ac_ext <<_ACEOF
12299 cat confdefs.h
>>conftest.
$ac_ext
12300 cat >>conftest.
$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 typedef _Bool ac__type_sizeof_;
12307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12314 rm -f conftest.
$ac_objext
12315 if { (ac_try
="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_lo=`expr '(' $ac_mid ')' + 1`
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12343 '') if test "$ac_cv_type__Bool" = yes; then
12344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12345 See \`config.log
' for more details." >&5
12346 echo "$as_me: error: cannot compute sizeof (_Bool)
12347 See \`config.log' for more details.
" >&2;}
12348 { (exit 77); exit 77; }; }
12350 ac_cv_sizeof__Bool=0
12354 cat >conftest.$ac_ext <<_ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 $ac_includes_default
12361 typedef _Bool ac__type_sizeof_;
12362 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12363 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12365 #include <stdlib.h>
12370 FILE *f = fopen ("conftest.val
", "w
");
12373 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12375 long int i = longval ();
12376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12378 fprintf (f, "%ld
\n", i);
12382 unsigned long int i = ulongval ();
12383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12385 fprintf (f, "%lu
\n", i);
12387 return ferror (f) || fclose (f) != 0;
12393 rm -f conftest$ac_exeext
12394 if { (ac_try="$ac_link"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_link") 2>&5
12402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_sizeof__Bool=`cat conftest.val`
12415 echo "$as_me: program exited with status
$ac_status" >&5
12416 echo "$as_me: failed program was
:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ( exit $ac_status )
12420 if test "$ac_cv_type__Bool" = yes; then
12421 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12422 See \
`config.log' for more details." >&5
12423 echo "$as_me: error: cannot compute sizeof (_Bool)
12424 See \`config.log
' for more details." >&2;}
12425 { (exit 77); exit 77; }; }
12427 ac_cv_sizeof__Bool=0
12430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12434 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12435 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12439 cat >>confdefs.h <<_ACEOF
12440 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12446 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12447 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12448 if test "${ac_cv_type_uintptr_t+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 #ifdef HAVE_STDINT_H
12458 #include <stdint.h>
12461 typedef uintptr_t ac__type_new_;
12465 if ((ac__type_new_ *) 0)
12467 if (sizeof (ac__type_new_))
12473 rm -f conftest.$ac_objext
12474 if { (ac_try="$ac_compile"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_compile") 2>conftest.er1
12482 grep -v '^
*+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && {
12487 test -z "$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest.$ac_objext; then
12490 ac_cv_type_uintptr_t=yes
12492 echo "$as_me: failed program was:" >&5
12493 sed 's
/^
/|
/' conftest.$ac_ext >&5
12495 ac_cv_type_uintptr_t=no
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12501 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12502 if test $ac_cv_type_uintptr_t = yes; then
12504 cat >>confdefs.h <<_ACEOF
12505 #define HAVE_UINTPTR_T 1
12508 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12509 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12510 if test "${ac_cv_type_uintptr_t+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 typedef uintptr_t ac__type_new_;
12524 if ((ac__type_new_ *) 0)
12526 if (sizeof (ac__type_new_))
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12541 grep -v '^
*+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } && {
12546 test -z "$ac_c_werror_flag" ||
12547 test ! -s conftest.err
12548 } && test -s conftest.$ac_objext; then
12549 ac_cv_type_uintptr_t=yes
12551 echo "$as_me: failed program was:" >&5
12552 sed 's
/^
/|
/' conftest.$ac_ext >&5
12554 ac_cv_type_uintptr_t=no
12557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12560 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12562 # The cast to long int works around a bug in the HP C Compiler
12563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565 # This bug is HP SR number 8606223364.
12566 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12567 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12568 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 if test "$cross_compiling" = yes; then
12572 # Depending upon the size, compute the lo and hi bounds.
12573 cat >conftest.
$ac_ext <<_ACEOF
12576 cat confdefs.h
>>conftest.
$ac_ext
12577 cat >>conftest.
$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 $ac_includes_default
12580 typedef uintptr_t ac__type_sizeof_;
12584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12591 rm -f conftest.
$ac_objext
12592 if { (ac_try
="$ac_compile"
12593 case "(($ac_try" in
12594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12595 *) ac_try_echo=$ac_try;;
12597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598 (eval "$ac_compile") 2>conftest.er1
12600 grep -v '^ *+' conftest.er1 >conftest.err
12602 cat conftest.err >&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } && {
12605 test -z "$ac_c_werror_flag" ||
12606 test ! -s conftest.err
12607 } && test -s conftest.$ac_objext; then
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 $ac_includes_default
12617 typedef uintptr_t ac__type_sizeof_;
12621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12628 rm -f conftest.$ac_objext
12629 if { (ac_try="$ac_compile"
12630 case "(($ac_try" in
12631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12632 *) ac_try_echo
=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_compile") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1
>conftest.err
12639 cat conftest.err
>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } && {
12642 test -z "$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 } && test -s conftest.
$ac_objext; then
12645 ac_hi
=$ac_mid; break
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.
$ac_ext >&5
12650 ac_lo
=`expr $ac_mid + 1`
12651 if test $ac_lo -le $ac_mid; then
12655 ac_mid
=`expr 2 '*' $ac_mid + 1`
12658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.
$ac_ext >&5
12664 cat >conftest.
$ac_ext <<_ACEOF
12667 cat confdefs.h
>>conftest.
$ac_ext
12668 cat >>conftest.
$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 typedef uintptr_t ac__type_sizeof_;
12675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12682 rm -f conftest.
$ac_objext
12683 if { (ac_try
="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } && {
12696 test -z "$ac_c_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 typedef uintptr_t ac__type_sizeof_;
12712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12723 *) ac_try_echo
=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1
>conftest.err
12730 cat conftest.err
>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest.
$ac_objext; then
12736 ac_lo
=$ac_mid; break
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.
$ac_ext >&5
12741 ac_hi
=`expr '(' $ac_mid ')' - 1`
12742 if test $ac_mid -le $ac_hi; then
12746 ac_mid
=`expr 2 '*' $ac_mid`
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.
$ac_ext >&5
12758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12762 # Binary search between lo and hi bounds.
12763 while test "x$ac_lo" != "x$ac_hi"; do
12764 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12765 cat >conftest.
$ac_ext <<_ACEOF
12768 cat confdefs.h
>>conftest.
$ac_ext
12769 cat >>conftest.
$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 $ac_includes_default
12772 typedef uintptr_t ac__type_sizeof_;
12776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12783 rm -f conftest.
$ac_objext
12784 if { (ac_try
="$ac_compile"
12785 case "(($ac_try" in
12786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12792 grep -v '^ *+' conftest.er1 >conftest.err
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest.$ac_objext; then
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 ac_lo=`expr '(' $ac_mid ')' + 1`
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12812 '') if test "$ac_cv_type_uintptr_t" = yes; then
12813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12814 See \`config.log
' for more details." >&5
12815 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12816 See \`config.log' for more details.
" >&2;}
12817 { (exit 77); exit 77; }; }
12819 ac_cv_sizeof_uintptr_t=0
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 $ac_includes_default
12830 typedef uintptr_t ac__type_sizeof_;
12831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12834 #include <stdlib.h>
12839 FILE *f = fopen ("conftest.val
", "w
");
12842 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12844 long int i = longval ();
12845 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12847 fprintf (f, "%ld
\n", i);
12851 unsigned long int i = ulongval ();
12852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12854 fprintf (f, "%lu
\n", i);
12856 return ferror (f) || fclose (f) != 0;
12862 rm -f conftest$ac_exeext
12863 if { (ac_try="$ac_link"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_link") 2>&5
12871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12873 { (case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_try") 2>&5
12880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12884 echo "$as_me: program exited with status
$ac_status" >&5
12885 echo "$as_me: failed program was
:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ( exit $ac_status )
12889 if test "$ac_cv_type_uintptr_t" = yes; then
12890 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12891 See \
`config.log' for more details." >&5
12892 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12893 See \`config.log
' for more details." >&2;}
12894 { (exit 77); exit 77; }; }
12896 ac_cv_sizeof_uintptr_t=0
12899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12904 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12908 cat >>confdefs.h <<_ACEOF
12909 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12917 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12918 { echo "$as_me:$LINENO: checking size of off_t" >&5
12919 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12920 if test "${ac_cv_sizeof_off_t+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 if test "$cross_compiling" = yes; then
12924 ac_cv_sizeof_off_t
=4
12926 cat >conftest.
$ac_ext <<_ACEOF
12929 cat confdefs.h
>>conftest.
$ac_ext
12930 cat >>conftest.
$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12933 #include <sys/types.h>
12936 FILE *f=fopen("conftestval", "w");
12938 fprintf(f, "%d\n", sizeof(off_t));
12942 rm -f conftest
$ac_exeext
12943 if { (ac_try
="$ac_link"
12944 case "(($ac_try" in
12945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12955 *) ac_try_echo
=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_sizeof_off_t
=`cat conftestval`
12964 echo "$as_me: program exited with status $ac_status" >&5
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.
$ac_ext >&5
12968 ( exit $ac_status )
12969 ac_cv_sizeof_off_t
=0
12971 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12978 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12979 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12981 cat >>confdefs.h
<<_ACEOF
12982 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12986 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12987 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12988 if test "$have_long_long" = yes -a \
12989 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12990 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12992 cat >>confdefs.h
<<\_ACEOF
12993 #define HAVE_LARGEFILE_SUPPORT 1
12996 { echo "$as_me:$LINENO: result: yes" >&5
12997 echo "${ECHO_T}yes" >&6; }
12999 { echo "$as_me:$LINENO: result: no" >&5
13000 echo "${ECHO_T}no" >&6; }
13003 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13004 { echo "$as_me:$LINENO: checking size of time_t" >&5
13005 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13006 if test "${ac_cv_sizeof_time_t+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 if test "$cross_compiling" = yes; then
13010 ac_cv_sizeof_time_t
=4
13012 cat >conftest.
$ac_ext <<_ACEOF
13015 cat confdefs.h
>>conftest.
$ac_ext
13016 cat >>conftest.
$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13022 FILE *f=fopen("conftestval", "w");
13024 fprintf(f, "%d\n", sizeof(time_t));
13028 rm -f conftest
$ac_exeext
13029 if { (ac_try
="$ac_link"
13030 case "(($ac_try" in
13031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13039 { (case "(($ac_try" in
13040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13041 *) ac_try_echo
=$ac_try;;
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_try") 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_sizeof_time_t
=`cat conftestval`
13050 echo "$as_me: program exited with status $ac_status" >&5
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.
$ac_ext >&5
13054 ( exit $ac_status )
13055 ac_cv_sizeof_time_t
=0
13057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13064 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13065 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13067 cat >>confdefs.h
<<_ACEOF
13068 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13073 # if have pthread_t then define SIZEOF_PTHREAD_T
13075 if test "$ac_cv_kpthread" = "yes"
13076 then CC
="$CC -Kpthread"
13077 elif test "$ac_cv_kthread" = "yes"
13078 then CC
="$CC -Kthread"
13079 elif test "$ac_cv_pthread" = "yes"
13080 then CC
="$CC -pthread"
13082 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13083 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13085 cat >conftest.
$ac_ext <<_ACEOF
13088 cat confdefs.h
>>conftest.
$ac_ext
13089 cat >>conftest.
$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <pthread.h>
13095 pthread_t x; x = *(pthread_t*)0;
13100 rm -f conftest.
$ac_objext
13101 if { (ac_try
="$ac_compile"
13102 case "(($ac_try" in
13103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_compile") 2>conftest.er1
13109 grep -v '^ *+' conftest.er1 >conftest.err
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest.$ac_objext; then
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13127 echo "${ECHO_T}$have_pthread_t" >&6; }
13128 if test "$have_pthread_t" = yes ; then
13129 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13130 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13131 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13132 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 if test "$cross_compiling" = yes; then
13136 ac_cv_sizeof_pthread_t=4
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13145 #include <pthread.h>
13148 FILE *f=fopen("conftestval", "w");
13150 fprintf(f, "%d\n", sizeof(pthread_t));
13154 rm -f conftest$ac_exeext
13155 if { (ac_try="$ac_link"
13156 case "(($ac_try" in
13157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13158 *) ac_try_echo
=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13165 { (case "(($ac_try" in
13166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 ac_cv_sizeof_pthread_t=`cat conftestval
`
13176 echo "$as_me: program exited with status $ac_status" >&5
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ( exit $ac_status )
13181 ac_cv_sizeof_pthread_t=0
13183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13190 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13191 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13193 cat >>confdefs.h <<_ACEOF
13194 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13203 case $ac_sys_system/$ac_sys_release in
13204 Darwin/[01567]\..*)
13205 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13208 OTHER_LIBTOOL_OPT=""
13213 case $ac_sys_system/$ac_sys_release in
13214 Darwin/[01567]\..*)
13215 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13216 if test "${enable_universalsdk}"; then
13219 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13221 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13222 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13224 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13225 if test ${gcc_version} '<' 4.0
13227 LIBTOOL_CRUFT="-lcc_dynamic"
13231 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13232 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13233 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13236 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13237 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13238 if test "$enable_framework"
13240 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13241 # -F. is needed to allow linking to the framework while
13242 # in the build location.
13244 cat >>confdefs.h <<\_ACEOF
13245 #define WITH_NEXT_FRAMEWORK 1
13248 { echo "$as_me:$LINENO: result: yes" >&5
13249 echo "${ECHO_T}yes" >&6; }
13251 { echo "$as_me:$LINENO: result: no" >&5
13252 echo "${ECHO_T}no" >&6; }
13255 { echo "$as_me:$LINENO: checking for dyld" >&5
13256 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13257 case $ac_sys_system/$ac_sys_release in
13260 cat >>confdefs.h <<\_ACEOF
13261 #define WITH_DYLD 1
13264 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13265 echo "${ECHO_T}always on for Darwin" >&6; }
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13273 # Set info about shared libraries.
13279 # SO is the extension of shared libraries `(including the dot
!)
13280 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13281 { echo "$as_me:$LINENO: checking SO" >&5
13282 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13285 case $ac_sys_system in
13296 # this might also be a termcap variable, see #610332
13298 echo '====================================================================='
13300 echo '+ WARNING: You have set SO in your environment. +'
13301 echo '+ Do you really mean to change the extension for shared libraries? +'
13302 echo '+ Continuing in 10 seconds to let you to ponder. +'
13304 echo '====================================================================='
13307 { echo "$as_me:$LINENO: result: $SO" >&5
13308 echo "${ECHO_T}$SO" >&6; }
13311 cat >>confdefs.h
<<_ACEOF
13312 #define SHLIB_EXT "$SO"
13315 # LDSHARED is the ld *command* used to create shared library
13316 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13317 # (Shared libraries in this instance are shared modules to be loaded into
13318 # Python, as opposed to building Python itself as a shared library.)
13319 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13320 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13321 if test -z "$LDSHARED"
13323 case $ac_sys_system/$ac_sys_release in
13325 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13326 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13328 IRIX
/5*) LDSHARED
="ld -shared";;
13329 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13331 if test "$GCC" = "yes"
13332 then LDSHARED
='$(CC) -shared'
13333 else LDSHARED
='$(CC) -G';
13336 if test "$GCC" = "yes"
13337 then LDSHARED
='$(CC) -shared'
13338 else LDSHARED
='ld -b';
13340 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13342 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13343 if test "$enable_framework" ; then
13344 # Link against the framework. All externals should be defined.
13345 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13346 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13348 # No framework. Ignore undefined symbols, assuming they come from Python
13349 LDSHARED
="$LDSHARED -undefined suppress"
13351 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13352 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13353 if test "$enable_framework" ; then
13354 # Link against the framework. All externals should be defined.
13355 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13356 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13358 # No framework, use the Python app as bundle-loader
13359 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13360 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13363 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13364 # This allows an extension to be used in any Python
13366 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13368 if test "${enable_universalsdk}"; then
13369 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13371 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13372 BLDSHARED
="$LDSHARED"
13374 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13375 if test "$enable_framework" ; then
13376 # Link against the framework. All externals should be defined.
13377 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13378 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13380 # No framework, use the Python app as bundle-loader
13381 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13382 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13386 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13387 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13389 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13391 LDSHARED
="$CC -shared ${LDFLAGS}"
13393 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13396 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13398 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13401 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13402 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13405 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13409 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13410 OpenUNIX
*|UnixWare
*)
13411 if test "$GCC" = "yes"
13412 then LDSHARED
='$(CC) -shared'
13413 else LDSHARED
='$(CC) -G'
13415 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13416 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13417 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13418 atheos
*) LDSHARED
="gcc -shared";;
13422 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13423 echo "${ECHO_T}$LDSHARED" >&6; }
13424 BLDSHARED
=${BLDSHARED-$LDSHARED}
13425 # CCSHARED are the C *flags* used to create objects to go into a shared
13426 # library (module) -- this is only needed for a few systems
13427 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13428 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13429 if test -z "$CCSHARED"
13431 case $ac_sys_system/$ac_sys_release in
13432 SunOS
*) if test "$GCC" = yes;
13433 then CCSHARED
="-fPIC";
13434 elif test `uname -p` = sparc
;
13435 then CCSHARED
="-xcode=pic32";
13436 else CCSHARED
="-Kpic";
13438 hp
*|HP
*) if test "$GCC" = yes;
13439 then CCSHARED
="-fPIC";
13440 else CCSHARED
="+z";
13442 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13443 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13444 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13445 OpenUNIX
*|UnixWare
*)
13446 if test "$GCC" = "yes"
13447 then CCSHARED
="-fPIC"
13448 else CCSHARED
="-KPIC"
13451 if test "$GCC" = "yes"
13452 then CCSHARED
="-fPIC"
13453 else CCSHARED
="-Kpic -belf"
13455 Monterey
*) CCSHARED
="-G";;
13456 IRIX
*/6*) case $CC in
13457 *gcc
*) CCSHARED
="-shared";;
13460 atheos
*) CCSHARED
="-fPIC";;
13463 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13464 echo "${ECHO_T}$CCSHARED" >&6; }
13465 # LINKFORSHARED are the flags passed to the $(CC) command that links
13466 # the python executable -- this is only needed for a few systems
13467 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13468 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13469 if test -z "$LINKFORSHARED"
13471 case $ac_sys_system/$ac_sys_release in
13472 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13474 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13475 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13476 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13477 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13478 # -u libsys_s pulls in all symbols in libsys
13480 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13482 # not used by the core itself but which needs to be in the core so
13483 # that dynamically loaded extension modules have access to it.
13484 # -prebind is no longer used, because it actually seems to give a
13485 # slowdown in stead of a speedup, maybe due to the large number of
13486 # dynamic loads Python does.
13488 LINKFORSHARED
="$extra_undefs"
13489 if test "$enable_framework"
13491 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13493 LINKFORSHARED
="$LINKFORSHARED";;
13494 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13495 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13496 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13497 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13498 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13500 LINKFORSHARED
="-Wl,--export-dynamic"
13502 SunOS
/5*) case $CC in
13504 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13506 LINKFORSHARED
="-Xlinker --export-dynamic"
13510 if test $enable_shared = "no"
13512 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13515 # -Wl,-E causes the symbols to be added to the dynamic
13516 # symbol table so that they can be found when a module
13517 # is loaded. -N 2048K causes the stack size to be set
13518 # to 2048 kilobytes so that the stack doesn't overflow
13519 # when running test_compile.py.
13520 LINKFORSHARED
='-Wl,-E -N 2048K';;
13523 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13524 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13528 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13529 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13530 if test ! "$LIBRARY" = "$LDLIBRARY"
13532 case $ac_sys_system in
13534 # Cygwin needs CCSHARED when building extension DLLs
13535 # but not when building the interpreter DLL.
13536 CFLAGSFORSHARED
='';;
13538 CFLAGSFORSHARED
='$(CCSHARED)'
13541 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13542 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13544 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13545 # library (with --enable-shared).
13546 # For platforms on which shared libraries are not allowed to have unresolved
13547 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13548 # if it is not required, since it creates a dependency of the shared library
13549 # to LIBS. This, in turn, means that applications linking the shared libpython
13550 # don't need to link LIBS explicitly. The default should be only changed
13551 # on systems where this approach causes problems.
13553 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13554 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13555 case "$ac_sys_system" in
13559 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13560 echo "${ECHO_T}$SHLIBS" >&6; }
13563 # checks for libraries
13565 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 ac_check_lib_save_LIBS
=$LIBS
13572 cat >conftest.
$ac_ext <<_ACEOF
13575 cat confdefs.h
>>conftest.
$ac_ext
13576 cat >>conftest.
$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13579 /* Override any GCC internal prototype to avoid an error.
13580 Use char because int might match the return type of a GCC
13581 builtin and then its argument prototype would still apply. */
13594 rm -f conftest.
$ac_objext conftest
$ac_exeext
13595 if { (ac_try
="$ac_link"
13596 case "(($ac_try" in
13597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_link") 2>conftest.er1
13603 grep -v '^ *+' conftest.er1 >conftest.err
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } && {
13608 test -z "$ac_c_werror_flag" ||
13609 test ! -s conftest.err
13610 } && test -s conftest$ac_exeext &&
13611 $as_test_x conftest$ac_exeext; then
13612 ac_cv_lib_dl_dlopen=yes
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13617 ac_cv_lib_dl_dlopen=no
13620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13621 conftest$ac_exeext conftest.$ac_ext
13622 LIBS=$ac_check_lib_save_LIBS
13624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13626 if test $ac_cv_lib_dl_dlopen = yes; then
13627 cat >>confdefs.h <<_ACEOF
13628 #define HAVE_LIBDL 1
13634 # Dynamic linking for SunOS/Solaris and SYSV
13636 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 ac_check_lib_save_LIBS=$LIBS
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13650 /* Override any GCC internal prototype to avoid an error.
13651 Use char because int might match the return type of a GCC
13652 builtin and then its argument prototype would still apply. */
13660 return shl_load ();
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (ac_try="$ac_link"
13667 case "(($ac_try" in
13668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13669 *) ac_try_echo
=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_link") 2>conftest.er1
13674 grep -v '^ *+' conftest.er1
>conftest.err
13676 cat conftest.err
>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } && {
13679 test -z "$ac_c_werror_flag" ||
13680 test ! -s conftest.err
13681 } && test -s conftest
$ac_exeext &&
13682 $as_test_x conftest
$ac_exeext; then
13683 ac_cv_lib_dld_shl_load
=yes
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.
$ac_ext >&5
13688 ac_cv_lib_dld_shl_load
=no
13691 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13692 conftest
$ac_exeext conftest.
$ac_ext
13693 LIBS
=$ac_check_lib_save_LIBS
13695 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13696 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13697 if test $ac_cv_lib_dld_shl_load = yes; then
13698 cat >>confdefs.h
<<_ACEOF
13699 #define HAVE_LIBDLD 1
13705 # Dynamic linking for HP-UX
13707 # only check for sem_init if thread support is requested
13708 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13709 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13710 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13711 if test "${ac_cv_search_sem_init+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 ac_func_search_save_LIBS
=$LIBS
13715 cat >conftest.
$ac_ext <<_ACEOF
13718 cat confdefs.h
>>conftest.
$ac_ext
13719 cat >>conftest.
$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 /* Override any GCC internal prototype to avoid an error.
13723 Use char because int might match the return type of a GCC
13724 builtin and then its argument prototype would still apply. */
13732 return sem_init ();
13737 for ac_lib
in '' pthread rt posix4
; do
13738 if test -z "$ac_lib"; then
13739 ac_res
="none required"
13742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13744 rm -f conftest.
$ac_objext conftest
$ac_exeext
13745 if { (ac_try
="$ac_link"
13746 case "(($ac_try" in
13747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_link") 2>conftest.er1
13753 grep -v '^ *+' conftest.er1 >conftest.err
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && {
13758 test -z "$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 } && test -s conftest$ac_exeext &&
13761 $as_test_x conftest$ac_exeext; then
13762 ac_cv_search_sem_init=$ac_res
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13772 if test "${ac_cv_search_sem_init+set}" = set; then
13776 if test "${ac_cv_search_sem_init+set}" = set; then
13779 ac_cv_search_sem_init=no
13781 rm conftest.$ac_ext
13782 LIBS=$ac_func_search_save_LIBS
13784 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13785 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13786 ac_res=$ac_cv_search_sem_init
13787 if test "$ac_res" != no; then
13788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13791 # 'Real Time' functions on Solaris
13792 # posix4 on Solaris 2.6
13793 # pthread (first!) on Linux
13796 # check if we need libintl for locale functions
13797 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13798 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13799 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 ac_check_lib_save_LIBS=$LIBS
13803 LIBS="-lintl $LIBS"
13804 cat >conftest.$ac_ext <<_ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13811 /* Override any GCC internal prototype to avoid an error.
13812 Use char because int might match the return type of a GCC
13813 builtin and then its argument prototype would still apply. */
13817 char textdomain ();
13821 return textdomain ();
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (ac_try="$ac_link"
13828 case "(($ac_try" in
13829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13830 *) ac_try_echo
=$ac_try;;
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_link") 2>conftest.er1
13835 grep -v '^ *+' conftest.er1
>conftest.err
13837 cat conftest.err
>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } && {
13840 test -z "$ac_c_werror_flag" ||
13841 test ! -s conftest.err
13842 } && test -s conftest
$ac_exeext &&
13843 $as_test_x conftest
$ac_exeext; then
13844 ac_cv_lib_intl_textdomain
=yes
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.
$ac_ext >&5
13849 ac_cv_lib_intl_textdomain
=no
13852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13853 conftest
$ac_exeext conftest.
$ac_ext
13854 LIBS
=$ac_check_lib_save_LIBS
13856 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13857 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13858 if test $ac_cv_lib_intl_textdomain = yes; then
13860 cat >>confdefs.h
<<\_ACEOF
13861 #define WITH_LIBINTL 1
13867 # checks for system dependent C++ extensions support
13868 case "$ac_sys_system" in
13869 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13870 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13871 cat >conftest.
$ac_ext <<_ACEOF
13874 cat confdefs.h
>>conftest.
$ac_ext
13875 cat >>conftest.
$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include "/usr/lpp/xlC/include/load.h"
13881 loadAndInit("", 0, "")
13886 rm -f conftest.
$ac_objext conftest
$ac_exeext
13887 if { (ac_try
="$ac_link"
13888 case "(($ac_try" in
13889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_link") 2>conftest.er1
13895 grep -v '^ *+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest$ac_exeext &&
13903 $as_test_x conftest$ac_exeext; then
13905 cat >>confdefs.h <<\_ACEOF
13906 #define AIX_GENUINE_CPLUSPLUS 1
13909 { echo "$as_me:$LINENO: result: yes" >&5
13910 echo "${ECHO_T}yes" >&6; }
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 { echo "$as_me:$LINENO: result: no" >&5
13916 echo "${ECHO_T}no" >&6; }
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext;;
13924 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13925 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13926 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13927 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 ac_check_lib_save_LIBS=$LIBS
13932 cat >conftest.$ac_ext <<_ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13954 rm -f conftest.$ac_objext conftest$ac_exeext
13955 if { (ac_try="$ac_link"
13956 case "(($ac_try" in
13957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13958 *) ac_try_echo
=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_link") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1
>conftest.err
13965 cat conftest.err
>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } && {
13968 test -z "$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 } && test -s conftest
$ac_exeext &&
13971 $as_test_x conftest
$ac_exeext; then
13972 ac_cv_lib_nsl_t_open
=yes
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.
$ac_ext >&5
13977 ac_cv_lib_nsl_t_open
=no
13980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13981 conftest
$ac_exeext conftest.
$ac_ext
13982 LIBS
=$ac_check_lib_save_LIBS
13984 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13985 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13986 if test $ac_cv_lib_nsl_t_open = yes; then
13990 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13991 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13992 if test "${ac_cv_lib_socket_socket+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 ac_check_lib_save_LIBS
=$LIBS
13996 LIBS
="-lsocket $LIBS $LIBS"
13997 cat >conftest.
$ac_ext <<_ACEOF
14000 cat confdefs.h
>>conftest.
$ac_ext
14001 cat >>conftest.
$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14019 rm -f conftest.
$ac_objext conftest
$ac_exeext
14020 if { (ac_try
="$ac_link"
14021 case "(($ac_try" in
14022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_link") 2>conftest.er1
14028 grep -v '^ *+' conftest.er1 >conftest.err
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest$ac_exeext &&
14036 $as_test_x conftest$ac_exeext; then
14037 ac_cv_lib_socket_socket=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_lib_socket_socket=no
14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046 conftest$ac_exeext conftest.$ac_ext
14047 LIBS=$ac_check_lib_save_LIBS
14049 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14050 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14051 if test $ac_cv_lib_socket_socket = yes; then
14052 LIBS="-lsocket $LIBS"
14056 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14057 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14059 # Check whether --with-libs was given.
14060 if test "${with_libs+set}" = set; then
14061 withval=$with_libs;
14062 { echo "$as_me:$LINENO: result: $withval" >&5
14063 echo "${ECHO_T}$withval" >&6; }
14064 LIBS="$withval $LIBS"
14067 { echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6; }
14072 # Check for use of the system libffi library
14073 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14074 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14076 # Check whether --with-system_ffi was given.
14077 if test "${with_system_ffi+set}" = set; then
14078 withval=$with_system_ffi;
14082 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14083 echo "${ECHO_T}$with_system_ffi" >&6; }
14085 # Determine if signalmodule should be used.
14088 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14089 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14091 # Check whether --with-signal-module was given.
14092 if test "${with_signal_module+set}" = set; then
14093 withval=$with_signal_module;
14097 if test -z "$with_signal_module"
14098 then with_signal_module="yes"
14100 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14101 echo "${ECHO_T}$with_signal_module" >&6; }
14103 if test "${with_signal_module}" = "yes"; then
14104 USE_SIGNAL_MODULE=""
14107 USE_SIGNAL_MODULE="#"
14108 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14111 # This is used to generate Setup.config
14113 USE_THREAD_MODULE=""
14115 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14116 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14119 # Check whether --with-dec-threads was given.
14120 if test "${with_dec_threads+set}" = set; then
14121 withval=$with_dec_threads;
14122 { echo "$as_me:$LINENO: result: $withval" >&5
14123 echo "${ECHO_T}$withval" >&6; }
14125 if test "${with_thread+set}" != set; then
14126 with_thread="$withval";
14129 { echo "$as_me:$LINENO: result: no" >&5
14130 echo "${ECHO_T}no" >&6; }
14134 # Templates for things AC_DEFINEd more than once.
14135 # For a single AC_DEFINE, no template is needed.
14143 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14144 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14146 # Check whether --with-threads was given.
14147 if test "${with_threads+set}" = set; then
14148 withval=$with_threads;
14152 # --with-thread is deprecated, but check for it anyway
14154 # Check whether --with-thread was given.
14155 if test "${with_thread+set}" = set; then
14156 withval=$with_thread; with_threads=$with_thread
14160 if test -z "$with_threads"
14161 then with_threads="yes"
14163 { echo "$as_me:$LINENO: result: $with_threads" >&5
14164 echo "${ECHO_T}$with_threads" >&6; }
14167 if test "$with_threads" = "no"
14169 USE_THREAD_MODULE="#"
14170 elif test "$ac_cv_pthread_is_default" = yes
14172 cat >>confdefs.h <<\_ACEOF
14173 #define WITH_THREAD 1
14176 # Defining _REENTRANT on system with POSIX threads should not hurt.
14177 cat >>confdefs.h <<\_ACEOF
14178 #define _REENTRANT 1
14182 THREADOBJ="Python/thread.o"
14183 elif test "$ac_cv_kpthread" = "yes"
14186 if test "$ac_cv_cxx_thread" = "yes"; then
14187 CXX="$CXX -Kpthread"
14189 cat >>confdefs.h <<\_ACEOF
14190 #define WITH_THREAD 1
14194 THREADOBJ="Python/thread.o"
14195 elif test "$ac_cv_kthread" = "yes"
14198 if test "$ac_cv_cxx_thread" = "yes"; then
14199 CXX="$CXX -Kthread"
14201 cat >>confdefs.h <<\_ACEOF
14202 #define WITH_THREAD 1
14206 THREADOBJ="Python/thread.o"
14207 elif test "$ac_cv_pthread" = "yes"
14210 if test "$ac_cv_cxx_thread" = "yes"; then
14211 CXX="$CXX -pthread"
14213 cat >>confdefs.h <<\_ACEOF
14214 #define WITH_THREAD 1
14218 THREADOBJ="Python/thread.o"
14220 if test ! -z "$with_threads" -a -d "$with_threads"
14221 then LDFLAGS="$LDFLAGS -L$with_threads"
14223 if test ! -z "$withval" -a -d "$withval"
14224 then LDFLAGS="$LDFLAGS -L$withval"
14227 # According to the POSIX spec, a pthreads implementation must
14228 # define _POSIX_THREADS in unistd.h. Some apparently don't
14229 # (e.g. gnu pth with pthread emulation)
14230 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14231 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14239 #include <unistd.h>
14240 #ifdef _POSIX_THREADS
14245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14246 $EGREP "yes" >/dev/null 2>&1; then
14247 unistd_defines_pthreads=yes
14249 unistd_defines_pthreads=no
14253 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14254 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14256 cat >>confdefs.h <<\_ACEOF
14257 #define _REENTRANT 1
14260 if test "${ac_cv_header_cthreads_h+set}" = set; then
14261 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14262 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14263 if test "${ac_cv_header_cthreads_h+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14267 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14269 # Is the header compilable?
14270 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14271 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14272 cat >conftest.$ac_ext <<_ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 $ac_includes_default
14279 #include <cthreads.h>
14281 rm -f conftest.$ac_objext
14282 if { (ac_try="$ac_compile"
14283 case "(($ac_try" in
14284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14285 *) ac_try_echo
=$ac_try;;
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_compile") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1
>conftest.err
14292 cat conftest.err
>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest.
$ac_objext; then
14298 ac_header_compiler
=yes
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.
$ac_ext >&5
14303 ac_header_compiler
=no
14306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14308 echo "${ECHO_T}$ac_header_compiler" >&6; }
14310 # Is the header present?
14311 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14312 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14313 cat >conftest.
$ac_ext <<_ACEOF
14316 cat confdefs.h
>>conftest.
$ac_ext
14317 cat >>conftest.
$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 #include <cthreads.h>
14321 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14322 case "(($ac_try" in
14323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14329 grep -v '^ *+' conftest.er1 >conftest.err
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } >/dev/null && {
14334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14335 test ! -s conftest.err
14337 ac_header_preproc=yes
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_header_preproc=no
14345 rm -f conftest.err conftest.$ac_ext
14346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14347 echo "${ECHO_T}$ac_header_preproc" >&6; }
14349 # So? What about this header?
14350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14352 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14353 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14355 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14356 ac_header_preproc=yes
14359 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14360 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14361 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14362 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14363 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14364 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14366 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14368 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14370 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14372 ## ------------------------------------------------ ##
14373 ## Report this to http://www.python.org/python-bugs ##
14374 ## ------------------------------------------------ ##
14376 ) | sed "s/^/$as_me: WARNING: /" >&2
14379 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14380 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14381 if test "${ac_cv_header_cthreads_h+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 ac_cv_header_cthreads_h=$ac_header_preproc
14386 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14387 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14390 if test $ac_cv_header_cthreads_h = yes; then
14391 cat >>confdefs.h <<\_ACEOF
14392 #define WITH_THREAD 1
14395 cat >>confdefs.h <<\_ACEOF
14396 #define C_THREADS 1
14400 cat >>confdefs.h <<\_ACEOF
14401 #define HURD_C_THREADS 1
14404 LIBS="$LIBS -lthreads"
14405 THREADOBJ="Python/thread.o"
14408 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14409 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14410 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14411 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14415 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14417 # Is the header compilable?
14418 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14419 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 #include <mach/cthreads.h>
14429 rm -f conftest.$ac_objext
14430 if { (ac_try="$ac_compile"
14431 case "(($ac_try" in
14432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14433 *) ac_try_echo
=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_compile") 2>conftest.er1
14438 grep -v '^ *+' conftest.er1
>conftest.err
14440 cat conftest.err
>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && {
14443 test -z "$ac_c_werror_flag" ||
14444 test ! -s conftest.err
14445 } && test -s conftest.
$ac_objext; then
14446 ac_header_compiler
=yes
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.
$ac_ext >&5
14451 ac_header_compiler
=no
14454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14456 echo "${ECHO_T}$ac_header_compiler" >&6; }
14458 # Is the header present?
14459 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14460 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14461 cat >conftest.
$ac_ext <<_ACEOF
14464 cat confdefs.h
>>conftest.
$ac_ext
14465 cat >>conftest.
$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #include <mach/cthreads.h>
14469 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14470 case "(($ac_try" in
14471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14477 grep -v '^ *+' conftest.er1 >conftest.err
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } >/dev/null && {
14482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14485 ac_header_preproc=yes
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 ac_header_preproc=no
14493 rm -f conftest.err conftest.$ac_ext
14494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14495 echo "${ECHO_T}$ac_header_preproc" >&6; }
14497 # So? What about this header?
14498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14500 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14501 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14503 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14504 ac_header_preproc=yes
14507 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14508 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14510 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14512 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14514 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14516 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14518 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14520 ## ------------------------------------------------ ##
14521 ## Report this to http://www.python.org/python-bugs ##
14522 ## ------------------------------------------------ ##
14524 ) | sed "s/^/$as_me: WARNING: /" >&2
14527 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14528 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14529 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14534 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14535 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14538 if test $ac_cv_header_mach_cthreads_h = yes; then
14539 cat >>confdefs.h <<\_ACEOF
14540 #define WITH_THREAD 1
14543 cat >>confdefs.h <<\_ACEOF
14544 #define C_THREADS 1
14548 cat >>confdefs.h <<\_ACEOF
14549 #define MACH_C_THREADS 1
14552 THREADOBJ="Python/thread.o"
14555 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14556 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14558 # Check whether --with-pth was given.
14559 if test "${with_pth+set}" = set; then
14560 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14561 echo "${ECHO_T}$withval" >&6; }
14562 cat >>confdefs.h <<\_ACEOF
14563 #define WITH_THREAD 1
14567 cat >>confdefs.h <<\_ACEOF
14572 THREADOBJ="Python/thread.o"
14574 { echo "$as_me:$LINENO: result: no" >&5
14575 echo "${ECHO_T}no" >&6; }
14577 # Just looking for pthread_create in libpthread is not enough:
14578 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14579 # So we really have to include pthread.h, and then link.
14581 LIBS="$LIBS -lpthread"
14582 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14583 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <pthread.h>
14592 void * start_routine (void *arg) { exit (0); }
14597 pthread_create (NULL, NULL, start_routine, NULL)
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (ac_try="$ac_link"
14604 case "(($ac_try" in
14605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14606 *) ac_try_echo
=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_link") 2>conftest.er1
14611 grep -v '^ *+' conftest.er1
>conftest.err
14613 cat conftest.err
>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest
$ac_exeext &&
14619 $as_test_x conftest
$ac_exeext; then
14621 { echo "$as_me:$LINENO: result: yes" >&5
14622 echo "${ECHO_T}yes" >&6; }
14623 cat >>confdefs.h
<<\_ACEOF
14624 #define WITH_THREAD 1
14628 THREADOBJ
="Python/thread.o"
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.
$ac_ext >&5
14635 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14636 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14637 if test "${ac_cv_func_pthread_detach+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.
$ac_ext <<_ACEOF
14643 cat confdefs.h
>>conftest.
$ac_ext
14644 cat >>conftest.
$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14648 #define pthread_detach innocuous_pthread_detach
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char pthread_detach (); below.
14652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14653 <limits.h> exists even on freestanding compilers. */
14656 # include <limits.h>
14658 # include <assert.h>
14661 #undef pthread_detach
14663 /* Override any GCC internal prototype to avoid an error.
14664 Use char because int might match the return type of a GCC
14665 builtin and then its argument prototype would still apply. */
14669 char pthread_detach ();
14670 /* The GNU C library defines this for functions which it implements
14671 to always fail with ENOSYS. Some functions are actually named
14672 something starting with __ and the normal name is an alias. */
14673 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14680 return pthread_detach ();
14685 rm -f conftest.
$ac_objext conftest
$ac_exeext
14686 if { (ac_try
="$ac_link"
14687 case "(($ac_try" in
14688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14703 ac_cv_func_pthread_detach=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_func_pthread_detach=no
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14714 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14715 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14716 if test $ac_cv_func_pthread_detach = yes; then
14717 cat >>confdefs.h <<\_ACEOF
14718 #define WITH_THREAD 1
14722 THREADOBJ="Python/thread.o"
14725 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14726 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14727 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14728 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14734 # Is the header compilable?
14735 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14736 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 $ac_includes_default
14744 #include <atheos/threads.h>
14746 rm -f conftest.$ac_objext
14747 if { (ac_try="$ac_compile"
14748 case "(($ac_try" in
14749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14750 *) ac_try_echo
=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_compile") 2>conftest.er1
14755 grep -v '^ *+' conftest.er1
>conftest.err
14757 cat conftest.err
>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } && {
14760 test -z "$ac_c_werror_flag" ||
14761 test ! -s conftest.err
14762 } && test -s conftest.
$ac_objext; then
14763 ac_header_compiler
=yes
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.
$ac_ext >&5
14768 ac_header_compiler
=no
14771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 echo "${ECHO_T}$ac_header_compiler" >&6; }
14775 # Is the header present?
14776 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14777 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14778 cat >conftest.
$ac_ext <<_ACEOF
14781 cat confdefs.h
>>conftest.
$ac_ext
14782 cat >>conftest.
$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <atheos/threads.h>
14786 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14787 case "(($ac_try" in
14788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14794 grep -v '^ *+' conftest.er1 >conftest.err
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } >/dev/null && {
14799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14800 test ! -s conftest.err
14802 ac_header_preproc=yes
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_header_preproc=no
14810 rm -f conftest.err conftest.$ac_ext
14811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14812 echo "${ECHO_T}$ac_header_preproc" >&6; }
14814 # So? What about this header?
14815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14818 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14820 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14821 ac_header_preproc=yes
14824 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14825 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14827 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14829 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14831 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14833 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14835 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14837 ## ------------------------------------------------ ##
14838 ## Report this to http://www.python.org/python-bugs ##
14839 ## ------------------------------------------------ ##
14841 ) | sed "s/^/$as_me: WARNING: /" >&2
14844 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14845 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14846 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 ac_cv_header_atheos_threads_h=$ac_header_preproc
14851 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14852 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14855 if test $ac_cv_header_atheos_threads_h = yes; then
14856 cat >>confdefs.h <<\_ACEOF
14857 #define WITH_THREAD 1
14861 cat >>confdefs.h <<\_ACEOF
14862 #define ATHEOS_THREADS 1
14865 THREADOBJ="Python/thread.o"
14868 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14869 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14870 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 ac_check_lib_save_LIBS=$LIBS
14874 LIBS="-lpthreads $LIBS"
14875 cat >conftest.$ac_ext <<_ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14882 /* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14888 char pthread_create ();
14892 return pthread_create ();
14897 rm -f conftest.$ac_objext conftest$ac_exeext
14898 if { (ac_try="$ac_link"
14899 case "(($ac_try" in
14900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14901 *) ac_try_echo
=$ac_try;;
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_link") 2>conftest.er1
14906 grep -v '^ *+' conftest.er1
>conftest.err
14908 cat conftest.err
>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && {
14911 test -z "$ac_c_werror_flag" ||
14912 test ! -s conftest.err
14913 } && test -s conftest
$ac_exeext &&
14914 $as_test_x conftest
$ac_exeext; then
14915 ac_cv_lib_pthreads_pthread_create
=yes
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.
$ac_ext >&5
14920 ac_cv_lib_pthreads_pthread_create
=no
14923 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14924 conftest
$ac_exeext conftest.
$ac_ext
14925 LIBS
=$ac_check_lib_save_LIBS
14927 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14928 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14929 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14930 cat >>confdefs.h
<<\_ACEOF
14931 #define WITH_THREAD 1
14935 LIBS
="$LIBS -lpthreads"
14936 THREADOBJ
="Python/thread.o"
14939 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14940 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14941 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 ac_check_lib_save_LIBS
=$LIBS
14946 cat >conftest.
$ac_ext <<_ACEOF
14949 cat confdefs.h
>>conftest.
$ac_ext
14950 cat >>conftest.
$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14953 /* Override any GCC internal prototype to avoid an error.
14954 Use char because int might match the return type of a GCC
14955 builtin and then its argument prototype would still apply. */
14959 char pthread_create ();
14963 return pthread_create ();
14968 rm -f conftest.
$ac_objext conftest
$ac_exeext
14969 if { (ac_try
="$ac_link"
14970 case "(($ac_try" in
14971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_link") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest$ac_exeext &&
14985 $as_test_x conftest$ac_exeext; then
14986 ac_cv_lib_c_r_pthread_create=yes
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 ac_cv_lib_c_r_pthread_create=no
14994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14995 conftest$ac_exeext conftest.$ac_ext
14996 LIBS=$ac_check_lib_save_LIBS
14998 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14999 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15000 if test $ac_cv_lib_c_r_pthread_create = yes; then
15001 cat >>confdefs.h <<\_ACEOF
15002 #define WITH_THREAD 1
15007 THREADOBJ="Python/thread.o"
15010 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15011 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15012 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 ac_check_lib_save_LIBS=$LIBS
15016 LIBS="-lpthread $LIBS"
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15024 /* Override any GCC internal prototype to avoid an error.
15025 Use char because int might match the return type of a GCC
15026 builtin and then its argument prototype would still apply. */
15030 char __pthread_create_system ();
15034 return __pthread_create_system ();
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (ac_try="$ac_link"
15041 case "(($ac_try" in
15042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15043 *) ac_try_echo
=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_link") 2>conftest.er1
15048 grep -v '^ *+' conftest.er1
>conftest.err
15050 cat conftest.err
>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && {
15053 test -z "$ac_c_werror_flag" ||
15054 test ! -s conftest.err
15055 } && test -s conftest
$ac_exeext &&
15056 $as_test_x conftest
$ac_exeext; then
15057 ac_cv_lib_pthread___pthread_create_system
=yes
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.
$ac_ext >&5
15062 ac_cv_lib_pthread___pthread_create_system
=no
15065 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15066 conftest
$ac_exeext conftest.
$ac_ext
15067 LIBS
=$ac_check_lib_save_LIBS
15069 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15070 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15071 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15072 cat >>confdefs.h
<<\_ACEOF
15073 #define WITH_THREAD 1
15077 LIBS
="$LIBS -lpthread"
15078 THREADOBJ
="Python/thread.o"
15081 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15082 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15083 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 ac_check_lib_save_LIBS
=$LIBS
15088 cat >conftest.
$ac_ext <<_ACEOF
15091 cat confdefs.h
>>conftest.
$ac_ext
15092 cat >>conftest.
$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char pthread_create ();
15105 return pthread_create ();
15110 rm -f conftest.
$ac_objext conftest
$ac_exeext
15111 if { (ac_try
="$ac_link"
15112 case "(($ac_try" in
15113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>conftest.er1
15119 grep -v '^ *+' conftest.er1 >conftest.err
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest$ac_exeext &&
15127 $as_test_x conftest$ac_exeext; then
15128 ac_cv_lib_cma_pthread_create=yes
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_lib_cma_pthread_create=no
15136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15140 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15141 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15142 if test $ac_cv_lib_cma_pthread_create = yes; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define WITH_THREAD 1
15149 THREADOBJ="Python/thread.o"
15152 USE_THREAD_MODULE="#"
15169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15170 conftest$ac_exeext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15181 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15182 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 ac_check_lib_save_LIBS=$LIBS
15187 cat >conftest.$ac_ext <<_ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15204 return usconfig ();
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15213 *) ac_try_echo
=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_link") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1
>conftest.err
15220 cat conftest.err
>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest
$ac_exeext &&
15226 $as_test_x conftest
$ac_exeext; then
15227 ac_cv_lib_mpc_usconfig
=yes
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.
$ac_ext >&5
15232 ac_cv_lib_mpc_usconfig
=no
15235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15236 conftest
$ac_exeext conftest.
$ac_ext
15237 LIBS
=$ac_check_lib_save_LIBS
15239 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15240 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15241 if test $ac_cv_lib_mpc_usconfig = yes; then
15242 cat >>confdefs.h
<<\_ACEOF
15243 #define WITH_THREAD 1
15247 THREADOBJ
="Python/thread.o"
15248 USE_THREAD_MODULE
=""
15252 if test "$posix_threads" != "yes"; then
15253 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15254 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15255 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 ac_check_lib_save_LIBS
=$LIBS
15259 LIBS
="-lthread $LIBS"
15260 cat >conftest.
$ac_ext <<_ACEOF
15263 cat confdefs.h
>>conftest.
$ac_ext
15264 cat >>conftest.
$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15267 /* Override any GCC internal prototype to avoid an error.
15268 Use char because int might match the return type of a GCC
15269 builtin and then its argument prototype would still apply. */
15273 char thr_create ();
15277 return thr_create ();
15282 rm -f conftest.
$ac_objext conftest
$ac_exeext
15283 if { (ac_try
="$ac_link"
15284 case "(($ac_try" in
15285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_link") 2>conftest.er1
15291 grep -v '^ *+' conftest.er1 >conftest.err
15293 cat conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest$ac_exeext &&
15299 $as_test_x conftest$ac_exeext; then
15300 ac_cv_lib_thread_thr_create=yes
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_cv_lib_thread_thr_create=no
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309 conftest$ac_exeext conftest.$ac_ext
15310 LIBS=$ac_check_lib_save_LIBS
15312 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15313 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15314 if test $ac_cv_lib_thread_thr_create = yes; then
15315 cat >>confdefs.h <<\_ACEOF
15316 #define WITH_THREAD 1
15319 LIBS="$LIBS -lthread"
15320 THREADOBJ="Python/thread.o"
15321 USE_THREAD_MODULE=""
15326 if test "$USE_THREAD_MODULE" != "#"
15328 # If the above checks didn't disable threads, (at least) OSF1
15329 # needs this '-threads' argument during linking.
15330 case $ac_sys_system in
15331 OSF1) LDLAST=-threads;;
15336 if test "$posix_threads" = "yes"; then
15337 if test "$unistd_defines_pthreads" = "no"; then
15339 cat >>confdefs.h <<\_ACEOF
15340 #define _POSIX_THREADS 1
15345 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15346 case $ac_sys_system/$ac_sys_release in
15348 cat >>confdefs.h <<\_ACEOF
15349 #define HAVE_PTHREAD_DESTRUCTOR 1
15354 cat >>confdefs.h <<\_ACEOF
15355 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15367 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15368 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15369 if test "${ac_cv_pthread_system_supported+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 if test "$cross_compiling" = yes; then
15373 ac_cv_pthread_system_supported=no
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 #include <pthread.h>
15382 void *foo(void *parm) {
15386 pthread_attr_t attr;
15388 if (pthread_attr_init(&attr)) exit(-1);
15389 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15390 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15394 rm -f conftest$ac_exeext
15395 if { (ac_try="$ac_link"
15396 case "(($ac_try" in
15397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15398 *) ac_try_echo
=$ac_try;;
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_link") 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15405 { (case "(($ac_try" in
15406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_cv_pthread_system_supported=yes
15416 echo "$as_me: program exited with status $ac_status" >&5
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ( exit $ac_status )
15421 ac_cv_pthread_system_supported=no
15423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15431 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15432 if test "$ac_cv_pthread_system_supported" = "yes"; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15440 for ac_func in pthread_sigmask
15442 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15456 #define $ac_func innocuous_$ac_func
15458 /* System header to define __stub macros and hopefully few prototypes,
15459 which can conflict with char $ac_func (); below.
15460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 <limits.h> exists even on freestanding compilers. */
15464 # include <limits.h>
15466 # include <assert.h>
15471 /* Override any GCC internal prototype to avoid an error.
15472 Use char because int might match the return type of a GCC
15473 builtin and then its argument prototype would still apply. */
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined __stub_$ac_func || defined __stub___$ac_func
15488 return $ac_func ();
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15497 *) ac_try_echo
=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>conftest.er1
15502 grep -v '^ *+' conftest.er1
>conftest.err
15504 cat conftest.err
>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest
$ac_exeext &&
15510 $as_test_x conftest
$ac_exeext; then
15511 eval "$as_ac_var=yes"
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.
$ac_ext >&5
15516 eval "$as_ac_var=no"
15519 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15520 conftest
$ac_exeext conftest.
$ac_ext
15522 ac_res
=`eval echo '${'$as_ac_var'}'`
15523 { echo "$as_me:$LINENO: result: $ac_res" >&5
15524 echo "${ECHO_T}$ac_res" >&6; }
15525 if test `eval echo '${'$as_ac_var'}'` = yes; then
15526 cat >>confdefs.h
<<_ACEOF
15527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15529 case $ac_sys_system in
15532 cat >>confdefs.h
<<\_ACEOF
15533 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15544 # Check for enable-ipv6
15547 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15548 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15549 # Check whether --enable-ipv6 was given.
15550 if test "${enable_ipv6+set}" = set; then
15551 enableval
=$enable_ipv6; case "$enableval" in
15553 { echo "$as_me:$LINENO: result: no" >&5
15554 echo "${ECHO_T}no" >&6; }
15557 *) { echo "$as_me:$LINENO: result: yes" >&5
15558 echo "${ECHO_T}yes" >&6; }
15559 cat >>confdefs.h
<<\_ACEOF
15560 #define ENABLE_IPV6 1
15568 if test "$cross_compiling" = yes; then
15569 { echo "$as_me:$LINENO: result: no" >&5
15570 echo "${ECHO_T}no" >&6; }
15574 cat >conftest.
$ac_ext <<_ACEOF
15577 cat confdefs.h
>>conftest.
$ac_ext
15578 cat >>conftest.
$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 /* AF_INET6 available check */
15581 #include <sys/types.h>
15582 #include <sys/socket.h>
15585 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15592 rm -f conftest
$ac_exeext
15593 if { (ac_try
="$ac_link"
15594 case "(($ac_try" in
15595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15605 *) ac_try_echo
=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 { echo "$as_me:$LINENO: result: yes" >&5
15613 echo "${ECHO_T}yes" >&6; }
15616 echo "$as_me: program exited with status $ac_status" >&5
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.
$ac_ext >&5
15620 ( exit $ac_status )
15621 { echo "$as_me:$LINENO: result: no" >&5
15622 echo "${ECHO_T}no" >&6; }
15625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15630 if test "$ipv6" = "yes"; then
15631 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15632 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15633 cat >conftest.
$ac_ext <<_ACEOF
15636 cat confdefs.h
>>conftest.
$ac_ext
15637 cat >>conftest.
$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #include <sys/types.h>
15640 #include <netinet/in.h>
15644 struct sockaddr_in6 x;
15650 rm -f conftest.
$ac_objext
15651 if { (ac_try
="$ac_compile"
15652 case "(($ac_try" in
15653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.$ac_objext; then
15667 { echo "$as_me:$LINENO: result: yes" >&5
15668 echo "${ECHO_T}yes" >&6; }
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 { echo "$as_me:$LINENO: result: no" >&5
15675 echo "${ECHO_T}no" >&6; }
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 if test "$ipv6" = "yes"; then
15683 cat >>confdefs.h <<\_ACEOF
15684 #define ENABLE_IPV6 1
15696 if test "$ipv6" = "yes"; then
15697 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15698 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15699 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 #include <netinet/in.h>
15711 #ifdef IPV6_INRIA_VERSION
15715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15716 $EGREP "yes" >/dev/null 2>&1; then
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 #include <netinet/in.h>
15735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15736 $EGREP "yes" >/dev/null 2>&1; then
15739 ipv6libdir=/usr/local/v6/lib
15746 cat >conftest.$ac_ext <<_ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15753 #include <features.h>
15754 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15759 $EGREP "yes" >/dev/null 2>&1; then
15767 if test -d /usr/inet6; then
15770 ipv6libdir=/usr/inet6/lib
15771 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15775 if test -f /etc/netconfig; then
15776 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15783 cat >conftest.$ac_ext <<_ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15790 #include <sys/param.h>
15791 #ifdef _TOSHIBA_INET6
15795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15796 $EGREP "yes" >/dev/null 2>&1; then
15799 ipv6libdir=/usr/local/v6/lib
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15812 #include </usr/local/v6/include/sys/v6config.h>
15817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15818 $EGREP "yes" >/dev/null 2>&1; then
15821 ipv6libdir=/usr/local/v6/lib;
15822 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15835 #include <sys/param.h>
15836 #ifdef _ZETA_MINAMI_INET6
15840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15841 $EGREP "yes" >/dev/null 2>&1; then
15844 ipv6libdir=/usr/local/v6/lib
15850 if test "$ipv6type" != "unknown"; then
15854 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15855 echo "${ECHO_T}$ipv6type" >&6; }
15858 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15859 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15860 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15861 echo "using lib$ipv6lib"
15863 if test $ipv6trylibc = "yes"; then
15866 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15867 echo "You need to fetch lib$ipv6lib.a from appropriate"
15868 echo 'ipv6 kit and compile beforehand.'
15874 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15875 echo $ECHO_N "checking for OSX 10.5 SDK or later... $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 <Carbon/Carbon.h>
15886 FSIORefNum fRef = 0
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_OSX105_SDK 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
15926 # Check for --with-doc-strings
15927 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15928 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15930 # Check whether --with-doc-strings was given.
15931 if test "${with_doc_strings+set}" = set; then
15932 withval
=$with_doc_strings;
15936 if test -z "$with_doc_strings"
15937 then with_doc_strings
="yes"
15939 if test "$with_doc_strings" != "no"
15942 cat >>confdefs.h
<<\_ACEOF
15943 #define WITH_DOC_STRINGS 1
15947 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15948 echo "${ECHO_T}$with_doc_strings" >&6; }
15950 # Check for Python-specific malloc support
15951 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15952 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15954 # Check whether --with-tsc was given.
15955 if test "${with_tsc+set}" = set; then
15957 if test "$withval" != no
15960 cat >>confdefs.h
<<\_ACEOF
15964 { echo "$as_me:$LINENO: result: yes" >&5
15965 echo "${ECHO_T}yes" >&6; }
15966 else { echo "$as_me:$LINENO: result: no" >&5
15967 echo "${ECHO_T}no" >&6; }
15970 { echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6; }
15975 # Check for Python-specific malloc support
15976 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15977 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15979 # Check whether --with-pymalloc was given.
15980 if test "${with_pymalloc+set}" = set; then
15981 withval
=$with_pymalloc;
15985 if test -z "$with_pymalloc"
15986 then with_pymalloc
="yes"
15988 if test "$with_pymalloc" != "no"
15991 cat >>confdefs.h
<<\_ACEOF
15992 #define WITH_PYMALLOC 1
15996 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15997 echo "${ECHO_T}$with_pymalloc" >&6; }
15999 # Check for --with-wctype-functions
16000 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16001 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16003 # Check whether --with-wctype-functions was given.
16004 if test "${with_wctype_functions+set}" = set; then
16005 withval
=$with_wctype_functions;
16006 if test "$withval" != no
16009 cat >>confdefs.h
<<\_ACEOF
16010 #define WANT_WCTYPE_FUNCTIONS 1
16013 { echo "$as_me:$LINENO: result: yes" >&5
16014 echo "${ECHO_T}yes" >&6; }
16015 else { echo "$as_me:$LINENO: result: no" >&5
16016 echo "${ECHO_T}no" >&6; }
16019 { echo "$as_me:$LINENO: result: no" >&5
16020 echo "${ECHO_T}no" >&6; }
16024 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16028 # the dlopen() function means we might want to use dynload_shlib.o. some
16029 # platforms, such as AIX, have dlopen(), but don't want to use it.
16031 for ac_func
in dlopen
16033 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16036 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 cat >conftest.
$ac_ext <<_ACEOF
16042 cat confdefs.h
>>conftest.
$ac_ext
16043 cat >>conftest.
$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16047 #define $ac_func innocuous_$ac_func
16049 /* System header to define __stub macros and hopefully few prototypes,
16050 which can conflict with char $ac_func (); below.
16051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16052 <limits.h> exists even on freestanding compilers. */
16055 # include <limits.h>
16057 # include <assert.h>
16062 /* Override any GCC internal prototype to avoid an error.
16063 Use char because int might match the return type of a GCC
16064 builtin and then its argument prototype would still apply. */
16069 /* The GNU C library defines this for functions which it implements
16070 to always fail with ENOSYS. Some functions are actually named
16071 something starting with __ and the normal name is an alias. */
16072 #if defined __stub_$ac_func || defined __stub___$ac_func
16079 return $ac_func ();
16084 rm -f conftest.
$ac_objext conftest
$ac_exeext
16085 if { (ac_try
="$ac_link"
16086 case "(($ac_try" in
16087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } && {
16098 test -z "$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16100 } && test -s conftest$ac_exeext &&
16101 $as_test_x conftest$ac_exeext; then
16102 eval "$as_ac_var=yes"
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 eval "$as_ac_var=no"
16110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16111 conftest$ac_exeext conftest.$ac_ext
16113 ac_res=`eval echo '${'$as_ac_var'}'`
16114 { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16116 if test `eval echo '${'$as_ac_var'}'` = yes; then
16117 cat >>confdefs.h <<_ACEOF
16118 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16125 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16126 # loading of modules.
16128 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16129 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16130 if test -z "$DYNLOADFILE"
16132 case $ac_sys_system/$ac_sys_release in
16133 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16134 if test "$ac_cv_func_dlopen" = yes
16135 then DYNLOADFILE="dynload_shlib.o"
16136 else DYNLOADFILE="dynload_aix.o"
16139 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16140 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16141 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16142 atheos*) DYNLOADFILE="dynload_atheos.o";;
16144 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16145 # out any dynamic loading
16146 if test "$ac_cv_func_dlopen" = yes
16147 then DYNLOADFILE="dynload_shlib.o"
16148 else DYNLOADFILE="dynload_stub.o"
16153 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16154 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16155 if test "$DYNLOADFILE" != "dynload_stub.o"
16158 cat >>confdefs.h <<\_ACEOF
16159 #define HAVE_DYNAMIC_LOADING 1
16164 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16167 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16168 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16169 if test -z "$MACHDEP_OBJS"
16171 MACHDEP_OBJS=$extra_machdep_objs
16173 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16175 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16176 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16178 # checks for library functions
16262 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16263 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16264 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16265 getpriority getpwent getspnam getspent getsid getwd \
16266 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16267 mremap nice pathconf pause plock poll pthread_init \
16268 putenv readlink realpath \
16269 select setegid seteuid setgid \
16270 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16271 sigaction siginterrupt sigrelse strftime strlcpy \
16272 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16273 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty
16275 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16289 #define $ac_func innocuous_$ac_func
16291 /* System header to define __stub macros and hopefully few prototypes,
16292 which can conflict with char $ac_func (); below.
16293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16294 <limits.h> exists even on freestanding compilers. */
16297 # include <limits.h>
16299 # include <assert.h>
16304 /* Override any GCC internal prototype to avoid an error.
16305 Use char because int might match the return type of a GCC
16306 builtin and then its argument prototype would still apply. */
16311 /* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314 #if defined __stub_$ac_func || defined __stub___$ac_func
16321 return $ac_func ();
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (ac_try="$ac_link"
16328 case "(($ac_try" in
16329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16330 *) ac_try_echo
=$ac_try;;
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_link") 2>conftest.er1
16335 grep -v '^ *+' conftest.er1
>conftest.err
16337 cat conftest.err
>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 } && test -s conftest
$ac_exeext &&
16343 $as_test_x conftest
$ac_exeext; then
16344 eval "$as_ac_var=yes"
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.
$ac_ext >&5
16349 eval "$as_ac_var=no"
16352 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16353 conftest
$ac_exeext conftest.
$ac_ext
16355 ac_res
=`eval echo '${'$as_ac_var'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16358 if test `eval echo '${'$as_ac_var'}'` = yes; then
16359 cat >>confdefs.h
<<_ACEOF
16360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16367 # For some functions, having a definition is not sufficient, since
16368 # we want to take their address.
16369 { echo "$as_me:$LINENO: checking for chroot" >&5
16370 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16371 cat >conftest.
$ac_ext <<_ACEOF
16374 cat confdefs.h
>>conftest.
$ac_ext
16375 cat >>conftest.
$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #include <unistd.h>
16386 rm -f conftest.
$ac_objext
16387 if { (ac_try
="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16395 grep -v '^ *+' conftest.er1 >conftest.err
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } && {
16400 test -z "$ac_c_werror_flag" ||
16401 test ! -s conftest.err
16402 } && test -s conftest.$ac_objext; then
16404 cat >>confdefs.h <<\_ACEOF
16405 #define HAVE_CHROOT 1
16408 { echo "$as_me:$LINENO: result: yes" >&5
16409 echo "${ECHO_T}yes" >&6; }
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 { echo "$as_me:$LINENO: result: no" >&5
16415 echo "${ECHO_T}no" >&6; }
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 { echo "$as_me:$LINENO: checking for link" >&5
16421 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 #include <unistd.h>
16437 rm -f conftest.$ac_objext
16438 if { (ac_try="$ac_compile"
16439 case "(($ac_try" in
16440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16441 *) ac_try_echo
=$ac_try;;
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_compile") 2>conftest.er1
16446 grep -v '^ *+' conftest.er1
>conftest.err
16448 cat conftest.err
>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } && {
16451 test -z "$ac_c_werror_flag" ||
16452 test ! -s conftest.err
16453 } && test -s conftest.
$ac_objext; then
16455 cat >>confdefs.h
<<\_ACEOF
16456 #define HAVE_LINK 1
16459 { echo "$as_me:$LINENO: result: yes" >&5
16460 echo "${ECHO_T}yes" >&6; }
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.
$ac_ext >&5
16465 { echo "$as_me:$LINENO: result: no" >&5
16466 echo "${ECHO_T}no" >&6; }
16470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16471 { echo "$as_me:$LINENO: checking for symlink" >&5
16472 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16473 cat >conftest.
$ac_ext <<_ACEOF
16476 cat confdefs.h
>>conftest.
$ac_ext
16477 cat >>conftest.
$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #include <unistd.h>
16488 rm -f conftest.
$ac_objext
16489 if { (ac_try
="$ac_compile"
16490 case "(($ac_try" in
16491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_compile") 2>conftest.er1
16497 grep -v '^ *+' conftest.er1 >conftest.err
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } && {
16502 test -z "$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16504 } && test -s conftest.$ac_objext; then
16506 cat >>confdefs.h <<\_ACEOF
16507 #define HAVE_SYMLINK 1
16510 { echo "$as_me:$LINENO: result: yes" >&5
16511 echo "${ECHO_T}yes" >&6; }
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 { echo "$as_me:$LINENO: result: no" >&5
16517 echo "${ECHO_T}no" >&6; }
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 { echo "$as_me:$LINENO: checking for fchdir" >&5
16523 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16524 cat >conftest.$ac_ext <<_ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 #include <unistd.h>
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16543 *) ac_try_echo
=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16548 grep -v '^ *+' conftest.er1
>conftest.err
16550 cat conftest.err
>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && {
16553 test -z "$ac_c_werror_flag" ||
16554 test ! -s conftest.err
16555 } && test -s conftest.
$ac_objext; then
16557 cat >>confdefs.h
<<\_ACEOF
16558 #define HAVE_FCHDIR 1
16561 { echo "$as_me:$LINENO: result: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.
$ac_ext >&5
16567 { echo "$as_me:$LINENO: result: no" >&5
16568 echo "${ECHO_T}no" >&6; }
16572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16573 { echo "$as_me:$LINENO: checking for fsync" >&5
16574 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16575 cat >conftest.
$ac_ext <<_ACEOF
16578 cat confdefs.h
>>conftest.
$ac_ext
16579 cat >>conftest.
$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 #include <unistd.h>
16590 rm -f conftest.
$ac_objext
16591 if { (ac_try
="$ac_compile"
16592 case "(($ac_try" in
16593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_compile") 2>conftest.er1
16599 grep -v '^ *+' conftest.er1 >conftest.err
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } && {
16604 test -z "$ac_c_werror_flag" ||
16605 test ! -s conftest.err
16606 } && test -s conftest.$ac_objext; then
16608 cat >>confdefs.h <<\_ACEOF
16609 #define HAVE_FSYNC 1
16612 { echo "$as_me:$LINENO: result: yes" >&5
16613 echo "${ECHO_T}yes" >&6; }
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 { echo "$as_me:$LINENO: result: no" >&5
16619 echo "${ECHO_T}no" >&6; }
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16625 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 #include <unistd.h>
16641 rm -f conftest.$ac_objext
16642 if { (ac_try="$ac_compile"
16643 case "(($ac_try" in
16644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16645 *) ac_try_echo
=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_compile") 2>conftest.er1
16650 grep -v '^ *+' conftest.er1
>conftest.err
16652 cat conftest.err
>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && {
16655 test -z "$ac_c_werror_flag" ||
16656 test ! -s conftest.err
16657 } && test -s conftest.
$ac_objext; then
16659 cat >>confdefs.h
<<\_ACEOF
16660 #define HAVE_FDATASYNC 1
16663 { echo "$as_me:$LINENO: result: yes" >&5
16664 echo "${ECHO_T}yes" >&6; }
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.
$ac_ext >&5
16669 { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16675 { echo "$as_me:$LINENO: checking for epoll" >&5
16676 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16677 cat >conftest.
$ac_ext <<_ACEOF
16680 cat confdefs.h
>>conftest.
$ac_ext
16681 cat >>conftest.
$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 #include <sys/epoll.h>
16687 void *x=epoll_create
16692 rm -f conftest.
$ac_objext
16693 if { (ac_try
="$ac_compile"
16694 case "(($ac_try" in
16695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest.$ac_objext; then
16710 cat >>confdefs.h <<\_ACEOF
16711 #define HAVE_EPOLL 1
16714 { echo "$as_me:$LINENO: result: yes" >&5
16715 echo "${ECHO_T}yes" >&6; }
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 { echo "$as_me:$LINENO: result: no" >&5
16721 echo "${ECHO_T}no" >&6; }
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: checking for kqueue" >&5
16727 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16728 cat >conftest.$ac_ext <<_ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16735 #include <sys/types.h>
16736 #include <sys/event.h>
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16750 *) ac_try_echo
=$ac_try;;
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1
>conftest.err
16757 cat conftest.err
>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.
$ac_objext; then
16764 cat >>confdefs.h
<<\_ACEOF
16765 #define HAVE_KQUEUE 1
16768 { echo "$as_me:$LINENO: result: yes" >&5
16769 echo "${ECHO_T}yes" >&6; }
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.
$ac_ext >&5
16774 { echo "$as_me:$LINENO: result: no" >&5
16775 echo "${ECHO_T}no" >&6; }
16779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16780 # On some systems (eg. FreeBSD 5), we would find a definition of the
16781 # functions ctermid_r, setgroups in the library, but no prototype
16782 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16783 # address to avoid compiler warnings and potential miscompilations
16784 # because of the missing prototypes.
16786 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16787 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16788 cat >conftest.
$ac_ext <<_ACEOF
16791 cat confdefs.h
>>conftest.
$ac_ext
16792 cat >>conftest.
$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 #include "confdefs.h"
16801 void* p = ctermid_r
16806 rm -f conftest.
$ac_objext
16807 if { (ac_try
="$ac_compile"
16808 case "(($ac_try" in
16809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_compile") 2>conftest.er1
16815 grep -v '^ *+' conftest.er1 >conftest.err
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } && {
16820 test -z "$ac_c_werror_flag" ||
16821 test ! -s conftest.err
16822 } && test -s conftest.$ac_objext; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_CTERMID_R 1
16828 { echo "$as_me:$LINENO: result: yes" >&5
16829 echo "${ECHO_T}yes" >&6; }
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 { echo "$as_me:$LINENO: result: no" >&5
16835 echo "${ECHO_T}no" >&6; }
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 { echo "$as_me:$LINENO: checking for flock" >&5
16842 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16850 #include "confdefs.h"
16851 #include <sys/file.h>
16861 rm -f conftest.$ac_objext
16862 if { (ac_try="$ac_compile"
16863 case "(($ac_try" in
16864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16865 *) ac_try_echo
=$ac_try;;
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_compile") 2>conftest.er1
16870 grep -v '^ *+' conftest.er1
>conftest.err
16872 cat conftest.err
>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest.
$ac_objext; then
16879 cat >>confdefs.h
<<\_ACEOF
16880 #define HAVE_FLOCK 1
16883 { echo "$as_me:$LINENO: result: yes" >&5
16884 echo "${ECHO_T}yes" >&6; }
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.
$ac_ext >&5
16889 { echo "$as_me:$LINENO: result: no" >&5
16890 echo "${ECHO_T}no" >&6; }
16894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16896 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16897 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16898 cat >conftest.
$ac_ext <<_ACEOF
16901 cat confdefs.h
>>conftest.
$ac_ext
16902 cat >>conftest.
$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 #include "confdefs.h"
16906 #include <unistd.h>
16911 void* p = getpagesize
16916 rm -f conftest.
$ac_objext
16917 if { (ac_try
="$ac_compile"
16918 case "(($ac_try" in
16919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_compile") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest.$ac_objext; then
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_GETPAGESIZE 1
16938 { echo "$as_me:$LINENO: result: yes" >&5
16939 echo "${ECHO_T}yes" >&6; }
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 { echo "$as_me:$LINENO: result: no" >&5
16945 echo "${ECHO_T}no" >&6; }
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 for ac_prog in true
16953 # Extract the first word of "$ac_prog", so it can be a program name with args.
16954 set dummy $ac_prog; ac_word=$2
16955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16957 if test "${ac_cv_prog_TRUE+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16960 if test -n "$TRUE"; then
16961 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16964 for as_dir in $PATH
16967 test -z "$as_dir" && as_dir=.
16968 for ac_exec_ext in '' $ac_executable_extensions; do
16969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16970 ac_cv_prog_TRUE="$ac_prog"
16971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16980 TRUE=$ac_cv_prog_TRUE
16981 if test -n "$TRUE"; then
16982 { echo "$as_me:$LINENO: result: $TRUE" >&5
16983 echo "${ECHO_T}$TRUE" >&6; }
16985 { echo "$as_me:$LINENO: result: no" >&5
16986 echo "${ECHO_T}no" >&6; }
16990 test -n "$TRUE" && break
16992 test -n "$TRUE" || TRUE="/bin/true"
16995 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16996 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16997 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 ac_check_lib_save_LIBS=$LIBS
17002 cat >conftest.$ac_ext <<_ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17019 return inet_aton ();
17024 rm -f conftest.$ac_objext conftest$ac_exeext
17025 if { (ac_try="$ac_link"
17026 case "(($ac_try" in
17027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17028 *) ac_try_echo
=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_link") 2>conftest.er1
17033 grep -v '^ *+' conftest.er1
>conftest.err
17035 cat conftest.err
>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && {
17038 test -z "$ac_c_werror_flag" ||
17039 test ! -s conftest.err
17040 } && test -s conftest
$ac_exeext &&
17041 $as_test_x conftest
$ac_exeext; then
17042 ac_cv_lib_c_inet_aton
=yes
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.
$ac_ext >&5
17047 ac_cv_lib_c_inet_aton
=no
17050 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17051 conftest
$ac_exeext conftest.
$ac_ext
17052 LIBS
=$ac_check_lib_save_LIBS
17054 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17055 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17056 if test $ac_cv_lib_c_inet_aton = yes; then
17060 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17061 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17062 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 ac_check_lib_save_LIBS
=$LIBS
17066 LIBS
="-lresolv $LIBS"
17067 cat >conftest.
$ac_ext <<_ACEOF
17070 cat confdefs.h
>>conftest.
$ac_ext
17071 cat >>conftest.
$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17084 return inet_aton ();
17089 rm -f conftest.
$ac_objext conftest
$ac_exeext
17090 if { (ac_try
="$ac_link"
17091 case "(($ac_try" in
17092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext &&
17106 $as_test_x conftest$ac_exeext; then
17107 ac_cv_lib_resolv_inet_aton=yes
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_lib_resolv_inet_aton=no
17115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17116 conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17119 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17120 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17121 if test $ac_cv_lib_resolv_inet_aton = yes; then
17122 cat >>confdefs.h <<_ACEOF
17123 #define HAVE_LIBRESOLV 1
17126 LIBS="-lresolv $LIBS"
17134 # On Tru64, chflags seems to be present, but calling it will
17136 { echo "$as_me:$LINENO: checking for chflags" >&5
17137 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17138 if test "$cross_compiling" = yes; then
17139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17140 See \`config.log
' for more details." >&5
17141 echo "$as_me: error: cannot run test program while cross compiling
17142 See \`config.log' for more details.
" >&2;}
17143 { (exit 1); exit 1; }; }
17145 cat >conftest.$ac_ext <<_ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17152 #include <sys/stat.h>
17153 #include <unistd.h>
17154 int main(int argc, char*argv[])
17156 if(chflags(argv[0], 0) != 0)
17162 rm -f conftest$ac_exeext
17163 if { (ac_try="$ac_link"
17164 case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_link") 2>&5
17171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17181 (exit $ac_status); }; }; then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_CHFLAGS 1
17187 { echo "$as_me:$LINENO: result
: yes" >&5
17188 echo "${ECHO_T}yes" >&6; }
17190 echo "$as_me: program exited with status
$ac_status" >&5
17191 echo "$as_me: failed program was
:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 ( exit $ac_status )
17195 { echo "$as_me:$LINENO: result
: no
" >&5
17196 echo "${ECHO_T}no
" >&6; }
17199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17204 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
17205 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
17206 if test "$cross_compiling" = yes; then
17207 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
17208 See \
`config.log' for more details." >&5
17209 echo "$as_me: error: cannot run test program while cross compiling
17210 See \`config.log
' for more details." >&2;}
17211 { (exit 1); exit 1; }; }
17213 cat >conftest.$ac_ext <<_ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17220 #include <sys/stat.h>
17221 #include <unistd.h>
17222 int main(int argc, char*argv[])
17224 if(lchflags(argv[0], 0) != 0)
17230 rm -f conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
17241 { (case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_try") 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17251 cat >>confdefs.h <<\_ACEOF
17252 #define HAVE_LCHFLAGS 1
17255 { echo "$as_me:$LINENO: result: yes" >&5
17256 echo "${ECHO_T}yes" >&6; }
17258 echo "$as_me: program exited with status $ac_status" >&5
17259 echo "$as_me: failed program was:" >&5
17260 sed 's
/^
/|
/' conftest.$ac_ext >&5
17262 ( exit $ac_status )
17263 { echo "$as_me:$LINENO: result: no" >&5
17264 echo "${ECHO_T}no" >&6; }
17267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17272 case $ac_sys_system/$ac_sys_release in
17274 _CUR_CFLAGS="${CFLAGS}"
17275 _CUR_LDFLAGS="${LDFLAGS}"
17276 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17277 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17281 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17282 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17283 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 ac_check_lib_save_LIBS=$LIBS
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17301 char inflateCopy ();
17305 return inflateCopy ();
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17319 grep -v '^
*+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext &&
17327 $as_test_x conftest$ac_exeext; then
17328 ac_cv_lib_z_inflateCopy=yes
17330 echo "$as_me: failed program was:" >&5
17331 sed 's
/^
/|
/' conftest.$ac_ext >&5
17333 ac_cv_lib_z_inflateCopy=no
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337 conftest$ac_exeext conftest.$ac_ext
17338 LIBS=$ac_check_lib_save_LIBS
17340 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17341 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17342 if test $ac_cv_lib_z_inflateCopy = yes; then
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_ZLIB_COPY 1
17351 case $ac_sys_system/$ac_sys_release in
17353 CFLAGS="${_CUR_CFLAGS}"
17354 LDFLAGS="${_CUR_LDFLAGS}"
17358 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17359 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17360 cat >conftest.$ac_ext <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17367 #include "confdefs.h"
17373 void* p = hstrerror; hstrerror(0)
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (ac_try="$ac_link"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_link") 2>conftest.er1
17387 grep -v '^
*+' conftest.er1 >conftest.err
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest$ac_exeext &&
17395 $as_test_x conftest$ac_exeext; then
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_HSTRERROR 1
17401 { echo "$as_me:$LINENO: result: yes" >&5
17402 echo "${ECHO_T}yes" >&6; }
17404 echo "$as_me: failed program was:" >&5
17405 sed 's
/^
/|
/' conftest.$ac_ext >&5
17407 { echo "$as_me:$LINENO: result: no" >&5
17408 echo "${ECHO_T}no" >&6; }
17412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17413 conftest$ac_exeext conftest.$ac_ext
17415 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17416 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17424 #include "confdefs.h"
17425 #include <sys/types.h>
17426 #include <sys/socket.h>
17427 #include <netinet/in.h>
17428 #include <arpa/inet.h>
17433 void* p = inet_aton;inet_aton(0,0)
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_link") 2>conftest.er1
17447 grep -v '^
*+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && {
17452 test -z "$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 } && test -s conftest$ac_exeext &&
17455 $as_test_x conftest$ac_exeext; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_INET_ATON 1
17461 { echo "$as_me:$LINENO: result: yes" >&5
17462 echo "${ECHO_T}yes" >&6; }
17464 echo "$as_me: failed program was:" >&5
17465 sed 's
/^
/|
/' conftest.$ac_ext >&5
17467 { echo "$as_me:$LINENO: result: no" >&5
17468 echo "${ECHO_T}no" >&6; }
17472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17473 conftest$ac_exeext conftest.$ac_ext
17475 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17476 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 #include "confdefs.h"
17485 #include <sys/types.h>
17486 #include <sys/socket.h>
17487 #include <netinet/in.h>
17488 #include <arpa/inet.h>
17493 void* p = inet_pton
17498 rm -f conftest.$ac_objext
17499 if { (ac_try="$ac_compile"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17507 grep -v '^
*+' conftest.er1 >conftest.err
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } && {
17512 test -z "$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 } && test -s conftest.$ac_objext; then
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_INET_PTON 1
17520 { echo "$as_me:$LINENO: result: yes" >&5
17521 echo "${ECHO_T}yes" >&6; }
17523 echo "$as_me: failed program was:" >&5
17524 sed 's
/^
/|
/' conftest.$ac_ext >&5
17526 { echo "$as_me:$LINENO: result: no" >&5
17527 echo "${ECHO_T}no" >&6; }
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 # On some systems, setgroups is in unistd.h, on others, in grp.h
17534 { echo "$as_me:$LINENO: checking for setgroups" >&5
17535 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17543 #include "confdefs.h"
17544 #include <unistd.h>
17552 void* p = setgroups
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17566 grep -v '^
*+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_SETGROUPS 1
17579 { echo "$as_me:$LINENO: result: yes" >&5
17580 echo "${ECHO_T}yes" >&6; }
17582 echo "$as_me: failed program was:" >&5
17583 sed 's
/^
/|
/' conftest.$ac_ext >&5
17585 { echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6; }
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 # check for openpty and forkpty
17595 for ac_func in openpty
17597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 cat >conftest.$ac_ext <<_ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17611 #define $ac_func innocuous_$ac_func
17613 /* System header to define __stub macros and hopefully few prototypes,
17614 which can conflict with char $ac_func (); below.
17615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17616 <limits.h> exists even on freestanding compilers. */
17619 # include <limits.h>
17621 # include <assert.h>
17626 /* Override any GCC internal prototype to avoid an error.
17627 Use char because int might match the return type of a GCC
17628 builtin and then its argument prototype would still apply. */
17633 /* The GNU C library defines this for functions which it implements
17634 to always fail with ENOSYS. Some functions are actually named
17635 something starting with __ and the normal name is an alias. */
17636 #if defined __stub_$ac_func || defined __stub___$ac_func
17643 return $ac_func ();
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_link") 2>conftest.er1
17657 grep -v '^
*+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } && {
17662 test -z "$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 } && test -s conftest$ac_exeext &&
17665 $as_test_x conftest$ac_exeext; then
17666 eval "$as_ac_var=yes"
17668 echo "$as_me: failed program was:" >&5
17669 sed 's
/^
/|
/' conftest.$ac_ext >&5
17671 eval "$as_ac_var=no"
17674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675 conftest$ac_exeext conftest.$ac_ext
17677 ac_res=`eval echo '${'$as_ac_var'}'`
17678 { echo "$as_me:$LINENO: result: $ac_res" >&5
17679 echo "${ECHO_T}$ac_res" >&6; }
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17687 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17688 if test "${ac_cv_lib_util_openpty+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-lutil $LIBS"
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17700 /* Override any GCC internal prototype to avoid an error.
17701 Use char because int might match the return type of a GCC
17702 builtin and then its argument prototype would still apply. */
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (ac_try="$ac_link"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_link") 2>conftest.er1
17724 grep -v '^
*+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest$ac_exeext &&
17732 $as_test_x conftest$ac_exeext; then
17733 ac_cv_lib_util_openpty=yes
17735 echo "$as_me: failed program was:" >&5
17736 sed 's
/^
/|
/' conftest.$ac_ext >&5
17738 ac_cv_lib_util_openpty=no
17741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17743 LIBS=$ac_check_lib_save_LIBS
17745 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17746 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17747 if test $ac_cv_lib_util_openpty = yes; then
17748 cat >>confdefs.h <<\_ACEOF
17749 #define HAVE_OPENPTY 1
17751 LIBS="$LIBS -lutil"
17753 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17754 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17755 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 ac_check_lib_save_LIBS=$LIBS
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 /* Override any GCC internal prototype to avoid an error.
17768 Use char because int might match the return type of a GCC
17769 builtin and then its argument prototype would still apply. */
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17791 grep -v '^
*+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest$ac_exeext &&
17799 $as_test_x conftest$ac_exeext; then
17800 ac_cv_lib_bsd_openpty=yes
17802 echo "$as_me: failed program was:" >&5
17803 sed 's
/^
/|
/' conftest.$ac_ext >&5
17805 ac_cv_lib_bsd_openpty=no
17808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17809 conftest$ac_exeext conftest.$ac_ext
17810 LIBS=$ac_check_lib_save_LIBS
17812 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17813 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17814 if test $ac_cv_lib_bsd_openpty = yes; then
17815 cat >>confdefs.h <<\_ACEOF
17816 #define HAVE_OPENPTY 1
17829 for ac_func in forkpty
17831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 cat >conftest.$ac_ext <<_ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17845 #define $ac_func innocuous_$ac_func
17847 /* System header to define __stub macros and hopefully few prototypes,
17848 which can conflict with char $ac_func (); below.
17849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850 <limits.h> exists even on freestanding compilers. */
17853 # include <limits.h>
17855 # include <assert.h>
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17867 /* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870 #if defined __stub_$ac_func || defined __stub___$ac_func
17877 return $ac_func ();
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17891 grep -v '^
*+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest$ac_exeext &&
17899 $as_test_x conftest$ac_exeext; then
17900 eval "$as_ac_var=yes"
17902 echo "$as_me: failed program was:" >&5
17903 sed 's
/^
/|
/' conftest.$ac_ext >&5
17905 eval "$as_ac_var=no"
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909 conftest$ac_exeext conftest.$ac_ext
17911 ac_res=`eval echo '${'$as_ac_var'}'`
17912 { echo "$as_me:$LINENO: result: $ac_res" >&5
17913 echo "${ECHO_T}$ac_res" >&6; }
17914 if test `eval echo '${'$as_ac_var'}'` = yes; then
17915 cat >>confdefs.h <<_ACEOF
17916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17920 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17921 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17922 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 ac_check_lib_save_LIBS=$LIBS
17926 LIBS="-lutil $LIBS"
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 /* Override any GCC internal prototype to avoid an error.
17935 Use char because int might match the return type of a GCC
17936 builtin and then its argument prototype would still apply. */
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (ac_try="$ac_link"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_link") 2>conftest.er1
17958 grep -v '^
*+' conftest.er1 >conftest.err
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } && {
17963 test -z "$ac_c_werror_flag" ||
17964 test ! -s conftest.err
17965 } && test -s conftest$ac_exeext &&
17966 $as_test_x conftest$ac_exeext; then
17967 ac_cv_lib_util_forkpty=yes
17969 echo "$as_me: failed program was:" >&5
17970 sed 's
/^
/|
/' conftest.$ac_ext >&5
17972 ac_cv_lib_util_forkpty=no
17975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17976 conftest$ac_exeext conftest.$ac_ext
17977 LIBS=$ac_check_lib_save_LIBS
17979 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17980 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17981 if test $ac_cv_lib_util_forkpty = yes; then
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE_FORKPTY 1
17985 LIBS="$LIBS -lutil"
17987 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17988 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17989 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 ac_check_lib_save_LIBS=$LIBS
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18001 /* Override any GCC internal prototype to avoid an error.
18002 Use char because int might match the return type of a GCC
18003 builtin and then its argument prototype would still apply. */
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18025 grep -v '^
*+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest$ac_exeext &&
18033 $as_test_x conftest$ac_exeext; then
18034 ac_cv_lib_bsd_forkpty=yes
18036 echo "$as_me: failed program was:" >&5
18037 sed 's
/^
/|
/' conftest.$ac_ext >&5
18039 ac_cv_lib_bsd_forkpty=no
18042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18044 LIBS=$ac_check_lib_save_LIBS
18046 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18047 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18048 if test $ac_cv_lib_bsd_forkpty = yes; then
18049 cat >>confdefs.h <<\_ACEOF
18050 #define HAVE_FORKPTY 1
18065 for ac_func in memmove
18067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18081 #define $ac_func innocuous_$ac_func
18083 /* System header to define __stub macros and hopefully few prototypes,
18084 which can conflict with char $ac_func (); below.
18085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18086 <limits.h> exists even on freestanding compilers. */
18089 # include <limits.h>
18091 # include <assert.h>
18096 /* Override any GCC internal prototype to avoid an error.
18097 Use char because int might match the return type of a GCC
18098 builtin and then its argument prototype would still apply. */
18103 /* The GNU C library defines this for functions which it implements
18104 to always fail with ENOSYS. Some functions are actually named
18105 something starting with __ and the normal name is an alias. */
18106 #if defined __stub_$ac_func || defined __stub___$ac_func
18113 return $ac_func ();
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (ac_try="$ac_link"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_link") 2>conftest.er1
18127 grep -v '^
*+' conftest.er1 >conftest.err
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest$ac_exeext &&
18135 $as_test_x conftest$ac_exeext; then
18136 eval "$as_ac_var=yes"
18138 echo "$as_me: failed program was:" >&5
18139 sed 's
/^
/|
/' conftest.$ac_ext >&5
18141 eval "$as_ac_var=no"
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145 conftest$ac_exeext conftest.$ac_ext
18147 ac_res=`eval echo '${'$as_ac_var'}'`
18148 { echo "$as_me:$LINENO: result: $ac_res" >&5
18149 echo "${ECHO_T}$ac_res" >&6; }
18150 if test `eval echo '${'$as_ac_var'}'` = yes; then
18151 cat >>confdefs.h <<_ACEOF
18152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18159 # check for long file support functions
18166 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18182 #define $ac_func innocuous_$ac_func
18184 /* System header to define __stub macros and hopefully few prototypes,
18185 which can conflict with char $ac_func (); below.
18186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18187 <limits.h> exists even on freestanding compilers. */
18190 # include <limits.h>
18192 # include <assert.h>
18197 /* Override any GCC internal prototype to avoid an error.
18198 Use char because int might match the return type of a GCC
18199 builtin and then its argument prototype would still apply. */
18204 /* The GNU C library defines this for functions which it implements
18205 to always fail with ENOSYS. Some functions are actually named
18206 something starting with __ and the normal name is an alias. */
18207 #if defined __stub_$ac_func || defined __stub___$ac_func
18214 return $ac_func ();
18219 rm -f conftest.$ac_objext conftest$ac_exeext
18220 if { (ac_try="$ac_link"
18221 case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_link") 2>conftest.er1
18228 grep -v '^
*+' conftest.er1 >conftest.err
18230 cat conftest.err >&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } && {
18233 test -z "$ac_c_werror_flag" ||
18234 test ! -s conftest.err
18235 } && test -s conftest$ac_exeext &&
18236 $as_test_x conftest$ac_exeext; then
18237 eval "$as_ac_var=yes"
18239 echo "$as_me: failed program was:" >&5
18240 sed 's
/^
/|
/' conftest.$ac_ext >&5
18242 eval "$as_ac_var=no"
18245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18246 conftest$ac_exeext conftest.$ac_ext
18248 ac_res=`eval echo '${'$as_ac_var'}'`
18249 { echo "$as_me:$LINENO: result: $ac_res" >&5
18250 echo "${ECHO_T}$ac_res" >&6; }
18251 if test `eval echo '${'$as_ac_var'}'` = yes; then
18252 cat >>confdefs.h <<_ACEOF
18253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18263 for ac_func in dup2 getcwd strdup
18265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18279 #define $ac_func innocuous_$ac_func
18281 /* System header to define __stub macros and hopefully few prototypes,
18282 which can conflict with char $ac_func (); below.
18283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18284 <limits.h> exists even on freestanding compilers. */
18287 # include <limits.h>
18289 # include <assert.h>
18294 /* Override any GCC internal prototype to avoid an error.
18295 Use char because int might match the return type of a GCC
18296 builtin and then its argument prototype would still apply. */
18301 /* The GNU C library defines this for functions which it implements
18302 to always fail with ENOSYS. Some functions are actually named
18303 something starting with __ and the normal name is an alias. */
18304 #if defined __stub_$ac_func || defined __stub___$ac_func
18311 return $ac_func ();
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18325 grep -v '^
*+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } && {
18330 test -z "$ac_c_werror_flag" ||
18331 test ! -s conftest.err
18332 } && test -s conftest$ac_exeext &&
18333 $as_test_x conftest$ac_exeext; then
18334 eval "$as_ac_var=yes"
18336 echo "$as_me: failed program was:" >&5
18337 sed 's
/^
/|
/' conftest.$ac_ext >&5
18339 eval "$as_ac_var=no"
18342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18343 conftest$ac_exeext conftest.$ac_ext
18345 ac_res=`eval echo '${'$as_ac_var'}'`
18346 { echo "$as_me:$LINENO: result: $ac_res" >&5
18347 echo "${ECHO_T}$ac_res" >&6; }
18348 if test `eval echo '${'$as_ac_var'}'` = yes; then
18349 cat >>confdefs.h <<_ACEOF
18350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18354 case " $LIBOBJS " in
18355 *" $ac_func.$ac_objext "* ) ;;
18356 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18365 for ac_func in getpgrp
18367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 cat >conftest.$ac_ext <<_ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18381 #define $ac_func innocuous_$ac_func
18383 /* System header to define __stub macros and hopefully few prototypes,
18384 which can conflict with char $ac_func (); below.
18385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18386 <limits.h> exists even on freestanding compilers. */
18389 # include <limits.h>
18391 # include <assert.h>
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18403 /* The GNU C library defines this for functions which it implements
18404 to always fail with ENOSYS. Some functions are actually named
18405 something starting with __ and the normal name is an alias. */
18406 #if defined __stub_$ac_func || defined __stub___$ac_func
18413 return $ac_func ();
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_link") 2>conftest.er1
18427 grep -v '^
*+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest$ac_exeext &&
18435 $as_test_x conftest$ac_exeext; then
18436 eval "$as_ac_var=yes"
18438 echo "$as_me: failed program was:" >&5
18439 sed 's
/^
/|
/' conftest.$ac_ext >&5
18441 eval "$as_ac_var=no"
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18445 conftest$ac_exeext conftest.$ac_ext
18447 ac_res=`eval echo '${'$as_ac_var'}'`
18448 { echo "$as_me:$LINENO: result: $ac_res" >&5
18449 echo "${ECHO_T}$ac_res" >&6; }
18450 if test `eval echo '${'$as_ac_var'}'` = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18454 cat >conftest.$ac_ext <<_ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18460 #include <unistd.h>
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_compile") 2>conftest.er1
18478 grep -v '^
*+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest.$ac_objext; then
18487 cat >>confdefs.h <<\_ACEOF
18488 #define GETPGRP_HAVE_ARG 1
18493 echo "$as_me: failed program was:" >&5
18494 sed 's
/^
/|
/' conftest.$ac_ext >&5
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18505 for ac_func in setpgrp
18507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 cat >conftest.$ac_ext <<_ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18521 #define $ac_func innocuous_$ac_func
18523 /* System header to define __stub macros and hopefully few prototypes,
18524 which can conflict with char $ac_func (); below.
18525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526 <limits.h> exists even on freestanding compilers. */
18529 # include <limits.h>
18531 # include <assert.h>
18536 /* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18543 /* The GNU C library defines this for functions which it implements
18544 to always fail with ENOSYS. Some functions are actually named
18545 something starting with __ and the normal name is an alias. */
18546 #if defined __stub_$ac_func || defined __stub___$ac_func
18553 return $ac_func ();
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (ac_try="$ac_link"
18560 case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18567 grep -v '^
*+' conftest.er1 >conftest.err
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest$ac_exeext &&
18575 $as_test_x conftest$ac_exeext; then
18576 eval "$as_ac_var=yes"
18578 echo "$as_me: failed program was:" >&5
18579 sed 's
/^
/|
/' conftest.$ac_ext >&5
18581 eval "$as_ac_var=no"
18584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18585 conftest$ac_exeext conftest.$ac_ext
18587 ac_res=`eval echo '${'$as_ac_var'}'`
18588 { echo "$as_me:$LINENO: result: $ac_res" >&5
18589 echo "${ECHO_T}$ac_res" >&6; }
18590 if test `eval echo '${'$as_ac_var'}'` = yes; then
18591 cat >>confdefs.h <<_ACEOF
18592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600 #include <unistd.h>
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18618 grep -v '^
*+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest.$ac_objext; then
18627 cat >>confdefs.h <<\_ACEOF
18628 #define SETPGRP_HAVE_ARG 1
18633 echo "$as_me: failed program was:" >&5
18634 sed 's
/^
/|
/' conftest.$ac_ext >&5
18639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 for ac_func in gettimeofday
18647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18661 #define $ac_func innocuous_$ac_func
18663 /* System header to define __stub macros and hopefully few prototypes,
18664 which can conflict with char $ac_func (); below.
18665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18666 <limits.h> exists even on freestanding compilers. */
18669 # include <limits.h>
18671 # include <assert.h>
18676 /* Override any GCC internal prototype to avoid an error.
18677 Use char because int might match the return type of a GCC
18678 builtin and then its argument prototype would still apply. */
18683 /* The GNU C library defines this for functions which it implements
18684 to always fail with ENOSYS. Some functions are actually named
18685 something starting with __ and the normal name is an alias. */
18686 #if defined __stub_$ac_func || defined __stub___$ac_func
18693 return $ac_func ();
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (ac_try="$ac_link"
18700 case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_link") 2>conftest.er1
18707 grep -v '^
*+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } && {
18712 test -z "$ac_c_werror_flag" ||
18713 test ! -s conftest.err
18714 } && test -s conftest$ac_exeext &&
18715 $as_test_x conftest$ac_exeext; then
18716 eval "$as_ac_var=yes"
18718 echo "$as_me: failed program was:" >&5
18719 sed 's
/^
/|
/' conftest.$ac_ext >&5
18721 eval "$as_ac_var=no"
18724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18725 conftest$ac_exeext conftest.$ac_ext
18727 ac_res=`eval echo '${'$as_ac_var'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 if test `eval echo '${'$as_ac_var'}'` = yes; then
18731 cat >>confdefs.h <<_ACEOF
18732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18734 cat >conftest.$ac_ext <<_ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 #include <sys/time.h>
18744 gettimeofday((struct timeval*)0,(struct timezone*)0);
18749 rm -f conftest.$ac_objext
18750 if { (ac_try="$ac_compile"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_compile") 2>conftest.er1
18758 grep -v '^
*+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } && {
18763 test -z "$ac_c_werror_flag" ||
18764 test ! -s conftest.err
18765 } && test -s conftest.$ac_objext; then
18768 echo "$as_me: failed program was:" >&5
18769 sed 's
/^
/|
/' conftest.$ac_ext >&5
18772 cat >>confdefs.h <<\_ACEOF
18773 #define GETTIMEOFDAY_NO_TZ 1
18779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18785 { echo "$as_me:$LINENO: checking for major" >&5
18786 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18794 #if defined(MAJOR_IN_MKDEV)
18795 #include <sys/mkdev.h>
18796 #elif defined(MAJOR_IN_SYSMACROS)
18797 #include <sys/sysmacros.h>
18799 #include <sys/types.h>
18806 makedev(major(0),minor(0));
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (ac_try="$ac_link"
18814 case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_link") 2>conftest.er1
18821 grep -v '^
*+' conftest.er1 >conftest.err
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } && {
18826 test -z "$ac_c_werror_flag" ||
18827 test ! -s conftest.err
18828 } && test -s conftest$ac_exeext &&
18829 $as_test_x conftest$ac_exeext; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define HAVE_DEVICE_MACROS 1
18836 { echo "$as_me:$LINENO: result: yes" >&5
18837 echo "${ECHO_T}yes" >&6; }
18840 echo "$as_me: failed program was:" >&5
18841 sed 's
/^
/|
/' conftest.$ac_ext >&5
18844 { echo "$as_me:$LINENO: result: no" >&5
18845 echo "${ECHO_T}no" >&6; }
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18852 # On OSF/1 V5.1, getaddrinfo is available, but a define
18853 # for [no]getaddrinfo in netdb.h.
18854 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18855 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18863 #include <sys/types.h>
18864 #include <sys/socket.h>
18872 getaddrinfo(NULL, NULL, NULL, NULL);
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_link") 2>conftest.er1
18887 grep -v '^
*+' conftest.er1 >conftest.err
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } && {
18892 test -z "$ac_c_werror_flag" ||
18893 test ! -s conftest.err
18894 } && test -s conftest$ac_exeext &&
18895 $as_test_x conftest$ac_exeext; then
18897 { echo "$as_me:$LINENO: result: yes" >&5
18898 echo "${ECHO_T}yes" >&6; }
18899 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18900 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18901 if test "$cross_compiling" = yes; then
18902 { echo "$as_me:$LINENO: result: buggy" >&5
18903 echo "${ECHO_T}buggy" >&6; }
18904 buggygetaddrinfo=yes
18906 cat >conftest.$ac_ext <<_ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18913 #include <sys/types.h>
18915 #include <string.h>
18916 #include <sys/socket.h>
18917 #include <netinet/in.h>
18921 int passive, gaierr, inet4 = 0, inet6 = 0;
18922 struct addrinfo hints, *ai, *aitop;
18923 char straddr[INET6_ADDRSTRLEN], strport[16];
18925 for (passive = 0; passive <= 1; passive++) {
18926 memset(&hints, 0, sizeof(hints));
18927 hints.ai_family = AF_UNSPEC;
18928 hints.ai_flags = passive ? AI_PASSIVE : 0;
18929 hints.ai_socktype = SOCK_STREAM;
18930 hints.ai_protocol = IPPROTO_TCP;
18931 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18932 (void)gai_strerror(gaierr);
18935 for (ai = aitop; ai; ai = ai->ai_next) {
18936 if (ai->ai_addr == NULL ||
18937 ai->ai_addrlen == 0 ||
18938 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18939 straddr, sizeof(straddr), strport, sizeof(strport),
18940 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18943 switch (ai->ai_family) {
18945 if (strcmp(strport, "54321") != 0) {
18949 if (strcmp(straddr, "0.0.0.0") != 0) {
18953 if (strcmp(straddr, "127.0.0.1") != 0) {
18960 if (strcmp(strport, "54321") != 0) {
18964 if (strcmp(straddr, "::") != 0) {
18968 if (strcmp(straddr, "::1") != 0) {
18978 /* another family support? */
18984 if (!(inet4 == 0 || inet4 == 2))
18986 if (!(inet6 == 0 || inet6 == 2))
18990 freeaddrinfo(aitop);
18995 freeaddrinfo(aitop);
19000 rm -f conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 { echo "$as_me:$LINENO: result: good" >&5
19021 echo "${ECHO_T}good" >&6; }
19022 buggygetaddrinfo=no
19024 echo "$as_me: program exited with status $ac_status" >&5
19025 echo "$as_me: failed program was:" >&5
19026 sed 's
/^
/|
/' conftest.$ac_ext >&5
19028 ( exit $ac_status )
19029 { echo "$as_me:$LINENO: result: buggy" >&5
19030 echo "${ECHO_T}buggy" >&6; }
19031 buggygetaddrinfo=yes
19033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19038 echo "$as_me: failed program was:" >&5
19039 sed 's
/^
/|
/' conftest.$ac_ext >&5
19042 { echo "$as_me:$LINENO: result: no" >&5
19043 echo "${ECHO_T}no" >&6; }
19044 buggygetaddrinfo=yes
19048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19049 conftest$ac_exeext conftest.$ac_ext
19051 if test "$buggygetaddrinfo" = "yes"; then
19052 if test "$ipv6" = "yes"; then
19053 echo 'Fatal
: You must get working getaddrinfo
() function.
'
19054 echo ' or you can specify
"--disable-ipv6"'.
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE_GETADDRINFO 1
19065 for ac_func in getnameinfo
19067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 cat >conftest.$ac_ext <<_ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19081 #define $ac_func innocuous_$ac_func
19083 /* System header to define __stub macros and hopefully few prototypes,
19084 which can conflict with char $ac_func (); below.
19085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19086 <limits.h> exists even on freestanding compilers. */
19089 # include <limits.h>
19091 # include <assert.h>
19096 /* Override any GCC internal prototype to avoid an error.
19097 Use char because int might match the return type of a GCC
19098 builtin and then its argument prototype would still apply. */
19103 /* The GNU C library defines this for functions which it implements
19104 to always fail with ENOSYS. Some functions are actually named
19105 something starting with __ and the normal name is an alias. */
19106 #if defined __stub_$ac_func || defined __stub___$ac_func
19113 return $ac_func ();
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19127 grep -v '^
*+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19136 eval "$as_ac_var=yes"
19138 echo "$as_me: failed program was:" >&5
19139 sed 's
/^
/|
/' conftest.$ac_ext >&5
19141 eval "$as_ac_var=no"
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19147 ac_res=`eval echo '${'$as_ac_var'}'`
19148 { echo "$as_me:$LINENO: result: $ac_res" >&5
19149 echo "${ECHO_T}$ac_res" >&6; }
19150 if test `eval echo '${'$as_ac_var'}'` = yes; then
19151 cat >>confdefs.h <<_ACEOF
19152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19159 # checks for structures
19160 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19161 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19162 if test "${ac_cv_header_time+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 #include <sys/types.h>
19172 #include <sys/time.h>
19178 if ((struct tm *) 0)
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19193 grep -v '^
*+' conftest.er1 >conftest.err
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest.$ac_objext; then
19201 ac_cv_header_time=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's
/^
/|
/' conftest.$ac_ext >&5
19206 ac_cv_header_time=no
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19212 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19213 if test $ac_cv_header_time = yes; then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define TIME_WITH_SYS_TIME 1
19221 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19222 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19223 if test "${ac_cv_struct_tm+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <sys/types.h>
19239 int *p = &tm.tm_sec;
19245 rm -f conftest.$ac_objext
19246 if { (ac_try="$ac_compile"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_compile") 2>conftest.er1
19254 grep -v '^
*+' conftest.er1 >conftest.err
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } && {
19259 test -z "$ac_c_werror_flag" ||
19260 test ! -s conftest.err
19261 } && test -s conftest.$ac_objext; then
19262 ac_cv_struct_tm=time.h
19264 echo "$as_me: failed program was:" >&5
19265 sed 's
/^
/|
/' conftest.$ac_ext >&5
19267 ac_cv_struct_tm=sys/time.h
19270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19273 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19274 if test $ac_cv_struct_tm = sys/time.h; then
19276 cat >>confdefs.h <<\_ACEOF
19277 #define TM_IN_SYS_TIME 1
19282 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19283 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19284 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 cat >conftest.$ac_ext <<_ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <sys/types.h>
19294 #include <$ac_cv_struct_tm>
19300 static struct tm ac_aggr;
19301 if (ac_aggr.tm_zone)
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_compile") 2>conftest.er1
19316 grep -v '^
*+' conftest.er1 >conftest.err
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } && {
19321 test -z "$ac_c_werror_flag" ||
19322 test ! -s conftest.err
19323 } && test -s conftest.$ac_objext; then
19324 ac_cv_member_struct_tm_tm_zone=yes
19326 echo "$as_me: failed program was:" >&5
19327 sed 's
/^
/|
/' conftest.$ac_ext >&5
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19335 #include <sys/types.h>
19336 #include <$ac_cv_struct_tm>
19342 static struct tm ac_aggr;
19343 if (sizeof ac_aggr.tm_zone)
19349 rm -f conftest.$ac_objext
19350 if { (ac_try="$ac_compile"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_compile") 2>conftest.er1
19358 grep -v '^
*+' conftest.er1 >conftest.err
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest.$ac_objext; then
19366 ac_cv_member_struct_tm_tm_zone=yes
19368 echo "$as_me: failed program was:" >&5
19369 sed 's
/^
/|
/' conftest.$ac_ext >&5
19371 ac_cv_member_struct_tm_tm_zone=no
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19380 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19381 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19383 cat >>confdefs.h <<_ACEOF
19384 #define HAVE_STRUCT_TM_TM_ZONE 1
19390 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE_TM_ZONE 1
19397 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19398 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19399 if test "${ac_cv_have_decl_tzname+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 cat >conftest.$ac_ext <<_ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19421 rm -f conftest.$ac_objext
19422 if { (ac_try="$ac_compile"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_compile") 2>conftest.er1
19430 grep -v '^
*+' conftest.er1 >conftest.err
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest.$ac_objext; then
19438 ac_cv_have_decl_tzname=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's
/^
/|
/' conftest.$ac_ext >&5
19443 ac_cv_have_decl_tzname=no
19446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19448 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19449 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19450 if test $ac_cv_have_decl_tzname = yes; then
19452 cat >>confdefs.h <<_ACEOF
19453 #define HAVE_DECL_TZNAME 1
19458 cat >>confdefs.h <<_ACEOF
19459 #define HAVE_DECL_TZNAME 0
19466 { echo "$as_me:$LINENO: checking for tzname" >&5
19467 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19468 if test "${ac_cv_var_tzname+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 #if !HAVE_DECL_TZNAME
19479 extern char *tzname[];
19485 return tzname[0][0];
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_link") 2>conftest.er1
19499 grep -v '^
*+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest$ac_exeext &&
19507 $as_test_x conftest$ac_exeext; then
19508 ac_cv_var_tzname=yes
19510 echo "$as_me: failed program was:" >&5
19511 sed 's
/^
/|
/' conftest.$ac_ext >&5
19513 ac_cv_var_tzname=no
19516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19517 conftest$ac_exeext conftest.$ac_ext
19519 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19520 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19521 if test $ac_cv_var_tzname = yes; then
19523 cat >>confdefs.h <<\_ACEOF
19524 #define HAVE_TZNAME 1
19530 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19531 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19532 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 $ac_includes_default
19545 static struct stat ac_aggr;
19546 if (ac_aggr.st_rdev)
19552 rm -f conftest.$ac_objext
19553 if { (ac_try="$ac_compile"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_compile") 2>conftest.er1
19561 grep -v '^
*+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest.$ac_objext; then
19569 ac_cv_member_struct_stat_st_rdev=yes
19571 echo "$as_me: failed program was:" >&5
19572 sed 's
/^
/|
/' conftest.$ac_ext >&5
19574 cat >conftest.$ac_ext <<_ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 $ac_includes_default
19584 static struct stat ac_aggr;
19585 if (sizeof ac_aggr.st_rdev)
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19600 grep -v '^
*+' conftest.er1 >conftest.err
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } && {
19605 test -z "$ac_c_werror_flag" ||
19606 test ! -s conftest.err
19607 } && test -s conftest.$ac_objext; then
19608 ac_cv_member_struct_stat_st_rdev=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's
/^
/|
/' conftest.$ac_ext >&5
19613 ac_cv_member_struct_stat_st_rdev=no
19616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19622 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19623 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19625 cat >>confdefs.h <<_ACEOF
19626 #define HAVE_STRUCT_STAT_ST_RDEV 1
19632 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19633 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19634 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 cat >conftest.$ac_ext <<_ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 $ac_includes_default
19647 static struct stat ac_aggr;
19648 if (ac_aggr.st_blksize)
19654 rm -f conftest.$ac_objext
19655 if { (ac_try="$ac_compile"
19656 case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_compile") 2>conftest.er1
19663 grep -v '^
*+' conftest.er1 >conftest.err
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest.$ac_objext; then
19671 ac_cv_member_struct_stat_st_blksize=yes
19673 echo "$as_me: failed program was:" >&5
19674 sed 's
/^
/|
/' conftest.$ac_ext >&5
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 $ac_includes_default
19686 static struct stat ac_aggr;
19687 if (sizeof ac_aggr.st_blksize)
19693 rm -f conftest.$ac_objext
19694 if { (ac_try="$ac_compile"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_compile") 2>conftest.er1
19702 grep -v '^
*+' conftest.er1 >conftest.err
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } && {
19707 test -z "$ac_c_werror_flag" ||
19708 test ! -s conftest.err
19709 } && test -s conftest.$ac_objext; then
19710 ac_cv_member_struct_stat_st_blksize=yes
19712 echo "$as_me: failed program was:" >&5
19713 sed 's
/^
/|
/' conftest.$ac_ext >&5
19715 ac_cv_member_struct_stat_st_blksize=no
19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19724 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19725 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19734 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19735 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19736 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 cat >conftest.$ac_ext <<_ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 $ac_includes_default
19749 static struct stat ac_aggr;
19750 if (ac_aggr.st_flags)
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19765 grep -v '^
*+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_cv_member_struct_stat_st_flags=yes
19775 echo "$as_me: failed program was:" >&5
19776 sed 's
/^
/|
/' conftest.$ac_ext >&5
19778 cat >conftest.$ac_ext <<_ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 $ac_includes_default
19788 static struct stat ac_aggr;
19789 if (sizeof ac_aggr.st_flags)
19795 rm -f conftest.$ac_objext
19796 if { (ac_try="$ac_compile"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_compile") 2>conftest.er1
19804 grep -v '^
*+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest.$ac_objext; then
19812 ac_cv_member_struct_stat_st_flags=yes
19814 echo "$as_me: failed program was:" >&5
19815 sed 's
/^
/|
/' conftest.$ac_ext >&5
19817 ac_cv_member_struct_stat_st_flags=no
19820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19826 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19827 if test $ac_cv_member_struct_stat_st_flags = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19836 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19837 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19838 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 $ac_includes_default
19851 static struct stat ac_aggr;
19852 if (ac_aggr.st_gen)
19858 rm -f conftest.$ac_objext
19859 if { (ac_try="$ac_compile"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_compile") 2>conftest.er1
19867 grep -v '^
*+' conftest.er1 >conftest.err
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest.$ac_objext; then
19875 ac_cv_member_struct_stat_st_gen=yes
19877 echo "$as_me: failed program was:" >&5
19878 sed 's
/^
/|
/' conftest.$ac_ext >&5
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 $ac_includes_default
19890 static struct stat ac_aggr;
19891 if (sizeof ac_aggr.st_gen)
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19906 grep -v '^
*+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_cv_member_struct_stat_st_gen=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's
/^
/|
/' conftest.$ac_ext >&5
19919 ac_cv_member_struct_stat_st_gen=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19928 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19929 if test $ac_cv_member_struct_stat_st_gen = yes; then
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_STRUCT_STAT_ST_GEN 1
19938 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19939 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19940 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19953 static struct stat ac_aggr;
19954 if (ac_aggr.st_birthtime)
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19969 grep -v '^
*+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_cv_member_struct_stat_st_birthtime=yes
19979 echo "$as_me: failed program was:" >&5
19980 sed 's
/^
/|
/' conftest.$ac_ext >&5
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19992 static struct stat ac_aggr;
19993 if (sizeof ac_aggr.st_birthtime)
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_compile") 2>conftest.er1
20008 grep -v '^
*+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest.$ac_objext; then
20016 ac_cv_member_struct_stat_st_birthtime=yes
20018 echo "$as_me: failed program was:" >&5
20019 sed 's
/^
/|
/' conftest.$ac_ext >&5
20021 ac_cv_member_struct_stat_st_birthtime=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20030 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20031 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20033 cat >>confdefs.h <<_ACEOF
20034 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20040 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20041 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20042 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 $ac_includes_default
20055 static struct stat ac_aggr;
20056 if (ac_aggr.st_blocks)
20062 rm -f conftest.$ac_objext
20063 if { (ac_try="$ac_compile"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_compile") 2>conftest.er1
20071 grep -v '^
*+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest.$ac_objext; then
20079 ac_cv_member_struct_stat_st_blocks=yes
20081 echo "$as_me: failed program was:" >&5
20082 sed 's
/^
/|
/' conftest.$ac_ext >&5
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20094 static struct stat ac_aggr;
20095 if (sizeof ac_aggr.st_blocks)
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compile") 2>conftest.er1
20110 grep -v '^
*+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest.$ac_objext; then
20118 ac_cv_member_struct_stat_st_blocks=yes
20120 echo "$as_me: failed program was:" >&5
20121 sed 's
/^
/|
/' conftest.$ac_ext >&5
20123 ac_cv_member_struct_stat_st_blocks=no
20126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20132 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20133 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20140 cat >>confdefs.h <<\_ACEOF
20141 #define HAVE_ST_BLOCKS 1
20145 case " $LIBOBJS " in
20146 *" fileblocks.$ac_objext "* ) ;;
20147 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20155 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20156 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20157 if test "${ac_cv_header_time_altzone+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 cat >conftest.$ac_ext <<_ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20184 grep -v '^
*+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20192 ac_cv_header_time_altzone=yes
20194 echo "$as_me: failed program was:" >&5
20195 sed 's
/^
/|
/' conftest.$ac_ext >&5
20197 ac_cv_header_time_altzone=no
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20204 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20205 if test $ac_cv_header_time_altzone = yes; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define HAVE_ALTZONE 1
20214 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20215 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20223 #include <sys/types.h>
20224 #include <sys/select.h>
20225 #include <sys/time.h>
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
20244 grep -v '^
*+' conftest.er1 >conftest.err
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest.$ac_objext; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define SYS_SELECT_WITH_SYS_TIME 1
20261 echo "$as_me: failed program was:" >&5
20262 sed 's
/^
/|
/' conftest.$ac_ext >&5
20267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20268 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20269 echo "${ECHO_T}$was_it_defined" >&6; }
20271 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20272 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20273 if test "${ac_cv_struct_addrinfo+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20283 # include <netdb.h>
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_compile") 2>conftest.er1
20301 grep -v '^
*+' conftest.er1 >conftest.err
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest.$ac_objext; then
20309 ac_cv_struct_addrinfo=yes
20311 echo "$as_me: failed program was:" >&5
20312 sed 's
/^
/|
/' conftest.$ac_ext >&5
20314 ac_cv_struct_addrinfo=no
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20321 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20322 if test $ac_cv_struct_addrinfo = yes; then
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_ADDRINFO 1
20330 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20331 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20332 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 # include <sys/types.h>
20343 # include <sys/socket.h>
20347 struct sockaddr_storage s
20352 rm -f conftest.$ac_objext
20353 if { (ac_try="$ac_compile"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compile") 2>conftest.er1
20361 grep -v '^
*+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest.$ac_objext; then
20369 ac_cv_struct_sockaddr_storage=yes
20371 echo "$as_me: failed program was:" >&5
20372 sed 's
/^
/|
/' conftest.$ac_ext >&5
20374 ac_cv_struct_sockaddr_storage=no
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20381 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20382 if test $ac_cv_struct_sockaddr_storage = yes; then
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_SOCKADDR_STORAGE 1
20390 # checks for compiler characteristics
20393 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20394 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20395 if test "${ac_cv_c_char_unsigned+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20408 static int test_array [1 - 2 * !(((char) -1) < 0)];
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20424 grep -v '^
*+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_cv_c_char_unsigned=no
20434 echo "$as_me: failed program was:" >&5
20435 sed 's
/^
/|
/' conftest.$ac_ext >&5
20437 ac_cv_c_char_unsigned=yes
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20443 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20444 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define __CHAR_UNSIGNED__ 1
20451 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20452 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20453 if test "${ac_cv_c_const+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 cat >conftest.$ac_ext <<_ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20466 /* FIXME: Include the comments suggested by Paul. */
20467 #ifndef __cplusplus
20468 /* Ultrix mips cc rejects this. */
20469 typedef int charset[2];
20471 /* SunOS 4.1.1 cc rejects this. */
20472 char const *const *pcpcc;
20474 /* NEC SVR4.0.2 mips cc rejects this. */
20475 struct point {int x, y;};
20476 static struct point const zero = {0,0};
20477 /* AIX XL C 1.02.0.0 rejects this.
20478 It does not let you subtract one const X* pointer from another in
20479 an arm of an if-expression whose if-part is not a constant
20481 const char *g = "string";
20482 pcpcc = &g + (g ? g-g : 0);
20483 /* HPUX 7.0 cc rejects these. */
20485 ppc = (char**) pcpcc;
20486 pcpcc = (char const *const *) ppc;
20487 { /* SCO 3.2v4 cc rejects this. */
20489 char const *s = 0 ? (char *) 0 : (char const *) 0;
20494 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20495 int x[] = {25, 17};
20496 const int *foo = &x[0];
20499 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20500 typedef const int *iptr;
20504 { /* AIX XL C 1.02.0.0 rejects this saying
20505 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20506 struct s { int j; const int *ap[3]; };
20507 struct s *b; b->j = 5;
20509 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20510 const int foo = 10;
20511 if (!foo) return 0;
20513 return !cs[0] && !zero.x;
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20529 grep -v '^
*+' conftest.er1 >conftest.err
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } && {
20534 test -z "$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20536 } && test -s conftest.$ac_objext; then
20539 echo "$as_me: failed program was:" >&5
20540 sed 's
/^
/|
/' conftest.$ac_ext >&5
20545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20548 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20549 if test $ac_cv_c_const = no; then
20551 cat >>confdefs.h <<\_ACEOF
20559 { echo "$as_me:$LINENO: checking for working volatile" >&5
20560 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20571 volatile int x; x = 0;
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20585 grep -v '^
*+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest.$ac_objext; then
20595 echo "$as_me: failed program was:" >&5
20596 sed 's
/^
/|
/' conftest.$ac_ext >&5
20599 cat >>confdefs.h <<\_ACEOF
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607 { echo "$as_me:$LINENO: result: $works" >&5
20608 echo "${ECHO_T}$works" >&6; }
20611 { echo "$as_me:$LINENO: checking for working signed char" >&5
20612 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20613 cat >conftest.$ac_ext <<_ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20637 grep -v '^
*+' conftest.er1 >conftest.err
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20647 echo "$as_me: failed program was:" >&5
20648 sed 's
/^
/|
/' conftest.$ac_ext >&5
20651 cat >>confdefs.h <<\_ACEOF
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 { echo "$as_me:$LINENO: result: $works" >&5
20660 echo "${ECHO_T}$works" >&6; }
20663 { echo "$as_me:$LINENO: checking for prototypes" >&5
20664 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20665 cat >conftest.$ac_ext <<_ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20671 int foo(int x) { return 0; }
20680 rm -f conftest.$ac_objext
20681 if { (ac_try="$ac_compile"
20682 case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_compile") 2>conftest.er1
20689 grep -v '^
*+' conftest.er1 >conftest.err
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest.$ac_objext; then
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_PROTOTYPES 1
20703 have_prototypes=yes
20706 echo "$as_me: failed program was:" >&5
20707 sed 's
/^
/|
/' conftest.$ac_ext >&5
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20714 echo "${ECHO_T}$have_prototypes" >&6; }
20717 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20718 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20726 #include <stdarg.h>
20727 int foo(int x, ...) {
20731 va_arg(va, char *);
20732 va_arg(va, double);
20739 return foo(10, "", 3.14);
20744 rm -f conftest.$ac_objext
20745 if { (ac_try="$ac_compile"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_compile") 2>conftest.er1
20753 grep -v '^
*+' conftest.er1 >conftest.err
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } && {
20758 test -z "$ac_c_werror_flag" ||
20759 test ! -s conftest.err
20760 } && test -s conftest.$ac_objext; then
20763 cat >>confdefs.h <<\_ACEOF
20764 #define HAVE_STDARG_PROTOTYPES 1
20770 echo "$as_me: failed program was:" >&5
20771 sed 's
/^
/|
/' conftest.$ac_ext >&5
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 { echo "$as_me:$LINENO: result: $works" >&5
20778 echo "${ECHO_T}$works" >&6; }
20780 # check for socketpair
20781 { echo "$as_me:$LINENO: checking for socketpair" >&5
20782 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20783 cat >conftest.$ac_ext <<_ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20790 #include <sys/types.h>
20791 #include <sys/socket.h>
20801 rm -f conftest.$ac_objext
20802 if { (ac_try="$ac_compile"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_compile") 2>conftest.er1
20810 grep -v '^
*+' conftest.er1 >conftest.err
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } && {
20815 test -z "$ac_c_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest.$ac_objext; then
20819 cat >>confdefs.h <<\_ACEOF
20820 #define HAVE_SOCKETPAIR 1
20823 { echo "$as_me:$LINENO: result: yes" >&5
20824 echo "${ECHO_T}yes" >&6; }
20826 echo "$as_me: failed program was:" >&5
20827 sed 's
/^
/|
/' conftest.$ac_ext >&5
20829 { echo "$as_me:$LINENO: result: no" >&5
20830 echo "${ECHO_T}no" >&6; }
20834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 # check if sockaddr has sa_len member
20837 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20838 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <sys/types.h>
20846 #include <sys/socket.h>
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20865 grep -v '^
*+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest.$ac_objext; then
20873 { echo "$as_me:$LINENO: result: yes" >&5
20874 echo "${ECHO_T}yes" >&6; }
20876 cat >>confdefs.h <<\_ACEOF
20877 #define HAVE_SOCKADDR_SA_LEN 1
20881 echo "$as_me: failed program was:" >&5
20882 sed 's
/^
/|
/' conftest.$ac_ext >&5
20884 { echo "$as_me:$LINENO: result: no" >&5
20885 echo "${ECHO_T}no" >&6; }
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20890 va_list_is_array=no
20891 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20892 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20900 #ifdef HAVE_STDARG_PROTOTYPES
20901 #include <stdarg.h>
20903 #include <varargs.h>
20909 va_list list1, list2; list1 = list2;
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20923 grep -v '^
*+' conftest.er1 >conftest.err
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest.$ac_objext; then
20933 echo "$as_me: failed program was:" >&5
20934 sed 's
/^
/|
/' conftest.$ac_ext >&5
20938 cat >>confdefs.h <<\_ACEOF
20939 #define VA_LIST_IS_ARRAY 1
20942 va_list_is_array=yes
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20948 echo "${ECHO_T}$va_list_is_array" >&6; }
20950 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20954 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20955 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20956 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20967 #define gethostbyname_r innocuous_gethostbyname_r
20969 /* System header to define __stub macros and hopefully few prototypes,
20970 which can conflict with char gethostbyname_r (); below.
20971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20972 <limits.h> exists even on freestanding compilers. */
20975 # include <limits.h>
20977 # include <assert.h>
20980 #undef gethostbyname_r
20982 /* Override any GCC internal prototype to avoid an error.
20983 Use char because int might match the return type of a GCC
20984 builtin and then its argument prototype would still apply. */
20988 char gethostbyname_r ();
20989 /* The GNU C library defines this for functions which it implements
20990 to always fail with ENOSYS. Some functions are actually named
20991 something starting with __ and the normal name is an alias. */
20992 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20999 return gethostbyname_r ();
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_link") 2>conftest.er1
21013 grep -v '^
*+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest$ac_exeext &&
21021 $as_test_x conftest$ac_exeext; then
21022 ac_cv_func_gethostbyname_r=yes
21024 echo "$as_me: failed program was:" >&5
21025 sed 's
/^
/|
/' conftest.$ac_ext >&5
21027 ac_cv_func_gethostbyname_r=no
21030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21031 conftest$ac_exeext conftest.$ac_ext
21033 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21034 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21035 if test $ac_cv_func_gethostbyname_r = yes; then
21037 cat >>confdefs.h <<\_ACEOF
21038 #define HAVE_GETHOSTBYNAME_R 1
21041 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21042 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21044 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21045 cat >conftest.$ac_ext <<_ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21052 # include <netdb.h>
21059 struct hostent *he, *res;
21064 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21079 grep -v '^
*+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21088 cat >>confdefs.h <<\_ACEOF
21089 #define HAVE_GETHOSTBYNAME_R 1
21093 cat >>confdefs.h <<\_ACEOF
21094 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21097 { echo "$as_me:$LINENO: result: yes" >&5
21098 echo "${ECHO_T}yes" >&6; }
21101 echo "$as_me: failed program was:" >&5
21102 sed 's
/^
/|
/' conftest.$ac_ext >&5
21105 { echo "$as_me:$LINENO: result: no" >&5
21106 echo "${ECHO_T}no" >&6; }
21107 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21108 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21116 # include <netdb.h>
21123 struct hostent *he;
21128 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21134 rm -f conftest.$ac_objext
21135 if { (ac_try="$ac_compile"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21143 grep -v '^
*+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21152 cat >>confdefs.h <<\_ACEOF
21153 #define HAVE_GETHOSTBYNAME_R 1
21157 cat >>confdefs.h <<\_ACEOF
21158 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21161 { echo "$as_me:$LINENO: result: yes" >&5
21162 echo "${ECHO_T}yes" >&6; }
21165 echo "$as_me: failed program was:" >&5
21166 sed 's
/^
/|
/' conftest.$ac_ext >&5
21169 { echo "$as_me:$LINENO: result: no" >&5
21170 echo "${ECHO_T}no" >&6; }
21171 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21172 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21180 # include <netdb.h>
21187 struct hostent *he;
21188 struct hostent_data data;
21190 (void) gethostbyname_r(name, he, &data);
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21205 grep -v '^
*+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21214 cat >>confdefs.h <<\_ACEOF
21215 #define HAVE_GETHOSTBYNAME_R 1
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21223 { echo "$as_me:$LINENO: result: yes" >&5
21224 echo "${ECHO_T}yes" >&6; }
21227 echo "$as_me: failed program was:" >&5
21228 sed 's
/^
/|
/' conftest.$ac_ext >&5
21231 { echo "$as_me:$LINENO: result: no" >&5
21232 echo "${ECHO_T}no" >&6; }
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 for ac_func in gethostbyname
21252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 cat >conftest.$ac_ext <<_ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21266 #define $ac_func innocuous_$ac_func
21268 /* System header to define __stub macros and hopefully few prototypes,
21269 which can conflict with char $ac_func (); below.
21270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21271 <limits.h> exists even on freestanding compilers. */
21274 # include <limits.h>
21276 # include <assert.h>
21281 /* Override any GCC internal prototype to avoid an error.
21282 Use char because int might match the return type of a GCC
21283 builtin and then its argument prototype would still apply. */
21288 /* The GNU C library defines this for functions which it implements
21289 to always fail with ENOSYS. Some functions are actually named
21290 something starting with __ and the normal name is an alias. */
21291 #if defined __stub_$ac_func || defined __stub___$ac_func
21298 return $ac_func ();
21303 rm -f conftest.$ac_objext conftest$ac_exeext
21304 if { (ac_try="$ac_link"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_link") 2>conftest.er1
21312 grep -v '^
*+' conftest.er1 >conftest.err
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest$ac_exeext &&
21320 $as_test_x conftest$ac_exeext; then
21321 eval "$as_ac_var=yes"
21323 echo "$as_me: failed program was:" >&5
21324 sed 's
/^
/|
/' conftest.$ac_ext >&5
21326 eval "$as_ac_var=no"
21329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21330 conftest$ac_exeext conftest.$ac_ext
21332 ac_res=`eval echo '${'$as_ac_var'}'`
21333 { echo "$as_me:$LINENO: result: $ac_res" >&5
21334 echo "${ECHO_T}$ac_res" >&6; }
21335 if test `eval echo '${'$as_ac_var'}'` = yes; then
21336 cat >>confdefs.h <<_ACEOF
21337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21352 # checks for system services
21355 # Linux requires this for correct f.p. operations
21356 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21357 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21358 if test "${ac_cv_func___fpu_control+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21361 cat >conftest.$ac_ext <<_ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369 #define __fpu_control innocuous___fpu_control
21371 /* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char __fpu_control (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21377 # include <limits.h>
21379 # include <assert.h>
21382 #undef __fpu_control
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21390 char __fpu_control ();
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined __stub___fpu_control || defined __stub_____fpu_control
21401 return __fpu_control ();
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_link") 2>conftest.er1
21415 grep -v '^
*+' conftest.er1 >conftest.err
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest$ac_exeext &&
21423 $as_test_x conftest$ac_exeext; then
21424 ac_cv_func___fpu_control=yes
21426 echo "$as_me: failed program was:" >&5
21427 sed 's
/^
/|
/' conftest.$ac_ext >&5
21429 ac_cv_func___fpu_control=no
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433 conftest$ac_exeext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21436 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21437 if test $ac_cv_func___fpu_control = yes; then
21441 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21442 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21443 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 ac_check_lib_save_LIBS=$LIBS
21447 LIBS="-lieee $LIBS"
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 /* Override any GCC internal prototype to avoid an error.
21456 Use char because int might match the return type of a GCC
21457 builtin and then its argument prototype would still apply. */
21461 char __fpu_control ();
21465 return __fpu_control ();
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (ac_try="$ac_link"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_link") 2>conftest.er1
21479 grep -v '^
*+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest$ac_exeext &&
21487 $as_test_x conftest$ac_exeext; then
21488 ac_cv_lib_ieee___fpu_control=yes
21490 echo "$as_me: failed program was:" >&5
21491 sed 's
/^
/|
/' conftest.$ac_ext >&5
21493 ac_cv_lib_ieee___fpu_control=no
21496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21497 conftest$ac_exeext conftest.$ac_ext
21498 LIBS=$ac_check_lib_save_LIBS
21500 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21501 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21502 if test $ac_cv_lib_ieee___fpu_control = yes; then
21503 cat >>confdefs.h <<_ACEOF
21504 #define HAVE_LIBIEEE 1
21507 LIBS="-lieee $LIBS"
21515 # Check for --with-fpectl
21516 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21517 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21519 # Check whether --with-fpectl was given.
21520 if test "${with_fpectl+set}" = set; then
21521 withval=$with_fpectl;
21522 if test "$withval" != no
21525 cat >>confdefs.h <<\_ACEOF
21526 #define WANT_SIGFPE_HANDLER 1
21529 { echo "$as_me:$LINENO: result: yes" >&5
21530 echo "${ECHO_T}yes" >&6; }
21531 else { echo "$as_me:$LINENO: result: no" >&5
21532 echo "${ECHO_T}no" >&6; }
21535 { echo "$as_me:$LINENO: result: no" >&5
21536 echo "${ECHO_T}no" >&6; }
21540 # check for --with-libm=...
21542 case $ac_sys_system in
21546 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21547 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21549 # Check whether --with-libm was given.
21550 if test "${with_libm+set}" = set; then
21551 withval=$with_libm;
21552 if test "$withval" = no
21554 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21555 echo "${ECHO_T}force LIBM empty" >&6; }
21556 elif test "$withval" != yes
21558 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21559 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21560 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21561 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21562 { (exit 1); exit 1; }; }
21565 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21566 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21570 # check for --with-libc=...
21572 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21573 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21575 # Check whether --with-libc was given.
21576 if test "${with_libc+set}" = set; then
21577 withval=$with_libc;
21578 if test "$withval" = no
21580 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21581 echo "${ECHO_T}force LIBC empty" >&6; }
21582 elif test "$withval" != yes
21584 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21585 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21586 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21587 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21588 { (exit 1); exit 1; }; }
21591 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21592 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21596 # ************************************
21597 # * Check for mathematical functions *
21598 # ************************************
21603 # Detect whether system arithmetic is subject to x87-style double
21604 # rounding issues. The result of this test has little meaning on non
21605 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21606 # mode is round-to-nearest and double rounding issues are present, and
21607 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21608 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21609 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21610 if test "${ac_cv_x87_double_rounding+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 if test "$cross_compiling" = yes; then
21615 ac_cv_x87_double_rounding=no
21617 cat >conftest.$ac_ext <<_ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21624 #include <stdlib.h>
21627 volatile double x, y, z;
21628 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21629 x = 0.99999999999999989; /* 1-2**-53 */
21633 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21639 /* both tests show evidence of double rounding */
21644 rm -f conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21655 { (case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_try") 2>&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 ac_cv_x87_double_rounding=no
21666 echo "$as_me: program exited with status $ac_status" >&5
21667 echo "$as_me: failed program was:" >&5
21668 sed 's
/^
/|
/' conftest.$ac_ext >&5
21670 ( exit $ac_status )
21671 ac_cv_x87_double_rounding=yes
21673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21680 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21681 if test "$ac_cv_x87_double_rounding" = yes
21684 cat >>confdefs.h <<\_ACEOF
21685 #define X87_DOUBLE_ROUNDING 1
21691 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21692 # -0. on some architectures.
21693 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21694 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21695 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21699 if test "$cross_compiling" = yes; then
21700 ac_cv_tanh_preserves_zero_sign=no
21702 cat >conftest.$ac_ext <<_ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21710 #include <stdlib.h>
21712 /* return 0 if either negative zeros don't exist
21713 on this platform or
if negative zeros exist
21714 and tanh
(-0.
) == -0.
*/
21715 if (atan2
(0.
, -1.
) == atan2
(-0.
, -1.
) ||
21716 atan2
(tanh
(-0.
), -1.
) == atan2
(-0.
, -1.
)) exit(0);
21721 rm -f conftest
$ac_exeext
21722 if { (ac_try
="$ac_link"
21723 case "(($ac_try" in
21724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_link") 2>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21732 { (case "(($ac_try" in
21733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21734 *) ac_try_echo
=$ac_try;;
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_try") 2>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; }; then
21741 ac_cv_tanh_preserves_zero_sign
=yes
21743 echo "$as_me: program exited with status $ac_status" >&5
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.
$ac_ext >&5
21747 ( exit $ac_status )
21748 ac_cv_tanh_preserves_zero_sign
=no
21750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21757 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21758 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21761 cat >>confdefs.h
<<\_ACEOF
21762 #define TANH_PRESERVES_ZERO_SIGN 1
21775 for ac_func
in acosh asinh atanh copysign expm1 finite hypot log1p
21777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21780 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 cat >conftest.
$ac_ext <<_ACEOF
21786 cat confdefs.h
>>conftest.
$ac_ext
21787 cat >>conftest.
$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21791 #define $ac_func innocuous_$ac_func
21793 /* System header to define __stub macros and hopefully few prototypes,
21794 which can conflict with char $ac_func (); below.
21795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21796 <limits.h> exists even on freestanding compilers. */
21799 # include <limits.h>
21801 # include <assert.h>
21806 /* Override any GCC internal prototype to avoid an error.
21807 Use char because int might match the return type of a GCC
21808 builtin and then its argument prototype would still apply. */
21813 /* The GNU C library defines this for functions which it implements
21814 to always fail with ENOSYS. Some functions are actually named
21815 something starting with __ and the normal name is an alias. */
21816 #if defined __stub_$ac_func || defined __stub___$ac_func
21823 return $ac_func ();
21828 rm -f conftest.
$ac_objext conftest
$ac_exeext
21829 if { (ac_try
="$ac_link"
21830 case "(($ac_try" in
21831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_link") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest$ac_exeext &&
21845 $as_test_x conftest$ac_exeext; then
21846 eval "$as_ac_var=yes"
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 eval "$as_ac_var=no"
21854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21855 conftest$ac_exeext conftest.$ac_ext
21857 ac_res=`eval echo '${'$as_ac_var'}'`
21858 { echo "$as_me:$LINENO: result: $ac_res" >&5
21859 echo "${ECHO_T}$ac_res" >&6; }
21860 if test `eval echo '${'$as_ac_var'}'` = yes; then
21861 cat >>confdefs.h <<_ACEOF
21862 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21868 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
21869 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
21870 if test "${ac_cv_have_decl_isinf+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21892 rm -f conftest.$ac_objext
21893 if { (ac_try="$ac_compile"
21894 case "(($ac_try" in
21895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21896 *) ac_try_echo
=$ac_try;;
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_compile") 2>conftest.er1
21901 grep -v '^ *+' conftest.er1
>conftest.err
21903 cat conftest.err
>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_c_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest.
$ac_objext; then
21909 ac_cv_have_decl_isinf
=yes
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.
$ac_ext >&5
21914 ac_cv_have_decl_isinf
=no
21917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
21920 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
21921 if test $ac_cv_have_decl_isinf = yes; then
21923 cat >>confdefs.h
<<_ACEOF
21924 #define HAVE_DECL_ISINF 1
21929 cat >>confdefs.h
<<_ACEOF
21930 #define HAVE_DECL_ISINF 0
21935 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
21936 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
21937 if test "${ac_cv_have_decl_isnan+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21940 cat >conftest.
$ac_ext <<_ACEOF
21943 cat confdefs.h
>>conftest.
$ac_ext
21944 cat >>conftest.
$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
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 ac_cv_have_decl_isnan=yes
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_cv_have_decl_isnan=no
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
21987 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
21988 if test $ac_cv_have_decl_isnan = yes; then
21990 cat >>confdefs.h <<_ACEOF
21991 #define HAVE_DECL_ISNAN 1
21996 cat >>confdefs.h <<_ACEOF
21997 #define HAVE_DECL_ISNAN 0
22002 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22003 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22004 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 cat >conftest.$ac_ext <<_ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22030 *) ac_try_echo
=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1
>conftest.err
22037 cat conftest.err
>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.
$ac_objext; then
22043 ac_cv_have_decl_isfinite
=yes
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.
$ac_ext >&5
22048 ac_cv_have_decl_isfinite
=no
22051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22053 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22054 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22055 if test $ac_cv_have_decl_isfinite = yes; then
22057 cat >>confdefs.h
<<_ACEOF
22058 #define HAVE_DECL_ISFINITE 1
22063 cat >>confdefs.h
<<_ACEOF
22064 #define HAVE_DECL_ISFINITE 0
22074 # determine what size digit to use for Python's longs
22075 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22076 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22077 # Check whether --enable-big-digits was given.
22078 if test "${enable_big_digits+set}" = set; then
22079 enableval
=$enable_big_digits; case $enable_big_digits in
22081 enable_big_digits
=30 ;;
22083 enable_big_digits
=15 ;;
22087 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22088 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22089 { (exit 1); exit 1; }; } ;;
22091 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22092 echo "${ECHO_T}$enable_big_digits" >&6; }
22094 cat >>confdefs.h
<<_ACEOF
22095 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22100 { echo "$as_me:$LINENO: result: no value specified" >&5
22101 echo "${ECHO_T}no value specified" >&6; }
22105 # check for wchar.h
22106 if test "${ac_cv_header_wchar_h+set}" = set; then
22107 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22108 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22109 if test "${ac_cv_header_wchar_h+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22113 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22115 # Is the header compilable?
22116 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22117 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22118 cat >conftest.
$ac_ext <<_ACEOF
22121 cat confdefs.h
>>conftest.
$ac_ext
22122 cat >>conftest.
$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 $ac_includes_default
22127 rm -f conftest.
$ac_objext
22128 if { (ac_try
="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_compile") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest.$ac_objext; then
22144 ac_header_compiler=yes
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 ac_header_compiler=no
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22154 echo "${ECHO_T}$ac_header_compiler" >&6; }
22156 # Is the header present?
22157 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22158 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22159 cat >conftest.$ac_ext <<_ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22167 if { (ac_try="$ac_cpp conftest.$ac_ext"
22168 case "(($ac_try" in
22169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22170 *) ac_try_echo
=$ac_try;;
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22175 grep -v '^ *+' conftest.er1
>conftest.err
22177 cat conftest.err
>&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } >/dev
/null
&& {
22180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22183 ac_header_preproc
=yes
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.
$ac_ext >&5
22188 ac_header_preproc
=no
22191 rm -f conftest.err conftest.
$ac_ext
22192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22193 echo "${ECHO_T}$ac_header_preproc" >&6; }
22195 # So? What about this header?
22196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22198 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22199 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22201 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22202 ac_header_preproc
=yes
22205 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22206 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22208 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22209 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22210 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22212 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22214 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22216 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22218 ## ------------------------------------------------ ##
22219 ## Report this to http://www.python.org/python-bugs ##
22220 ## ------------------------------------------------ ##
22222 ) |
sed "s/^/$as_me: WARNING: /" >&2
22225 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22226 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22227 if test "${ac_cv_header_wchar_h+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22230 ac_cv_header_wchar_h
=$ac_header_preproc
22232 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22233 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22236 if test $ac_cv_header_wchar_h = yes; then
22239 cat >>confdefs.h
<<\_ACEOF
22240 #define HAVE_WCHAR_H 1
22252 # determine wchar_t size
22253 if test "$wchar_h" = yes
22255 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22256 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22257 if test "${ac_cv_type_wchar_t+set}" = set; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 cat >conftest.
$ac_ext <<_ACEOF
22263 cat confdefs.h
>>conftest.
$ac_ext
22264 cat >>conftest.
$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22268 typedef wchar_t ac__type_new_;
22272 if ((ac__type_new_ *) 0)
22274 if (sizeof (ac__type_new_))
22280 rm -f conftest.
$ac_objext
22281 if { (ac_try
="$ac_compile"
22282 case "(($ac_try" in
22283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_compile") 2>conftest.er1
22289 grep -v '^ *+' conftest.er1 >conftest.err
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest.$ac_objext; then
22297 ac_cv_type_wchar_t=yes
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 ac_cv_type_wchar_t=no
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22307 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22308 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22310 # The cast to long int works around a bug in the HP C Compiler
22311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22312 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
22313 # This bug is HP SR number 8606223364.
22314 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22315 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22316 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22319 if test "$cross_compiling" = yes; then
22320 # Depending upon the size, compute the lo and hi bounds.
22321 cat >conftest.$ac_ext <<_ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22329 typedef wchar_t ac__type_sizeof_;
22333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22340 rm -f conftest.$ac_objext
22341 if { (ac_try="$ac_compile"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347 (eval "$ac_compile") 2>conftest.er1
22349 grep -v '^
*+' conftest.er1 >conftest.err
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && {
22354 test -z "$ac_c_werror_flag" ||
22355 test ! -s conftest.err
22356 } && test -s conftest.$ac_objext; then
22359 cat >conftest.$ac_ext <<_ACEOF
22362 cat confdefs.h >>conftest.$ac_ext
22363 cat >>conftest.$ac_ext <<_ACEOF
22364 /* end confdefs.h. */
22367 typedef wchar_t ac__type_sizeof_;
22371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_compile") 2>conftest.er1
22387 grep -v '^
*+' conftest.er1 >conftest.err
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } && {
22392 test -z "$ac_c_werror_flag" ||
22393 test ! -s conftest.err
22394 } && test -s conftest.$ac_objext; then
22395 ac_hi=$ac_mid; break
22397 echo "$as_me: failed program was:" >&5
22398 sed 's
/^
/|
/' conftest.$ac_ext >&5
22400 ac_lo=`expr $ac_mid + 1`
22401 if test $ac_lo -le $ac_mid; then
22405 ac_mid=`expr 2 '*' $ac_mid + 1`
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 echo "$as_me: failed program was:" >&5
22412 sed 's
/^
/|
/' conftest.$ac_ext >&5
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22422 typedef wchar_t ac__type_sizeof_;
22426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22433 rm -f conftest.$ac_objext
22434 if { (ac_try="$ac_compile"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_compile") 2>conftest.er1
22442 grep -v '^
*+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } && {
22447 test -z "$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 } && test -s conftest.$ac_objext; then
22452 cat >conftest.$ac_ext <<_ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22460 typedef wchar_t ac__type_sizeof_;
22464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_compile") 2>conftest.er1
22480 grep -v '^
*+' conftest.er1 >conftest.err
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } && {
22485 test -z "$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 } && test -s conftest.$ac_objext; then
22488 ac_lo=$ac_mid; break
22490 echo "$as_me: failed program was:" >&5
22491 sed 's
/^
/|
/' conftest.$ac_ext >&5
22493 ac_hi=`expr '(' $ac_mid ')' - 1`
22494 if test $ac_mid -le $ac_hi; then
22498 ac_mid=`expr 2 '*' $ac_mid`
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504 echo "$as_me: failed program was:" >&5
22505 sed 's
/^
/|
/' conftest.$ac_ext >&5
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 # Binary search between lo and hi bounds.
22515 while test "x$ac_lo" != "x$ac_hi"; do
22516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22517 cat >conftest.$ac_ext <<_ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22525 typedef wchar_t ac__type_sizeof_;
22529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_compile") 2>conftest.er1
22545 grep -v '^
*+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest.$ac_objext; then
22555 echo "$as_me: failed program was:" >&5
22556 sed 's
/^
/|
/' conftest.$ac_ext >&5
22558 ac_lo=`expr '(' $ac_mid ')' + 1`
22561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22565 '') if test "$ac_cv_type_wchar_t" = yes; then
22566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22567 See \`config.log' for more details.
" >&5
22568 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
22569 See \
`config.log' for more details." >&2;}
22570 { (exit 77); exit 77; }; }
22572 ac_cv_sizeof_wchar_t=0
22576 cat >conftest.$ac_ext <<_ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22584 typedef wchar_t ac__type_sizeof_;
22585 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22586 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22588 #include <stdlib.h>
22593 FILE *f = fopen ("conftest.val", "w");
22596 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22598 long int i = longval ();
22599 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22601 fprintf (f, "%ld\n", i);
22605 unsigned long int i = ulongval ();
22606 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22608 fprintf (f, "%lu\n", i);
22610 return ferror (f) || fclose (f) != 0;
22616 rm -f conftest$ac_exeext
22617 if { (ac_try="$ac_link"
22618 case "(($ac_try" in
22619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22620 *) ac_try_echo
=$ac_try;;
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_link") 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22627 { (case "(($ac_try" in
22628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_try") 2>&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 ac_cv_sizeof_wchar_t=`cat conftest.val
`
22638 echo "$as_me: program exited with status $ac_status" >&5
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22642 ( exit $ac_status )
22643 if test "$ac_cv_type_wchar_t" = yes; then
22644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22645 See \`config.log
' for more details." >&5
22646 echo "$as_me: error: cannot compute sizeof (wchar_t)
22647 See \`config.log' for more details.
" >&2;}
22648 { (exit 77); exit 77; }; }
22650 ac_cv_sizeof_wchar_t=0
22653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
22658 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22662 cat >>confdefs.h <<_ACEOF
22663 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22669 { echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
22670 echo $ECHO_N "checking
for UCS-4 tcl...
$ECHO_C" >&6; }
22672 cat >conftest.$ac_ext <<_ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22680 #if TCL_UTF_MAX != 6
22681 # error "NOT UCS4_TCL
"
22691 rm -f conftest.$ac_objext
22692 if { (ac_try="$ac_compile"
22693 case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_compile") 2>conftest.er1
22700 grep -v '^ *+' conftest.er1 >conftest.err
22702 cat conftest.err >&5
22703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22704 (exit $ac_status); } && {
22705 test -z "$ac_c_werror_flag" ||
22706 test ! -s conftest.err
22707 } && test -s conftest.$ac_objext; then
22710 cat >>confdefs.h <<\_ACEOF
22711 #define HAVE_UCS4_TCL 1
22717 echo "$as_me: failed program was
:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
22725 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22727 # check whether wchar_t is signed or not
22728 if test "$wchar_h" = yes
22730 # check whether wchar_t is signed or not
22731 { echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
22732 echo $ECHO_N "checking whether wchar_t is signed...
$ECHO_C" >&6; }
22733 if test "${ac_cv_wchar_t_signed+set}" = set; then
22734 echo $ECHO_N "(cached
) $ECHO_C" >&6
22737 if test "$cross_compiling" = yes; then
22738 ac_cv_wchar_t_signed=yes
22740 cat >conftest.$ac_ext <<_ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22750 /* Success: exit code 0 */
22751 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22755 rm -f conftest$ac_exeext
22756 if { (ac_try="$ac_link"
22757 case "(($ac_try" in
22758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22762 (eval "$ac_link") 2>&5
22764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22766 { (case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_try") 2>&5
22773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22774 (exit $ac_status); }; }; then
22775 ac_cv_wchar_t_signed=yes
22777 echo "$as_me: program exited with status
$ac_status" >&5
22778 echo "$as_me: failed program was
:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 ( exit $ac_status )
22782 ac_cv_wchar_t_signed=no
22784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22790 { echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
22791 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22794 { echo "$as_me:$LINENO: checking what
type to use
for str
" >&5
22795 echo $ECHO_N "checking what
type to use
for str...
$ECHO_C" >&6; }
22797 # Check whether --with-wide-unicode was given.
22798 if test "${with_wide_unicode+set}" = set; then
22799 withval=$with_wide_unicode;
22800 if test "$withval" != no
22801 then unicode_size="4"
22802 else unicode_size="2"
22807 case "$have_ucs4_tcl" in
22808 yes) unicode_size="4" ;;
22809 *) unicode_size="2" ;;
22817 case "$unicode_size" in
22818 4) cat >>confdefs.h <<\_ACEOF
22819 #define Py_UNICODE_SIZE 4
22822 *) cat >>confdefs.h <<\_ACEOF
22823 #define Py_UNICODE_SIZE 2
22831 # wchar_t is only usable if it maps to an unsigned type
22832 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22833 -a "$ac_cv_wchar_t_signed" = "no
"
22835 PY_UNICODE_TYPE="wchar_t
"
22837 cat >>confdefs.h <<\_ACEOF
22838 #define HAVE_USABLE_WCHAR_T 1
22841 cat >>confdefs.h <<\_ACEOF
22842 #define PY_UNICODE_TYPE wchar_t
22845 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22847 PY_UNICODE_TYPE="unsigned short
"
22848 cat >>confdefs.h <<\_ACEOF
22849 #define PY_UNICODE_TYPE unsigned short
22852 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22854 PY_UNICODE_TYPE="unsigned long
"
22855 cat >>confdefs.h <<\_ACEOF
22856 #define PY_UNICODE_TYPE unsigned long
22860 PY_UNICODE_TYPE="no
type found
"
22862 { echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
22863 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22865 # check for endianness
22866 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
22867 echo $ECHO_N "checking whether byte ordering is bigendian...
$ECHO_C" >&6; }
22868 if test "${ac_cv_c_bigendian+set}" = set; then
22869 echo $ECHO_N "(cached
) $ECHO_C" >&6
22871 # See if sys/param.h defines the BYTE_ORDER macro.
22872 cat >conftest.$ac_ext <<_ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 #include <sys/types.h>
22879 #include <sys/param.h>
22884 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22885 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22886 bogus endian macros
22893 rm -f conftest.$ac_objext
22894 if { (ac_try="$ac_compile"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_compile") 2>conftest.er1
22902 grep -v '^ *+' conftest.er1 >conftest.err
22904 cat conftest.err >&5
22905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22906 (exit $ac_status); } && {
22907 test -z "$ac_c_werror_flag" ||
22908 test ! -s conftest.err
22909 } && test -s conftest.$ac_objext; then
22910 # It does; now see whether it defined to BIG_ENDIAN or not.
22911 cat >conftest.$ac_ext <<_ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 #include <sys/types.h>
22918 #include <sys/param.h>
22923 #if BYTE_ORDER != BIG_ENDIAN
22931 rm -f conftest.$ac_objext
22932 if { (ac_try="$ac_compile"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_compile") 2>conftest.er1
22940 grep -v '^ *+' conftest.er1 >conftest.err
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22944 (exit $ac_status); } && {
22945 test -z "$ac_c_werror_flag" ||
22946 test ! -s conftest.err
22947 } && test -s conftest.$ac_objext; then
22948 ac_cv_c_bigendian=yes
22950 echo "$as_me: failed program was
:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22953 ac_cv_c_bigendian=no
22956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 echo "$as_me: failed program was
:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 # It does not; compile a test program.
22962 if test "$cross_compiling" = yes; then
22963 # try to guess the endianness by grepping values into an object file
22964 ac_cv_c_bigendian=unknown
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22972 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22973 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22974 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22975 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22976 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22980 _ascii (); _ebcdic ();
22985 rm -f conftest.$ac_objext
22986 if { (ac_try="$ac_compile"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_compile") 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22998 (exit $ac_status); } && {
22999 test -z "$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23001 } && test -s conftest.$ac_objext; then
23002 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23003 ac_cv_c_bigendian=yes
23005 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23006 if test "$ac_cv_c_bigendian" = unknown; then
23007 ac_cv_c_bigendian=no
23009 # finding both strings is unlikely to happen, but who knows?
23010 ac_cv_c_bigendian=unknown
23014 echo "$as_me: failed program was
:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23033 /* Are we little or big endian? From Harbison&Steele. */
23037 char c[sizeof (long int)];
23040 return u.c[sizeof (long int) - 1] == 1;
23046 rm -f conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_link") 2>&5
23055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23057 { (case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_try") 2>&5
23064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23065 (exit $ac_status); }; }; then
23066 ac_cv_c_bigendian=no
23068 echo "$as_me: program exited with status
$ac_status" >&5
23069 echo "$as_me: failed program was
:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ( exit $ac_status )
23073 ac_cv_c_bigendian=yes
23075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 { echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
23084 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23085 case $ac_cv_c_bigendian in
23088 cat >>confdefs.h <<\_ACEOF
23089 #define WORDS_BIGENDIAN 1
23095 { { echo "$as_me:$LINENO: error
: unknown endianness
23096 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
23097 echo "$as_me: error
: unknown endianness
23098 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
23099 { (exit 1); exit 1; }; } ;;
23103 # Check whether right shifting a negative integer extends the sign bit
23104 # or fills with zeros (like the Cray J90, according to Tim Peters).
23105 { echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
23106 echo $ECHO_N "checking whether right
shift extends the sign bit...
$ECHO_C" >&6; }
23107 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23108 echo $ECHO_N "(cached
) $ECHO_C" >&6
23111 if test "$cross_compiling" = yes; then
23112 ac_cv_rshift_extends_sign=yes
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23123 exit(((-1)>>3 == -1) ? 0 : 1);
23127 rm -f conftest$ac_exeext
23128 if { (ac_try="$ac_link"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_link") 2>&5
23136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23138 { (case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_try") 2>&5
23145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 ac_cv_rshift_extends_sign=yes
23149 echo "$as_me: program exited with status
$ac_status" >&5
23150 echo "$as_me: failed program was
:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ( exit $ac_status )
23154 ac_cv_rshift_extends_sign=no
23156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23162 { echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
23163 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23164 if test "$ac_cv_rshift_extends_sign" = no
23167 cat >>confdefs.h <<\_ACEOF
23168 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23173 # check for getc_unlocked and related locking functions
23174 { echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
23175 echo $ECHO_N "checking
for getc_unlocked
() and friends...
$ECHO_C" >&6; }
23176 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23177 echo $ECHO_N "(cached
) $ECHO_C" >&6
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23191 FILE *f = fopen("/dev
/null
", "r
");
23200 rm -f conftest.$ac_objext conftest$ac_exeext
23201 if { (ac_try="$ac_link"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest$ac_exeext &&
23217 $as_test_x conftest$ac_exeext; then
23218 ac_cv_have_getc_unlocked=yes
23220 echo "$as_me: failed program was
:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ac_cv_have_getc_unlocked=no
23226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23227 conftest$ac_exeext conftest.$ac_ext
23230 { echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
23231 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23232 if test "$ac_cv_have_getc_unlocked" = yes
23235 cat >>confdefs.h <<\_ACEOF
23236 #define HAVE_GETC_UNLOCKED 1
23241 # check where readline lives
23242 # save the value of LIBS so we don't actually link Python with readline
23243 LIBS_no_readline=$LIBS
23245 # On some systems we need to link readline to a termcap compatible
23246 # library. NOTE: Keep the precedence of listed libraries synchronised
23248 py_cv_lib_readline=no
23249 { echo "$as_me:$LINENO: checking how to link readline libs
" >&5
23250 echo $ECHO_N "checking how to link readline libs...
$ECHO_C" >&6; }
23251 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23252 if test -z "$py_libtermcap"; then
23253 READLINE_LIBS="-lreadline"
23255 READLINE_LIBS="-lreadline -l$py_libtermcap"
23257 LIBS="$READLINE_LIBS $LIBS_no_readline"
23258 cat >conftest.$ac_ext <<_ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23265 /* Override any GCC internal prototype to avoid an error.
23266 Use char because int might match the return type of a GCC
23267 builtin and then its argument prototype would still apply. */
23275 return readline ();
23280 rm -f conftest.$ac_objext conftest$ac_exeext
23281 if { (ac_try="$ac_link"
23282 case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_link") 2>conftest.er1
23289 grep -v '^ *+' conftest.er1 >conftest.err
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest$ac_exeext &&
23297 $as_test_x conftest$ac_exeext; then
23298 py_cv_lib_readline=yes
23300 echo "$as_me: failed program was
:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23307 conftest$ac_exeext conftest.$ac_ext
23308 if test $py_cv_lib_readline = yes; then
23312 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23313 #AC_SUBST([READLINE_LIBS])
23314 if test $py_cv_lib_readline = no; then
23315 { echo "$as_me:$LINENO: result
: none
" >&5
23316 echo "${ECHO_T}none
" >&6; }
23318 { echo "$as_me:$LINENO: result
: $READLINE_LIBS" >&5
23319 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23321 cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_LIBREADLINE 1
23327 # check for readline 2.1
23328 { echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
23329 echo $ECHO_N "checking
for rl_callback_handler_install
in -lreadline...
$ECHO_C" >&6; }
23330 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23331 echo $ECHO_N "(cached
) $ECHO_C" >&6
23333 ac_check_lib_save_LIBS=$LIBS
23334 LIBS="-lreadline $READLINE_LIBS $LIBS"
23335 cat >conftest.$ac_ext <<_ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23342 /* Override any GCC internal prototype to avoid an error.
23343 Use char because int might match the return type of a GCC
23344 builtin and then its argument prototype would still apply. */
23348 char rl_callback_handler_install ();
23352 return rl_callback_handler_install ();
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (ac_try="$ac_link"
23359 case "(($ac_try" in
23360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361 *) ac_try_echo=$ac_try;;
23363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23364 (eval "$ac_link") 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest$ac_exeext &&
23374 $as_test_x conftest$ac_exeext; then
23375 ac_cv_lib_readline_rl_callback_handler_install=yes
23377 echo "$as_me: failed program was
:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_cv_lib_readline_rl_callback_handler_install=no
23383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23384 conftest$ac_exeext conftest.$ac_ext
23385 LIBS=$ac_check_lib_save_LIBS
23387 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23388 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23389 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23391 cat >>confdefs.h <<\_ACEOF
23392 #define HAVE_RL_CALLBACK 1
23398 # check for readline 2.2
23399 cat >conftest.$ac_ext <<_ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 #include <readline/readline.h>
23407 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23413 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23415 grep -v '^ *+' conftest.er1 >conftest.err
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23419 (exit $ac_status); } >/dev/null && {
23420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23425 echo "$as_me: failed program was
:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23431 rm -f conftest.err conftest.$ac_ext
23432 if test $have_readline = yes
23434 cat >conftest.$ac_ext <<_ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <readline/readline.h>
23443 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23444 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
23446 cat >>confdefs.h <<\_ACEOF
23447 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23455 # check for readline 4.0
23456 { echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
23457 echo $ECHO_N "checking
for rl_pre_input_hook
in -lreadline...
$ECHO_C" >&6; }
23458 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23459 echo $ECHO_N "(cached
) $ECHO_C" >&6
23461 ac_check_lib_save_LIBS=$LIBS
23462 LIBS="-lreadline $READLINE_LIBS $LIBS"
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23470 /* Override any GCC internal prototype to avoid an error.
23471 Use char because int might match the return type of a GCC
23472 builtin and then its argument prototype would still apply. */
23476 char rl_pre_input_hook ();
23480 return rl_pre_input_hook ();
23485 rm -f conftest.$ac_objext conftest$ac_exeext
23486 if { (ac_try="$ac_link"
23487 case "(($ac_try" in
23488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23492 (eval "$ac_link") 2>conftest.er1
23494 grep -v '^ *+' conftest.er1 >conftest.err
23496 cat conftest.err >&5
23497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23498 (exit $ac_status); } && {
23499 test -z "$ac_c_werror_flag" ||
23500 test ! -s conftest.err
23501 } && test -s conftest$ac_exeext &&
23502 $as_test_x conftest$ac_exeext; then
23503 ac_cv_lib_readline_rl_pre_input_hook=yes
23505 echo "$as_me: failed program was
:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_cv_lib_readline_rl_pre_input_hook=no
23511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23512 conftest$ac_exeext conftest.$ac_ext
23513 LIBS=$ac_check_lib_save_LIBS
23515 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23516 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23517 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23519 cat >>confdefs.h <<\_ACEOF
23520 #define HAVE_RL_PRE_INPUT_HOOK 1
23527 { echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
23528 echo $ECHO_N "checking
for rl_completion_display_matches_hook
in -lreadline...
$ECHO_C" >&6; }
23529 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23530 echo $ECHO_N "(cached
) $ECHO_C" >&6
23532 ac_check_lib_save_LIBS=$LIBS
23533 LIBS="-lreadline $READLINE_LIBS $LIBS"
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23541 /* Override any GCC internal prototype to avoid an error.
23542 Use char because int might match the return type of a GCC
23543 builtin and then its argument prototype would still apply. */
23547 char rl_completion_display_matches_hook ();
23551 return rl_completion_display_matches_hook ();
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (ac_try="$ac_link"
23558 case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23563 (eval "$ac_link") 2>conftest.er1
23565 grep -v '^ *+' conftest.er1 >conftest.err
23567 cat conftest.err >&5
23568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23569 (exit $ac_status); } && {
23570 test -z "$ac_c_werror_flag" ||
23571 test ! -s conftest.err
23572 } && test -s conftest$ac_exeext &&
23573 $as_test_x conftest$ac_exeext; then
23574 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23576 echo "$as_me: failed program was
:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23583 conftest$ac_exeext conftest.$ac_ext
23584 LIBS=$ac_check_lib_save_LIBS
23586 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23587 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23588 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23590 cat >>confdefs.h <<\_ACEOF
23591 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23597 # check for readline 4.2
23598 { echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
23599 echo $ECHO_N "checking
for rl_completion_matches
in -lreadline...
$ECHO_C" >&6; }
23600 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23601 echo $ECHO_N "(cached
) $ECHO_C" >&6
23603 ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lreadline $READLINE_LIBS $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23612 /* Override any GCC internal prototype to avoid an error.
23613 Use char because int might match the return type of a GCC
23614 builtin and then its argument prototype would still apply. */
23618 char rl_completion_matches ();
23622 return rl_completion_matches ();
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (ac_try="$ac_link"
23629 case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_link") 2>conftest.er1
23636 grep -v '^ *+' conftest.er1 >conftest.err
23638 cat conftest.err >&5
23639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23640 (exit $ac_status); } && {
23641 test -z "$ac_c_werror_flag" ||
23642 test ! -s conftest.err
23643 } && test -s conftest$ac_exeext &&
23644 $as_test_x conftest$ac_exeext; then
23645 ac_cv_lib_readline_rl_completion_matches=yes
23647 echo "$as_me: failed program was
:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23650 ac_cv_lib_readline_rl_completion_matches=no
23653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23654 conftest$ac_exeext conftest.$ac_ext
23655 LIBS=$ac_check_lib_save_LIBS
23657 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
23658 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23659 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23661 cat >>confdefs.h <<\_ACEOF
23662 #define HAVE_RL_COMPLETION_MATCHES 1
23668 # also in readline 4.2
23669 cat >conftest.$ac_ext <<_ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23675 #include <readline/readline.h>
23677 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23685 grep -v '^ *+' conftest.er1 >conftest.err
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23689 (exit $ac_status); } >/dev/null && {
23690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23695 echo "$as_me: failed program was
:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23701 rm -f conftest.err conftest.$ac_ext
23702 if test $have_readline = yes
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include <readline/readline.h>
23713 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23714 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_RL_CATCH_SIGNAL 1
23725 # End of readline checks: restore LIBS
23726 LIBS=$LIBS_no_readline
23728 { echo "$as_me:$LINENO: checking
for broken nice
()" >&5
23729 echo $ECHO_N "checking
for broken nice
()...
$ECHO_C" >&6; }
23730 if test "${ac_cv_broken_nice+set}" = set; then
23731 echo $ECHO_N "(cached
) $ECHO_C" >&6
23734 if test "$cross_compiling" = yes; then
23735 ac_cv_broken_nice=no
23737 cat >conftest.$ac_ext <<_ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23746 int val1 = nice(1);
23747 if (val1 != -1 && val1 == nice(2))
23753 rm -f conftest$ac_exeext
23754 if { (ac_try="$ac_link"
23755 case "(($ac_try" in
23756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757 *) ac_try_echo=$ac_try;;
23759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23760 (eval "$ac_link") 2>&5
23762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23764 { (case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_try") 2>&5
23771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23772 (exit $ac_status); }; }; then
23773 ac_cv_broken_nice=yes
23775 echo "$as_me: program exited with status
$ac_status" >&5
23776 echo "$as_me: failed program was
:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ( exit $ac_status )
23780 ac_cv_broken_nice=no
23782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23788 { echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
23789 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23790 if test "$ac_cv_broken_nice" = yes
23793 cat >>confdefs.h <<\_ACEOF
23794 #define HAVE_BROKEN_NICE 1
23799 { echo "$as_me:$LINENO: checking
for broken poll
()" >&5
23800 echo $ECHO_N "checking
for broken poll
()...
$ECHO_C" >&6; }
23801 if test "$cross_compiling" = yes; then
23802 ac_cv_broken_poll=no
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23815 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23819 int poll_test = poll (&poll_struct, 1, 0);
23825 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23836 rm -f conftest$ac_exeext
23837 if { (ac_try="$ac_link"
23838 case "(($ac_try" in
23839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23840 *) ac_try_echo=$ac_try;;
23842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23843 (eval "$ac_link") 2>&5
23845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23847 { (case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_try") 2>&5
23854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23855 (exit $ac_status); }; }; then
23856 ac_cv_broken_poll=yes
23858 echo "$as_me: program exited with status
$ac_status" >&5
23859 echo "$as_me: failed program was
:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ( exit $ac_status )
23863 ac_cv_broken_poll=no
23865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23869 { echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
23870 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23871 if test "$ac_cv_broken_poll" = yes
23874 cat >>confdefs.h <<\_ACEOF
23875 #define HAVE_BROKEN_POLL 1
23880 # Before we can test tzset, we need to check if struct tm has a tm_zone
23881 # (which is not required by ISO C or UNIX spec) and/or if we support
23883 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
23884 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
23885 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23886 echo $ECHO_N "(cached
) $ECHO_C" >&6
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 #include <sys/types.h>
23895 #include <$ac_cv_struct_tm>
23901 static struct tm ac_aggr;
23902 if (ac_aggr.tm_zone)
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23915 (eval "$ac_compile") 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest.$ac_objext; then
23925 ac_cv_member_struct_tm_tm_zone=yes
23927 echo "$as_me: failed program was
:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 cat >conftest.$ac_ext <<_ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 #include <sys/types.h>
23937 #include <$ac_cv_struct_tm>
23943 static struct tm ac_aggr;
23944 if (sizeof ac_aggr.tm_zone)
23950 rm -f conftest.$ac_objext
23951 if { (ac_try="$ac_compile"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_compile") 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest.$ac_objext; then
23967 ac_cv_member_struct_tm_tm_zone=yes
23969 echo "$as_me: failed program was
:" >&5
23970 sed 's/^/| /' conftest.$ac_ext >&5
23972 ac_cv_member_struct_tm_tm_zone=no
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
23981 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23982 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23984 cat >>confdefs.h <<_ACEOF
23985 #define HAVE_STRUCT_TM_TM_ZONE 1
23991 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23993 cat >>confdefs.h <<\_ACEOF
23994 #define HAVE_TM_ZONE 1
23998 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
23999 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
24000 if test "${ac_cv_have_decl_tzname+set}" = set; then
24001 echo $ECHO_N "(cached
) $ECHO_C" >&6
24003 cat >conftest.$ac_ext <<_ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24022 rm -f conftest.$ac_objext
24023 if { (ac_try="$ac_compile"
24024 case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_compile") 2>conftest.er1
24031 grep -v '^ *+' conftest.er1 >conftest.err
24033 cat conftest.err >&5
24034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24035 (exit $ac_status); } && {
24036 test -z "$ac_c_werror_flag" ||
24037 test ! -s conftest.err
24038 } && test -s conftest.$ac_objext; then
24039 ac_cv_have_decl_tzname=yes
24041 echo "$as_me: failed program was
:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24044 ac_cv_have_decl_tzname=no
24047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24049 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
24050 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24051 if test $ac_cv_have_decl_tzname = yes; then
24053 cat >>confdefs.h <<_ACEOF
24054 #define HAVE_DECL_TZNAME 1
24059 cat >>confdefs.h <<_ACEOF
24060 #define HAVE_DECL_TZNAME 0
24067 { echo "$as_me:$LINENO: checking
for tzname
" >&5
24068 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
24069 if test "${ac_cv_var_tzname+set}" = set; then
24070 echo $ECHO_N "(cached
) $ECHO_C" >&6
24072 cat >conftest.$ac_ext <<_ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h. */
24079 #if !HAVE_DECL_TZNAME
24080 extern char *tzname[];
24086 return tzname[0][0];
24091 rm -f conftest.$ac_objext conftest$ac_exeext
24092 if { (ac_try="$ac_link"
24093 case "(($ac_try" in
24094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095 *) ac_try_echo=$ac_try;;
24097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24098 (eval "$ac_link") 2>conftest.er1
24100 grep -v '^ *+' conftest.er1 >conftest.err
24102 cat conftest.err >&5
24103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24104 (exit $ac_status); } && {
24105 test -z "$ac_c_werror_flag" ||
24106 test ! -s conftest.err
24107 } && test -s conftest$ac_exeext &&
24108 $as_test_x conftest$ac_exeext; then
24109 ac_cv_var_tzname=yes
24111 echo "$as_me: failed program was
:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 ac_cv_var_tzname=no
24117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24118 conftest$ac_exeext conftest.$ac_ext
24120 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
24121 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24122 if test $ac_cv_var_tzname = yes; then
24124 cat >>confdefs.h <<\_ACEOF
24125 #define HAVE_TZNAME 1
24132 # check tzset(3) exists and works like we expect it to
24133 { echo "$as_me:$LINENO: checking
for working tzset
()" >&5
24134 echo $ECHO_N "checking
for working tzset
()...
$ECHO_C" >&6; }
24135 if test "${ac_cv_working_tzset+set}" = set; then
24136 echo $ECHO_N "(cached
) $ECHO_C" >&6
24139 if test "$cross_compiling" = yes; then
24140 ac_cv_working_tzset=no
24142 cat >conftest.$ac_ext <<_ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24149 #include <stdlib.h>
24151 #include <string.h>
24154 extern char *tzname[];
24159 /* Note that we need to ensure that not only does tzset(3)
24160 do 'something' with localtime, but it works as documented
24161 in the library reference and as expected by the test suite.
24162 This includes making sure that tzname is set properly if
24163 tm->tm_zone does not exist since it is the alternative way
24164 of getting timezone info.
24166 Red Hat 6.2 doesn't understand the southern hemisphere
24167 after New Year's Day.
24170 time_t groundhogday = 1044144000; /* GMT-based */
24171 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24173 putenv("TZ
=UTC
+0");
24175 if (localtime(&groundhogday)->tm_hour != 0)
24178 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24179 if (strcmp(tzname[0], "UTC
") ||
24180 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24184 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
24186 if (localtime(&groundhogday)->tm_hour != 19)
24189 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
24193 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
24195 if (localtime(&groundhogday)->tm_hour != 11)
24198 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
24202 #if HAVE_STRUCT_TM_TM_ZONE
24203 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
24205 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
24213 rm -f conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24220 (eval "$ac_link") 2>&5
24222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24224 { (case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_try") 2>&5
24231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24232 (exit $ac_status); }; }; then
24233 ac_cv_working_tzset=yes
24235 echo "$as_me: program exited with status
$ac_status" >&5
24236 echo "$as_me: failed program was
:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24239 ( exit $ac_status )
24240 ac_cv_working_tzset=no
24242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24248 { echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
24249 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24250 if test "$ac_cv_working_tzset" = yes
24253 cat >>confdefs.h <<\_ACEOF
24254 #define HAVE_WORKING_TZSET 1
24259 # Look for subsecond timestamps in struct stat
24260 { echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
24261 echo $ECHO_N "checking
for tv_nsec
in struct stat...
$ECHO_C" >&6; }
24262 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24263 echo $ECHO_N "(cached
) $ECHO_C" >&6
24265 cat >conftest.$ac_ext <<_ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24271 #include <sys/stat.h>
24277 st.st_mtim.tv_nsec = 1;
24283 rm -f conftest.$ac_objext
24284 if { (ac_try="$ac_compile"
24285 case "(($ac_try" in
24286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287 *) ac_try_echo=$ac_try;;
24289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24290 (eval "$ac_compile") 2>conftest.er1
24292 grep -v '^ *+' conftest.er1 >conftest.err
24294 cat conftest.err >&5
24295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24296 (exit $ac_status); } && {
24297 test -z "$ac_c_werror_flag" ||
24298 test ! -s conftest.err
24299 } && test -s conftest.$ac_objext; then
24300 ac_cv_stat_tv_nsec=yes
24302 echo "$as_me: failed program was
:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 ac_cv_stat_tv_nsec=no
24308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
24312 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24313 if test "$ac_cv_stat_tv_nsec" = yes
24316 cat >>confdefs.h <<\_ACEOF
24317 #define HAVE_STAT_TV_NSEC 1
24322 # Look for BSD style subsecond timestamps in struct stat
24323 { echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
24324 echo $ECHO_N "checking
for tv_nsec2
in struct stat...
$ECHO_C" >&6; }
24325 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24326 echo $ECHO_N "(cached
) $ECHO_C" >&6
24328 cat >conftest.$ac_ext <<_ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h. */
24334 #include <sys/stat.h>
24340 st.st_mtimespec.tv_nsec = 1;
24346 rm -f conftest.$ac_objext
24347 if { (ac_try="$ac_compile"
24348 case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_compile") 2>conftest.er1
24355 grep -v '^ *+' conftest.er1 >conftest.err
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24359 (exit $ac_status); } && {
24360 test -z "$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 } && test -s conftest.$ac_objext; then
24363 ac_cv_stat_tv_nsec2=yes
24365 echo "$as_me: failed program was
:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24368 ac_cv_stat_tv_nsec2=no
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24374 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
24375 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24376 if test "$ac_cv_stat_tv_nsec2" = yes
24379 cat >>confdefs.h <<\_ACEOF
24380 #define HAVE_STAT_TV_NSEC2 1
24385 # On HP/UX 11.0, mvwdelch is a block with a return statement
24386 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
24387 echo $ECHO_N "checking whether mvwdelch is an expression...
$ECHO_C" >&6; }
24388 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24389 echo $ECHO_N "(cached
) $ECHO_C" >&6
24391 cat >conftest.$ac_ext <<_ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 #include <curses.h>
24403 rtn = mvwdelch(0,0,0);
24409 rm -f conftest.$ac_objext
24410 if { (ac_try="$ac_compile"
24411 case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_compile") 2>conftest.er1
24418 grep -v '^ *+' conftest.er1 >conftest.err
24420 cat conftest.err >&5
24421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest.$ac_objext; then
24426 ac_cv_mvwdelch_is_expression=yes
24428 echo "$as_me: failed program was
:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ac_cv_mvwdelch_is_expression=no
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437 { echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
24438 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24440 if test "$ac_cv_mvwdelch_is_expression" = yes
24443 cat >>confdefs.h <<\_ACEOF
24444 #define MVWDELCH_IS_EXPRESSION 1
24449 { echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
24450 echo $ECHO_N "checking whether WINDOW has _flags...
$ECHO_C" >&6; }
24451 if test "${ac_cv_window_has_flags+set}" = set; then
24452 echo $ECHO_N "(cached
) $ECHO_C" >&6
24454 cat >conftest.$ac_ext <<_ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h. */
24460 #include <curses.h>
24472 rm -f conftest.$ac_objext
24473 if { (ac_try="$ac_compile"
24474 case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_compile") 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24485 (exit $ac_status); } && {
24486 test -z "$ac_c_werror_flag" ||
24487 test ! -s conftest.err
24488 } && test -s conftest.$ac_objext; then
24489 ac_cv_window_has_flags=yes
24491 echo "$as_me: failed program was
:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 ac_cv_window_has_flags=no
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24500 { echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
24501 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24504 if test "$ac_cv_window_has_flags" = yes
24507 cat >>confdefs.h <<\_ACEOF
24508 #define WINDOW_HAS_FLAGS 1
24513 { echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
24514 echo $ECHO_N "checking
for is_term_resized...
$ECHO_C" >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 #include <curses.h>
24525 void *x=is_term_resized
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24539 grep -v '^ *+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24548 cat >>confdefs.h <<\_ACEOF
24549 #define HAVE_CURSES_IS_TERM_RESIZED 1
24552 { echo "$as_me:$LINENO: result
: yes" >&5
24553 echo "${ECHO_T}yes" >&6; }
24555 echo "$as_me: failed program was
:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24558 { echo "$as_me:$LINENO: result
: no
" >&5
24559 echo "${ECHO_T}no
" >&6; }
24563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24565 { echo "$as_me:$LINENO: checking
for resize_term
" >&5
24566 echo $ECHO_N "checking
for resize_term...
$ECHO_C" >&6; }
24567 cat >conftest.$ac_ext <<_ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24573 #include <curses.h>
24577 void *x=resize_term
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest.$ac_objext; then
24600 cat >>confdefs.h <<\_ACEOF
24601 #define HAVE_CURSES_RESIZE_TERM 1
24604 { echo "$as_me:$LINENO: result
: yes" >&5
24605 echo "${ECHO_T}yes" >&6; }
24607 echo "$as_me: failed program was
:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24610 { echo "$as_me:$LINENO: result
: no
" >&5
24611 echo "${ECHO_T}no
" >&6; }
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617 { echo "$as_me:$LINENO: checking
for resizeterm
" >&5
24618 echo $ECHO_N "checking
for resizeterm...
$ECHO_C" >&6; }
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24625 #include <curses.h>
24634 rm -f conftest.$ac_objext
24635 if { (ac_try="$ac_compile"
24636 case "(($ac_try" in
24637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638 *) ac_try_echo=$ac_try;;
24640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24641 (eval "$ac_compile") 2>conftest.er1
24643 grep -v '^ *+' conftest.er1 >conftest.err
24645 cat conftest.err >&5
24646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24647 (exit $ac_status); } && {
24648 test -z "$ac_c_werror_flag" ||
24649 test ! -s conftest.err
24650 } && test -s conftest.$ac_objext; then
24652 cat >>confdefs.h <<\_ACEOF
24653 #define HAVE_CURSES_RESIZETERM 1
24656 { echo "$as_me:$LINENO: result
: yes" >&5
24657 echo "${ECHO_T}yes" >&6; }
24659 echo "$as_me: failed program was
:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 { echo "$as_me:$LINENO: result
: no
" >&5
24663 echo "${ECHO_T}no
" >&6; }
24667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 { echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
24670 echo $ECHO_N "checking
for /dev
/ptmx...
$ECHO_C" >&6; }
24672 if test -r /dev/ptmx
24674 { echo "$as_me:$LINENO: result
: yes" >&5
24675 echo "${ECHO_T}yes" >&6; }
24677 cat >>confdefs.h <<\_ACEOF
24678 #define HAVE_DEV_PTMX 1
24682 { echo "$as_me:$LINENO: result
: no
" >&5
24683 echo "${ECHO_T}no
" >&6; }
24686 { echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
24687 echo $ECHO_N "checking
for /dev
/ptc...
$ECHO_C" >&6; }
24689 if test -r /dev/ptc
24691 { echo "$as_me:$LINENO: result
: yes" >&5
24692 echo "${ECHO_T}yes" >&6; }
24694 cat >>confdefs.h <<\_ACEOF
24695 #define HAVE_DEV_PTC 1
24699 { echo "$as_me:$LINENO: result
: no
" >&5
24700 echo "${ECHO_T}no
" >&6; }
24703 { echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
24704 echo $ECHO_N "checking
for %zd
printf() format support...
$ECHO_C" >&6; }
24705 if test "$cross_compiling" = yes; then
24706 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
24707 See \
`config.log' for more details." >&5
24708 echo "$as_me: error: cannot run test program while cross compiling
24709 See \`config.log
' for more details." >&2;}
24710 { (exit 1); exit 1; }; }
24712 cat >conftest.$ac_ext <<_ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h. */
24719 #include <stddef.h>
24720 #include <string.h>
24722 #ifdef HAVE_SYS_TYPES_H
24723 #include <sys/types.h>
24726 #ifdef HAVE_SSIZE_T
24727 typedef ssize_t Py_ssize_t;
24728 #elif SIZEOF_VOID_P == SIZEOF_LONG
24729 typedef long Py_ssize_t;
24731 typedef int Py_ssize_t;
24738 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24741 if (strcmp(buffer, "123"))
24744 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24747 if (strcmp(buffer, "-123"))
24753 rm -f conftest$ac_exeext
24754 if { (ac_try="$ac_link"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_link") 2>&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24764 { (case "(($ac_try" in
24765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766 *) ac_try_echo=$ac_try;;
24768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24769 (eval "$ac_try") 2>&5
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 { echo "$as_me:$LINENO: result: yes" >&5
24774 echo "${ECHO_T}yes" >&6; }
24776 cat >>confdefs.h <<\_ACEOF
24777 #define PY_FORMAT_SIZE_T "z"
24781 echo "$as_me: program exited with status $ac_status" >&5
24782 echo "$as_me: failed program was:" >&5
24783 sed 's
/^
/|
/' conftest.$ac_ext >&5
24785 ( exit $ac_status )
24786 { echo "$as_me:$LINENO: result: no" >&5
24787 echo "${ECHO_T}no" >&6; }
24789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24794 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24795 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24796 if test "${ac_cv_type_socklen_t+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 cat >conftest.$ac_ext <<_ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h. */
24806 #ifdef HAVE_SYS_TYPES_H
24807 #include <sys/types.h>
24809 #ifdef HAVE_SYS_SOCKET_H
24810 #include <sys/socket.h>
24814 typedef socklen_t ac__type_new_;
24818 if ((ac__type_new_ *) 0)
24820 if (sizeof (ac__type_new_))
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24835 grep -v '^
*+' conftest.er1 >conftest.err
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest.$ac_objext; then
24843 ac_cv_type_socklen_t=yes
24845 echo "$as_me: failed program was:" >&5
24846 sed 's
/^
/|
/' conftest.$ac_ext >&5
24848 ac_cv_type_socklen_t=no
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24854 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24855 if test $ac_cv_type_socklen_t = yes; then
24859 cat >>confdefs.h <<\_ACEOF
24860 #define socklen_t int
24866 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
24867 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
24868 if test "$cross_compiling" = yes; then
24869 ac_cv_broken_mbstowcs=no
24871 cat >conftest.$ac_ext <<_ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h. */
24881 const char *str = "text";
24882 len = mbstowcs(NULL, str, 0);
24887 rm -f conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_link") 2>&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24898 { (case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903 (eval "$ac_try") 2>&5
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_cv_broken_mbstowcs=no
24909 echo "$as_me: program exited with status $ac_status" >&5
24910 echo "$as_me: failed program was:" >&5
24911 sed 's
/^
/|
/' conftest.$ac_ext >&5
24913 ( exit $ac_status )
24914 ac_cv_broken_mbstowcs=yes
24916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24920 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
24921 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
24922 if test "$ac_cv_broken_mbstowcs" = yes
24925 cat >>confdefs.h <<\_ACEOF
24926 #define HAVE_BROKEN_MBSTOWCS 1
24931 # Check for --with-computed-gotos
24932 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
24933 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
24935 # Check whether --with-computed-gotos was given.
24936 if test "${with_computed_gotos+set}" = set; then
24937 withval=$with_computed_gotos;
24938 if test "$withval" != no
24941 cat >>confdefs.h <<\_ACEOF
24942 #define USE_COMPUTED_GOTOS 1
24945 { echo "$as_me:$LINENO: result: yes" >&5
24946 echo "${ECHO_T}yes" >&6; }
24947 else { echo "$as_me:$LINENO: result: no" >&5
24948 echo "${ECHO_T}no" >&6; }
24951 { echo "$as_me:$LINENO: result: no" >&5
24952 echo "${ECHO_T}no" >&6; }
24959 for h in `(cd $srcdir;echo Python/thread_*.h)`
24961 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24965 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24966 { echo "$as_me:$LINENO: checking for build directories" >&5
24967 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24968 for dir in $SRCDIRS; do
24969 if test ! -d $dir; then
24973 { echo "$as_me:$LINENO: result: done" >&5
24974 echo "${ECHO_T}done" >&6; }
24976 # generate output files
24977 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24979 cat >confcache <<\_ACEOF
24980 # This file is a shell script that caches the results of configure
24981 # tests run on this system so they can be shared between configure
24982 # scripts and configure runs, see configure's option
--config-cache.
24983 # It is not useful on other systems. If it contains results you don't
24984 # want to keep, you may remove or edit it.
24986 # config.status only pays attention to the cache file if you give it
24987 # the --recheck option to rerun configure.
24989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24991 # following values.
24995 # The following way of writing the cache mishandles newlines in values,
24996 # but we know of no workaround that is simple, portable, and efficient.
24997 # So, we kill variables containing newlines.
24998 # Ultrix sh set writes to stderr and can't be redirected directly,
24999 # and sets the high bit in the cache file unless we assign to the vars.
25001 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25002 eval ac_val
=\$
$ac_var
25006 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25007 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25010 _ | IFS | as_nl
) ;; #(
25011 *) $as_unset $ac_var ;;
25017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25018 *${as_nl}ac_space
=\
*)
25019 # `set' does not quote correctly, so add quotes (double-quote
25020 # substitution turns \\\\ into \\, and sed turns \\ into \).
25023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25026 # `set' quotes correctly as required by POSIX, so do not add quotes.
25027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25040 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25041 if test -w "$cache_file"; then
25042 test "x$cache_file" != "x/dev/null" &&
25043 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25044 echo "$as_me: updating cache $cache_file" >&6;}
25045 cat confcache
>$cache_file
25047 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25048 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25053 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25054 # Let make expand exec_prefix.
25055 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25057 DEFS
=-DHAVE_CONFIG_H
25061 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25062 # 1. Remove the extension, and $U if already installed.
25063 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25064 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25066 # will be set to the directory where LIBOBJS objects are built.
25067 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25068 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25070 LIBOBJS
=$ac_libobjs
25072 LTLIBOBJS
=$ac_ltlibobjs
25076 : ${CONFIG_STATUS=./config.status}
25077 ac_clean_files_save
=$ac_clean_files
25078 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25079 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25080 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25081 cat >$CONFIG_STATUS <<_ACEOF
25083 # Generated by $as_me.
25084 # Run this file to recreate the current configuration.
25085 # Compiler output produced by configure, useful for debugging
25086 # configure, is in config.log if it exists.
25089 ac_cs_recheck=false
25091 SHELL=\${CONFIG_SHELL-$SHELL}
25094 cat >>$CONFIG_STATUS <<\_ACEOF
25095 ## --------------------- ##
25096 ## M4sh Initialization. ##
25097 ## --------------------- ##
25099 # Be more Bourne compatible
25100 DUALCASE
=1; export DUALCASE
# for MKS sh
25101 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25104 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25105 # is contrary to our usage. Disable this feature.
25106 alias -g '${1+"$@"}'='"$@"'
25107 setopt NO_GLOB_SUBST
25109 case `(set -o) 2>/dev/null` in
25110 *posix
*) set -o posix
;;
25119 # Avoid depending upon Character Ranges.
25120 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25121 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25122 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25123 as_cr_digits
='0123456789'
25124 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25126 # The user is always right.
25127 if test "${PATH_SEPARATOR+set}" != set; then
25128 echo "#! /bin/sh" >conf$$.sh
25129 echo "exit 0" >>conf$$.sh
25131 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25139 # Support unset when possible.
25140 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25148 # We need space, tab and new line, in precisely that order. Quoting is
25149 # there to prevent editors from complaining about space-tab.
25150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25151 # splitting by setting IFS to empty value.)
25156 # Find who we are. Look in the path if we contain no directory separator.
25158 *[\\/]* ) as_myself
=$0 ;;
25159 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25160 for as_dir
in $PATH
25163 test -z "$as_dir" && as_dir
=.
25164 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25170 # We did not find ourselves, most probably we were run as `sh COMMAND'
25171 # in which case we are not to be found in the path.
25172 if test "x$as_myself" = x
; then
25175 if test ! -f "$as_myself"; then
25176 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25177 { (exit 1); exit 1; }
25180 # Work around bugs in pre-3.0 UWIN ksh.
25181 for as_var
in ENV MAIL MAILPATH
25182 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25190 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25191 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25192 LC_TELEPHONE LC_TIME
25194 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25195 eval $as_var=C
; export $as_var
25197 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25201 # Required to use basename.
25202 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25203 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25209 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25210 as_basename
=basename
25216 # Name of the executable.
25217 as_me
=`$as_basename -- "$0" ||
25218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25219 X"$0" : 'X\(//\)$' \| \
25220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25222 sed '/^.*\/\([^/][^/]*\)\/*$/{
25241 as_lineno_1
=$LINENO
25242 as_lineno_2
=$LINENO
25243 test "x$as_lineno_1" != "x$as_lineno_2" &&
25244 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25246 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25247 # uniformly replaced by the line number. The first 'sed' inserts a
25248 # line-number line after each line using $LINENO; the second 'sed'
25249 # does the real work. The second script uses 'N' to pair each
25250 # line-number line with the line containing $LINENO, and appends
25251 # trailing '-' during substitution so that $LINENO is not a special
25252 # case at line end.
25253 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25254 # scripts with optimization help from Paolo Bonzini. Blame Lee
25255 # E. McMahon (1931-1989) for sed's syntax. :-)
25267 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25270 ' >$as_me.lineno
&&
25271 chmod +x
"$as_me.lineno" ||
25272 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25273 { (exit 1); exit 1; }; }
25275 # Don't try to exec as it changes $[0], causing all sort of problems
25276 # (the dirname of $[0] is not the place where we might find the
25277 # original and so on. Autoconf is especially sensitive to this).
25278 .
"./$as_me.lineno"
25279 # Exit status is that of the last command.
25284 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25290 ECHO_C
= ECHO_N
= ECHO_T
=
25291 case `echo -n x` in
25293 case `echo 'x\c'` in
25294 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25301 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25302 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25308 rm -f conf$$ conf$$.exe conf$$.
file
25309 if test -d conf$$.dir
; then
25310 rm -f conf$$.dir
/conf$$.
file
25316 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25318 # ... but there are two gotchas:
25319 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25320 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25321 # In both cases, we have to default to `cp -p'.
25322 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25324 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25329 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25330 rmdir conf$$.dir
2>/dev
/null
25332 if mkdir
-p .
2>/dev
/null
; then
25335 test -d .
/-p && rmdir .
/-p
25339 if test -x / >/dev
/null
2>&1; then
25340 as_test_x
='test -x'
25342 if ls -dL / >/dev
/null
2>&1; then
25349 if test -d "$1"; then
25355 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25356 ???[sx]*):;;*)false;;esac;fi
25360 as_executable_p
=$as_test_x
25362 # Sed expression to map a string onto a valid CPP name.
25363 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25365 # Sed expression to map a string onto a valid variable name.
25366 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25371 # Save the log message, to keep $[0] and so on meaningful, and to
25372 # report actual input values of CONFIG_FILES etc. instead of their
25373 # values after options handling.
25375 This file was extended by python $as_me 3.1, which was
25376 generated by GNU Autoconf 2.61. Invocation command line was
25378 CONFIG_FILES = $CONFIG_FILES
25379 CONFIG_HEADERS = $CONFIG_HEADERS
25380 CONFIG_LINKS = $CONFIG_LINKS
25381 CONFIG_COMMANDS = $CONFIG_COMMANDS
25384 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25389 cat >>$CONFIG_STATUS <<_ACEOF
25390 # Files that config.status was made for.
25391 config_files="$ac_config_files"
25392 config_headers="$ac_config_headers"
25396 cat >>$CONFIG_STATUS <<\_ACEOF
25398 \`$as_me' instantiates files from templates according to the
25399 current configuration.
25401 Usage: $0 [OPTIONS] [FILE]...
25403 -h, --help print this help, then exit
25404 -V, --version print version number and configuration settings, then exit
25405 -q, --quiet do not print progress messages
25406 -d, --debug don't remove temporary files
25407 --recheck update $as_me by reconfiguring in the same conditions
25408 --file=FILE[:TEMPLATE]
25409 instantiate the configuration file FILE
25410 --header=FILE[:TEMPLATE]
25411 instantiate the configuration header FILE
25413 Configuration files:
25416 Configuration headers:
25419 Report bugs to <bug-autoconf@gnu.org>."
25422 cat >>$CONFIG_STATUS <<_ACEOF
25424 python config.status 3.1
25425 configured by $0, generated by GNU Autoconf 2.61,
25426 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25428 Copyright (C) 2006 Free Software Foundation, Inc.
25429 This config.status script is free software; the Free Software Foundation
25430 gives unlimited permission to copy, distribute and modify it."
25437 cat >>$CONFIG_STATUS <<\_ACEOF
25438 # If no file are specified by the user, then we need to provide default
25439 # value. By we need to know if files were specified by the user.
25445 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25446 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25457 # Handling of the options.
25458 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25460 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25461 echo "$ac_cs_version"; exit ;;
25462 --debug |
--debu |
--deb |
--de |
--d |
-d )
25464 --file |
--fil |
--fi |
--f )
25466 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25467 ac_need_defaults
=false
;;
25468 --header |
--heade |
--head |
--hea )
25470 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25471 ac_need_defaults
=false
;;
25473 # Conflict between --help and --header
25474 { echo "$as_me: error: ambiguous option: $1
25475 Try \`$0 --help' for more information." >&2
25476 { (exit 1); exit 1; }; };;
25477 --help |
--hel |
-h )
25478 echo "$ac_cs_usage"; exit ;;
25479 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25480 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25483 # This is an error.
25484 -*) { echo "$as_me: error: unrecognized option: $1
25485 Try \`$0 --help' for more information." >&2
25486 { (exit 1); exit 1; }; } ;;
25488 *) ac_config_targets
="$ac_config_targets $1"
25489 ac_need_defaults
=false
;;
25495 ac_configure_extra_args
=
25497 if $ac_cs_silent; then
25499 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25503 cat >>$CONFIG_STATUS <<_ACEOF
25504 if \$ac_cs_recheck; then
25505 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25506 CONFIG_SHELL=$SHELL
25507 export CONFIG_SHELL
25508 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25512 cat >>$CONFIG_STATUS <<\_ACEOF
25516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25517 ## Running $as_me. ##
25523 cat >>$CONFIG_STATUS <<_ACEOF
25526 cat >>$CONFIG_STATUS <<\_ACEOF
25528 # Handling of arguments.
25529 for ac_config_target
in $ac_config_targets
25531 case $ac_config_target in
25532 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25533 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25534 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25535 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25536 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25537 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25538 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25540 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25541 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25542 { (exit 1); exit 1; }; };;
25547 # If the user did not use the arguments to specify the items to instantiate,
25548 # then the envvar interface is used. Set only those that are not.
25549 # We use the long form for the default assignment because of an extremely
25550 # bizarre bug on SunOS 4.1.3.
25551 if $ac_need_defaults; then
25552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25556 # Have a temporary directory for convenience. Make it in the build tree
25557 # simply because there is no reason against having it here, and in addition,
25558 # creating and moving files from /tmp can sometimes cause problems.
25559 # Hook for its removal unless debugging.
25560 # Note that there is a small window in which the directory will not be cleaned:
25561 # after its creation but before its name has been assigned to `$tmp'.
25565 trap 'exit_status=$?
25566 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25568 trap '{ (exit 1); exit 1; }' 1 2 13 15
25570 # Create a (secure) tmp directory for tmp files.
25573 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25574 test -n "$tmp" && test -d "$tmp"
25577 tmp
=.
/conf$$
-$RANDOM
25578 (umask 077 && mkdir
"$tmp")
25581 echo "$me: cannot create a temporary directory in ." >&2
25582 { (exit 1); exit 1; }
25586 # Set up the sed scripts for CONFIG_FILES section.
25589 # No need to generate the scripts if there are no CONFIG_FILES.
25590 # This happens for instance when ./config.status config.h
25591 if test -n "$CONFIG_FILES"; then
25598 for ac_last_try
in false false false false false
:; do
25599 cat >conf$
$subs.
sed <<_ACEOF
25600 SHELL!$SHELL$ac_delim
25601 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25602 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25603 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25604 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25605 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25606 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25607 exec_prefix!$exec_prefix$ac_delim
25608 prefix!$prefix$ac_delim
25609 program_transform_name!$program_transform_name$ac_delim
25610 bindir!$bindir$ac_delim
25611 sbindir!$sbindir$ac_delim
25612 libexecdir!$libexecdir$ac_delim
25613 datarootdir!$datarootdir$ac_delim
25614 datadir!$datadir$ac_delim
25615 sysconfdir!$sysconfdir$ac_delim
25616 sharedstatedir!$sharedstatedir$ac_delim
25617 localstatedir!$localstatedir$ac_delim
25618 includedir!$includedir$ac_delim
25619 oldincludedir!$oldincludedir$ac_delim
25620 docdir!$docdir$ac_delim
25621 infodir!$infodir$ac_delim
25622 htmldir!$htmldir$ac_delim
25623 dvidir!$dvidir$ac_delim
25624 pdfdir!$pdfdir$ac_delim
25625 psdir!$psdir$ac_delim
25626 libdir!$libdir$ac_delim
25627 localedir!$localedir$ac_delim
25628 mandir!$mandir$ac_delim
25629 DEFS!$DEFS$ac_delim
25630 ECHO_C!$ECHO_C$ac_delim
25631 ECHO_N!$ECHO_N$ac_delim
25632 ECHO_T!$ECHO_T$ac_delim
25633 LIBS!$LIBS$ac_delim
25634 build_alias!$build_alias$ac_delim
25635 host_alias!$host_alias$ac_delim
25636 target_alias!$target_alias$ac_delim
25637 VERSION!$VERSION$ac_delim
25638 SOVERSION!$SOVERSION$ac_delim
25639 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25640 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25641 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25642 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25643 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25644 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25645 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25646 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25647 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25648 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25649 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25650 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25651 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25652 MACHDEP!$MACHDEP$ac_delim
25653 SGI_ABI!$SGI_ABI$ac_delim
25654 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25655 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25657 CFLAGS!$CFLAGS$ac_delim
25658 LDFLAGS!$LDFLAGS$ac_delim
25659 CPPFLAGS!$CPPFLAGS$ac_delim
25660 ac_ct_CC!$ac_ct_CC$ac_delim
25661 EXEEXT!$EXEEXT$ac_delim
25662 OBJEXT!$OBJEXT$ac_delim
25664 MAINCC!$MAINCC$ac_delim
25666 GREP!$GREP$ac_delim
25667 EGREP!$EGREP$ac_delim
25668 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25669 LIBRARY!$LIBRARY$ac_delim
25670 LDLIBRARY!$LDLIBRARY$ac_delim
25671 DLLLIBRARY!$DLLLIBRARY$ac_delim
25672 BLDLIBRARY!$BLDLIBRARY$ac_delim
25673 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25674 INSTSONAME!$INSTSONAME$ac_delim
25675 RUNSHARED!$RUNSHARED$ac_delim
25676 LINKCC!$LINKCC$ac_delim
25677 RANLIB!$RANLIB$ac_delim
25679 SVNVERSION!$SVNVERSION$ac_delim
25680 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25681 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25682 INSTALL_DATA!$INSTALL_DATA$ac_delim
25685 BASECFLAGS!$BASECFLAGS$ac_delim
25686 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25687 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25688 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25690 LDSHARED!$LDSHARED$ac_delim
25691 BLDSHARED!$BLDSHARED$ac_delim
25692 CCSHARED!$CCSHARED$ac_delim
25693 LINKFORSHARED!$LINKFORSHARED$ac_delim
25694 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25695 SHLIBS!$SHLIBS$ac_delim
25696 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25701 elif $ac_last_try; then
25702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25703 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25704 { (exit 1); exit 1; }; }
25706 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25710 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25711 if test -n "$ac_eof"; then
25712 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25713 ac_eof
=`expr $ac_eof + 1`
25716 cat >>$CONFIG_STATUS <<_ACEOF
25717 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25721 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25722 s/^/s,@/; s/!/@,|#_!!_#|/
25725 s/'"$ac_delim"'$/,g/; t
25727 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25728 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25729 rm -f conf$
$subs.
sed
25730 cat >>$CONFIG_STATUS <<_ACEOF
25736 for ac_last_try
in false false false false false
:; do
25737 cat >conf$
$subs.
sed <<_ACEOF
25738 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25739 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25740 LDLAST!$LDLAST$ac_delim
25741 THREADOBJ!$THREADOBJ$ac_delim
25742 DLINCLDIR!$DLINCLDIR$ac_delim
25743 DYNLOADFILE!$DYNLOADFILE$ac_delim
25744 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25745 TRUE!$TRUE$ac_delim
25746 LIBOBJS!$LIBOBJS$ac_delim
25747 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25748 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25749 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25750 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25751 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25752 LIBM!$LIBM$ac_delim
25753 LIBC!$LIBC$ac_delim
25754 THREADHEADERS!$THREADHEADERS$ac_delim
25755 SRCDIRS!$SRCDIRS$ac_delim
25756 LTLIBOBJS!$LTLIBOBJS$ac_delim
25759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
25761 elif $ac_last_try; then
25762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25764 { (exit 1); exit 1; }; }
25766 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25770 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25771 if test -n "$ac_eof"; then
25772 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25773 ac_eof
=`expr $ac_eof + 1`
25776 cat >>$CONFIG_STATUS <<_ACEOF
25777 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25782 s/^/s,@/; s/!/@,|#_!!_#|/
25785 s/'"$ac_delim"'$/,g/; t
25787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25788 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25789 rm -f conf$
$subs.
sed
25790 cat >>$CONFIG_STATUS <<_ACEOF
25797 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25798 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25799 # trailing colons and then remove the whole line if VPATH becomes empty
25800 # (actually we leave an empty line to preserve line numbers).
25801 if test "x$srcdir" = x.
; then
25802 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25803 s/:*\$(srcdir):*/:/
25804 s/:*\${srcdir}:*/:/
25806 s/^\([^=]*=[ ]*\):*/\1/
25812 cat >>$CONFIG_STATUS <<\_ACEOF
25813 fi # test -n "$CONFIG_FILES"
25816 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
25819 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25821 case $ac_mode$ac_tag in
25823 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25824 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25825 { (exit 1); exit 1; }; };;
25826 :[FH
]-) ac_tag
=-:-;;
25827 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25844 -) ac_f
="$tmp/stdin";;
25845 *) # Look for the file first in the build tree, then in the source tree
25846 # (if the path is not absolute). The absolute path cannot be DOS-style,
25847 # because $ac_f cannot contain `:'.
25851 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25853 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25854 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25855 { (exit 1); exit 1; }; };;
25857 ac_file_inputs
="$ac_file_inputs $ac_f"
25860 # Let's still pretend it is `configure' which instantiates (i.e., don't
25861 # use $as_me), people would be surprised to read:
25862 # /* config.h. Generated by config.status. */
25863 configure_input
="Generated from "`IFS=:
25864 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25865 if test x
"$ac_file" != x-
; then
25866 configure_input
="$ac_file. $configure_input"
25867 { echo "$as_me:$LINENO: creating $ac_file" >&5
25868 echo "$as_me: creating $ac_file" >&6;}
25872 *:-:* |
*:-) cat >"$tmp/stdin";;
25877 ac_dir
=`$as_dirname -- "$ac_file" ||
25878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25879 X"$ac_file" : 'X\(//\)[^/]' \| \
25880 X"$ac_file" : 'X\(//\)$' \| \
25881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25887 /^X\(\/\/\)[^/].*/{
25902 -*) as_dir
=.
/$as_dir;;
25904 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25908 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25909 *) as_qdir
=$as_dir;;
25911 as_dirs
="'$as_qdir' $as_dirs"
25912 as_dir
=`$as_dirname -- "$as_dir" ||
25913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25914 X"$as_dir" : 'X\(//\)[^/]' \| \
25915 X"$as_dir" : 'X\(//\)$' \| \
25916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25922 /^X\(\/\/\)[^/].*/{
25935 test -d "$as_dir" && break
25937 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25938 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25940 { (exit 1); exit 1; }; }; }
25944 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25946 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25947 # A ".." for each directory in $ac_dir_suffix.
25948 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25949 case $ac_top_builddir_sub in
25950 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25951 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25954 ac_abs_top_builddir
=$ac_pwd
25955 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25956 # for backward compatibility:
25957 ac_top_builddir
=$ac_top_build_prefix
25960 .
) # We are building in place.
25962 ac_top_srcdir
=$ac_top_builddir_sub
25963 ac_abs_top_srcdir
=$ac_pwd ;;
25964 [\\/]* | ?
:[\\/]* ) # Absolute name.
25965 ac_srcdir
=$srcdir$ac_dir_suffix;
25966 ac_top_srcdir
=$srcdir
25967 ac_abs_top_srcdir
=$srcdir ;;
25968 *) # Relative name.
25969 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25970 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25971 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25973 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25983 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25984 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25988 cat >>$CONFIG_STATUS <<\_ACEOF
25989 # If the template does not know about datarootdir, expand it.
25990 # FIXME: This hack should be removed a few years after 2.60.
25991 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25993 case `sed -n '/datarootdir/ {
26002 ' $ac_file_inputs` in
26003 *datarootdir
*) ac_datarootdir_seen
=yes;;
26004 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26005 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26006 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26008 cat >>$CONFIG_STATUS <<_ACEOF
26009 ac_datarootdir_hack='
26010 s&@datadir@&$datadir&g
26011 s&@docdir@&$docdir&g
26012 s&@infodir@&$infodir&g
26013 s&@localedir@&$localedir&g
26014 s&@mandir@&$mandir&g
26015 s&\\\${datarootdir}&$datarootdir&g' ;;
26019 # Neutralize VPATH when `$srcdir' = `.'.
26020 # Shell code in configure.ac might set extrasub.
26021 # FIXME: do we really want to maintain this feature?
26022 cat >>$CONFIG_STATUS <<_ACEOF
26026 cat >>$CONFIG_STATUS <<\_ACEOF
26028 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26029 s
&@configure_input@
&$configure_input&;t t
26030 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26031 s
&@srcdir@
&$ac_srcdir&;t t
26032 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26033 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26034 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26035 s
&@builddir@
&$ac_builddir&;t t
26036 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26037 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26038 s
&@INSTALL@
&$ac_INSTALL&;t t
26039 $ac_datarootdir_hack
26040 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26043 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26045 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26046 which seems to be undefined. Please make sure it is defined." >&5
26047 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26048 which seems to be undefined. Please make sure it is defined." >&2;}
26052 -) cat "$tmp/out"; rm -f "$tmp/out";;
26053 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26062 # Transform confdefs.h into a sed script `conftest.defines', that
26063 # substitutes the proper values into config.h.in to produce config.h.
26064 rm -f conftest.defines conftest.
tail
26065 # First, append a space to every undef/define line, to ease matching.
26066 echo 's/$/ /' >conftest.defines
26067 # Then, protect against being on the right side of a sed subst, or in
26068 # an unquoted here document, in config.status. If some macros were
26069 # called several times there might be several #defines for the same
26070 # symbol, which is useless. But do not sort them, since the last
26071 # AC_DEFINE must be honored.
26072 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26073 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26074 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26075 # PARAMS is the parameter list in the macro definition--in most cases, it's
26076 # just an empty string.
26077 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26078 ac_dB
='\\)[ (].*,\\1define\\2'
26086 s/^[ ]*#[ ]*define[ ][ ]*//
26091 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26092 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26093 ' >>conftest.defines
26095 # Remove the space that was appended to ease matching.
26096 # Then replace #undef with comments. This is necessary, for
26097 # example, in the case of _POSIX_SOURCE, which is predefined and required
26098 # on some systems where configure will not decide to define it.
26099 # (The regexp can be short, since the line contains either #define or #undef.)
26101 s,^[ #]*u.*,/* & */,' >>conftest.defines
26103 # Break up conftest.defines:
26104 ac_max_sed_lines
=50
26106 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26107 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26108 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26110 ac_in
='$ac_file_inputs'
26111 ac_out
='"$tmp/out1"'
26112 ac_nxt
='"$tmp/out2"'
26116 # Write a here document:
26117 cat >>$CONFIG_STATUS <<_ACEOF
26118 # First, check the format of the line:
26119 cat >"\$tmp/defines.sed" <<\\CEOF
26120 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26121 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26125 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26127 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26128 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26129 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26130 grep . conftest.
tail >/dev
/null ||
break
26131 rm -f conftest.defines
26132 mv conftest.
tail conftest.defines
26134 rm -f conftest.defines conftest.
tail
26136 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26137 cat >>$CONFIG_STATUS <<\_ACEOF
26138 if test x
"$ac_file" != x-
; then
26139 echo "/* $configure_input */" >"$tmp/config.h"
26140 cat "$ac_result" >>"$tmp/config.h"
26141 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26142 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26143 echo "$as_me: $ac_file is unchanged" >&6;}
26146 mv "$tmp/config.h" $ac_file
26149 echo "/* $configure_input */"
26161 { (exit 0); exit 0; }
26163 chmod +x
$CONFIG_STATUS
26164 ac_clean_files
=$ac_clean_files_save
26167 # configure is writing to config.log, and then calls config.status.
26168 # config.status does its own redirection, appending to config.log.
26169 # Unfortunately, on DOS this fails, as config.log is still kept open
26170 # by configure, so config.status won't be able to write to it; its
26171 # output is simply discarded. So we exec the FD to /dev/null,
26172 # effectively closing config.log, so it can be properly (re)opened and
26173 # appended to by config.status. When coming back to configure, we
26174 # need to make the FD available again.
26175 if test "$no_create" != yes; then
26177 ac_config_status_args
=
26178 test "$silent" = yes &&
26179 ac_config_status_args
="$ac_config_status_args --quiet"
26181 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26183 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26184 # would make configure fail if this is the last instruction.
26185 $ac_cs_success ||
{ (exit 1); exit 1; }
26189 echo "creating Modules/Setup"
26190 if test ! -f Modules
/Setup
26192 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26195 echo "creating Modules/Setup.local"
26196 if test ! -f Modules
/Setup.
local
26198 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26201 echo "creating Makefile"
26202 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26203 -s Modules Modules
/Setup.config \
26204 Modules
/Setup.
local Modules
/Setup
26205 mv config.c Modules