2 # From configure.in Revision: 78197 .
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://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='3.1'
579 PACKAGE_STRING
='python 3.1'
580 PACKAGE_BUGREPORT
='http://bugs.python.org/'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
738 ac_precious_vars
='build_alias
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
761 program_transform_name
=s
,x
,x
,
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir
='${exec_prefix}/bin'
776 sbindir
='${exec_prefix}/sbin'
777 libexecdir
='${exec_prefix}/libexec'
778 datarootdir
='${prefix}/share'
779 datadir
='${datarootdir}'
780 sysconfdir
='${prefix}/etc'
781 sharedstatedir
='${prefix}/com'
782 localstatedir
='${prefix}/var'
783 includedir
='${prefix}/include'
784 oldincludedir
='/usr/include'
785 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir
='${datarootdir}/info'
791 libdir
='${exec_prefix}/lib'
792 localedir
='${datarootdir}/locale'
793 mandir
='${datarootdir}/man'
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\
$ac_option
807 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
817 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
819 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
822 -build |
--build |
--buil |
--bui |
--bu)
823 ac_prev
=build_alias
;;
824 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
825 build_alias
=$ac_optarg ;;
827 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
828 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
829 ac_prev
=cache_file
;;
830 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
831 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
832 cache_file
=$ac_optarg ;;
835 cache_file
=config.cache
;;
837 -datadir |
--datadir |
--datadi |
--datad)
839 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
840 datadir
=$ac_optarg ;;
842 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
843 |
--dataroo |
--dataro |
--datar)
844 ac_prev
=datarootdir
;;
845 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
846 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
847 datarootdir
=$ac_optarg ;;
849 -disable-* |
--disable-*)
850 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_
$ac_feature=no
;;
858 -docdir |
--docdir |
--docdi |
--doc |
--do)
860 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
863 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
865 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
868 -enable-* |
--enable-*)
869 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_
$ac_feature=\
$ac_optarg ;;
877 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
878 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
879 |
--exec |
--exe |
--ex)
880 ac_prev
=exec_prefix
;;
881 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
882 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
883 |
--exec=* |
--exe=* |
--ex=*)
884 exec_prefix
=$ac_optarg ;;
886 -gas |
--gas |
--ga |
--g)
887 # Obsolete; use --with-gas.
890 -help |
--help |
--hel |
--he |
-h)
892 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
893 ac_init_help
=recursive
;;
894 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
895 ac_init_help
=short
;;
897 -host |
--host |
--hos |
--ho)
898 ac_prev
=host_alias
;;
899 -host=* |
--host=* |
--hos=* |
--ho=*)
900 host_alias
=$ac_optarg ;;
902 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
904 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
906 htmldir
=$ac_optarg ;;
908 -includedir |
--includedir |
--includedi |
--included |
--include \
909 |
--includ |
--inclu |
--incl |
--inc)
910 ac_prev
=includedir
;;
911 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
912 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
913 includedir
=$ac_optarg ;;
915 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
917 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
918 infodir
=$ac_optarg ;;
920 -libdir |
--libdir |
--libdi |
--libd)
922 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
925 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
926 |
--libexe |
--libex |
--libe)
927 ac_prev
=libexecdir
;;
928 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
929 |
--libexe=* |
--libex=* |
--libe=*)
930 libexecdir
=$ac_optarg ;;
932 -localedir |
--localedir |
--localedi |
--localed |
--locale)
934 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
935 localedir
=$ac_optarg ;;
937 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
938 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
939 ac_prev
=localstatedir
;;
940 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
941 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
942 localstatedir
=$ac_optarg ;;
944 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
946 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
950 # Obsolete; use --without-fp.
953 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
954 |
--no-cr |
--no-c |
-n)
957 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
958 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
961 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
962 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
963 |
--oldin |
--oldi |
--old |
--ol |
--o)
964 ac_prev
=oldincludedir
;;
965 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
966 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
967 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
968 oldincludedir
=$ac_optarg ;;
970 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
972 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
975 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
976 |
--program-pre |
--program-pr |
--program-p)
977 ac_prev
=program_prefix
;;
978 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
979 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
980 program_prefix
=$ac_optarg ;;
982 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
983 |
--program-suf |
--program-su |
--program-s)
984 ac_prev
=program_suffix
;;
985 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
986 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
987 program_suffix
=$ac_optarg ;;
989 -program-transform-name |
--program-transform-name \
990 |
--program-transform-nam |
--program-transform-na \
991 |
--program-transform-n |
--program-transform- \
992 |
--program-transform |
--program-transfor \
993 |
--program-transfo |
--program-transf \
994 |
--program-trans |
--program-tran \
995 |
--progr-tra |
--program-tr |
--program-t)
996 ac_prev
=program_transform_name
;;
997 -program-transform-name=* |
--program-transform-name=* \
998 |
--program-transform-nam=* |
--program-transform-na=* \
999 |
--program-transform-n=* |
--program-transform-=* \
1000 |
--program-transform=* |
--program-transfor=* \
1001 |
--program-transfo=* |
--program-transf=* \
1002 |
--program-trans=* |
--program-tran=* \
1003 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1004 program_transform_name
=$ac_optarg ;;
1006 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1008 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1009 pdfdir
=$ac_optarg ;;
1011 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1013 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1016 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1017 |
-silent |
--silent |
--silen |
--sile |
--sil)
1020 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1022 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1024 sbindir
=$ac_optarg ;;
1026 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1027 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1028 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1030 ac_prev
=sharedstatedir
;;
1031 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1032 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1033 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1035 sharedstatedir
=$ac_optarg ;;
1037 -site |
--site |
--sit)
1039 -site=* |
--site=* |
--sit=*)
1042 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1044 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1045 srcdir
=$ac_optarg ;;
1047 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1048 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1049 ac_prev
=sysconfdir
;;
1050 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1051 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1052 sysconfdir
=$ac_optarg ;;
1054 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1055 ac_prev
=target_alias
;;
1056 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1057 target_alias
=$ac_optarg ;;
1059 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1062 -version |
--version |
--versio |
--versi |
--vers |
-V)
1063 ac_init_version
=: ;;
1066 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_
$ac_package=\
$ac_optarg ;;
1074 -without-* |
--without-*)
1075 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_
$ac_package=no
;;
1084 # Obsolete; use --with-x.
1087 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1088 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1089 ac_prev
=x_includes
;;
1090 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1091 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1092 x_includes
=$ac_optarg ;;
1094 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1095 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1096 ac_prev
=x_libraries
;;
1097 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1098 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1099 x_libraries
=$ac_optarg ;;
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1107 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\
$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1132 # Be sure to have absolute directory names.
1133 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val
=\$
$ac_var
1140 [\\/$
]* | ?
:[\\/]* ) continue;;
1141 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1152 target
=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x
; then
1156 if test "x$build_alias" = x
; then
1157 cross_compiling
=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1166 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1168 test "$silent" = yes && exec 6>/dev
/null
1171 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di
=`ls -di .` &&
1173 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted
=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir
=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1213 ac_srcdir_defaulted
=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1220 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1233 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 for ac_var
in $ac_precious_vars; do
1236 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1238 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1249 \`configure' configures python 3.1 to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive
) echo "Configuration of python 3.1:";;
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-universalsdk[=SDKDIR
]
1318 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1319 --enable-framework[=INSTALLDIR
]
1320 Build
(MacOSX|Darwin
) framework
1321 --enable-shared disable
/enable building shared python library
1322 --enable-profiling enable C-level code profiling
1323 --enable-ipv6 Enable ipv6
(with ipv4
) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-big-digits[=BITS
]
1326 use big digits
for Python longs
[BITS
=30]
1329 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1330 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1331 --with-universal-archs=ARCH
1332 select architectures
for universal build
("32-bit",
1333 "64-bit", "3-way", "intel" or
"all")
1334 --with-framework-name=FRAMEWORK
1335 specify an alternate name of the framework built
1336 with
--enable-framework
1337 --without-gcc never use gcc
1338 --with-cxx-main=<compiler
>
1339 compile main
() and link python executable with C
++
1341 --with-suffix=.exe
set executable suffix
1342 --with-pydebug build with Py_DEBUG defined
1343 --with-libs='lib1 ...' link against additional libs
1344 --with-system-ffi build _ctypes module using an installed ffi library
1345 --with-dbmliborder=db1
:db2
:...
1346 order to check db backends
for dbm. Valid value is a
1347 colon separated string with the backend names
1348 `ndbm', `gdbm
' and `bdb'.
1349 --with-signal-module disable
/enable signal module
1350 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1351 --with(out
)-threads[=DIRECTORY
]
1352 disable
/enable thread support
1353 --with(out
)-thread[=DIRECTORY
]
1354 deprecated
; use
--with(out
)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out
)-doc-strings disable
/enable documentation
strings
1357 --with(out
)-tsc enable
/disable timestamp counter profile
1358 --with(out
)-pymalloc disable
/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1363 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1364 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1365 loop
(not available on all compilers
)
1367 Some influential environment variables
:
1368 CC C compiler
command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1371 nonstandard directory
<lib dir
>
1372 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1373 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1374 you have headers
in a nonstandard directory
<include dir
>
1377 Use these variables to override the choices made by
`configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to <http://bugs.python.org/>.
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1408 .) # We are building in place.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1441 python configure 3.1
1442 generated by GNU Autoconf 2.61
1444 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1445 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1455 It was created by python $as_me 3.1, which was
1456 generated by GNU Autoconf 2.61. Invocation command line was
1468 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1469 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1470 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1471 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1472 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1475 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1477 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1478 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1479 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1480 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1481 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1482 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1483 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_must_keep_next=false
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1527 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 -* ) ac_must_keep_next=true ;;
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log. We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1567 ## ---------------- ##
1568 ## Cache variables. ##
1569 ## ---------------- ##
1572 # The following way of writing the cache mishandles newlines in values,
1574 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1575 eval ac_val=\$$ac_var
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1589 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 echo "$ac_var='\''$ac_val'\''"
1619 if test -n "$ac_subst_files"; then
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1630 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 echo "$ac_var='\''$ac_val'\''"
1637 if test -s confdefs.h; then
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694 elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705 echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1711 if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716 echo "$as_me: loading cache $cache_file" >&6;}
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724 echo "$as_me: creating cache $cache_file" >&6;}
1728 # Check that the precious variables saved in the cache have kept the same
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1739 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1743 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1750 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1751 echo "$as_me: former value
: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1753 echo "$as_me: current value
: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1771 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1772 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers pyconfig.h"
1813 if test "$prefix" != "/"; then
1814 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1822 # We don't use PACKAGE_ variables, and they cause conflicts
1823 # with other autoconf-based packages that include Python.h
1824 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1826 mv confdefs.h.new confdefs.h
1834 # The later defininition of _XOPEN_SOURCE disables certain features
1835 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1837 cat >>confdefs.h <<\_ACEOF
1838 #define _GNU_SOURCE 1
1842 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1843 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _NETBSD_SOURCE 1
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD_VISIBLE 1
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1863 cat >>confdefs.h <<\_ACEOF
1864 #define _BSD_TYPES 1
1868 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1869 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _DARWIN_C_SOURCE 1
1878 define_xopen_source=yes
1880 # Arguments passed to configure.
1882 CONFIG_ARGS="$ac_configure_args"
1884 { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
1885 echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1886 # Check whether --enable-universalsdk was given.
1887 if test "${enable_universalsdk+set}" = set; then
1888 enableval=$enable_universalsdk;
1891 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1892 if test ! -d "${enableval}"
1901 enable_universalsdk=
1904 UNIVERSALSDK=$enableval
1905 if test ! -d "${UNIVERSALSDK}"
1907 { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
1908 echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
1909 { (exit 1); exit 1; }; }
1918 enable_universalsdk=
1922 if test -n "${UNIVERSALSDK}"
1924 { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
1925 echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
1927 { echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6; }
1934 UNIVERSAL_ARCHS="32-bit"
1935 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1936 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1938 # Check whether --with-universal-archs was given.
1939 if test "${with_universal_archs+set}" = set; then
1940 withval=$with_universal_archs;
1941 { echo "$as_me:$LINENO: result: $withval" >&5
1942 echo "${ECHO_T}$withval" >&6; }
1943 UNIVERSAL_ARCHS="$withval"
1947 { echo "$as_me:$LINENO: result: 32-bit" >&5
1948 echo "${ECHO_T}32-bit" >&6; }
1956 # Check whether --with-framework-name was given.
1957 if test "${with_framework_name+set}" = set; then
1958 withval=$with_framework_name;
1959 PYTHONFRAMEWORK=${withval}
1960 PYTHONFRAMEWORKDIR=${withval}.framework
1961 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1965 PYTHONFRAMEWORK=Python
1966 PYTHONFRAMEWORKDIR=Python.framework
1967 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1971 # Check whether --enable-framework was given.
1972 if test "${enable_framework+set}" = set; then
1973 enableval=$enable_framework;
1976 enableval=/Library/Frameworks
1981 PYTHONFRAMEWORKDIR=no-framework
1982 PYTHONFRAMEWORKPREFIX=
1983 PYTHONFRAMEWORKINSTALLDIR=
1984 FRAMEWORKINSTALLFIRST=
1985 FRAMEWORKINSTALLLAST=
1986 FRAMEWORKALTINSTALLFIRST=
1987 FRAMEWORKALTINSTALLLAST=
1988 if test "x${prefix}" = "xNONE"; then
1989 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1991 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1996 PYTHONFRAMEWORKPREFIX=$enableval
1997 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1998 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1999 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2000 if test "$UNIVERSAL_ARCHS" = "all"
2002 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2003 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2005 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2006 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2009 if test "x${prefix}" = "xNONE" ; then
2010 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2012 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2014 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2016 # Add files for Mac specific code to the list of output
2018 ac_config_files="$ac_config_files Mac/Makefile"
2020 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2022 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2024 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2031 PYTHONFRAMEWORKDIR=no-framework
2032 PYTHONFRAMEWORKPREFIX=
2033 PYTHONFRAMEWORKINSTALLDIR=
2034 FRAMEWORKINSTALLFIRST=
2035 FRAMEWORKINSTALLLAST=
2036 FRAMEWORKALTINSTALLFIRST=
2037 FRAMEWORKALTINSTALLLAST=
2038 if test "x${prefix}" = "xNONE" ; then
2039 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2041 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2045 if test "$UNIVERSAL_ARCHS" = "all"
2047 FRAMEWORKINSTALLLAST=update4wayuniversal
2048 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2065 ## AC_HELP_STRING(--with-dyld,
2066 ## Use (OpenStep|Rhapsody) dynamic linker))
2068 # Set name for machine-dependent library files
2070 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2071 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2072 if test -z "$MACHDEP"
2074 ac_sys_system=`uname
-s`
2075 if test "$ac_sys_system" = "AIX" \
2076 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2077 ac_sys_release=`uname
-v`
2079 ac_sys_release=`uname
-r`
2081 ac_md_system=`echo $ac_sys_system |
2082 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2083 ac_md_release=`echo $ac_sys_release |
2084 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2085 MACHDEP="$ac_md_system$ac_md_release"
2088 cygwin*) MACHDEP="cygwin";;
2089 darwin*) MACHDEP="darwin";;
2090 atheos*) MACHDEP="atheos";;
2091 irix646) MACHDEP="irix6";;
2092 '') MACHDEP="unknown";;
2096 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2097 # disable features if it is defined, without any means to access these
2098 # features as extensions. For these systems, we skip the definition of
2099 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2100 # some feature, make sure there is no alternative way to access this
2101 # feature. Also, when using wildcards, make sure you have verified the
2102 # need for not defining _XOPEN_SOURCE on all systems matching the
2103 # wildcard, and that the wildcard does not include future systems
2104 # (which may remove their limitations).
2105 case $ac_sys_system/$ac_sys_release in
2106 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2107 # even though select is a POSIX function. Reported by J. Ribbens.
2108 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2109 # In addition, Stefan Krah confirms that issue #1244610 exists through
2110 # OpenBSD 4.6, but is fixed in 4.7.
2111 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2112 define_xopen_source=no
2113 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2114 # also defined. This can be overridden by defining _BSD_SOURCE
2115 # As this has a different meaning on Linux, only define it on OpenBSD
2117 cat >>confdefs.h <<\_ACEOF
2118 #define _BSD_SOURCE 1
2123 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2124 # also defined. This can be overridden by defining _BSD_SOURCE
2125 # As this has a different meaning on Linux, only define it on OpenBSD
2127 cat >>confdefs.h <<\_ACEOF
2128 #define _BSD_SOURCE 1
2132 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2133 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2135 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2136 define_xopen_source=no;;
2137 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2138 # of union __?sigval. Reported by Stuart Bishop.
2140 define_xopen_source=no;;
2141 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2142 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2143 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2144 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2145 define_xopen_source=no;;
2146 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2147 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2149 define_xopen_source=no;;
2150 # On FreeBSD 4, the math functions C89 does not cover are never defined
2151 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2153 define_xopen_source=no;;
2154 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2155 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2156 # identifies itself as Darwin/7.*
2157 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2158 # disables platform specific features beyond repair.
2159 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2160 # has no effect, don't bother defining them
2162 define_xopen_source=no;;
2163 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2164 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2165 # or has another value. By not (re)defining it, the defaults come in place.
2167 define_xopen_source=no;;
2169 if test `uname
-r` -eq 1; then
2170 define_xopen_source=no
2173 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2174 # defining NI_NUMERICHOST.
2176 define_xopen_source=no
2181 if test $define_xopen_source = yes
2183 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2184 # defined precisely as g++ defines it
2185 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2187 case $ac_sys_system/$ac_sys_release in
2188 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2190 cat >>confdefs.h <<\_ACEOF
2191 #define _XOPEN_SOURCE 500
2197 cat >>confdefs.h <<\_ACEOF
2198 #define _XOPEN_SOURCE 600
2204 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2205 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2206 # several APIs are not declared. Since this is also needed in some
2207 # cases for HP-UX, we define it globally.
2208 # except for Solaris 10, where it must not be defined,
2209 # as it implies XPG4.2
2210 case $ac_sys_system/$ac_sys_release in
2215 cat >>confdefs.h <<\_ACEOF
2216 #define _XOPEN_SOURCE_EXTENDED 1
2223 cat >>confdefs.h <<\_ACEOF
2224 #define _POSIX_C_SOURCE 200112L
2231 # SGI compilers allow the specification of the both the ABI and the
2232 # ISA on the command line. Depending on the values of these switches,
2233 # different and often incompatable code will be generated.
2235 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2236 # thus supply support for various ABI/ISA combinations. The MACHDEP
2237 # variable is also adjusted.
2240 if test ! -z "$SGI_ABI"
2243 LDFLAGS="$SGI_ABI $LDFLAGS"
2244 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2246 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2247 echo "${ECHO_T}$MACHDEP" >&6; }
2249 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2250 # it may influence the way we can build extensions, so distutils
2254 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2255 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2257 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2258 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2259 ac_sys_machine=`uname
-m`
2260 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2261 echo "${ECHO_T}$ac_sys_machine" >&6; }
2263 # checks for alternative programs
2265 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2266 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2267 # just to get things to compile and link. Users are free to override OPT
2268 # when running configure or make. The build should not break if they do.
2269 # BASECFLAGS should generally not be messed with, however.
2271 # XXX shouldn't some/most/all of this code be merged with the stuff later
2272 # on that fiddles with OPT and BASECFLAGS?
2273 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2274 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2276 # Check whether --with-gcc was given.
2277 if test "${with_gcc+set}" = set; then
2285 without_gcc=$withval;;
2289 case $ac_sys_system in
2296 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2297 echo "${ECHO_T}$without_gcc" >&6; }
2299 # If the user switches compilers, we can't believe the cache
2300 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2302 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2303 (it is also a good idea to do 'make clean' before compiling)" >&5
2304 echo "$as_me: error: cached CC is different -- throw away $cache_file
2305 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2306 { (exit 1); exit 1; }; }
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 if test -n "$CC"; then
2344 { echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2353 if test -z "$ac_cv_prog_CC"; then
2355 # Extract the first word of "gcc", so it can be a program name with args.
2356 set dummy gcc; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_CC="gcc"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383 if test -n "$ac_ct_CC"; then
2384 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2385 echo "${ECHO_T}$ac_ct_CC" >&6; }
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2391 if test "x$ac_ct_CC" = x; then
2394 case $cross_compiling:$ac_tool_warned in
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}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.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_CC="${ac_tool_prefix}cc"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 if test -n "$CC"; then
2441 { echo "$as_me:$LINENO: result: $CC" >&5
2442 echo "${ECHO_T}$CC" >&6; }
2444 { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2451 if test -z "$CC"; then
2452 # Extract the first word of "cc", so it can be a program name with args.
2453 set dummy cc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2471 ac_prog_rejected=yes
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 if test $ac_prog_rejected = yes; then
2483 # We found a bogon in the path, so make sure we never use it.
2484 set dummy $ac_cv_prog_CC
2486 if test $# != 0; then
2487 # We chose a different compiler from the bogus one.
2488 # However, it has the same basename, so the bogon will be chosen
2489 # first if we set CC to just the basename; use the full file name.
2491 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2497 if test -n "$CC"; then
2498 { echo "$as_me:$LINENO: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6; }
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2507 if test -z "$CC"; then
2508 if test -n "$ac_tool_prefix"; then
2509 for ac_prog in cl.exe
2511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2548 test -n "$CC" && break
2551 if test -z "$CC"; then
2553 for ac_prog in cl.exe
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_ac_ct_CC="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583 if test -n "$ac_ct_CC"; then
2584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2585 echo "${ECHO_T}$ac_ct_CC" >&6; }
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2592 test -n "$ac_ct_CC" && break
2595 if test "x$ac_ct_CC" = x; then
2598 case $cross_compiling:$ac_tool_warned in
2600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2615 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2616 See \`config.log
' for more details." >&5
2617 echo "$as_me: error: no acceptable C compiler found in \$PATH
2618 See \`config.log' for more details.
" >&2;}
2619 { (exit 1); exit 1; }; }
2621 # Provide some information about the compiler.
2622 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2623 ac_compiler=`set X $ac_compile; echo $2`
2624 { (ac_try="$ac_compiler --version >&5"
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_compiler --version >&5") 2>&5
2632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2633 (exit $ac_status); }
2634 { (ac_try="$ac_compiler -v >&5"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_compiler -v >&5") 2>&5
2642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2643 (exit $ac_status); }
2644 { (ac_try="$ac_compiler -V >&5"
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler -V >&5") 2>&5
2652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2653 (exit $ac_status); }
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 ac_clean_files_save=$ac_clean_files
2671 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2672 # Try to create an executable without -o first, disregard a.out.
2673 # It will help us diagnose broken compilers, and finding out an intuition
2675 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2676 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2677 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2679 # List of possible output files, starting from the most likely.
2680 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2681 # only as a last resort. b.out is created by i960 compilers.
2682 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2684 # The IRIX 6 linker writes into existing files which may not be
2685 # executable, retaining their permissions. Remove them first so a
2686 # subsequent execution test works.
2688 for ac_file in $ac_files
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2692 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2697 if { (ac_try="$ac_link_default"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_link_default") 2>&5
2705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2706 (exit $ac_status); }; then
2707 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2708 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2709 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2710 # so that the user can short-circuit this test for compilers unknown to
2712 for ac_file in $ac_files ''
2714 test -f "$ac_file" || continue
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2719 # We found the default executable, but exeext='' is most
2723 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2725 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727 # We set ac_cv_exeext here because the later test for it is not
2728 # safe: cross compilers may not add the suffix if given an `-o'
2729 # argument, so we may need to know it at that point already.
2730 # Even if this section looks crufty: it has the advantage of
2737 test "$ac_cv_exeext" = no && ac_cv_exeext=
2743 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2744 echo "${ECHO_T}$ac_file" >&6; }
2745 if test -z "$ac_file"; then
2746 echo "$as_me: failed program was
:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2750 See \
`config.log' for more details." >&5
2751 echo "$as_me: error: C compiler cannot create executables
2752 See \`config.log
' for more details." >&2;}
2753 { (exit 77); exit 77; }; }
2756 ac_exeext=$ac_cv_exeext
2758 # Check that the compiler produces executables we can run. If not, either
2759 # the compiler is broken, or we cross compile.
2760 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2761 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2762 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2763 # If not cross compiling, check that we can run a simple program.
2764 if test "$cross_compiling" != yes; then
2765 if { ac_try='.
/$ac_file'
2766 { (case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_try") 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2777 if test "$cross_compiling" = maybe; then
2780 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2781 If you meant to cross compile, use \`--host'.
2782 See \
`config.log' for more details." >&5
2783 echo "$as_me: error: cannot run C compiled programs.
2784 If you meant to cross compile, use \`--host'.
2785 See \`config.log' for more details.
" >&2;}
2786 { (exit 1); exit 1; }; }
2790 { echo "$as_me:$LINENO: result
: yes" >&5
2791 echo "${ECHO_T}yes" >&6; }
2793 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2794 ac_clean_files=$ac_clean_files_save
2795 # Check that the compiler produces executables we can run. If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2798 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2799 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2800 echo "${ECHO_T}$cross_compiling" >&6; }
2802 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2803 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2804 if { (ac_try="$ac_link"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link") 2>&5
2812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2813 (exit $ac_status); }; then
2814 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2815 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2816 # work properly (i.e., refer to `conftest.exe'), while it won't with
2818 for ac_file in conftest.exe conftest conftest.*; do
2819 test -f "$ac_file" || continue
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2829 See \
`config.log' for more details." >&5
2830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2831 See \`config.log
' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2835 rm -f conftest$ac_cv_exeext
2836 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2837 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2839 rm -f conftest.$ac_ext
2840 EXEEXT=$ac_cv_exeext
2842 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2844 if test "${ac_cv_objext+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2862 rm -f conftest.o conftest.obj
2863 if { (ac_try="$ac_compile"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compile") 2>&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; then
2873 for ac_file in conftest.o conftest.obj conftest.*; do
2874 test -f "$ac_file" || continue;
2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2877 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2882 echo "$as_me: failed program was:" >&5
2883 sed 's
/^
/|
/' conftest.$ac_ext >&5
2885 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2886 See \`config.log' for more details.
" >&5
2887 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2888 See \
`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2894 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2895 echo "${ECHO_T}$ac_cv_objext" >&6; }
2896 OBJEXT=$ac_cv_objext
2898 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2925 *) ac_try_echo
=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1
>conftest.err
2932 cat conftest.err
>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.
$ac_objext; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.
$ac_ext >&5
2946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2947 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2950 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2952 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CFLAGS
=${CFLAGS+set}
2954 ac_save_CFLAGS
=$CFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 ac_save_c_werror_flag
=$ac_c_werror_flag
2961 ac_c_werror_flag
=yes
2964 cat >conftest.
$ac_ext <<_ACEOF
2967 cat confdefs.h
>>conftest.
$ac_ext
2968 cat >>conftest.
$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.
$ac_objext
2980 if { (ac_try
="$ac_compile"
2982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3021 *) ac_try_echo
=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1
>conftest.err
3028 cat conftest.err
>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.
$ac_objext; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.
$ac_ext >&5
3039 ac_c_werror_flag
=$ac_save_c_werror_flag
3041 cat >conftest.
$ac_ext <<_ACEOF
3044 cat confdefs.h
>>conftest.
$ac_ext
3045 cat >>conftest.
$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.
$ac_objext
3057 if { (ac_try
="$ac_compile"
3059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_c_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_c_werror_flag=$ac_save_c_werror_flag
3090 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3092 if test "$ac_test_CFLAGS" = set; then
3093 CFLAGS=$ac_save_CFLAGS
3094 elif test $ac_cv_prog_cc_g = yes; then
3095 if test "$GCC" = yes; then
3101 if test "$GCC" = yes; then
3107 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3108 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_cc_c89+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 ac_cv_prog_cc_c89=no
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 #include <sys/types.h>
3123 #include <sys/stat.h>
3124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3125 struct buf { int x; };
3126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3127 static char *e (p, i)
3133 static char *f (char * (*g) (char **, int), char **p, ...)
3138 s = g (p, va_arg (v,int));
3143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3144 function prototypes and stuff, but not '\xHH' hex character constants.
3145 These don't provoke an error unfortunately, instead are silently treated
3146 as 'x'. The following induces an error, until -std is added to get
3147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3148 array size at least. It's necessary to write '\x00'==0 to get something
3149 that's true only with -std. */
3150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3153 inside strings and character constants. */
3155 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3157 int test (int i, double x);
3158 struct s1 {int (*f) (int a);};
3159 struct s2 {int (*f) (double a);};
3160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3171 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3172 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3174 CC="$ac_save_CC $ac_arg"
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3179 *) ac_try_echo
=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1
>conftest.err
3186 cat conftest.err
>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.
$ac_objext; then
3192 ac_cv_prog_cc_c89
=$ac_arg
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.
$ac_ext >&5
3200 rm -f core conftest.err conftest.
$ac_objext
3201 test "x$ac_cv_prog_cc_c89" != "xno" && break
3203 rm -f conftest.
$ac_ext
3208 case "x$ac_cv_prog_cc_c89" in
3210 { echo "$as_me:$LINENO: result: none needed" >&5
3211 echo "${ECHO_T}none needed" >&6; } ;;
3213 { echo "$as_me:$LINENO: result: unsupported" >&5
3214 echo "${ECHO_T}unsupported" >&6; } ;;
3216 CC
="$CC $ac_cv_prog_cc_c89"
3217 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3218 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3223 ac_cpp
='$CPP $CPPFLAGS'
3224 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3231 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3232 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3234 # Check whether --with-cxx_main was given.
3235 if test "${with_cxx_main+set}" = set; then
3236 withval
=$with_cxx_main;
3239 no
) with_cxx_main
=no
3241 yes) with_cxx_main
=yes
3243 *) with_cxx_main
=yes
3257 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3258 echo "${ECHO_T}$with_cxx_main" >&6; }
3264 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3265 set dummy g
++; ac_word
=$2
3266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3268 if test "${ac_cv_path_CXX+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3277 for as_dir
in notfound
3280 test -z "$as_dir" && as_dir
=.
3281 for ac_exec_ext
in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3296 if test -n "$CXX"; then
3297 { echo "$as_me:$LINENO: result: $CXX" >&5
3298 echo "${ECHO_T}$CXX" >&6; }
3300 { echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6; }
3305 cc
) # Extract the first word of "c++", so it can be a program name with args.
3306 set dummy c
++; ac_word
=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_path_CXX+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3318 for as_dir
in notfound
3321 test -z "$as_dir" && as_dir
=.
3322 for ac_exec_ext
in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3337 if test -n "$CXX"; then
3338 { echo "$as_me:$LINENO: result: $CXX" >&5
3339 echo "${ECHO_T}$CXX" >&6; }
3341 { echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6; }
3347 if test "$CXX" = "notfound"
3354 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy
$ac_prog; ac_word
=$2
3358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_CXX+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if test -n "$CXX"; then
3364 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir
=.
3371 for ac_exec_ext
in '' $ac_executable_extensions; do
3372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3373 ac_cv_prog_CXX
="$ac_prog"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 if test -n "$CXX"; then
3385 { echo "$as_me:$LINENO: result: $CXX" >&5
3386 echo "${ECHO_T}$CXX" >&6; }
3388 { echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6; }
3393 test -n "$CXX" && break
3395 test -n "$CXX" || CXX
="notfound"
3397 if test "$CXX" = "notfound"
3402 if test "$preset_cxx" != "$CXX"
3404 { echo "$as_me:$LINENO: WARNING:
3406 By default, distutils will build C++ extension modules with \"$CXX\".
3407 If this is not intended, then set CXX on the configure command line.
3409 echo "$as_me: WARNING:
3411 By default, distutils will build C++ extension modules with \"$CXX\".
3412 If this is not intended, then set CXX on the configure command line.
3417 # checks for UNIX variants that set C preprocessor variables
3420 ac_cpp
='$CPP $CPPFLAGS'
3421 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3424 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3425 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3426 # On Suns, sometimes $CPP names a directory.
3427 if test -n "$CPP" && test -d "$CPP"; then
3430 if test -z "$CPP"; then
3431 if test "${ac_cv_prog_CPP+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 # Double quotes because CPP needs to be expanded
3435 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3438 for ac_c_preproc_warn_flag
in '' yes
3440 # Use a header file that comes with gcc, so configuring glibc
3441 # with a fresh cross-compiler works.
3442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3443 # <limits.h> exists even on freestanding compilers.
3444 # On the NeXT, cc -E runs the code through the compiler's parser,
3445 # not just through cpp. "Syntax error" is here to catch this case.
3446 cat >conftest.
$ac_ext <<_ACEOF
3449 cat confdefs.h
>>conftest.
$ac_ext
3450 cat >>conftest.
$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3453 # include <limits.h>
3455 # include <assert.h>
3459 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null && {
3472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3473 test ! -s conftest.err
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 # Broken: fails on valid input.
3484 rm -f conftest.err conftest.$ac_ext
3486 # OK, works on sane cases. Now check whether nonexistent headers
3487 # can be detected and how.
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <ac_nonexistent.h>
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1
>conftest.err
3506 cat conftest.err
>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev
/null
&& {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3512 # Broken: success on invalid input.
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.
$ac_ext >&5
3518 # Passes both tests.
3523 rm -f conftest.err conftest.
$ac_ext
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527 rm -f conftest.err conftest.
$ac_ext
3528 if $ac_preproc_ok; then
3540 { echo "$as_me:$LINENO: result: $CPP" >&5
3541 echo "${ECHO_T}$CPP" >&6; }
3543 for ac_c_preproc_warn_flag
in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat >conftest.
$ac_ext <<_ACEOF
3554 cat confdefs.h
>>conftest.
$ac_ext
3555 cat >>conftest.
$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3558 # include <limits.h>
3560 # include <assert.h>
3564 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null && {
3577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 # Broken: fails on valid input.
3589 rm -f conftest.err conftest.$ac_ext
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <ac_nonexistent.h>
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3604 *) ac_try_echo
=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1
>conftest.err
3611 cat conftest.err
>&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } >/dev
/null
&& {
3614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3617 # Broken: success on invalid input.
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.
$ac_ext >&5
3623 # Passes both tests.
3628 rm -f conftest.err conftest.
$ac_ext
3631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632 rm -f conftest.err conftest.
$ac_ext
3633 if $ac_preproc_ok; then
3636 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3637 See \`config.log' for more details." >&5
3638 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&2;}
3640 { (exit 1); exit 1; }; }
3644 ac_cpp
='$CPP $CPPFLAGS'
3645 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3650 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3651 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3652 if test "${ac_cv_path_GREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 # Extract the first word of "grep ggrep" to use in msg output
3656 if test -z "$GREP"; then
3657 set dummy
grep ggrep
; ac_prog_name
=$2
3658 if test "${ac_cv_path_GREP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 ac_path_GREP_found
=false
3662 # Loop through the user's path and test for each of PROGNAME-LIST
3663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3667 test -z "$as_dir" && as_dir
=.
3668 for ac_prog
in grep ggrep
; do
3669 for ac_exec_ext
in '' $ac_executable_extensions; do
3670 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3671 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3672 # Check for GNU ac_path_GREP and select it if it is found.
3673 # Check for GNU $ac_path_GREP
3674 case `"$ac_path_GREP" --version 2>&1` in
3676 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3679 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 cat "conftest.in" "conftest.in" >"conftest.tmp"
3683 mv "conftest.tmp" "conftest.in"
3684 cp "conftest.in" "conftest.nl"
3685 echo 'GREP' >> "conftest.nl"
3686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3687 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3688 ac_count
=`expr $ac_count + 1`
3689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3690 # Best one so far, save it but keep looking for a better one
3691 ac_cv_path_GREP
="$ac_path_GREP"
3692 ac_path_GREP_max
=$ac_count
3694 # 10*(2^10) chars as input seems more than enough
3695 test $ac_count -gt 10 && break
3697 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3701 $ac_path_GREP_found && break 3
3711 GREP
="$ac_cv_path_GREP"
3712 if test -z "$GREP"; then
3713 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3714 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3715 { (exit 1); exit 1; }; }
3719 ac_cv_path_GREP
=$GREP
3724 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3725 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3726 GREP
="$ac_cv_path_GREP"
3729 { echo "$as_me:$LINENO: checking for egrep" >&5
3730 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3731 if test "${ac_cv_path_EGREP+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3735 then ac_cv_path_EGREP
="$GREP -E"
3737 # Extract the first word of "egrep" to use in msg output
3738 if test -z "$EGREP"; then
3739 set dummy
egrep; ac_prog_name
=$2
3740 if test "${ac_cv_path_EGREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 ac_path_EGREP_found
=false
3744 # Loop through the user's path and test for each of PROGNAME-LIST
3745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3746 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3749 test -z "$as_dir" && as_dir
=.
3750 for ac_prog
in egrep; do
3751 for ac_exec_ext
in '' $ac_executable_extensions; do
3752 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3753 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3754 # Check for GNU ac_path_EGREP and select it if it is found.
3755 # Check for GNU $ac_path_EGREP
3756 case `"$ac_path_EGREP" --version 2>&1` in
3758 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3761 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764 cat "conftest.in" "conftest.in" >"conftest.tmp"
3765 mv "conftest.tmp" "conftest.in"
3766 cp "conftest.in" "conftest.nl"
3767 echo 'EGREP' >> "conftest.nl"
3768 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3769 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3770 ac_count
=`expr $ac_count + 1`
3771 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3772 # Best one so far, save it but keep looking for a better one
3773 ac_cv_path_EGREP
="$ac_path_EGREP"
3774 ac_path_EGREP_max
=$ac_count
3776 # 10*(2^10) chars as input seems more than enough
3777 test $ac_count -gt 10 && break
3779 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3783 $ac_path_EGREP_found && break 3
3793 EGREP
="$ac_cv_path_EGREP"
3794 if test -z "$EGREP"; then
3795 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3796 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3797 { (exit 1); exit 1; }; }
3801 ac_cv_path_EGREP
=$EGREP
3807 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3808 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3809 EGREP
="$ac_cv_path_EGREP"
3813 { echo "$as_me:$LINENO: checking for AIX" >&5
3814 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3815 cat >conftest.
$ac_ext <<_ACEOF
3818 cat confdefs.h
>>conftest.
$ac_ext
3819 cat >>conftest.
$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "yes" >/dev
/null
2>&1; then
3828 { echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6; }
3830 cat >>confdefs.h
<<\_ACEOF
3831 #define _ALL_SOURCE 1
3835 { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3842 # Check for unsupported systems
3843 case $ac_sys_system/$ac_sys_release in
3845 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3846 echo See README
for details.
3851 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3852 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3854 # Check whether --with-suffix was given.
3855 if test "${with_suffix+set}" = set; then
3856 withval
=$with_suffix;
3860 *) EXEEXT
=$withval;;
3864 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3865 echo "${ECHO_T}$EXEEXT" >&6; }
3867 # Test whether we're running on a non-case-sensitive system, in which
3868 # case we give a warning if no ext is given
3870 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3871 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3872 if test ! -d CaseSensitiveTestDir
; then
3873 mkdir CaseSensitiveTestDir
3876 if test -d casesensitivetestdir
3878 { echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6; }
3882 { echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6; }
3886 rmdir CaseSensitiveTestDir
3891 gcc
) CC
="$CC -D_HAVE_BSDI";;
3895 case $ac_sys_system in
3898 cc|
*/cc
) CC
="$CC -Ae";;
3901 # Some functions have a prototype only with that define, e.g. confstr
3903 cat >>confdefs.h
<<\_ACEOF
3904 #define __EXTENSIONS__ 1
3912 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3913 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3914 if test -z "$LIBRARY"
3916 LIBRARY
='libpython$(VERSION).a'
3918 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3919 echo "${ECHO_T}$LIBRARY" >&6; }
3921 # LDLIBRARY is the name of the library to link against (as opposed to the
3922 # name of the library into which to insert object files). BLDLIBRARY is also
3923 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3924 # is blank as the main program is not linked directly against LDLIBRARY.
3925 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3926 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3927 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3928 # DLLLIBRARY is the shared (i.e., DLL) library.
3930 # RUNSHARED is used to run shared python without installed libraries
3932 # INSTSONAME is the name of the shared library that will be use to install
3933 # on the system - some systems like version suffix, others don't
3940 LDLIBRARY
="$LIBRARY"
3941 BLDLIBRARY
='$(LDLIBRARY)'
3942 INSTSONAME
='$(LDLIBRARY)'
3947 # LINKCC is the command that links the python executable -- default is $(CC).
3948 # If CXX is set, and if it is needed to link a main function that was
3949 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3950 # python might then depend on the C++ runtime
3951 # This is altered for AIX in order to build the export list before
3954 { echo "$as_me:$LINENO: checking LINKCC" >&5
3955 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3956 if test -z "$LINKCC"
3958 LINKCC
='$(PURIFY) $(MAINCC)'
3959 case $ac_sys_system in
3962 if test $ac_sys_release -ge 5 -o \
3963 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3966 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3968 # qcc must be used because the other compilers do not
3973 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3974 echo "${ECHO_T}$LINKCC" >&6; }
3976 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3977 # make sure we default having it set to "no": this is used by
3978 # distutils.unixccompiler to know if it should add --enable-new-dtags
3979 # to linker command lines, and failing to detect GNU ld simply results
3980 # in the same bahaviour as before.
3982 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3983 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3985 if test "$GCC" = yes; then
3986 ac_prog
=`$CC -print-prog-name=ld`
3988 case `"$ac_prog" -V 2>&1 < /dev/null` in
3994 { echo "$as_me:$LINENO: result: $GNULD" >&5
3995 echo "${ECHO_T}$GNULD" >&6; }
3997 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3998 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3999 # Check whether --enable-shared was given.
4000 if test "${enable_shared+set}" = set; then
4001 enableval
=$enable_shared;
4005 if test -z "$enable_shared"
4007 case $ac_sys_system in
4009 enable_shared
="yes";;
4011 enable_shared
="no";;
4014 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4015 echo "${ECHO_T}$enable_shared" >&6; }
4017 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4018 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4019 # Check whether --enable-profiling was given.
4020 if test "${enable_profiling+set}" = set; then
4021 enableval
=$enable_profiling; ac_save_cc
="$CC"
4023 if test "$cross_compiling" = yes; then
4024 ac_enable_profiling
="no"
4026 cat >conftest.
$ac_ext <<_ACEOF
4029 cat confdefs.h
>>conftest.
$ac_ext
4030 cat >>conftest.
$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 int main() { return 0; }
4034 rm -f conftest
$ac_exeext
4035 if { (ac_try
="$ac_link"
4037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_link") 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4045 { (case "(($ac_try" in
4046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4047 *) ac_try_echo
=$ac_try;;
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_try") 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_enable_profiling
="yes"
4056 echo "$as_me: program exited with status $ac_status" >&5
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.
$ac_ext >&5
4061 ac_enable_profiling
="no"
4063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4070 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4071 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4073 case "$ac_enable_profiling" in
4075 BASECFLAGS
="-pg $BASECFLAGS"
4076 LDFLAGS
="-pg $LDFLAGS"
4080 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4081 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4083 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4084 # library that we build, but we do not want to link against it (we
4085 # will find it with a -framework option). For this reason there is an
4086 # extra variable BLDLIBRARY against which Python and the extension
4087 # modules are linked, BLDLIBRARY. This is normally the same as
4088 # LDLIBRARY, but empty for MacOSX framework builds.
4089 if test "$enable_framework"
4091 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4092 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4095 BLDLIBRARY
='$(LDLIBRARY)'
4098 # Other platforms follow
4099 if test $enable_shared = "yes"; then
4101 cat >>confdefs.h
<<\_ACEOF
4102 #define Py_ENABLE_SHARED 1
4105 case $ac_sys_system in
4107 LDLIBRARY
='libpython$(VERSION).dll.a'
4108 DLLLIBRARY
='libpython$(VERSION).dll'
4111 LDLIBRARY
='libpython$(VERSION).so'
4112 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4113 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4114 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4116 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4117 LDLIBRARY
='libpython$(VERSION).so'
4118 BLDLIBRARY
='-L. -lpython$(VERSION)'
4119 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4120 case $ac_sys_system in
4122 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4125 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4130 LDLIBRARY
='libpython$(VERSION).so'
4133 LDLIBRARY
='libpython$(VERSION).sl'
4136 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4137 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4140 LDLIBRARY
='libpython$(VERSION).so'
4141 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4145 LDLIBRARY
='libpython$(VERSION).so'
4146 BLDLIBRARY
='-L. -lpython$(VERSION)'
4147 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4150 LDLIBRARY
='libpython$(VERSION).dylib'
4151 BLDLIBRARY
='-L. -lpython$(VERSION)'
4152 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4156 else # shared is disabled
4157 case $ac_sys_system in
4159 BLDLIBRARY
='$(LIBRARY)'
4160 LDLIBRARY
='libpython$(VERSION).dll.a'
4165 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4166 echo "${ECHO_T}$LDLIBRARY" >&6; }
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4170 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_RANLIB+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 if test -n "$RANLIB"; then
4177 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir
=.
4184 for ac_exec_ext
in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 RANLIB
=$ac_cv_prog_RANLIB
4197 if test -n "$RANLIB"; then
4198 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4199 echo "${ECHO_T}$RANLIB" >&6; }
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4207 if test -z "$ac_cv_prog_RANLIB"; then
4208 ac_ct_RANLIB
=$RANLIB
4209 # Extract the first word of "ranlib", so it can be a program name with args.
4210 set dummy ranlib
; ac_word
=$2
4211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 if test -n "$ac_ct_RANLIB"; then
4217 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4237 if test -n "$ac_ct_RANLIB"; then
4238 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4239 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4241 { echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6; }
4245 if test "x$ac_ct_RANLIB" = x
; then
4248 case $cross_compiling:$ac_tool_warned in
4250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4251 whose name does not start with the host triplet. If you think this
4252 configuration is useful to you, please write to autoconf@gnu.org." >&5
4253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4254 whose name does not start with the host triplet. If you think this
4255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4256 ac_tool_warned
=yes ;;
4258 RANLIB
=$ac_ct_RANLIB
4261 RANLIB
="$ac_cv_prog_RANLIB"
4265 for ac_prog
in ar aal
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy
$ac_prog; ac_word
=$2
4269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271 if test "${ac_cv_prog_AR+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$AR"; then
4275 ac_cv_prog_AR
="$AR" # Let the user override the test.
4277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir
=.
4282 for ac_exec_ext
in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_AR
="$ac_prog"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 if test -n "$AR"; then
4296 { echo "$as_me:$LINENO: result: $AR" >&5
4297 echo "${ECHO_T}$AR" >&6; }
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4304 test -n "$AR" && break
4306 test -n "$AR" || AR
="ar"
4309 # tweak ARFLAGS only if the user didn't set it on the command line
4311 if test -z "$ARFLAGS"
4317 # Extract the first word of "svnversion", so it can be a program name with args.
4318 set dummy svnversion
; ac_word
=$2
4319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4321 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test -n "$SVNVERSION"; then
4325 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir
=.
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_SVNVERSION
="found"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4345 SVNVERSION
=$ac_cv_prog_SVNVERSION
4346 if test -n "$SVNVERSION"; then
4347 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4348 echo "${ECHO_T}$SVNVERSION" >&6; }
4350 { echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6; }
4355 if test $SVNVERSION = found
4357 SVNVERSION
="svnversion \$(srcdir)"
4359 SVNVERSION
="echo Unversioned directory"
4364 # install -d does not work on BSDI or HP-UX
4365 if test -z "$INSTALL"
4367 INSTALL
="${srcdir}/install-sh -c"
4371 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4372 if test -f "$ac_dir/install-sh"; then
4374 ac_install_sh
="$ac_aux_dir/install-sh -c"
4376 elif test -f "$ac_dir/install.sh"; then
4378 ac_install_sh
="$ac_aux_dir/install.sh -c"
4380 elif test -f "$ac_dir/shtool"; then
4382 ac_install_sh
="$ac_aux_dir/shtool install -c"
4386 if test -z "$ac_aux_dir"; then
4387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4388 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4389 { (exit 1); exit 1; }; }
4392 # These three variables are undocumented and unsupported,
4393 # and are intended to be withdrawn in a future Autoconf release.
4394 # They can cause serious problems if a builder's source tree is in a directory
4395 # whose full name contains unusual characters.
4396 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4397 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4398 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4401 # Find a good install program. We prefer a C program (faster),
4402 # so one script is as good as another. But avoid the broken or
4403 # incompatible versions:
4404 # SysV /etc/install, /usr/sbin/install
4405 # SunOS /usr/etc/install
4406 # IRIX /sbin/install
4408 # AmigaOS /C/install, which installs bootblocks on floppy discs
4409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4412 # OS/2's system install, which has a completely different semantic
4413 # ./install, which can be erroneously created by make from ./install.sh.
4414 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4415 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4416 if test -z "$INSTALL"; then
4417 if test "${ac_cv_path_install+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir
=.
4425 # Account for people who put trailing slashes in PATH elements.
4427 .
/ | .
// |
/cC
/* | \
4428 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4429 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4432 # OSF1 and SCO ODT 3.0 have their own names for install.
4433 # Don't use installbsd from OSF since it installs stuff as root
4435 for ac_prog
in ginstall scoinst
install; do
4436 for ac_exec_ext
in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4438 if test $ac_prog = install &&
4439 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4440 # AIX install. It has an incompatible calling convention.
4442 elif test $ac_prog = install &&
4443 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4444 # program-specific install script used by HP pwplus--don't use.
4447 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4460 if test "${ac_cv_path_install+set}" = set; then
4461 INSTALL
=$ac_cv_path_install
4463 # As a last resort, use the slow shell script. Don't cache a
4464 # value for INSTALL within a source directory, because that will
4465 # break other packages using the cache if that directory is
4466 # removed, or if the value is a relative name.
4467 INSTALL
=$ac_install_sh
4470 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4471 echo "${ECHO_T}$INSTALL" >&6; }
4473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4474 # It thinks the first close brace ends the variable substitution.
4475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4479 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4482 # Not every filesystem supports hard links
4484 if test -z "$LN" ; then
4485 case $ac_sys_system in
4486 CYGWIN
*) LN
="ln -s";;
4487 atheos
*) LN
="ln -s";;
4492 # Check for --with-pydebug
4493 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4494 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4496 # Check whether --with-pydebug was given.
4497 if test "${with_pydebug+set}" = set; then
4498 withval
=$with_pydebug;
4499 if test "$withval" != no
4502 cat >>confdefs.h
<<\_ACEOF
4506 { echo "$as_me:$LINENO: result: yes" >&5
4507 echo "${ECHO_T}yes" >&6; };
4509 else { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4518 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4519 # merged with this chunk of code?
4521 # Optimizer/debugger flags
4522 # ------------------------
4523 # (The following bit of code is complicated enough - please keep things
4524 # indented properly. Just pretend you're editing Python code. ;-)
4526 # There are two parallel sets of case statements below, one that checks to
4527 # see if OPT was set and one that does BASECFLAGS setting based upon
4528 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4531 # tweak OPT based on compiler and platform, only if the user didn't set
4532 # it on the command line
4538 if test "$CC" != 'g++' ; then
4539 STRICT_PROTO
="-Wstrict-prototypes"
4541 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4542 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4545 case $ac_cv_prog_cc_g in
4547 if test "$Py_DEBUG" = 'true' ; then
4548 # Optimization messes up debuggers, so turn it off for
4550 OPT
="-g -Wall $STRICT_PROTO"
4552 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4556 OPT
="-O3 -Wall $STRICT_PROTO"
4559 case $ac_sys_system in
4560 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4573 # The -arch flags for universal builds on OSX
4574 UNIVERSAL_ARCH_FLAGS
=
4577 # tweak BASECFLAGS based on compiler and platform
4580 # Python violates C99 rules, by casting between incompatible
4581 # pointer types. GCC may generate bad code as a result of that,
4582 # so use -fno-strict-aliasing if supported.
4583 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4584 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4586 CC
="$CC -fno-strict-aliasing"
4587 if test "$cross_compiling" = yes; then
4588 ac_cv_no_strict_aliasing_ok
=no
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 int main() { return 0; }
4598 rm -f conftest
$ac_exeext
4599 if { (ac_try
="$ac_link"
4601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4611 *) ac_try_echo
=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_no_strict_aliasing_ok
=yes
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4625 ac_cv_no_strict_aliasing_ok
=no
4627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4632 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4633 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4634 if test $ac_cv_no_strict_aliasing_ok = yes
4636 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4639 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4640 # support. Without this, treatment of subnormals doesn't follow
4642 case $ac_sys_machine in
4644 BASECFLAGS
="$BASECFLAGS -mieee"
4648 case $ac_sys_system in
4650 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4652 # is there any other compiler on Darwin besides gcc?
4654 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4655 # used to be here, but non-Apple gcc doesn't accept them.
4658 if test "${enable_universalsdk}"; then
4659 UNIVERSAL_ARCH_FLAGS
=""
4660 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4661 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4664 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4665 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4666 ARCH_RUN_32BIT
="true"
4668 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4669 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4670 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4672 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4673 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
4674 ARCH_RUN_32BIT
="/usr/bin/arch -i386"
4676 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4677 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
4678 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4681 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4682 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4683 { (exit 1); exit 1; }; }
4688 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4689 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4690 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4691 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4695 # Calculate the right deployment target for this build.
4697 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4698 if test ${cur_target} '>' 10.2; then
4700 if test ${enable_universalsdk}; then
4701 if test "${UNIVERSAL_ARCHS}" = "all"; then
4702 # Ensure that the default platform for a
4703 # 4-way universal build is OSX 10.5,
4704 # that's the first OS release where
4705 # 4-way builds make sense.
4708 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4711 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4714 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4718 if test `/usr/bin/arch` = "i386"; then
4719 # On Intel macs default to a deployment
4720 # target of 10.4, that's the first OSX
4721 # release with Intel support.
4726 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4728 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4729 # environment with a value that is the same as what we'll use
4730 # in the Makefile to ensure that we'll get the same compiler
4731 # environment during configure and build time.
4732 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4733 export MACOSX_DEPLOYMENT_TARGET
4734 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4738 BASECFLAGS
="$BASECFLAGS -mieee"
4744 case $ac_sys_system in
4745 OpenUNIX
*|UnixWare
*)
4746 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4749 BASECFLAGS
="$BASECFLAGS -ieee -std"
4752 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4758 if test "$Py_DEBUG" = 'true'; then
4764 if test "$ac_arch_flags"
4766 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4769 # disable check for icc since it seems to pass, but generates a warning
4772 ac_cv_opt_olimit_ok
=no
4775 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4776 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4777 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 CC
="$CC -OPT:Olimit=0"
4782 if test "$cross_compiling" = yes; then
4783 ac_cv_opt_olimit_ok
=no
4785 cat >conftest.
$ac_ext <<_ACEOF
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 int main() { return 0; }
4793 rm -f conftest
$ac_exeext
4794 if { (ac_try
="$ac_link"
4796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_link") 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4804 { (case "(($ac_try" in
4805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4806 *) ac_try_echo
=$ac_try;;
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_try") 2>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_cv_opt_olimit_ok
=yes
4815 echo "$as_me: program exited with status $ac_status" >&5
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.
$ac_ext >&5
4820 ac_cv_opt_olimit_ok
=no
4822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4829 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4830 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4831 if test $ac_cv_opt_olimit_ok = yes; then
4832 case $ac_sys_system in
4833 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4834 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4839 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4843 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4844 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4845 if test "${ac_cv_olimit_ok+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 CC
="$CC -Olimit 1500"
4850 if test "$cross_compiling" = yes; then
4853 cat >conftest.
$ac_ext <<_ACEOF
4856 cat confdefs.h
>>conftest.
$ac_ext
4857 cat >>conftest.
$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 int main() { return 0; }
4861 rm -f conftest
$ac_exeext
4862 if { (ac_try
="$ac_link"
4864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_link") 2>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4872 { (case "(($ac_try" in
4873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4874 *) ac_try_echo
=$ac_try;;
4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_try") 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4883 echo "$as_me: program exited with status $ac_status" >&5
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.
$ac_ext >&5
4890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4897 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4898 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4899 if test $ac_cv_olimit_ok = yes; then
4900 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4904 # Check whether GCC supports PyArg_ParseTuple format
4905 if test "$GCC" = "yes"
4907 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4908 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4910 CFLAGS
="$CFLAGS -Werror"
4911 cat >conftest.
$ac_ext <<_ACEOF
4914 cat confdefs.h
>>conftest.
$ac_ext
4915 cat >>conftest.
$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4928 rm -f conftest.
$ac_objext
4929 if { (ac_try
="$ac_compile"
4931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4946 cat >>confdefs.h <<\_ACEOF
4947 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4950 { echo "$as_me:$LINENO: result: yes" >&5
4951 echo "${ECHO_T}yes" >&6; }
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 # On some compilers, pthreads are available without further options
4966 # (e.g. MacOS X). On some of these systems, the compiler will not
4967 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4968 # So we have to see first whether pthreads are available without
4969 # options before we can check whether -Kpthread improves anything.
4970 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4971 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4972 if test "${ac_cv_pthread_is_default+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test "$cross_compiling" = yes; then
4976 ac_cv_pthread_is_default=no
4978 cat >conftest.$ac_ext <<_ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4985 #include <pthread.h>
4987 void* routine(void* p){return NULL;}
4991 if(pthread_create(&p,NULL,routine,NULL)!=0)
4993 (void)pthread_detach(p);
4998 rm -f conftest$ac_exeext
4999 if { (ac_try="$ac_link"
5001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5002 *) ac_try_echo
=$ac_try;;
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_link") 2>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5009 { (case "(($ac_try" in
5010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_try") 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5019 ac_cv_pthread_is_default=yes
5024 echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5029 ac_cv_pthread_is_default=no
5031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5038 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5039 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5042 if test $ac_cv_pthread_is_default = yes
5046 # -Kpthread, if available, provides the right #defines
5047 # and linker options to make pthread_create available
5048 # Some compilers won't report that they do not support -Kpthread,
5049 # so we need to run a program to see whether it really made the
5050 # function available.
5051 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5052 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5053 if test "${ac_cv_kpthread+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 if test "$cross_compiling" = yes; then
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5068 #include <pthread.h>
5070 void* routine(void* p){return NULL;}
5074 if(pthread_create(&p,NULL,routine,NULL)!=0)
5076 (void)pthread_detach(p);
5081 rm -f conftest$ac_exeext
5082 if { (ac_try="$ac_link"
5084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5085 *) ac_try_echo
=$ac_try;;
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_link") 2>&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5092 { (case "(($ac_try" in
5093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_try") 2>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5103 echo "$as_me: program exited with status $ac_status" >&5
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5117 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5118 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5121 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5123 # -Kthread, if available, provides the right #defines
5124 # and linker options to make pthread_create available
5125 # Some compilers won't report that they do not support -Kthread,
5126 # so we need to run a program to see whether it really made the
5127 # function available.
5128 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5129 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5130 if test "${ac_cv_kthread+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 if test "$cross_compiling" = yes; then
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5145 #include <pthread.h>
5147 void* routine(void* p){return NULL;}
5151 if(pthread_create(&p,NULL,routine,NULL)!=0)
5153 (void)pthread_detach(p);
5158 rm -f conftest$ac_exeext
5159 if { (ac_try="$ac_link"
5161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5162 *) ac_try_echo
=$ac_try;;
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_link") 2>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5169 { (case "(($ac_try" in
5170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_try") 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5180 echo "$as_me: program exited with status $ac_status" >&5
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5194 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5195 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5198 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5200 # -pthread, if available, provides the right #defines
5201 # and linker options to make pthread_create available
5202 # Some compilers won't report that they do not support -pthread,
5203 # so we need to run a program to see whether it really made the
5204 # function available.
5205 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5206 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5207 if test "${ac_cv_thread+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 if test "$cross_compiling" = yes; then
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5222 #include <pthread.h>
5224 void* routine(void* p){return NULL;}
5228 if(pthread_create(&p,NULL,routine,NULL)!=0)
5230 (void)pthread_detach(p);
5235 rm -f conftest$ac_exeext
5236 if { (ac_try="$ac_link"
5238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5239 *) ac_try_echo
=$ac_try;;
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_link") 2>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5246 { (case "(($ac_try" in
5247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_try") 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5257 echo "$as_me: program exited with status $ac_status" >&5
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5271 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5272 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5275 # If we have set a CC compiler flag for thread support then
5276 # check if it works for CXX, too.
5280 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5281 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5284 if test "$ac_cv_kpthread" = "yes"
5286 CXX="$CXX -Kpthread"
5287 ac_cv_cxx_thread=yes
5288 elif test "$ac_cv_kthread" = "yes"
5291 ac_cv_cxx_thread=yes
5292 elif test "$ac_cv_pthread" = "yes"
5295 ac_cv_cxx_thread=yes
5298 if test $ac_cv_cxx_thread = yes
5300 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5301 $CXX -c conftest.$ac_ext 2>&5
5302 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5303 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5305 ac_cv_cxx_thread=yes
5311 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5312 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5317 # checks for header files
5318 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5320 if test "${ac_cv_header_stdc+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5346 *) ac_try_echo
=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1
>conftest.err
5353 cat conftest.err
>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.
$ac_objext; then
5359 ac_cv_header_stdc
=yes
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.
$ac_ext >&5
5364 ac_cv_header_stdc
=no
5367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5369 if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat >conftest.
$ac_ext <<_ACEOF
5374 cat confdefs.h
>>conftest.
$ac_ext
5375 cat >>conftest.
$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "memchr" >/dev
/null
2>&1; then
5384 ac_cv_header_stdc
=no
5390 if test $ac_cv_header_stdc = yes; then
5391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev
/null
2>&1; then
5405 ac_cv_header_stdc
=no
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then
5416 cat >conftest.
$ac_ext <<_ACEOF
5419 cat confdefs.h
>>conftest.
$ac_ext
5420 cat >>conftest.
$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5447 rm -f conftest
$ac_exeext
5448 if { (ac_try
="$ac_link"
5450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_link") 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5458 { (case "(($ac_try" in
5459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5460 *) ac_try_echo
=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_try") 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; }; then
5469 echo "$as_me: program exited with status $ac_status" >&5
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.
$ac_ext >&5
5474 ac_cv_header_stdc
=no
5476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5482 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5483 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5484 if test $ac_cv_header_stdc = yes; then
5486 cat >>confdefs.h
<<\_ACEOF
5487 #define STDC_HEADERS 1
5492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5502 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5503 inttypes.h stdint.h unistd.h
5505 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5508 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.
$ac_ext <<_ACEOF
5514 cat confdefs.h
>>conftest.
$ac_ext
5515 cat >>conftest.
$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 $ac_includes_default
5519 #include <$ac_header>
5521 rm -f conftest.
$ac_objext
5522 if { (ac_try
="$ac_compile"
5524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 eval "$as_ac_Header=yes"
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 eval "$as_ac_Header=no"
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 ac_res=`eval echo '${'$as_ac_Header'}'`
5549 { echo "$as_me:$LINENO: result: $ac_res" >&5
5550 echo "${ECHO_T}$ac_res" >&6; }
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h <<_ACEOF
5553 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5615 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5617 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5618 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5620 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5621 sys/lock.h sys/mkdev.h sys/modem.h \
5622 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5623 sys/termio.h sys/time.h \
5624 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5625 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5626 bluetooth/bluetooth.h linux/tipc.h
5628 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_res=`eval echo '${'$as_ac_Header'}'`
5636 { echo "$as_me:$LINENO: result: $ac_res" >&5
5637 echo "${ECHO_T}$ac_res" >&6; }
5639 # Is the header compilable?
5640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 #include <$ac_header>
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5655 *) ac_try_echo
=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1
>conftest.err
5662 cat conftest.err
>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.
$ac_objext; then
5668 ac_header_compiler
=yes
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.
$ac_ext >&5
5673 ac_header_compiler
=no
5676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5678 echo "${ECHO_T}$ac_header_compiler" >&6; }
5680 # Is the header present?
5681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5683 cat >conftest.
$ac_ext <<_ACEOF
5686 cat confdefs.h
>>conftest.
$ac_ext
5687 cat >>conftest.
$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #include <$ac_header>
5691 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5699 grep -v '^ *+' conftest.er1 >conftest.err
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } >/dev/null && {
5704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5707 ac_header_preproc=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 ac_header_preproc=no
5715 rm -f conftest.err conftest.$ac_ext
5716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717 echo "${ECHO_T}$ac_header_preproc" >&6; }
5719 # So? What about this header?
5720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5726 ac_header_preproc=yes
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5742 ## -------------------------------------- ##
5743 ## Report this to http://bugs.python.org/ ##
5744 ## -------------------------------------- ##
5746 ) | sed "s/^/$as_me: WARNING: /" >&2
5749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 eval "$as_ac_Header=\$ac_header_preproc"
5756 ac_res=`eval echo '${'$as_ac_Header'}'`
5757 { echo "$as_me:$LINENO: result: $ac_res" >&5
5758 echo "${ECHO_T}$ac_res" >&6; }
5761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5762 cat >>confdefs.h <<_ACEOF
5763 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5776 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5777 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5779 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <sys/types.h>
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5805 *) ac_try_echo
=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1
>conftest.err
5812 cat conftest.err
>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.
$ac_objext; then
5818 eval "$as_ac_Header=yes"
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.
$ac_ext >&5
5823 eval "$as_ac_Header=no"
5826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5828 ac_res
=`eval echo '${'$as_ac_Header'}'`
5829 { echo "$as_me:$LINENO: result: $ac_res" >&5
5830 echo "${ECHO_T}$ac_res" >&6; }
5831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5832 cat >>confdefs.h
<<_ACEOF
5833 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5836 ac_header_dirent
=$ac_hdr; break
5840 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5841 if test $ac_header_dirent = dirent.h
; then
5842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5843 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5844 if test "${ac_cv_search_opendir+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 ac_func_search_save_LIBS
=$LIBS
5848 cat >conftest.
$ac_ext <<_ACEOF
5851 cat confdefs.h
>>conftest.
$ac_ext
5852 cat >>conftest.
$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5855 /* Override any GCC internal prototype to avoid an error.
5856 Use char because int might match the return type of a GCC
5857 builtin and then its argument prototype would still apply. */
5870 for ac_lib
in '' dir
; do
5871 if test -z "$ac_lib"; then
5872 ac_res
="none required"
5875 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5877 rm -f conftest.
$ac_objext conftest
$ac_exeext
5878 if { (ac_try
="$ac_link"
5880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_link") 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest$ac_exeext &&
5894 $as_test_x conftest$ac_exeext; then
5895 ac_cv_search_opendir=$ac_res
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5905 if test "${ac_cv_search_opendir+set}" = set; then
5909 if test "${ac_cv_search_opendir+set}" = set; then
5912 ac_cv_search_opendir=no
5915 LIBS=$ac_func_search_save_LIBS
5917 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5918 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5919 ac_res=$ac_cv_search_opendir
5920 if test "$ac_res" != no; then
5921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5926 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5927 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5928 if test "${ac_cv_search_opendir+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_func_search_save_LIBS=$LIBS
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5939 /* Override any GCC internal prototype to avoid an error.
5940 Use char because int might match the return type of a GCC
5941 builtin and then its argument prototype would still apply. */
5954 for ac_lib in '' x; do
5955 if test -z "$ac_lib"; then
5956 ac_res="none required"
5959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (ac_try="$ac_link"
5964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5965 *) ac_try_echo
=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_link") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1
>conftest.err
5972 cat conftest.err
>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest
$ac_exeext &&
5978 $as_test_x conftest
$ac_exeext; then
5979 ac_cv_search_opendir
=$ac_res
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.
$ac_ext >&5
5987 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5989 if test "${ac_cv_search_opendir+set}" = set; then
5993 if test "${ac_cv_search_opendir+set}" = set; then
5996 ac_cv_search_opendir
=no
5999 LIBS
=$ac_func_search_save_LIBS
6001 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6002 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6003 ac_res
=$ac_cv_search_opendir
6004 if test "$ac_res" != no
; then
6005 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6011 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6012 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6013 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 cat >conftest.
$ac_ext <<_ACEOF
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <sys/types.h>
6026 return makedev(0, 0);
6031 rm -f conftest.
$ac_objext conftest
$ac_exeext
6032 if { (ac_try
="$ac_link"
6034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_link") 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest$ac_exeext &&
6048 $as_test_x conftest$ac_exeext; then
6049 ac_cv_header_sys_types_h_makedev=yes
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 ac_cv_header_sys_types_h_makedev=no
6057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6058 conftest$ac_exeext conftest.$ac_ext
6061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6062 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6064 if test $ac_cv_header_sys_types_h_makedev = no; then
6065 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6066 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6067 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6068 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6072 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6074 # Is the header compilable?
6075 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6076 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 $ac_includes_default
6084 #include <sys/mkdev.h>
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6090 *) ac_try_echo
=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1
>conftest.err
6097 cat conftest.err
>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.
$ac_objext; then
6103 ac_header_compiler
=yes
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.
$ac_ext >&5
6108 ac_header_compiler
=no
6111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113 echo "${ECHO_T}$ac_header_compiler" >&6; }
6115 # Is the header present?
6116 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6117 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6118 cat >conftest.
$ac_ext <<_ACEOF
6121 cat confdefs.h
>>conftest.
$ac_ext
6122 cat >>conftest.
$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <sys/mkdev.h>
6126 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6134 grep -v '^ *+' conftest.er1 >conftest.err
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev/null && {
6139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6142 ac_header_preproc=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_header_preproc=no
6150 rm -f conftest.err conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6152 echo "${ECHO_T}$ac_header_preproc" >&6; }
6154 # So? What about this header?
6155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6158 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6160 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6161 ac_header_preproc=yes
6164 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6165 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6167 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6169 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6171 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6173 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6175 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6177 ## -------------------------------------- ##
6178 ## Report this to http://bugs.python.org/ ##
6179 ## -------------------------------------- ##
6181 ) | sed "s/^/$as_me: WARNING: /" >&2
6184 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6185 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6186 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6192 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6195 if test $ac_cv_header_sys_mkdev_h = yes; then
6197 cat >>confdefs.h <<\_ACEOF
6198 #define MAJOR_IN_MKDEV 1
6205 if test $ac_cv_header_sys_mkdev_h = no; then
6206 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6207 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6208 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6209 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6213 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6215 # Is the header compilable?
6216 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6217 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 #include <sys/sysmacros.h>
6227 rm -f conftest.$ac_objext
6228 if { (ac_try="$ac_compile"
6230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6231 *) ac_try_echo
=$ac_try;;
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compile") 2>conftest.er1
6236 grep -v '^ *+' conftest.er1
>conftest.err
6238 cat conftest.err
>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && {
6241 test -z "$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 } && test -s conftest.
$ac_objext; then
6244 ac_header_compiler
=yes
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.
$ac_ext >&5
6249 ac_header_compiler
=no
6252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6254 echo "${ECHO_T}$ac_header_compiler" >&6; }
6256 # Is the header present?
6257 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6258 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6259 cat >conftest.
$ac_ext <<_ACEOF
6262 cat confdefs.h
>>conftest.
$ac_ext
6263 cat >>conftest.
$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <sys/sysmacros.h>
6267 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6275 grep -v '^ *+' conftest.er1 >conftest.err
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } >/dev/null && {
6280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6283 ac_header_preproc=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_preproc=no
6291 rm -f conftest.err conftest.$ac_ext
6292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6293 echo "${ECHO_T}$ac_header_preproc" >&6; }
6295 # So? What about this header?
6296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6298 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6299 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6301 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6302 ac_header_preproc=yes
6305 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6306 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6308 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6310 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6312 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6314 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6316 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6318 ## -------------------------------------- ##
6319 ## Report this to http://bugs.python.org/ ##
6320 ## -------------------------------------- ##
6322 ) | sed "s/^/$as_me: WARNING: /" >&2
6325 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6326 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6327 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6332 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6333 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6336 if test $ac_cv_header_sys_sysmacros_h = yes; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define MAJOR_IN_SYSMACROS 1
6349 # On Solaris, term.h requires curses.h
6351 for ac_header in term.h
6353 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 cat >conftest.$ac_ext <<_ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6366 #ifdef HAVE_CURSES_H
6371 #include <$ac_header>
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6377 *) ac_try_echo
=$ac_try;;
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6382 grep -v '^ *+' conftest.er1
>conftest.err
6384 cat conftest.err
>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.
$ac_objext; then
6390 eval "$as_ac_Header=yes"
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.
$ac_ext >&5
6395 eval "$as_ac_Header=no"
6398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6400 ac_res
=`eval echo '${'$as_ac_Header'}'`
6401 { echo "$as_me:$LINENO: result: $ac_res" >&5
6402 echo "${ECHO_T}$ac_res" >&6; }
6403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404 cat >>confdefs.h
<<_ACEOF
6405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6413 # On Linux, netlink.h requires asm/types.h
6415 for ac_header
in linux
/netlink.h
6417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6420 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 cat >conftest.
$ac_ext <<_ACEOF
6426 cat confdefs.h
>>conftest.
$ac_ext
6427 cat >>conftest.
$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6430 #ifdef HAVE_ASM_TYPES_H
6431 #include <asm/types.h>
6433 #ifdef HAVE_SYS_SOCKET_H
6434 #include <sys/socket.h>
6438 #include <$ac_header>
6440 rm -f conftest.
$ac_objext
6441 if { (ac_try
="$ac_compile"
6443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest.$ac_objext; then
6457 eval "$as_ac_Header=yes"
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 eval "$as_ac_Header=no"
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467 ac_res=`eval echo '${'$as_ac_Header'}'`
6468 { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6480 # checks for typedefs
6482 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6483 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6494 $EGREP "clock_t" >/dev/null 2>&1; then
6499 cat >>confdefs.h <<\_ACEOF
6500 #define clock_t long
6507 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6508 echo "${ECHO_T}$was_it_defined" >&6; }
6510 # Check whether using makedev requires defining _OSF_SOURCE
6511 { echo "$as_me:$LINENO: checking for makedev" >&5
6512 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <sys/types.h>
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (ac_try="$ac_link"
6531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6532 *) ac_try_echo
=$ac_try;;
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_link") 2>conftest.er1
6537 grep -v '^ *+' conftest.er1
>conftest.err
6539 cat conftest.err
>&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest
$ac_exeext &&
6545 $as_test_x conftest
$ac_exeext; then
6546 ac_cv_has_makedev
=yes
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.
$ac_ext >&5
6551 ac_cv_has_makedev
=no
6554 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6555 conftest
$ac_exeext conftest.
$ac_ext
6556 if test "$ac_cv_has_makedev" = "no"; then
6557 # we didn't link, try if _OSF_SOURCE will allow us to link
6558 cat >conftest.
$ac_ext <<_ACEOF
6561 cat confdefs.h
>>conftest.
$ac_ext
6562 cat >>conftest.
$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6565 #define _OSF_SOURCE 1
6566 #include <sys/types.h>
6576 rm -f conftest.
$ac_objext conftest
$ac_exeext
6577 if { (ac_try
="$ac_link"
6579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_link") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest$ac_exeext &&
6593 $as_test_x conftest$ac_exeext; then
6594 ac_cv_has_makedev=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_has_makedev=no
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603 conftest$ac_exeext conftest.$ac_ext
6604 if test "$ac_cv_has_makedev" = "yes"; then
6606 cat >>confdefs.h <<\_ACEOF
6607 #define _OSF_SOURCE 1
6612 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6613 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6614 if test "$ac_cv_has_makedev" = "yes"; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_MAKEDEV 1
6622 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6623 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6624 # defined, but the compiler does not support pragma redefine_extname,
6625 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6626 # structures (such as rlimit64) without declaring them. As a
6627 # work-around, disable LFS on such configurations
6630 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6631 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6639 #define _LARGEFILE_SOURCE 1
6640 #define _FILE_OFFSET_BITS 64
6641 #include <sys/resource.h>
6651 rm -f conftest.$ac_objext
6652 if { (ac_try="$ac_compile"
6654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6655 *) ac_try_echo
=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_compile") 2>conftest.er1
6660 grep -v '^ *+' conftest.er1
>conftest.err
6662 cat conftest.err
>&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest.
$ac_objext; then
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.
$ac_ext >&5
6676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6677 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6678 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6679 if test "$sol_lfs_bug" = "yes"; then
6683 if test "$use_lfs" = "yes"; then
6684 # Two defines needed to enable largefile support on various platforms
6685 # These may affect some typedefs
6687 cat >>confdefs.h
<<\_ACEOF
6688 #define _LARGEFILE_SOURCE 1
6692 cat >>confdefs.h
<<\_ACEOF
6693 #define _FILE_OFFSET_BITS 64
6698 # Add some code to confdefs.h so that the test for off_t works on SCO
6699 cat >> confdefs.h
<<\EOF
6705 # Type availability checks
6706 { echo "$as_me:$LINENO: checking for mode_t" >&5
6707 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6708 if test "${ac_cv_type_mode_t+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.
$ac_ext <<_ACEOF
6714 cat confdefs.h
>>conftest.
$ac_ext
6715 cat >>conftest.
$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 $ac_includes_default
6718 typedef mode_t ac__type_new_;
6722 if ((ac__type_new_ *) 0)
6724 if (sizeof (ac__type_new_))
6730 rm -f conftest.
$ac_objext
6731 if { (ac_try
="$ac_compile"
6733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6739 grep -v '^ *+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 ac_cv_type_mode_t=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_cv_type_mode_t=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6758 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6759 if test $ac_cv_type_mode_t = yes; then
6763 cat >>confdefs.h <<_ACEOF
6769 { echo "$as_me:$LINENO: checking for off_t" >&5
6770 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6771 if test "${ac_cv_type_off_t+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 cat >conftest.$ac_ext <<_ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 $ac_includes_default
6781 typedef off_t ac__type_new_;
6785 if ((ac__type_new_ *) 0)
6787 if (sizeof (ac__type_new_))
6793 rm -f conftest.$ac_objext
6794 if { (ac_try="$ac_compile"
6796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6797 *) ac_try_echo
=$ac_try;;
6799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6800 (eval "$ac_compile") 2>conftest.er1
6802 grep -v '^ *+' conftest.er1
>conftest.err
6804 cat conftest.err
>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } && {
6807 test -z "$ac_c_werror_flag" ||
6808 test ! -s conftest.err
6809 } && test -s conftest.
$ac_objext; then
6810 ac_cv_type_off_t
=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.
$ac_ext >&5
6818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6820 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6821 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6822 if test $ac_cv_type_off_t = yes; then
6826 cat >>confdefs.h
<<_ACEOF
6827 #define off_t long int
6832 { echo "$as_me:$LINENO: checking for pid_t" >&5
6833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6834 if test "${ac_cv_type_pid_t+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6844 typedef pid_t ac__type_new_;
6848 if ((ac__type_new_ *) 0)
6850 if (sizeof (ac__type_new_))
6856 rm -f conftest.
$ac_objext
6857 if { (ac_try
="$ac_compile"
6859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6865 grep -v '^ *+' conftest.er1 >conftest.err
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.$ac_objext; then
6873 ac_cv_type_pid_t=yes
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6884 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6885 if test $ac_cv_type_pid_t = yes; then
6889 cat >>confdefs.h <<_ACEOF
6895 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6896 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6897 if test "${ac_cv_type_signal+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <sys/types.h>
6912 return *(signal (0, 0)) (0) == 1;
6917 rm -f conftest.$ac_objext
6918 if { (ac_try="$ac_compile"
6920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6921 *) ac_try_echo
=$ac_try;;
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_compile") 2>conftest.er1
6926 grep -v '^ *+' conftest.er1
>conftest.err
6928 cat conftest.err
>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest.
$ac_objext; then
6934 ac_cv_type_signal
=int
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.
$ac_ext >&5
6939 ac_cv_type_signal
=void
6942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6944 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6945 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6947 cat >>confdefs.h
<<_ACEOF
6948 #define RETSIGTYPE $ac_cv_type_signal
6952 { echo "$as_me:$LINENO: checking for size_t" >&5
6953 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6954 if test "${ac_cv_type_size_t+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 cat >conftest.
$ac_ext <<_ACEOF
6960 cat confdefs.h
>>conftest.
$ac_ext
6961 cat >>conftest.
$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 typedef size_t ac__type_new_;
6968 if ((ac__type_new_ *) 0)
6970 if (sizeof (ac__type_new_))
6976 rm -f conftest.
$ac_objext
6977 if { (ac_try
="$ac_compile"
6979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_compile") 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && {
6990 test -z "$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 } && test -s conftest.$ac_objext; then
6993 ac_cv_type_size_t=yes
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_type_size_t=no
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7004 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7005 if test $ac_cv_type_size_t = yes; then
7009 cat >>confdefs.h <<_ACEOF
7010 #define size_t unsigned int
7015 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7016 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7017 if test "${ac_cv_type_uid_t+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <sys/types.h>
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "uid_t" >/dev/null 2>&1; then
7031 ac_cv_type_uid_t=yes
7038 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7039 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7040 if test $ac_cv_type_uid_t = no; then
7042 cat >>confdefs.h <<\_ACEOF
7047 cat >>confdefs.h <<\_ACEOF
7054 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7055 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7056 if test "${ac_cv_c_uint32_t+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 $ac_includes_default
7072 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7083 *) ac_try_echo
=$ac_try;;
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_compile") 2>conftest.er1
7088 grep -v '^ *+' conftest.er1
>conftest.err
7090 cat conftest.err
>&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } && {
7093 test -z "$ac_c_werror_flag" ||
7094 test ! -s conftest.err
7095 } && test -s conftest.
$ac_objext; then
7097 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7098 *) ac_cv_c_uint32_t
=$ac_type ;;
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.
$ac_ext >&5
7108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7109 test "$ac_cv_c_uint32_t" != no
&& break
7112 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7113 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7114 case $ac_cv_c_uint32_t in #(
7118 cat >>confdefs.h
<<\_ACEOF
7123 cat >>confdefs.h
<<_ACEOF
7124 #define uint32_t $ac_cv_c_uint32_t
7130 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7131 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7132 if test "${ac_cv_c_uint64_t+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7137 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7138 cat >conftest.
$ac_ext <<_ACEOF
7141 cat confdefs.h
>>conftest.
$ac_ext
7142 cat >>conftest.
$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7148 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7155 rm -f conftest.
$ac_objext
7156 if { (ac_try
="$ac_compile"
7158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compile") 2>conftest.er1
7164 grep -v '^ *+' conftest.er1 >conftest.err
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && {
7169 test -z "$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 } && test -s conftest.$ac_objext; then
7173 uint64_t) ac_cv_c_uint64_t=yes ;;
7174 *) ac_cv_c_uint64_t=$ac_type ;;
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 test "$ac_cv_c_uint64_t" != no && break
7188 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7189 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7190 case $ac_cv_c_uint64_t in #(
7194 cat >>confdefs.h <<\_ACEOF
7199 cat >>confdefs.h <<_ACEOF
7200 #define uint64_t $ac_cv_c_uint64_t
7206 { echo "$as_me:$LINENO: checking for int32_t" >&5
7207 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7208 if test "${ac_cv_c_int32_t+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 for ac_type in 'int32_t' 'int' 'long int' \
7213 'long long int' 'short int' 'signed char'; do
7214 cat >conftest.$ac_ext <<_ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 $ac_includes_default
7224 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7231 rm -f conftest.$ac_objext
7232 if { (ac_try="$ac_compile"
7234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7235 *) ac_try_echo
=$ac_try;;
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7240 grep -v '^ *+' conftest.er1
>conftest.err
7242 cat conftest.err
>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.
$ac_objext; then
7248 cat >conftest.
$ac_ext <<_ACEOF
7251 cat confdefs.h
>>conftest.
$ac_ext
7252 cat >>conftest.
$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7258 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7259 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7266 rm -f conftest.
$ac_objext
7267 if { (ac_try
="$ac_compile"
7269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7289 int32_t) ac_cv_c_int32_t=yes ;;
7290 *) ac_cv_c_int32_t=$ac_type ;;
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 test "$ac_cv_c_int32_t" != no && break
7307 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7308 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7309 case $ac_cv_c_int32_t in #(
7313 cat >>confdefs.h <<_ACEOF
7314 #define int32_t $ac_cv_c_int32_t
7320 { echo "$as_me:$LINENO: checking for int64_t" >&5
7321 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7322 if test "${ac_cv_c_int64_t+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 for ac_type in 'int64_t' 'int' 'long int' \
7327 'long long int' 'short int' 'signed char'; do
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 $ac_includes_default
7338 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7349 *) ac_try_echo
=$ac_try;;
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_compile") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1
>conftest.err
7356 cat conftest.err
>&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest.
$ac_objext; then
7362 cat >conftest.
$ac_ext <<_ACEOF
7365 cat confdefs.h
>>conftest.
$ac_ext
7366 cat >>conftest.
$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 $ac_includes_default
7372 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7373 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7380 rm -f conftest.
$ac_objext
7381 if { (ac_try
="$ac_compile"
7383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7387 (eval "$ac_compile") 2>conftest.er1
7389 grep -v '^ *+' conftest.er1 >conftest.err
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } && {
7394 test -z "$ac_c_werror_flag" ||
7395 test ! -s conftest.err
7396 } && test -s conftest.$ac_objext; then
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7403 int64_t) ac_cv_c_int64_t=yes ;;
7404 *) ac_cv_c_int64_t=$ac_type ;;
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 test "$ac_cv_c_int64_t" != no && break
7421 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7422 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7423 case $ac_cv_c_int64_t in #(
7427 cat >>confdefs.h <<_ACEOF
7428 #define int64_t $ac_cv_c_int64_t
7433 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7434 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7435 if test "${ac_cv_type_ssize_t+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 cat >conftest.$ac_ext <<_ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 typedef ssize_t ac__type_new_;
7449 if ((ac__type_new_ *) 0)
7451 if (sizeof (ac__type_new_))
7457 rm -f conftest.$ac_objext
7458 if { (ac_try="$ac_compile"
7460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7461 *) ac_try_echo
=$ac_try;;
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7466 grep -v '^ *+' conftest.er1
>conftest.err
7468 cat conftest.err
>&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.
$ac_objext; then
7474 ac_cv_type_ssize_t
=yes
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.
$ac_ext >&5
7479 ac_cv_type_ssize_t
=no
7482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7484 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7485 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7486 if test $ac_cv_type_ssize_t = yes; then
7488 cat >>confdefs.h
<<\_ACEOF
7489 #define HAVE_SSIZE_T 1
7495 # Sizes of various common basic types
7496 # ANSI C requires sizeof(char) == 1, so no need to check it
7497 { echo "$as_me:$LINENO: checking for int" >&5
7498 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7499 if test "${ac_cv_type_int+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.
$ac_ext <<_ACEOF
7505 cat confdefs.h
>>conftest.
$ac_ext
7506 cat >>conftest.
$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 typedef int ac__type_new_;
7513 if ((ac__type_new_ *) 0)
7515 if (sizeof (ac__type_new_))
7521 rm -f conftest.
$ac_objext
7522 if { (ac_try
="$ac_compile"
7524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_compile") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1 >conftest.err
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest.$ac_objext; then
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7549 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7551 # The cast to long int works around a bug in the HP C Compiler
7552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7553 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7554 # This bug is HP SR number 8606223364.
7555 { echo "$as_me:$LINENO: checking size of int" >&5
7556 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7557 if test "${ac_cv_sizeof_int+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 if test "$cross_compiling" = yes; then
7561 # Depending upon the size, compute the lo and hi bounds.
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 $ac_includes_default
7569 typedef int ac__type_sizeof_;
7573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_compile") 2>conftest.er1
7589 grep -v '^
*+' conftest.er1 >conftest.err
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && {
7594 test -z "$ac_c_werror_flag" ||
7595 test ! -s conftest.err
7596 } && test -s conftest.$ac_objext; then
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 $ac_includes_default
7606 typedef int ac__type_sizeof_;
7610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7626 grep -v '^
*+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 ac_hi=$ac_mid; break
7636 echo "$as_me: failed program was:" >&5
7637 sed 's
/^
/|
/' conftest.$ac_ext >&5
7639 ac_lo=`expr $ac_mid + 1`
7640 if test $ac_lo -le $ac_mid; then
7644 ac_mid=`expr 2 '*' $ac_mid + 1`
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 echo "$as_me: failed program was:" >&5
7651 sed 's
/^
/|
/' conftest.$ac_ext >&5
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 typedef int ac__type_sizeof_;
7664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7671 rm -f conftest.$ac_objext
7672 if { (ac_try="$ac_compile"
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_compile") 2>conftest.er1
7680 grep -v '^
*+' conftest.er1 >conftest.err
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest.$ac_objext; then
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 typedef int ac__type_sizeof_;
7701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7717 grep -v '^
*+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 ac_lo=$ac_mid; break
7727 echo "$as_me: failed program was:" >&5
7728 sed 's
/^
/|
/' conftest.$ac_ext >&5
7730 ac_hi=`expr '(' $ac_mid ')' - 1`
7731 if test $ac_mid -le $ac_hi; then
7735 ac_mid=`expr 2 '*' $ac_mid`
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741 echo "$as_me: failed program was:" >&5
7742 sed 's
/^
/|
/' conftest.$ac_ext >&5
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 # Binary search between lo and hi bounds.
7752 while test "x$ac_lo" != "x$ac_hi"; do
7753 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 $ac_includes_default
7761 typedef int ac__type_sizeof_;
7765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7781 grep -v '^
*+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7791 echo "$as_me: failed program was:" >&5
7792 sed 's
/^
/|
/' conftest.$ac_ext >&5
7794 ac_lo=`expr '(' $ac_mid ')' + 1`
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 ?*) ac_cv_sizeof_int=$ac_lo;;
7801 '') if test "$ac_cv_type_int" = yes; then
7802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7803 See \`config.log' for more details.
" >&5
7804 echo "$as_me: error
: cannot compute sizeof
(int
)
7805 See \
`config.log' for more details." >&2;}
7806 { (exit 77); exit 77; }; }
7812 cat >conftest.$ac_ext <<_ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 $ac_includes_default
7819 typedef int ac__type_sizeof_;
7820 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7821 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7828 FILE *f = fopen ("conftest.val", "w");
7831 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7833 long int i = longval ();
7834 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7836 fprintf (f, "%ld\n", i);
7840 unsigned long int i = ulongval ();
7841 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7843 fprintf (f, "%lu\n", i);
7845 return ferror (f) || fclose (f) != 0;
7851 rm -f conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7855 *) ac_try_echo
=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7862 { (case "(($ac_try" in
7863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_try") 2>&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_sizeof_int=`cat conftest.val
`
7873 echo "$as_me: program exited with status $ac_status" >&5
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7878 if test "$ac_cv_type_int" = yes; then
7879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7880 See \`config.log
' for more details." >&5
7881 echo "$as_me: error: cannot compute sizeof (int)
7882 See \`config.log' for more details.
" >&2;}
7883 { (exit 77); exit 77; }; }
7888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7892 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7893 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7897 cat >>confdefs.h <<_ACEOF
7898 #define SIZEOF_INT $ac_cv_sizeof_int
7902 { echo "$as_me:$LINENO: checking
for long
" >&5
7903 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7904 if test "${ac_cv_type_long+set}" = set; then
7905 echo $ECHO_N "(cached
) $ECHO_C" >&6
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 $ac_includes_default
7914 typedef long ac__type_new_;
7918 if ((ac__type_new_ *) 0)
7920 if (sizeof (ac__type_new_))
7926 rm -f conftest.$ac_objext
7927 if { (ac_try="$ac_compile"
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7935 grep -v '^ *+' conftest.er1 >conftest.err
7937 cat conftest.err >&5
7938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7945 echo "$as_me: failed program was
:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7954 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7956 # The cast to long int works around a bug in the HP C Compiler
7957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7959 # This bug is HP SR number 8606223364.
7960 { echo "$as_me:$LINENO: checking size of long
" >&5
7961 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7962 if test "${ac_cv_sizeof_long+set}" = set; then
7963 echo $ECHO_N "(cached
) $ECHO_C" >&6
7965 if test "$cross_compiling" = yes; then
7966 # Depending upon the size, compute the lo and hi bounds.
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7974 typedef long ac__type_sizeof_;
7978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 typedef long ac__type_sizeof_;
8015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_hi=$ac_mid; break
8041 echo "$as_me: failed program was
:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_lo=`expr $ac_mid + 1`
8045 if test $ac_lo -le $ac_mid; then
8049 ac_mid=`expr 2 '*' $ac_mid + 1`
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 echo "$as_me: failed program was
:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 $ac_includes_default
8065 typedef long ac__type_sizeof_;
8069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8076 rm -f conftest.$ac_objext
8077 if { (ac_try="$ac_compile"
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_compile") 2>conftest.er1
8085 grep -v '^ *+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
8095 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 typedef long ac__type_sizeof_;
8106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_lo=$ac_mid; break
8132 echo "$as_me: failed program was
:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 ac_hi=`expr '(' $ac_mid ')' - 1`
8136 if test $ac_mid -le $ac_hi; then
8140 ac_mid=`expr 2 '*' $ac_mid`
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 echo "$as_me: failed program was
:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 # Binary search between lo and hi bounds.
8157 while test "x
$ac_lo" != "x
$ac_hi"; do
8158 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 $ac_includes_default
8166 typedef long ac__type_sizeof_;
8170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8177 rm -f conftest.$ac_objext
8178 if { (ac_try="$ac_compile"
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_compile") 2>conftest.er1
8186 grep -v '^ *+' conftest.er1 >conftest.err
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest.$ac_objext; then
8196 echo "$as_me: failed program was
:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_lo=`expr '(' $ac_mid ')' + 1`
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 ?*) ac_cv_sizeof_long=$ac_lo;;
8206 '') if test "$ac_cv_type_long" = yes; then
8207 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8208 See \
`config.log' for more details." >&5
8209 echo "$as_me: error: cannot compute sizeof (long)
8210 See \`config.log
' for more details." >&2;}
8211 { (exit 77); exit 77; }; }
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8224 typedef long ac__type_sizeof_;
8225 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8226 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8233 FILE *f = fopen ("conftest.val", "w");
8236 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8238 long int i = longval ();
8239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8241 fprintf (f, "%ld\n", i);
8245 unsigned long int i = ulongval ();
8246 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8248 fprintf (f, "%lu\n", i);
8250 return ferror (f) || fclose (f) != 0;
8256 rm -f conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_link") 2>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_sizeof_long=`cat conftest.val`
8278 echo "$as_me: program exited with status $ac_status" >&5
8279 echo "$as_me: failed program was:" >&5
8280 sed 's
/^
/|
/' conftest.$ac_ext >&5
8283 if test "$ac_cv_type_long" = yes; then
8284 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8285 See \`config.log' for more details.
" >&5
8286 echo "$as_me: error
: cannot compute sizeof
(long
)
8287 See \
`config.log' for more details." >&2;}
8288 { (exit 77); exit 77; }; }
8293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8297 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8298 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8302 cat >>confdefs.h <<_ACEOF
8303 #define SIZEOF_LONG $ac_cv_sizeof_long
8307 { echo "$as_me:$LINENO: checking for void *" >&5
8308 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8309 if test "${ac_cv_type_void_p+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8319 typedef void * ac__type_new_;
8323 if ((ac__type_new_ *) 0)
8325 if (sizeof (ac__type_new_))
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8335 *) ac_try_echo
=$ac_try;;
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8340 grep -v '^ *+' conftest.er1
>conftest.err
8342 cat conftest.err
>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.
$ac_objext; then
8348 ac_cv_type_void_p
=yes
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.
$ac_ext >&5
8353 ac_cv_type_void_p
=no
8356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8358 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8359 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8361 # The cast to long int works around a bug in the HP C Compiler
8362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8364 # This bug is HP SR number 8606223364.
8365 { echo "$as_me:$LINENO: checking size of void *" >&5
8366 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8367 if test "${ac_cv_sizeof_void_p+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 if test "$cross_compiling" = yes; then
8371 # Depending upon the size, compute the lo and hi bounds.
8372 cat >conftest.
$ac_ext <<_ACEOF
8375 cat confdefs.h
>>conftest.
$ac_ext
8376 cat >>conftest.
$ac_ext <<_ACEOF
8377 /* end confdefs.h. */
8378 $ac_includes_default
8379 typedef void * ac__type_sizeof_;
8383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8390 rm -f conftest.
$ac_objext
8391 if { (ac_try
="$ac_compile"
8393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 $ac_includes_default
8416 typedef void * ac__type_sizeof_;
8420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8431 *) ac_try_echo
=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1
>conftest.err
8438 cat conftest.err
>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.
$ac_objext; then
8444 ac_hi
=$ac_mid; break
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.
$ac_ext >&5
8449 ac_lo
=`expr $ac_mid + 1`
8450 if test $ac_lo -le $ac_mid; then
8454 ac_mid
=`expr 2 '*' $ac_mid + 1`
8457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.
$ac_ext >&5
8463 cat >conftest.
$ac_ext <<_ACEOF
8466 cat confdefs.h
>>conftest.
$ac_ext
8467 cat >>conftest.
$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 $ac_includes_default
8470 typedef void * ac__type_sizeof_;
8474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8481 rm -f conftest.
$ac_objext
8482 if { (ac_try
="$ac_compile"
8484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compile") 2>conftest.er1
8490 grep -v '^ *+' conftest.er1 >conftest.err
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } && {
8495 test -z "$ac_c_werror_flag" ||
8496 test ! -s conftest.err
8497 } && test -s conftest.$ac_objext; then
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 typedef void * ac__type_sizeof_;
8511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8522 *) ac_try_echo
=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1
>conftest.err
8529 cat conftest.err
>&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.
$ac_objext; then
8535 ac_lo
=$ac_mid; break
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.
$ac_ext >&5
8540 ac_hi
=`expr '(' $ac_mid ')' - 1`
8541 if test $ac_mid -le $ac_hi; then
8545 ac_mid
=`expr 2 '*' $ac_mid`
8548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.
$ac_ext >&5
8557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8561 # Binary search between lo and hi bounds.
8562 while test "x$ac_lo" != "x$ac_hi"; do
8563 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8564 cat >conftest.
$ac_ext <<_ACEOF
8567 cat confdefs.h
>>conftest.
$ac_ext
8568 cat >>conftest.
$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 typedef void * ac__type_sizeof_;
8575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8582 rm -f conftest.
$ac_objext
8583 if { (ac_try
="$ac_compile"
8585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_lo=`expr '(' $ac_mid ')' + 1`
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8611 '') if test "$ac_cv_type_void_p" = yes; then
8612 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8613 See \`config.log
' for more details." >&5
8614 echo "$as_me: error: cannot compute sizeof (void *)
8615 See \`config.log' for more details.
" >&2;}
8616 { (exit 77); exit 77; }; }
8618 ac_cv_sizeof_void_p=0
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 typedef void * ac__type_sizeof_;
8630 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8631 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8638 FILE *f = fopen ("conftest.val
", "w
");
8641 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8643 long int i = longval ();
8644 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8646 fprintf (f, "%ld
\n", i);
8650 unsigned long int i = ulongval ();
8651 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8653 fprintf (f, "%lu
\n", i);
8655 return ferror (f) || fclose (f) != 0;
8661 rm -f conftest$ac_exeext
8662 if { (ac_try="$ac_link"
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_link") 2>&5
8670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8672 { (case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_try") 2>&5
8679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_cv_sizeof_void_p=`cat conftest.val`
8683 echo "$as_me: program exited with status
$ac_status" >&5
8684 echo "$as_me: failed program was
:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8688 if test "$ac_cv_type_void_p" = yes; then
8689 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8690 See \
`config.log' for more details." >&5
8691 echo "$as_me: error: cannot compute sizeof (void *)
8692 See \`config.log
' for more details." >&2;}
8693 { (exit 77); exit 77; }; }
8695 ac_cv_sizeof_void_p=0
8698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8702 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8703 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8707 cat >>confdefs.h <<_ACEOF
8708 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8712 { echo "$as_me:$LINENO: checking for short" >&5
8713 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8714 if test "${ac_cv_type_short+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 typedef short ac__type_new_;
8728 if ((ac__type_new_ *) 0)
8730 if (sizeof (ac__type_new_))
8736 rm -f conftest.$ac_objext
8737 if { (ac_try="$ac_compile"
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_compile") 2>conftest.er1
8745 grep -v '^
*+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest.$ac_objext; then
8753 ac_cv_type_short=yes
8755 echo "$as_me: failed program was:" >&5
8756 sed 's
/^
/|
/' conftest.$ac_ext >&5
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8764 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8766 # The cast to long int works around a bug in the HP C Compiler
8767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8769 # This bug is HP SR number 8606223364.
8770 { echo "$as_me:$LINENO: checking size of short" >&5
8771 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8772 if test "${ac_cv_sizeof_short+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 if test "$cross_compiling" = yes; then
8776 # Depending upon the size, compute the lo and hi bounds.
8777 cat >conftest.
$ac_ext <<_ACEOF
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 $ac_includes_default
8784 typedef short ac__type_sizeof_;
8788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8795 rm -f conftest.
$ac_objext
8796 if { (ac_try
="$ac_compile"
8798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_compile") 2>conftest.er1
8804 grep -v '^ *+' conftest.er1 >conftest.err
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest.$ac_objext; then
8814 cat >conftest.$ac_ext <<_ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 typedef short ac__type_sizeof_;
8825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8836 *) ac_try_echo
=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8841 grep -v '^ *+' conftest.er1
>conftest.err
8843 cat conftest.err
>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && {
8846 test -z "$ac_c_werror_flag" ||
8847 test ! -s conftest.err
8848 } && test -s conftest.
$ac_objext; then
8849 ac_hi
=$ac_mid; break
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.
$ac_ext >&5
8854 ac_lo
=`expr $ac_mid + 1`
8855 if test $ac_lo -le $ac_mid; then
8859 ac_mid
=`expr 2 '*' $ac_mid + 1`
8862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.
$ac_ext >&5
8868 cat >conftest.
$ac_ext <<_ACEOF
8871 cat confdefs.h
>>conftest.
$ac_ext
8872 cat >>conftest.
$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8874 $ac_includes_default
8875 typedef short ac__type_sizeof_;
8879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8886 rm -f conftest.
$ac_objext
8887 if { (ac_try
="$ac_compile"
8889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_compile") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && {
8900 test -z "$ac_c_werror_flag" ||
8901 test ! -s conftest.err
8902 } && test -s conftest.$ac_objext; then
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 $ac_includes_default
8912 typedef short ac__type_sizeof_;
8916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8923 rm -f conftest.$ac_objext
8924 if { (ac_try="$ac_compile"
8926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8927 *) ac_try_echo
=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8932 grep -v '^ *+' conftest.er1
>conftest.err
8934 cat conftest.err
>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.
$ac_objext; then
8940 ac_lo
=$ac_mid; break
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.
$ac_ext >&5
8945 ac_hi
=`expr '(' $ac_mid ')' - 1`
8946 if test $ac_mid -le $ac_hi; then
8950 ac_mid
=`expr 2 '*' $ac_mid`
8953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.
$ac_ext >&5
8962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8966 # Binary search between lo and hi bounds.
8967 while test "x$ac_lo" != "x$ac_hi"; do
8968 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8969 cat >conftest.
$ac_ext <<_ACEOF
8972 cat confdefs.h
>>conftest.
$ac_ext
8973 cat >>conftest.
$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 $ac_includes_default
8976 typedef short ac__type_sizeof_;
8980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8987 rm -f conftest.
$ac_objext
8988 if { (ac_try
="$ac_compile"
8990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_compile") 2>conftest.er1
8996 grep -v '^ *+' conftest.er1 >conftest.err
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && {
9001 test -z "$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9003 } && test -s conftest.$ac_objext; then
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_lo=`expr '(' $ac_mid ')' + 1`
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 ?*) ac_cv_sizeof_short=$ac_lo;;
9016 '') if test "$ac_cv_type_short" = yes; then
9017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9018 See \`config.log
' for more details." >&5
9019 echo "$as_me: error: cannot compute sizeof (short)
9020 See \`config.log' for more details.
" >&2;}
9021 { (exit 77); exit 77; }; }
9023 ac_cv_sizeof_short=0
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $ac_includes_default
9034 typedef short ac__type_sizeof_;
9035 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9036 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9043 FILE *f = fopen ("conftest.val
", "w
");
9046 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9048 long int i = longval ();
9049 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9051 fprintf (f, "%ld
\n", i);
9055 unsigned long int i = ulongval ();
9056 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9058 fprintf (f, "%lu
\n", i);
9060 return ferror (f) || fclose (f) != 0;
9066 rm -f conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_link") 2>&5
9075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9077 { (case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_try") 2>&5
9084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_cv_sizeof_short=`cat conftest.val`
9088 echo "$as_me: program exited with status
$ac_status" >&5
9089 echo "$as_me: failed program was
:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9093 if test "$ac_cv_type_short" = yes; then
9094 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9095 See \
`config.log' for more details." >&5
9096 echo "$as_me: error: cannot compute sizeof (short)
9097 See \`config.log
' for more details." >&2;}
9098 { (exit 77); exit 77; }; }
9100 ac_cv_sizeof_short=0
9103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9107 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9108 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9112 cat >>confdefs.h <<_ACEOF
9113 #define SIZEOF_SHORT $ac_cv_sizeof_short
9117 { echo "$as_me:$LINENO: checking for float" >&5
9118 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9119 if test "${ac_cv_type_float+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 $ac_includes_default
9129 typedef float ac__type_new_;
9133 if ((ac__type_new_ *) 0)
9135 if (sizeof (ac__type_new_))
9141 rm -f conftest.$ac_objext
9142 if { (ac_try="$ac_compile"
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_compile") 2>conftest.er1
9150 grep -v '^
*+' conftest.er1 >conftest.err
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest.$ac_objext; then
9158 ac_cv_type_float=yes
9160 echo "$as_me: failed program was:" >&5
9161 sed 's
/^
/|
/' conftest.$ac_ext >&5
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9169 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9171 # The cast to long int works around a bug in the HP C Compiler
9172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9174 # This bug is HP SR number 8606223364.
9175 { echo "$as_me:$LINENO: checking size of float" >&5
9176 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9177 if test "${ac_cv_sizeof_float+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 if test "$cross_compiling" = yes; then
9181 # Depending upon the size, compute the lo and hi bounds.
9182 cat >conftest.
$ac_ext <<_ACEOF
9185 cat confdefs.h
>>conftest.
$ac_ext
9186 cat >>conftest.
$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 typedef float ac__type_sizeof_;
9193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9200 rm -f conftest.
$ac_objext
9201 if { (ac_try
="$ac_compile"
9203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9219 cat >conftest.$ac_ext <<_ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 $ac_includes_default
9226 typedef float ac__type_sizeof_;
9230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9241 *) ac_try_echo
=$ac_try;;
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9246 grep -v '^ *+' conftest.er1
>conftest.err
9248 cat conftest.err
>&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.
$ac_objext; then
9254 ac_hi
=$ac_mid; break
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.
$ac_ext >&5
9259 ac_lo
=`expr $ac_mid + 1`
9260 if test $ac_lo -le $ac_mid; then
9264 ac_mid
=`expr 2 '*' $ac_mid + 1`
9267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.
$ac_ext >&5
9273 cat >conftest.
$ac_ext <<_ACEOF
9276 cat confdefs.h
>>conftest.
$ac_ext
9277 cat >>conftest.
$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 $ac_includes_default
9280 typedef float ac__type_sizeof_;
9284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9291 rm -f conftest.
$ac_objext
9292 if { (ac_try
="$ac_compile"
9294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_compile") 2>conftest.er1
9300 grep -v '^ *+' conftest.er1 >conftest.err
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && {
9305 test -z "$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 } && test -s conftest.$ac_objext; then
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 $ac_includes_default
9317 typedef float ac__type_sizeof_;
9321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9328 rm -f conftest.$ac_objext
9329 if { (ac_try="$ac_compile"
9331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9332 *) ac_try_echo
=$ac_try;;
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_compile") 2>conftest.er1
9337 grep -v '^ *+' conftest.er1
>conftest.err
9339 cat conftest.err
>&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && {
9342 test -z "$ac_c_werror_flag" ||
9343 test ! -s conftest.err
9344 } && test -s conftest.
$ac_objext; then
9345 ac_lo
=$ac_mid; break
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.
$ac_ext >&5
9350 ac_hi
=`expr '(' $ac_mid ')' - 1`
9351 if test $ac_mid -le $ac_hi; then
9355 ac_mid
=`expr 2 '*' $ac_mid`
9358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.
$ac_ext >&5
9367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9371 # Binary search between lo and hi bounds.
9372 while test "x$ac_lo" != "x$ac_hi"; do
9373 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9374 cat >conftest.
$ac_ext <<_ACEOF
9377 cat confdefs.h
>>conftest.
$ac_ext
9378 cat >>conftest.
$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 $ac_includes_default
9381 typedef float ac__type_sizeof_;
9385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9392 rm -f conftest.
$ac_objext
9393 if { (ac_try
="$ac_compile"
9395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_lo=`expr '(' $ac_mid ')' + 1`
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 ?*) ac_cv_sizeof_float=$ac_lo;;
9421 '') if test "$ac_cv_type_float" = yes; then
9422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9423 See \`config.log
' for more details." >&5
9424 echo "$as_me: error: cannot compute sizeof (float)
9425 See \`config.log' for more details.
" >&2;}
9426 { (exit 77); exit 77; }; }
9428 ac_cv_sizeof_float=0
9432 cat >conftest.$ac_ext <<_ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9439 typedef float ac__type_sizeof_;
9440 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9441 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9448 FILE *f = fopen ("conftest.val
", "w
");
9451 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9453 long int i = longval ();
9454 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9456 fprintf (f, "%ld
\n", i);
9460 unsigned long int i = ulongval ();
9461 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9463 fprintf (f, "%lu
\n", i);
9465 return ferror (f) || fclose (f) != 0;
9471 rm -f conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>&5
9480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9482 { (case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_try") 2>&5
9489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 ac_cv_sizeof_float=`cat conftest.val`
9493 echo "$as_me: program exited with status
$ac_status" >&5
9494 echo "$as_me: failed program was
:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9498 if test "$ac_cv_type_float" = yes; then
9499 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9500 See \
`config.log' for more details." >&5
9501 echo "$as_me: error: cannot compute sizeof (float)
9502 See \`config.log
' for more details." >&2;}
9503 { (exit 77); exit 77; }; }
9505 ac_cv_sizeof_float=0
9508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9512 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9513 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9522 { echo "$as_me:$LINENO: checking for double" >&5
9523 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9524 if test "${ac_cv_type_double+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 typedef double ac__type_new_;
9538 if ((ac__type_new_ *) 0)
9540 if (sizeof (ac__type_new_))
9546 rm -f conftest.$ac_objext
9547 if { (ac_try="$ac_compile"
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_compile") 2>conftest.er1
9555 grep -v '^
*+' conftest.er1 >conftest.err
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && {
9560 test -z "$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 } && test -s conftest.$ac_objext; then
9563 ac_cv_type_double=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's
/^
/|
/' conftest.$ac_ext >&5
9568 ac_cv_type_double=no
9571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9574 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9576 # The cast to long int works around a bug in the HP C Compiler
9577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9579 # This bug is HP SR number 8606223364.
9580 { echo "$as_me:$LINENO: checking size of double" >&5
9581 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9582 if test "${ac_cv_sizeof_double+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 if test "$cross_compiling" = yes; then
9586 # Depending upon the size, compute the lo and hi bounds.
9587 cat >conftest.
$ac_ext <<_ACEOF
9590 cat confdefs.h
>>conftest.
$ac_ext
9591 cat >>conftest.
$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 $ac_includes_default
9594 typedef double ac__type_sizeof_;
9598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9605 rm -f conftest.
$ac_objext
9606 if { (ac_try
="$ac_compile"
9608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_compile") 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest.$ac_objext; then
9624 cat >conftest.$ac_ext <<_ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 $ac_includes_default
9631 typedef double ac__type_sizeof_;
9635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9646 *) ac_try_echo
=$ac_try;;
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9651 grep -v '^ *+' conftest.er1
>conftest.err
9653 cat conftest.err
>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest.
$ac_objext; then
9659 ac_hi
=$ac_mid; break
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.
$ac_ext >&5
9664 ac_lo
=`expr $ac_mid + 1`
9665 if test $ac_lo -le $ac_mid; then
9669 ac_mid
=`expr 2 '*' $ac_mid + 1`
9672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.
$ac_ext >&5
9678 cat >conftest.
$ac_ext <<_ACEOF
9681 cat confdefs.h
>>conftest.
$ac_ext
9682 cat >>conftest.
$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 typedef double ac__type_sizeof_;
9689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9696 rm -f conftest.
$ac_objext
9697 if { (ac_try
="$ac_compile"
9699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_compile") 2>conftest.er1
9705 grep -v '^ *+' conftest.er1 >conftest.err
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest.$ac_objext; then
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 $ac_includes_default
9722 typedef double ac__type_sizeof_;
9726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9733 rm -f conftest.$ac_objext
9734 if { (ac_try="$ac_compile"
9736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9737 *) ac_try_echo
=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_compile") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1
>conftest.err
9744 cat conftest.err
>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest.
$ac_objext; then
9750 ac_lo
=$ac_mid; break
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.
$ac_ext >&5
9755 ac_hi
=`expr '(' $ac_mid ')' - 1`
9756 if test $ac_mid -le $ac_hi; then
9760 ac_mid
=`expr 2 '*' $ac_mid`
9763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.
$ac_ext >&5
9772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9776 # Binary search between lo and hi bounds.
9777 while test "x$ac_lo" != "x$ac_hi"; do
9778 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9779 cat >conftest.
$ac_ext <<_ACEOF
9782 cat confdefs.h
>>conftest.
$ac_ext
9783 cat >>conftest.
$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 $ac_includes_default
9786 typedef double ac__type_sizeof_;
9790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9797 rm -f conftest.
$ac_objext
9798 if { (ac_try
="$ac_compile"
9800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_compile") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest.$ac_objext; then
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_lo=`expr '(' $ac_mid ')' + 1`
9822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 ?*) ac_cv_sizeof_double=$ac_lo;;
9826 '') if test "$ac_cv_type_double" = yes; then
9827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9828 See \`config.log
' for more details." >&5
9829 echo "$as_me: error: cannot compute sizeof (double)
9830 See \`config.log' for more details.
" >&2;}
9831 { (exit 77); exit 77; }; }
9833 ac_cv_sizeof_double=0
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 typedef double ac__type_sizeof_;
9845 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9846 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9853 FILE *f = fopen ("conftest.val
", "w
");
9856 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9858 long int i = longval ();
9859 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9861 fprintf (f, "%ld
\n", i);
9865 unsigned long int i = ulongval ();
9866 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9868 fprintf (f, "%lu
\n", i);
9870 return ferror (f) || fclose (f) != 0;
9876 rm -f conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>&5
9885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_sizeof_double=`cat conftest.val`
9898 echo "$as_me: program exited with status
$ac_status" >&5
9899 echo "$as_me: failed program was
:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9903 if test "$ac_cv_type_double" = yes; then
9904 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9905 See \
`config.log' for more details." >&5
9906 echo "$as_me: error: cannot compute sizeof (double)
9907 See \`config.log
' for more details." >&2;}
9908 { (exit 77); exit 77; }; }
9910 ac_cv_sizeof_double=0
9913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9918 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9922 cat >>confdefs.h <<_ACEOF
9923 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9927 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9928 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9929 if test "${ac_cv_type_fpos_t+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 $ac_includes_default
9939 typedef fpos_t ac__type_new_;
9943 if ((ac__type_new_ *) 0)
9945 if (sizeof (ac__type_new_))
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_compile") 2>conftest.er1
9960 grep -v '^
*+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && {
9965 test -z "$ac_c_werror_flag" ||
9966 test ! -s conftest.err
9967 } && test -s conftest.$ac_objext; then
9968 ac_cv_type_fpos_t=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's
/^
/|
/' conftest.$ac_ext >&5
9973 ac_cv_type_fpos_t=no
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9979 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9981 # The cast to long int works around a bug in the HP C Compiler
9982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9984 # This bug is HP SR number 8606223364.
9985 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9986 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9987 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 if test "$cross_compiling" = yes; then
9991 # Depending upon the size, compute the lo and hi bounds.
9992 cat >conftest.
$ac_ext <<_ACEOF
9995 cat confdefs.h
>>conftest.
$ac_ext
9996 cat >>conftest.
$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
9999 typedef fpos_t ac__type_sizeof_;
10003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10010 rm -f conftest.
$ac_objext
10011 if { (ac_try
="$ac_compile"
10012 case "(($ac_try" in
10013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_compile") 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && {
10024 test -z "$ac_c_werror_flag" ||
10025 test ! -s conftest.err
10026 } && test -s conftest.$ac_objext; then
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 $ac_includes_default
10036 typedef fpos_t ac__type_sizeof_;
10040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10047 rm -f conftest.$ac_objext
10048 if { (ac_try="$ac_compile"
10049 case "(($ac_try" in
10050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10051 *) ac_try_echo
=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1
>conftest.err
10058 cat conftest.err
>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.
$ac_objext; then
10064 ac_hi
=$ac_mid; break
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.
$ac_ext >&5
10069 ac_lo
=`expr $ac_mid + 1`
10070 if test $ac_lo -le $ac_mid; then
10074 ac_mid
=`expr 2 '*' $ac_mid + 1`
10077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.
$ac_ext >&5
10083 cat >conftest.
$ac_ext <<_ACEOF
10086 cat confdefs.h
>>conftest.
$ac_ext
10087 cat >>conftest.
$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 $ac_includes_default
10090 typedef fpos_t ac__type_sizeof_;
10094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10101 rm -f conftest.
$ac_objext
10102 if { (ac_try
="$ac_compile"
10103 case "(($ac_try" in
10104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_compile") 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest.$ac_objext; then
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 typedef fpos_t ac__type_sizeof_;
10131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10138 rm -f conftest.$ac_objext
10139 if { (ac_try="$ac_compile"
10140 case "(($ac_try" in
10141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10142 *) ac_try_echo
=$ac_try;;
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_compile") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1
>conftest.err
10149 cat conftest.err
>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest.
$ac_objext; then
10155 ac_lo
=$ac_mid; break
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.
$ac_ext >&5
10160 ac_hi
=`expr '(' $ac_mid ')' - 1`
10161 if test $ac_mid -le $ac_hi; then
10165 ac_mid
=`expr 2 '*' $ac_mid`
10168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.
$ac_ext >&5
10177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10181 # Binary search between lo and hi bounds.
10182 while test "x$ac_lo" != "x$ac_hi"; do
10183 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10184 cat >conftest.
$ac_ext <<_ACEOF
10187 cat confdefs.h
>>conftest.
$ac_ext
10188 cat >>conftest.
$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 $ac_includes_default
10191 typedef fpos_t ac__type_sizeof_;
10195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10202 rm -f conftest.
$ac_objext
10203 if { (ac_try
="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_lo=`expr '(' $ac_mid ')' + 1`
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10231 '') if test "$ac_cv_type_fpos_t" = yes; then
10232 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10233 See \`config.log
' for more details." >&5
10234 echo "$as_me: error: cannot compute sizeof (fpos_t)
10235 See \`config.log' for more details.
" >&2;}
10236 { (exit 77); exit 77; }; }
10238 ac_cv_sizeof_fpos_t=0
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 typedef fpos_t ac__type_sizeof_;
10250 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10251 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10253 #include <stdlib.h>
10258 FILE *f = fopen ("conftest.val
", "w
");
10261 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10263 long int i = longval ();
10264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10266 fprintf (f, "%ld
\n", i);
10270 unsigned long int i = ulongval ();
10271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10273 fprintf (f, "%lu
\n", i);
10275 return ferror (f) || fclose (f) != 0;
10281 rm -f conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>&5
10290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_sizeof_fpos_t=`cat conftest.val`
10303 echo "$as_me: program exited with status
$ac_status" >&5
10304 echo "$as_me: failed program was
:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 ( exit $ac_status )
10308 if test "$ac_cv_type_fpos_t" = yes; then
10309 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10310 See \
`config.log' for more details." >&5
10311 echo "$as_me: error: cannot compute sizeof (fpos_t)
10312 See \`config.log
' for more details." >&2;}
10313 { (exit 77); exit 77; }; }
10315 ac_cv_sizeof_fpos_t=0
10318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10322 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10323 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10327 cat >>confdefs.h <<_ACEOF
10328 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10332 { echo "$as_me:$LINENO: checking for size_t" >&5
10333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10334 if test "${ac_cv_type_size_t+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 $ac_includes_default
10344 typedef size_t ac__type_new_;
10348 if ((ac__type_new_ *) 0)
10350 if (sizeof (ac__type_new_))
10356 rm -f conftest.$ac_objext
10357 if { (ac_try="$ac_compile"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_compile") 2>conftest.er1
10365 grep -v '^
*+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest.$ac_objext; then
10373 ac_cv_type_size_t=yes
10375 echo "$as_me: failed program was:" >&5
10376 sed 's
/^
/|
/' conftest.$ac_ext >&5
10378 ac_cv_type_size_t=no
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10384 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10386 # The cast to long int works around a bug in the HP C Compiler
10387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10389 # This bug is HP SR number 8606223364.
10390 { echo "$as_me:$LINENO: checking size of size_t" >&5
10391 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10392 if test "${ac_cv_sizeof_size_t+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 if test "$cross_compiling" = yes; then
10396 # Depending upon the size, compute the lo and hi bounds.
10397 cat >conftest.
$ac_ext <<_ACEOF
10400 cat confdefs.h
>>conftest.
$ac_ext
10401 cat >>conftest.
$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 $ac_includes_default
10404 typedef size_t ac__type_sizeof_;
10408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10415 rm -f conftest.
$ac_objext
10416 if { (ac_try
="$ac_compile"
10417 case "(($ac_try" in
10418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_compile") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1 >conftest.err
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest.$ac_objext; then
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 $ac_includes_default
10441 typedef size_t ac__type_sizeof_;
10445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10452 rm -f conftest.$ac_objext
10453 if { (ac_try="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10456 *) ac_try_echo
=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1
>conftest.err
10463 cat conftest.err
>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.
$ac_objext; then
10469 ac_hi
=$ac_mid; break
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.
$ac_ext >&5
10474 ac_lo
=`expr $ac_mid + 1`
10475 if test $ac_lo -le $ac_mid; then
10479 ac_mid
=`expr 2 '*' $ac_mid + 1`
10482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.
$ac_ext >&5
10488 cat >conftest.
$ac_ext <<_ACEOF
10491 cat confdefs.h
>>conftest.
$ac_ext
10492 cat >>conftest.
$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 $ac_includes_default
10495 typedef size_t ac__type_sizeof_;
10499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10506 rm -f conftest.
$ac_objext
10507 if { (ac_try
="$ac_compile"
10508 case "(($ac_try" in
10509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_compile") 2>conftest.er1
10515 grep -v '^ *+' conftest.er1 >conftest.err
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && {
10520 test -z "$ac_c_werror_flag" ||
10521 test ! -s conftest.err
10522 } && test -s conftest.$ac_objext; then
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 $ac_includes_default
10532 typedef size_t ac__type_sizeof_;
10536 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10543 rm -f conftest.$ac_objext
10544 if { (ac_try="$ac_compile"
10545 case "(($ac_try" in
10546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10547 *) ac_try_echo
=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_compile") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1
>conftest.err
10554 cat conftest.err
>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest.
$ac_objext; then
10560 ac_lo
=$ac_mid; break
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.
$ac_ext >&5
10565 ac_hi
=`expr '(' $ac_mid ')' - 1`
10566 if test $ac_mid -le $ac_hi; then
10570 ac_mid
=`expr 2 '*' $ac_mid`
10573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.
$ac_ext >&5
10582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10586 # Binary search between lo and hi bounds.
10587 while test "x$ac_lo" != "x$ac_hi"; do
10588 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10589 cat >conftest.
$ac_ext <<_ACEOF
10592 cat confdefs.h
>>conftest.
$ac_ext
10593 cat >>conftest.
$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 $ac_includes_default
10596 typedef size_t ac__type_sizeof_;
10600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10607 rm -f conftest.
$ac_objext
10608 if { (ac_try
="$ac_compile"
10609 case "(($ac_try" in
10610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_compile") 2>conftest.er1
10616 grep -v '^ *+' conftest.er1 >conftest.err
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest.$ac_objext; then
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ac_lo=`expr '(' $ac_mid ')' + 1`
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10635 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10636 '') if test "$ac_cv_type_size_t" = yes; then
10637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10638 See \`config.log
' for more details." >&5
10639 echo "$as_me: error: cannot compute sizeof (size_t)
10640 See \`config.log' for more details.
" >&2;}
10641 { (exit 77); exit 77; }; }
10643 ac_cv_sizeof_size_t=0
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 $ac_includes_default
10654 typedef size_t ac__type_sizeof_;
10655 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10656 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10658 #include <stdlib.h>
10663 FILE *f = fopen ("conftest.val
", "w
");
10666 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10668 long int i = longval ();
10669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10671 fprintf (f, "%ld
\n", i);
10675 unsigned long int i = ulongval ();
10676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10678 fprintf (f, "%lu
\n", i);
10680 return ferror (f) || fclose (f) != 0;
10686 rm -f conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>&5
10695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_sizeof_size_t=`cat conftest.val`
10708 echo "$as_me: program exited with status
$ac_status" >&5
10709 echo "$as_me: failed program was
:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ( exit $ac_status )
10713 if test "$ac_cv_type_size_t" = yes; then
10714 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10715 See \
`config.log' for more details." >&5
10716 echo "$as_me: error: cannot compute sizeof (size_t)
10717 See \`config.log
' for more details." >&2;}
10718 { (exit 77); exit 77; }; }
10720 ac_cv_sizeof_size_t=0
10723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10727 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10728 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10732 cat >>confdefs.h <<_ACEOF
10733 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10737 { echo "$as_me:$LINENO: checking for pid_t" >&5
10738 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10739 if test "${ac_cv_type_pid_t+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.$ac_ext <<_ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 $ac_includes_default
10749 typedef pid_t ac__type_new_;
10753 if ((ac__type_new_ *) 0)
10755 if (sizeof (ac__type_new_))
10761 rm -f conftest.$ac_objext
10762 if { (ac_try="$ac_compile"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_compile") 2>conftest.er1
10770 grep -v '^
*+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest.$ac_objext; then
10778 ac_cv_type_pid_t=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's
/^
/|
/' conftest.$ac_ext >&5
10783 ac_cv_type_pid_t=no
10786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10789 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10791 # The cast to long int works around a bug in the HP C Compiler
10792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10794 # This bug is HP SR number 8606223364.
10795 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10796 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10797 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 if test "$cross_compiling" = yes; then
10801 # Depending upon the size, compute the lo and hi bounds.
10802 cat >conftest.
$ac_ext <<_ACEOF
10805 cat confdefs.h
>>conftest.
$ac_ext
10806 cat >>conftest.
$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 $ac_includes_default
10809 typedef pid_t ac__type_sizeof_;
10813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10820 rm -f conftest.
$ac_objext
10821 if { (ac_try
="$ac_compile"
10822 case "(($ac_try" in
10823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_compile") 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } && {
10834 test -z "$ac_c_werror_flag" ||
10835 test ! -s conftest.err
10836 } && test -s conftest.$ac_objext; then
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 $ac_includes_default
10846 typedef pid_t ac__type_sizeof_;
10850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10857 rm -f conftest.$ac_objext
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10861 *) ac_try_echo
=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_compile") 2>conftest.er1
10866 grep -v '^ *+' conftest.er1
>conftest.err
10868 cat conftest.err
>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } && {
10871 test -z "$ac_c_werror_flag" ||
10872 test ! -s conftest.err
10873 } && test -s conftest.
$ac_objext; then
10874 ac_hi
=$ac_mid; break
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.
$ac_ext >&5
10879 ac_lo
=`expr $ac_mid + 1`
10880 if test $ac_lo -le $ac_mid; then
10884 ac_mid
=`expr 2 '*' $ac_mid + 1`
10887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.
$ac_ext >&5
10893 cat >conftest.
$ac_ext <<_ACEOF
10896 cat confdefs.h
>>conftest.
$ac_ext
10897 cat >>conftest.
$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10900 typedef pid_t ac__type_sizeof_;
10904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10911 rm -f conftest.
$ac_objext
10912 if { (ac_try
="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.$ac_objext; then
10930 cat >conftest.$ac_ext <<_ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 $ac_includes_default
10937 typedef pid_t ac__type_sizeof_;
10941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10948 rm -f conftest.$ac_objext
10949 if { (ac_try="$ac_compile"
10950 case "(($ac_try" in
10951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10952 *) ac_try_echo
=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_compile") 2>conftest.er1
10957 grep -v '^ *+' conftest.er1
>conftest.err
10959 cat conftest.err
>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } && {
10962 test -z "$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10964 } && test -s conftest.
$ac_objext; then
10965 ac_lo
=$ac_mid; break
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.
$ac_ext >&5
10970 ac_hi
=`expr '(' $ac_mid ')' - 1`
10971 if test $ac_mid -le $ac_hi; then
10975 ac_mid
=`expr 2 '*' $ac_mid`
10978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.
$ac_ext >&5
10987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10991 # Binary search between lo and hi bounds.
10992 while test "x$ac_lo" != "x$ac_hi"; do
10993 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10994 cat >conftest.
$ac_ext <<_ACEOF
10997 cat confdefs.h
>>conftest.
$ac_ext
10998 cat >>conftest.
$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 $ac_includes_default
11001 typedef pid_t ac__type_sizeof_;
11005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11012 rm -f conftest.
$ac_objext
11013 if { (ac_try
="$ac_compile"
11014 case "(($ac_try" in
11015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_compile") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && {
11026 test -z "$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest.$ac_objext; then
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_lo=`expr '(' $ac_mid ')' + 1`
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11041 '') if test "$ac_cv_type_pid_t" = yes; then
11042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11043 See \`config.log
' for more details." >&5
11044 echo "$as_me: error: cannot compute sizeof (pid_t)
11045 See \`config.log' for more details.
" >&2;}
11046 { (exit 77); exit 77; }; }
11048 ac_cv_sizeof_pid_t=0
11052 cat >conftest.$ac_ext <<_ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 $ac_includes_default
11059 typedef pid_t ac__type_sizeof_;
11060 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11061 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11063 #include <stdlib.h>
11068 FILE *f = fopen ("conftest.val
", "w
");
11071 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11073 long int i = longval ();
11074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11076 fprintf (f, "%ld
\n", i);
11080 unsigned long int i = ulongval ();
11081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11083 fprintf (f, "%lu
\n", i);
11085 return ferror (f) || fclose (f) != 0;
11091 rm -f conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>&5
11100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11102 { (case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_try") 2>&5
11109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_sizeof_pid_t=`cat conftest.val`
11113 echo "$as_me: program exited with status
$ac_status" >&5
11114 echo "$as_me: failed program was
:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ( exit $ac_status )
11118 if test "$ac_cv_type_pid_t" = yes; then
11119 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11120 See \
`config.log' for more details." >&5
11121 echo "$as_me: error: cannot compute sizeof (pid_t)
11122 See \`config.log
' for more details." >&2;}
11123 { (exit 77); exit 77; }; }
11125 ac_cv_sizeof_pid_t=0
11128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11133 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11137 cat >>confdefs.h <<_ACEOF
11138 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11143 { echo "$as_me:$LINENO: checking for long long support" >&5
11144 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11146 cat >conftest.$ac_ext <<_ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11156 long long x; x = (long long)0;
11161 rm -f conftest.$ac_objext
11162 if { (ac_try="$ac_compile"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11170 grep -v '^
*+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && {
11175 test -z "$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 } && test -s conftest.$ac_objext; then
11180 cat >>confdefs.h <<\_ACEOF
11181 #define HAVE_LONG_LONG 1
11187 echo "$as_me: failed program was:" >&5
11188 sed 's
/^
/|
/' conftest.$ac_ext >&5
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11195 echo "${ECHO_T}$have_long_long" >&6; }
11196 if test "$have_long_long" = yes ; then
11197 { echo "$as_me:$LINENO: checking for long long" >&5
11198 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11199 if test "${ac_cv_type_long_long+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 cat >conftest.$ac_ext <<_ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 $ac_includes_default
11209 typedef long long ac__type_new_;
11213 if ((ac__type_new_ *) 0)
11215 if (sizeof (ac__type_new_))
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_compile") 2>conftest.er1
11230 grep -v '^
*+' conftest.er1 >conftest.err
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest.$ac_objext; then
11238 ac_cv_type_long_long=yes
11240 echo "$as_me: failed program was:" >&5
11241 sed 's
/^
/|
/' conftest.$ac_ext >&5
11243 ac_cv_type_long_long=no
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11249 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11251 # The cast to long int works around a bug in the HP C Compiler
11252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11254 # This bug is HP SR number 8606223364.
11255 { echo "$as_me:$LINENO: checking size of long long" >&5
11256 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11257 if test "${ac_cv_sizeof_long_long+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 if test "$cross_compiling" = yes; then
11261 # Depending upon the size, compute the lo and hi bounds.
11262 cat >conftest.
$ac_ext <<_ACEOF
11265 cat confdefs.h
>>conftest.
$ac_ext
11266 cat >>conftest.
$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 typedef long long ac__type_sizeof_;
11273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11280 rm -f conftest.
$ac_objext
11281 if { (ac_try
="$ac_compile"
11282 case "(($ac_try" in
11283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_compile") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1 >conftest.err
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest.$ac_objext; then
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 $ac_includes_default
11306 typedef long long ac__type_sizeof_;
11310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11321 *) ac_try_echo
=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1
>conftest.err
11328 cat conftest.err
>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest.
$ac_objext; then
11334 ac_hi
=$ac_mid; break
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.
$ac_ext >&5
11339 ac_lo
=`expr $ac_mid + 1`
11340 if test $ac_lo -le $ac_mid; then
11344 ac_mid
=`expr 2 '*' $ac_mid + 1`
11347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.
$ac_ext >&5
11353 cat >conftest.
$ac_ext <<_ACEOF
11356 cat confdefs.h
>>conftest.
$ac_ext
11357 cat >>conftest.
$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 $ac_includes_default
11360 typedef long long ac__type_sizeof_;
11364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11371 rm -f conftest.
$ac_objext
11372 if { (ac_try
="$ac_compile"
11373 case "(($ac_try" in
11374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_compile") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } && {
11385 test -z "$ac_c_werror_flag" ||
11386 test ! -s conftest.err
11387 } && test -s conftest.$ac_objext; then
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 $ac_includes_default
11397 typedef long long ac__type_sizeof_;
11401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11408 rm -f conftest.$ac_objext
11409 if { (ac_try="$ac_compile"
11410 case "(($ac_try" in
11411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11412 *) ac_try_echo
=$ac_try;;
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_compile") 2>conftest.er1
11417 grep -v '^ *+' conftest.er1
>conftest.err
11419 cat conftest.err
>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && {
11422 test -z "$ac_c_werror_flag" ||
11423 test ! -s conftest.err
11424 } && test -s conftest.
$ac_objext; then
11425 ac_lo
=$ac_mid; break
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.
$ac_ext >&5
11430 ac_hi
=`expr '(' $ac_mid ')' - 1`
11431 if test $ac_mid -le $ac_hi; then
11435 ac_mid
=`expr 2 '*' $ac_mid`
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.
$ac_ext >&5
11447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11451 # Binary search between lo and hi bounds.
11452 while test "x$ac_lo" != "x$ac_hi"; do
11453 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11454 cat >conftest.
$ac_ext <<_ACEOF
11457 cat confdefs.h
>>conftest.
$ac_ext
11458 cat >>conftest.
$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 $ac_includes_default
11461 typedef long long ac__type_sizeof_;
11465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11472 rm -f conftest.
$ac_objext
11473 if { (ac_try
="$ac_compile"
11474 case "(($ac_try" in
11475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_lo=`expr '(' $ac_mid ')' + 1`
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11501 '') if test "$ac_cv_type_long_long" = yes; then
11502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11503 See \`config.log
' for more details." >&5
11504 echo "$as_me: error: cannot compute sizeof (long long)
11505 See \`config.log' for more details.
" >&2;}
11506 { (exit 77); exit 77; }; }
11508 ac_cv_sizeof_long_long=0
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11519 typedef long long ac__type_sizeof_;
11520 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11521 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11523 #include <stdlib.h>
11528 FILE *f = fopen ("conftest.val
", "w
");
11531 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11533 long int i = longval ();
11534 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11536 fprintf (f, "%ld
\n", i);
11540 unsigned long int i = ulongval ();
11541 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11543 fprintf (f, "%lu
\n", i);
11545 return ferror (f) || fclose (f) != 0;
11551 rm -f conftest$ac_exeext
11552 if { (ac_try="$ac_link"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_link") 2>&5
11560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11562 { (case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_try") 2>&5
11569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_sizeof_long_long=`cat conftest.val`
11573 echo "$as_me: program exited with status
$ac_status" >&5
11574 echo "$as_me: failed program was
:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ( exit $ac_status )
11578 if test "$ac_cv_type_long_long" = yes; then
11579 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11580 See \
`config.log' for more details." >&5
11581 echo "$as_me: error: cannot compute sizeof (long long)
11582 See \`config.log
' for more details." >&2;}
11583 { (exit 77); exit 77; }; }
11585 ac_cv_sizeof_long_long=0
11588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11592 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11593 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11597 cat >>confdefs.h <<_ACEOF
11598 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11604 { echo "$as_me:$LINENO: checking for long double support" >&5
11605 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11606 have_long_double=no
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11617 long double x; x = (long double)0;
11622 rm -f conftest.$ac_objext
11623 if { (ac_try="$ac_compile"
11624 case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_compile") 2>conftest.er1
11631 grep -v '^
*+' conftest.er1 >conftest.err
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest.$ac_objext; then
11641 cat >>confdefs.h <<\_ACEOF
11642 #define HAVE_LONG_DOUBLE 1
11645 have_long_double=yes
11648 echo "$as_me: failed program was:" >&5
11649 sed 's
/^
/|
/' conftest.$ac_ext >&5
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11656 echo "${ECHO_T}$have_long_double" >&6; }
11657 if test "$have_long_double" = yes ; then
11658 { echo "$as_me:$LINENO: checking for long double" >&5
11659 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11660 if test "${ac_cv_type_long_double+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 cat >conftest.$ac_ext <<_ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 $ac_includes_default
11670 typedef long double ac__type_new_;
11674 if ((ac__type_new_ *) 0)
11676 if (sizeof (ac__type_new_))
11682 rm -f conftest.$ac_objext
11683 if { (ac_try="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11691 grep -v '^
*+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 ac_cv_type_long_double=yes
11701 echo "$as_me: failed program was:" >&5
11702 sed 's
/^
/|
/' conftest.$ac_ext >&5
11704 ac_cv_type_long_double=no
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11710 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11712 # The cast to long int works around a bug in the HP C Compiler
11713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11715 # This bug is HP SR number 8606223364.
11716 { echo "$as_me:$LINENO: checking size of long double" >&5
11717 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11718 if test "${ac_cv_sizeof_long_double+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 if test "$cross_compiling" = yes; then
11722 # Depending upon the size, compute the lo and hi bounds.
11723 cat >conftest.
$ac_ext <<_ACEOF
11726 cat confdefs.h
>>conftest.
$ac_ext
11727 cat >>conftest.
$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 $ac_includes_default
11730 typedef long double ac__type_sizeof_;
11734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11741 rm -f conftest.
$ac_objext
11742 if { (ac_try
="$ac_compile"
11743 case "(($ac_try" in
11744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_compile") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest.$ac_objext; then
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 $ac_includes_default
11767 typedef long double ac__type_sizeof_;
11771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11778 rm -f conftest.$ac_objext
11779 if { (ac_try="$ac_compile"
11780 case "(($ac_try" in
11781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11782 *) ac_try_echo
=$ac_try;;
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_compile") 2>conftest.er1
11787 grep -v '^ *+' conftest.er1
>conftest.err
11789 cat conftest.err
>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest.
$ac_objext; then
11795 ac_hi
=$ac_mid; break
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.
$ac_ext >&5
11800 ac_lo
=`expr $ac_mid + 1`
11801 if test $ac_lo -le $ac_mid; then
11805 ac_mid
=`expr 2 '*' $ac_mid + 1`
11808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.
$ac_ext >&5
11814 cat >conftest.
$ac_ext <<_ACEOF
11817 cat confdefs.h
>>conftest.
$ac_ext
11818 cat >>conftest.
$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 typedef long double ac__type_sizeof_;
11825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11832 rm -f conftest.
$ac_objext
11833 if { (ac_try
="$ac_compile"
11834 case "(($ac_try" in
11835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_compile") 2>conftest.er1
11841 grep -v '^ *+' conftest.er1 >conftest.err
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest.$ac_objext; then
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 typedef long double ac__type_sizeof_;
11862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11873 *) ac_try_echo
=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11878 grep -v '^ *+' conftest.er1
>conftest.err
11880 cat conftest.err
>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.
$ac_objext; then
11886 ac_lo
=$ac_mid; break
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.
$ac_ext >&5
11891 ac_hi
=`expr '(' $ac_mid ')' - 1`
11892 if test $ac_mid -le $ac_hi; then
11896 ac_mid
=`expr 2 '*' $ac_mid`
11899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.
$ac_ext >&5
11908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11912 # Binary search between lo and hi bounds.
11913 while test "x$ac_lo" != "x$ac_hi"; do
11914 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11915 cat >conftest.
$ac_ext <<_ACEOF
11918 cat confdefs.h
>>conftest.
$ac_ext
11919 cat >>conftest.
$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 $ac_includes_default
11922 typedef long double ac__type_sizeof_;
11926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11933 rm -f conftest.
$ac_objext
11934 if { (ac_try
="$ac_compile"
11935 case "(($ac_try" in
11936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_compile") 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } && {
11947 test -z "$ac_c_werror_flag" ||
11948 test ! -s conftest.err
11949 } && test -s conftest.$ac_objext; then
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_lo=`expr '(' $ac_mid ')' + 1`
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11962 '') if test "$ac_cv_type_long_double" = yes; then
11963 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11964 See \`config.log
' for more details." >&5
11965 echo "$as_me: error: cannot compute sizeof (long double)
11966 See \`config.log' for more details.
" >&2;}
11967 { (exit 77); exit 77; }; }
11969 ac_cv_sizeof_long_double=0
11973 cat >conftest.$ac_ext <<_ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 $ac_includes_default
11980 typedef long double ac__type_sizeof_;
11981 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11982 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11984 #include <stdlib.h>
11989 FILE *f = fopen ("conftest.val
", "w
");
11992 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11994 long int i = longval ();
11995 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11997 fprintf (f, "%ld
\n", i);
12001 unsigned long int i = ulongval ();
12002 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12004 fprintf (f, "%lu
\n", i);
12006 return ferror (f) || fclose (f) != 0;
12012 rm -f conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_link") 2>&5
12021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_sizeof_long_double=`cat conftest.val`
12034 echo "$as_me: program exited with status
$ac_status" >&5
12035 echo "$as_me: failed program was
:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ( exit $ac_status )
12039 if test "$ac_cv_type_long_double" = yes; then
12040 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12041 See \
`config.log' for more details." >&5
12042 echo "$as_me: error: cannot compute sizeof (long double)
12043 See \`config.log
' for more details." >&2;}
12044 { (exit 77); exit 77; }; }
12046 ac_cv_sizeof_long_double=0
12049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12053 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12054 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12058 cat >>confdefs.h <<_ACEOF
12059 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12066 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12067 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12079 _Bool x; x = (_Bool)0;
12084 rm -f conftest.$ac_objext
12085 if { (ac_try="$ac_compile"
12086 case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_compile") 2>conftest.er1
12093 grep -v '^
*+' conftest.er1 >conftest.err
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest.$ac_objext; then
12103 cat >>confdefs.h <<\_ACEOF
12104 #define HAVE_C99_BOOL 1
12110 echo "$as_me: failed program was:" >&5
12111 sed 's
/^
/|
/' conftest.$ac_ext >&5
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12118 echo "${ECHO_T}$have_c99_bool" >&6; }
12119 if test "$have_c99_bool" = yes ; then
12120 { echo "$as_me:$LINENO: checking for _Bool" >&5
12121 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12122 if test "${ac_cv_type__Bool+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 typedef _Bool ac__type_new_;
12136 if ((ac__type_new_ *) 0)
12138 if (sizeof (ac__type_new_))
12144 rm -f conftest.$ac_objext
12145 if { (ac_try="$ac_compile"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_compile") 2>conftest.er1
12153 grep -v '^
*+' conftest.er1 >conftest.err
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && {
12158 test -z "$ac_c_werror_flag" ||
12159 test ! -s conftest.err
12160 } && test -s conftest.$ac_objext; then
12161 ac_cv_type__Bool=yes
12163 echo "$as_me: failed program was:" >&5
12164 sed 's
/^
/|
/' conftest.$ac_ext >&5
12166 ac_cv_type__Bool=no
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12172 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12174 # The cast to long int works around a bug in the HP C Compiler
12175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12177 # This bug is HP SR number 8606223364.
12178 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12179 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12180 if test "${ac_cv_sizeof__Bool+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 if test "$cross_compiling" = yes; then
12184 # Depending upon the size, compute the lo and hi bounds.
12185 cat >conftest.
$ac_ext <<_ACEOF
12188 cat confdefs.h
>>conftest.
$ac_ext
12189 cat >>conftest.
$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 $ac_includes_default
12192 typedef _Bool ac__type_sizeof_;
12196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12203 rm -f conftest.
$ac_objext
12204 if { (ac_try
="$ac_compile"
12205 case "(($ac_try" in
12206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_compile") 2>conftest.er1
12212 grep -v '^ *+' conftest.er1 >conftest.err
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest.$ac_objext; then
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 typedef _Bool ac__type_sizeof_;
12233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12244 *) ac_try_echo
=$ac_try;;
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12249 grep -v '^ *+' conftest.er1
>conftest.err
12251 cat conftest.err
>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.
$ac_objext; then
12257 ac_hi
=$ac_mid; break
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.
$ac_ext >&5
12262 ac_lo
=`expr $ac_mid + 1`
12263 if test $ac_lo -le $ac_mid; then
12267 ac_mid
=`expr 2 '*' $ac_mid + 1`
12270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.
$ac_ext >&5
12276 cat >conftest.
$ac_ext <<_ACEOF
12279 cat confdefs.h
>>conftest.
$ac_ext
12280 cat >>conftest.
$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12282 $ac_includes_default
12283 typedef _Bool ac__type_sizeof_;
12287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12294 rm -f conftest.
$ac_objext
12295 if { (ac_try
="$ac_compile"
12296 case "(($ac_try" in
12297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_compile") 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest.$ac_objext; then
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 $ac_includes_default
12320 typedef _Bool ac__type_sizeof_;
12324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12331 rm -f conftest.$ac_objext
12332 if { (ac_try="$ac_compile"
12333 case "(($ac_try" in
12334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12335 *) ac_try_echo
=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1
>conftest.err
12342 cat conftest.err
>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.
$ac_objext; then
12348 ac_lo
=$ac_mid; break
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.
$ac_ext >&5
12353 ac_hi
=`expr '(' $ac_mid ')' - 1`
12354 if test $ac_mid -le $ac_hi; then
12358 ac_mid
=`expr 2 '*' $ac_mid`
12361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.
$ac_ext >&5
12370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12374 # Binary search between lo and hi bounds.
12375 while test "x$ac_lo" != "x$ac_hi"; do
12376 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12377 cat >conftest.
$ac_ext <<_ACEOF
12380 cat confdefs.h
>>conftest.
$ac_ext
12381 cat >>conftest.
$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 $ac_includes_default
12384 typedef _Bool ac__type_sizeof_;
12388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12395 rm -f conftest.
$ac_objext
12396 if { (ac_try
="$ac_compile"
12397 case "(($ac_try" in
12398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_compile") 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } && {
12409 test -z "$ac_c_werror_flag" ||
12410 test ! -s conftest.err
12411 } && test -s conftest.$ac_objext; then
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_lo=`expr '(' $ac_mid ')' + 1`
12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12424 '') if test "$ac_cv_type__Bool" = yes; then
12425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12426 See \`config.log
' for more details." >&5
12427 echo "$as_me: error: cannot compute sizeof (_Bool)
12428 See \`config.log' for more details.
" >&2;}
12429 { (exit 77); exit 77; }; }
12431 ac_cv_sizeof__Bool=0
12435 cat >conftest.$ac_ext <<_ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 $ac_includes_default
12442 typedef _Bool ac__type_sizeof_;
12443 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12444 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12446 #include <stdlib.h>
12451 FILE *f = fopen ("conftest.val
", "w
");
12454 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12456 long int i = longval ();
12457 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12459 fprintf (f, "%ld
\n", i);
12463 unsigned long int i = ulongval ();
12464 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12466 fprintf (f, "%lu
\n", i);
12468 return ferror (f) || fclose (f) != 0;
12474 rm -f conftest$ac_exeext
12475 if { (ac_try="$ac_link"
12476 case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_link") 2>&5
12483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12485 { (case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_try") 2>&5
12492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_sizeof__Bool=`cat conftest.val`
12496 echo "$as_me: program exited with status
$ac_status" >&5
12497 echo "$as_me: failed program was
:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ( exit $ac_status )
12501 if test "$ac_cv_type__Bool" = yes; then
12502 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12503 See \
`config.log' for more details." >&5
12504 echo "$as_me: error: cannot compute sizeof (_Bool)
12505 See \`config.log
' for more details." >&2;}
12506 { (exit 77); exit 77; }; }
12508 ac_cv_sizeof__Bool=0
12511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12516 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12520 cat >>confdefs.h <<_ACEOF
12521 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12527 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12528 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12529 if test "${ac_cv_type_uintptr_t+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 #ifdef HAVE_STDINT_H
12539 #include <stdint.h>
12542 typedef uintptr_t ac__type_new_;
12546 if ((ac__type_new_ *) 0)
12548 if (sizeof (ac__type_new_))
12554 rm -f conftest.$ac_objext
12555 if { (ac_try="$ac_compile"
12556 case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_compile") 2>conftest.er1
12563 grep -v '^
*+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest.$ac_objext; then
12571 ac_cv_type_uintptr_t=yes
12573 echo "$as_me: failed program was:" >&5
12574 sed 's
/^
/|
/' conftest.$ac_ext >&5
12576 ac_cv_type_uintptr_t=no
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12582 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12583 if test $ac_cv_type_uintptr_t = yes; then
12585 cat >>confdefs.h <<_ACEOF
12586 #define HAVE_UINTPTR_T 1
12589 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12590 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12591 if test "${ac_cv_type_uintptr_t+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 cat >conftest.$ac_ext <<_ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 $ac_includes_default
12601 typedef uintptr_t ac__type_new_;
12605 if ((ac__type_new_ *) 0)
12607 if (sizeof (ac__type_new_))
12613 rm -f conftest.$ac_objext
12614 if { (ac_try="$ac_compile"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_compile") 2>conftest.er1
12622 grep -v '^
*+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest.$ac_objext; then
12630 ac_cv_type_uintptr_t=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's
/^
/|
/' conftest.$ac_ext >&5
12635 ac_cv_type_uintptr_t=no
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12641 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12643 # The cast to long int works around a bug in the HP C Compiler
12644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12646 # This bug is HP SR number 8606223364.
12647 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12648 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12649 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 if test "$cross_compiling" = yes; then
12653 # Depending upon the size, compute the lo and hi bounds.
12654 cat >conftest.
$ac_ext <<_ACEOF
12657 cat confdefs.h
>>conftest.
$ac_ext
12658 cat >>conftest.
$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 $ac_includes_default
12661 typedef uintptr_t ac__type_sizeof_;
12665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12672 rm -f conftest.
$ac_objext
12673 if { (ac_try
="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_compile") 2>conftest.er1
12681 grep -v '^ *+' conftest.er1 >conftest.err
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest.$ac_objext; then
12691 cat >conftest.$ac_ext <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 $ac_includes_default
12698 typedef uintptr_t ac__type_sizeof_;
12702 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12713 *) ac_try_echo
=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_compile") 2>conftest.er1
12718 grep -v '^ *+' conftest.er1
>conftest.err
12720 cat conftest.err
>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest.
$ac_objext; then
12726 ac_hi
=$ac_mid; break
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.
$ac_ext >&5
12731 ac_lo
=`expr $ac_mid + 1`
12732 if test $ac_lo -le $ac_mid; then
12736 ac_mid
=`expr 2 '*' $ac_mid + 1`
12739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.
$ac_ext >&5
12745 cat >conftest.
$ac_ext <<_ACEOF
12748 cat confdefs.h
>>conftest.
$ac_ext
12749 cat >>conftest.
$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12752 typedef uintptr_t ac__type_sizeof_;
12756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12763 rm -f conftest.
$ac_objext
12764 if { (ac_try
="$ac_compile"
12765 case "(($ac_try" in
12766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12772 grep -v '^ *+' conftest.er1 >conftest.err
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
12782 cat >conftest.$ac_ext <<_ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12789 typedef uintptr_t ac__type_sizeof_;
12793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12800 rm -f conftest.$ac_objext
12801 if { (ac_try="$ac_compile"
12802 case "(($ac_try" in
12803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12804 *) ac_try_echo
=$ac_try;;
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_compile") 2>conftest.er1
12809 grep -v '^ *+' conftest.er1
>conftest.err
12811 cat conftest.err
>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } && {
12814 test -z "$ac_c_werror_flag" ||
12815 test ! -s conftest.err
12816 } && test -s conftest.
$ac_objext; then
12817 ac_lo
=$ac_mid; break
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.
$ac_ext >&5
12822 ac_hi
=`expr '(' $ac_mid ')' - 1`
12823 if test $ac_mid -le $ac_hi; then
12827 ac_mid
=`expr 2 '*' $ac_mid`
12830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.
$ac_ext >&5
12839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12843 # Binary search between lo and hi bounds.
12844 while test "x$ac_lo" != "x$ac_hi"; do
12845 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12846 cat >conftest.
$ac_ext <<_ACEOF
12849 cat confdefs.h
>>conftest.
$ac_ext
12850 cat >>conftest.
$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12852 $ac_includes_default
12853 typedef uintptr_t ac__type_sizeof_;
12857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12864 rm -f conftest.
$ac_objext
12865 if { (ac_try
="$ac_compile"
12866 case "(($ac_try" in
12867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_compile") 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } && {
12878 test -z "$ac_c_werror_flag" ||
12879 test ! -s conftest.err
12880 } && test -s conftest.$ac_objext; then
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 ac_lo=`expr '(' $ac_mid ')' + 1`
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12893 '') if test "$ac_cv_type_uintptr_t" = yes; then
12894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12895 See \`config.log
' for more details." >&5
12896 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12897 See \`config.log' for more details.
" >&2;}
12898 { (exit 77); exit 77; }; }
12900 ac_cv_sizeof_uintptr_t=0
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 typedef uintptr_t ac__type_sizeof_;
12912 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12913 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12915 #include <stdlib.h>
12920 FILE *f = fopen ("conftest.val
", "w
");
12923 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12925 long int i = longval ();
12926 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12928 fprintf (f, "%ld
\n", i);
12932 unsigned long int i = ulongval ();
12933 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12935 fprintf (f, "%lu
\n", i);
12937 return ferror (f) || fclose (f) != 0;
12943 rm -f conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>&5
12952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12965 echo "$as_me: program exited with status
$ac_status" >&5
12966 echo "$as_me: failed program was
:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ( exit $ac_status )
12970 if test "$ac_cv_type_uintptr_t" = yes; then
12971 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12972 See \
`config.log' for more details." >&5
12973 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12974 See \`config.log
' for more details." >&2;}
12975 { (exit 77); exit 77; }; }
12977 ac_cv_sizeof_uintptr_t=0
12980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12984 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12985 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12989 cat >>confdefs.h <<_ACEOF
12990 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12998 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12999 { echo "$as_me:$LINENO: checking size of off_t" >&5
13000 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13001 if test "${ac_cv_sizeof_off_t+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 if test "$cross_compiling" = yes; then
13005 ac_cv_sizeof_off_t
=4
13007 cat >conftest.
$ac_ext <<_ACEOF
13010 cat confdefs.h
>>conftest.
$ac_ext
13011 cat >>conftest.
$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13014 #include <sys/types.h>
13017 FILE *f=fopen("conftestval", "w");
13019 fprintf(f, "%d\n", sizeof(off_t));
13023 rm -f conftest
$ac_exeext
13024 if { (ac_try
="$ac_link"
13025 case "(($ac_try" in
13026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_link") 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13036 *) ac_try_echo
=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_sizeof_off_t
=`cat conftestval`
13045 echo "$as_me: program exited with status $ac_status" >&5
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.
$ac_ext >&5
13049 ( exit $ac_status )
13050 ac_cv_sizeof_off_t
=0
13052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13059 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13060 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13062 cat >>confdefs.h
<<_ACEOF
13063 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13067 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13068 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13069 if test "$have_long_long" = yes
13071 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13072 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13074 cat >>confdefs.h
<<\_ACEOF
13075 #define HAVE_LARGEFILE_SUPPORT 1
13078 { echo "$as_me:$LINENO: result: yes" >&5
13079 echo "${ECHO_T}yes" >&6; }
13081 { echo "$as_me:$LINENO: result: no" >&5
13082 echo "${ECHO_T}no" >&6; }
13085 { echo "$as_me:$LINENO: result: no" >&5
13086 echo "${ECHO_T}no" >&6; }
13089 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13090 { echo "$as_me:$LINENO: checking size of time_t" >&5
13091 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13092 if test "${ac_cv_sizeof_time_t+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 if test "$cross_compiling" = yes; then
13096 ac_cv_sizeof_time_t
=4
13098 cat >conftest.
$ac_ext <<_ACEOF
13101 cat confdefs.h
>>conftest.
$ac_ext
13102 cat >>conftest.
$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13108 FILE *f=fopen("conftestval", "w");
13110 fprintf(f, "%d\n", sizeof(time_t));
13114 rm -f conftest
$ac_exeext
13115 if { (ac_try
="$ac_link"
13116 case "(($ac_try" in
13117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_link") 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13125 { (case "(($ac_try" in
13126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13127 *) ac_try_echo
=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_try") 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_sizeof_time_t
=`cat conftestval`
13136 echo "$as_me: program exited with status $ac_status" >&5
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.
$ac_ext >&5
13140 ( exit $ac_status )
13141 ac_cv_sizeof_time_t
=0
13143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13151 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13153 cat >>confdefs.h
<<_ACEOF
13154 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13159 # if have pthread_t then define SIZEOF_PTHREAD_T
13161 if test "$ac_cv_kpthread" = "yes"
13162 then CC
="$CC -Kpthread"
13163 elif test "$ac_cv_kthread" = "yes"
13164 then CC
="$CC -Kthread"
13165 elif test "$ac_cv_pthread" = "yes"
13166 then CC
="$CC -pthread"
13168 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13169 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13171 cat >conftest.
$ac_ext <<_ACEOF
13174 cat confdefs.h
>>conftest.
$ac_ext
13175 cat >>conftest.
$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <pthread.h>
13181 pthread_t x; x = *(pthread_t*)0;
13186 rm -f conftest.
$ac_objext
13187 if { (ac_try
="$ac_compile"
13188 case "(($ac_try" in
13189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_compile") 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest.$ac_objext; then
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13213 echo "${ECHO_T}$have_pthread_t" >&6; }
13214 if test "$have_pthread_t" = yes ; then
13215 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13216 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13217 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13218 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 if test "$cross_compiling" = yes; then
13222 ac_cv_sizeof_pthread_t=4
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13231 #include <pthread.h>
13234 FILE *f=fopen("conftestval", "w");
13236 fprintf(f, "%d\n", sizeof(pthread_t));
13240 rm -f conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13244 *) ac_try_echo
=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_link") 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13251 { (case "(($ac_try" in
13252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_sizeof_pthread_t=`cat conftestval
`
13262 echo "$as_me: program exited with status $ac_status" >&5
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ( exit $ac_status )
13267 ac_cv_sizeof_pthread_t=0
13269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13277 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13279 cat >>confdefs.h <<_ACEOF
13280 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13289 case $ac_sys_system/$ac_sys_release in
13290 Darwin/[01567]\..*)
13291 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13294 OTHER_LIBTOOL_OPT=""
13301 case $ac_sys_system/$ac_sys_release in
13302 Darwin/[01567]\..*)
13303 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13304 if test "${enable_universalsdk}"; then
13307 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr
/bin
/arch
`"
13309 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13310 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13312 gcc_version=`gcc
-dumpversion`
13313 if test ${gcc_version} '<' 4.0
13315 LIBTOOL_CRUFT="-lcc_dynamic"
13319 if test "$cross_compiling" = yes; then
13322 cat >conftest.$ac_ext <<_ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13329 #include <unistd.h>
13330 int main(int argc, char*argv[])
13332 if (sizeof(long) == 4) {
13340 rm -f conftest$ac_exeext
13341 if { (ac_try="$ac_link"
13342 case "(($ac_try" in
13343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13344 *) ac_try_echo
=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_link") 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13351 { (case "(($ac_try" in
13352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_try") 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13362 echo "$as_me: program exited with status $ac_status" >&5
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ( exit $ac_status )
13369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 if test "${ac_osx_32bit}" = "yes"; then
13375 case `/usr
/bin
/arch
` in
13377 MACOSX_DEFAULT_ARCH="i386"
13380 MACOSX_DEFAULT_ARCH="ppc"
13383 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13384 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13385 { (exit 1); exit 1; }; }
13389 case `/usr
/bin
/arch
` in
13391 MACOSX_DEFAULT_ARCH="x86_64"
13394 MACOSX_DEFAULT_ARCH="ppc64"
13397 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13398 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13399 { (exit 1); exit 1; }; }
13403 #ARCH_RUN_32BIT="true"
13406 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13407 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13408 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13411 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13412 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13413 if test "$enable_framework"
13415 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13416 # -F. is needed to allow linking to the framework while
13417 # in the build location.
13419 cat >>confdefs.h <<\_ACEOF
13420 #define WITH_NEXT_FRAMEWORK 1
13423 { echo "$as_me:$LINENO: result: yes" >&5
13424 echo "${ECHO_T}yes" >&6; }
13425 if test $enable_shared = "yes"
13427 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13428 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13429 { (exit 1); exit 1; }; }
13432 { echo "$as_me:$LINENO: result: no" >&5
13433 echo "${ECHO_T}no" >&6; }
13436 { echo "$as_me:$LINENO: checking for dyld" >&5
13437 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13438 case $ac_sys_system/$ac_sys_release in
13441 cat >>confdefs.h <<\_ACEOF
13442 #define WITH_DYLD 1
13445 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13446 echo "${ECHO_T}always on for Darwin" >&6; }
13449 { echo "$as_me:$LINENO: result: no" >&5
13450 echo "${ECHO_T}no" >&6; }
13454 # Set info about shared libraries.
13460 # SO is the extension of shared libraries `(including the dot
!)
13461 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13462 { echo "$as_me:$LINENO: checking SO" >&5
13463 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13466 case $ac_sys_system in
13477 # this might also be a termcap variable, see #610332
13479 echo '====================================================================='
13481 echo '+ WARNING: You have set SO in your environment. +'
13482 echo '+ Do you really mean to change the extension for shared libraries? +'
13483 echo '+ Continuing in 10 seconds to let you to ponder. +'
13485 echo '====================================================================='
13488 { echo "$as_me:$LINENO: result: $SO" >&5
13489 echo "${ECHO_T}$SO" >&6; }
13492 cat >>confdefs.h
<<_ACEOF
13493 #define SHLIB_EXT "$SO"
13496 # LDSHARED is the ld *command* used to create shared library
13497 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13498 # (Shared libraries in this instance are shared modules to be loaded into
13499 # Python, as opposed to building Python itself as a shared library.)
13500 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13501 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13502 if test -z "$LDSHARED"
13504 case $ac_sys_system/$ac_sys_release in
13506 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13507 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13509 IRIX
/5*) LDSHARED
="ld -shared";;
13510 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13512 if test "$GCC" = "yes"
13513 then LDSHARED
='$(CC) -shared'
13514 else LDSHARED
='$(CC) -G';
13517 if test "$GCC" = "yes"
13518 then LDSHARED
='$(CC) -shared'
13519 else LDSHARED
='ld -b';
13521 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13523 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13524 if test "$enable_framework" ; then
13525 # Link against the framework. All externals should be defined.
13526 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13527 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13529 # No framework. Ignore undefined symbols, assuming they come from Python
13530 LDSHARED
="$LDSHARED -undefined suppress"
13532 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13533 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13534 if test "$enable_framework" ; then
13535 # Link against the framework. All externals should be defined.
13536 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13537 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13539 # No framework, use the Python app as bundle-loader
13540 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13541 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13544 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13545 # This allows an extension to be used in any Python
13547 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13549 if test "${enable_universalsdk}"; then
13550 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13552 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13553 BLDSHARED
="$LDSHARED"
13555 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13556 if test "$enable_framework" ; then
13557 # Link against the framework. All externals should be defined.
13558 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13559 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13561 # No framework, use the Python app as bundle-loader
13562 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13563 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13567 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13568 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13570 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13572 LDSHARED
="$CC -shared ${LDFLAGS}"
13574 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13577 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13579 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13582 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13583 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13586 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13590 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13591 OpenUNIX
*|UnixWare
*)
13592 if test "$GCC" = "yes"
13593 then LDSHARED
='$(CC) -shared'
13594 else LDSHARED
='$(CC) -G'
13596 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13597 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13598 atheos
*) LDSHARED
="gcc -shared";;
13602 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13603 echo "${ECHO_T}$LDSHARED" >&6; }
13604 BLDSHARED
=${BLDSHARED-$LDSHARED}
13605 # CCSHARED are the C *flags* used to create objects to go into a shared
13606 # library (module) -- this is only needed for a few systems
13607 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13608 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13609 if test -z "$CCSHARED"
13611 case $ac_sys_system/$ac_sys_release in
13612 SunOS
*) if test "$GCC" = yes;
13613 then CCSHARED
="-fPIC";
13614 elif test `uname -p` = sparc
;
13615 then CCSHARED
="-xcode=pic32";
13616 else CCSHARED
="-Kpic";
13618 hp
*|HP
*) if test "$GCC" = yes;
13619 then CCSHARED
="-fPIC";
13620 else CCSHARED
="+z";
13622 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13623 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13624 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13625 OpenUNIX
*|UnixWare
*)
13626 if test "$GCC" = "yes"
13627 then CCSHARED
="-fPIC"
13628 else CCSHARED
="-KPIC"
13631 if test "$GCC" = "yes"
13632 then CCSHARED
="-fPIC"
13633 else CCSHARED
="-Kpic -belf"
13635 IRIX
*/6*) case $CC in
13636 *gcc
*) CCSHARED
="-shared";;
13639 atheos
*) CCSHARED
="-fPIC";;
13642 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13643 echo "${ECHO_T}$CCSHARED" >&6; }
13644 # LINKFORSHARED are the flags passed to the $(CC) command that links
13645 # the python executable -- this is only needed for a few systems
13646 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13647 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13648 if test -z "$LINKFORSHARED"
13650 case $ac_sys_system/$ac_sys_release in
13651 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13653 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13654 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13655 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13656 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13657 # -u libsys_s pulls in all symbols in libsys
13659 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13660 if test "$enable_framework"
13662 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13664 LINKFORSHARED
="$LINKFORSHARED";;
13665 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13666 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13667 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13668 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13669 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13671 LINKFORSHARED
="-Wl,--export-dynamic"
13673 SunOS
/5*) case $CC in
13675 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13677 LINKFORSHARED
="-Xlinker --export-dynamic"
13681 if test $enable_shared = "no"
13683 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13686 # -Wl,-E causes the symbols to be added to the dynamic
13687 # symbol table so that they can be found when a module
13688 # is loaded. -N 2048K causes the stack size to be set
13689 # to 2048 kilobytes so that the stack doesn't overflow
13690 # when running test_compile.py.
13691 LINKFORSHARED
='-Wl,-E -N 2048K';;
13694 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13695 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13699 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13700 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13701 if test ! "$LIBRARY" = "$LDLIBRARY"
13703 case $ac_sys_system in
13705 # Cygwin needs CCSHARED when building extension DLLs
13706 # but not when building the interpreter DLL.
13707 CFLAGSFORSHARED
='';;
13709 CFLAGSFORSHARED
='$(CCSHARED)'
13712 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13713 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13715 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13716 # library (with --enable-shared).
13717 # For platforms on which shared libraries are not allowed to have unresolved
13718 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13719 # if it is not required, since it creates a dependency of the shared library
13720 # to LIBS. This, in turn, means that applications linking the shared libpython
13721 # don't need to link LIBS explicitly. The default should be only changed
13722 # on systems where this approach causes problems.
13724 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13725 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13726 case "$ac_sys_system" in
13730 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13731 echo "${ECHO_T}$SHLIBS" >&6; }
13734 # checks for libraries
13736 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13737 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 ac_check_lib_save_LIBS
=$LIBS
13743 cat >conftest.
$ac_ext <<_ACEOF
13746 cat confdefs.h
>>conftest.
$ac_ext
13747 cat >>conftest.
$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13765 rm -f conftest.
$ac_objext conftest
$ac_exeext
13766 if { (ac_try
="$ac_link"
13767 case "(($ac_try" in
13768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext &&
13782 $as_test_x conftest$ac_exeext; then
13783 ac_cv_lib_dl_dlopen=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_lib_dl_dlopen=no
13791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13792 conftest$ac_exeext conftest.$ac_ext
13793 LIBS=$ac_check_lib_save_LIBS
13795 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13796 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13797 if test $ac_cv_lib_dl_dlopen = yes; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_LIBDL 1
13805 # Dynamic linking for SunOS/Solaris and SYSV
13807 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13808 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13809 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 ac_check_lib_save_LIBS=$LIBS
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13821 /* Override any GCC internal prototype to avoid an error.
13822 Use char because int might match the return type of a GCC
13823 builtin and then its argument prototype would still apply. */
13831 return shl_load ();
13836 rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (ac_try="$ac_link"
13838 case "(($ac_try" in
13839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13840 *) ac_try_echo
=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_link") 2>conftest.er1
13845 grep -v '^ *+' conftest.er1
>conftest.err
13847 cat conftest.err
>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && {
13850 test -z "$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13852 } && test -s conftest
$ac_exeext &&
13853 $as_test_x conftest
$ac_exeext; then
13854 ac_cv_lib_dld_shl_load
=yes
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.
$ac_ext >&5
13859 ac_cv_lib_dld_shl_load
=no
13862 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13863 conftest
$ac_exeext conftest.
$ac_ext
13864 LIBS
=$ac_check_lib_save_LIBS
13866 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13867 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13868 if test $ac_cv_lib_dld_shl_load = yes; then
13869 cat >>confdefs.h
<<_ACEOF
13870 #define HAVE_LIBDLD 1
13876 # Dynamic linking for HP-UX
13878 # only check for sem_init if thread support is requested
13879 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13880 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13881 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13882 if test "${ac_cv_search_sem_init+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 ac_func_search_save_LIBS
=$LIBS
13886 cat >conftest.
$ac_ext <<_ACEOF
13889 cat confdefs.h
>>conftest.
$ac_ext
13890 cat >>conftest.
$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13903 return sem_init ();
13908 for ac_lib
in '' pthread rt posix4
; do
13909 if test -z "$ac_lib"; then
13910 ac_res
="none required"
13913 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13915 rm -f conftest.
$ac_objext conftest
$ac_exeext
13916 if { (ac_try
="$ac_link"
13917 case "(($ac_try" in
13918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_link") 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest$ac_exeext &&
13932 $as_test_x conftest$ac_exeext; then
13933 ac_cv_search_sem_init=$ac_res
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13943 if test "${ac_cv_search_sem_init+set}" = set; then
13947 if test "${ac_cv_search_sem_init+set}" = set; then
13950 ac_cv_search_sem_init=no
13952 rm conftest.$ac_ext
13953 LIBS=$ac_func_search_save_LIBS
13955 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13956 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13957 ac_res=$ac_cv_search_sem_init
13958 if test "$ac_res" != no; then
13959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13962 # 'Real Time' functions on Solaris
13963 # posix4 on Solaris 2.6
13964 # pthread (first!) on Linux
13967 # check if we need libintl for locale functions
13968 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13969 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13970 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 ac_check_lib_save_LIBS=$LIBS
13974 LIBS="-lintl $LIBS"
13975 cat >conftest.$ac_ext <<_ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13988 char textdomain ();
13992 return textdomain ();
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (ac_try="$ac_link"
13999 case "(($ac_try" in
14000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14001 *) ac_try_echo
=$ac_try;;
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_link") 2>conftest.er1
14006 grep -v '^ *+' conftest.er1
>conftest.err
14008 cat conftest.err
>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } && {
14011 test -z "$ac_c_werror_flag" ||
14012 test ! -s conftest.err
14013 } && test -s conftest
$ac_exeext &&
14014 $as_test_x conftest
$ac_exeext; then
14015 ac_cv_lib_intl_textdomain
=yes
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.
$ac_ext >&5
14020 ac_cv_lib_intl_textdomain
=no
14023 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14024 conftest
$ac_exeext conftest.
$ac_ext
14025 LIBS
=$ac_check_lib_save_LIBS
14027 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14028 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14029 if test $ac_cv_lib_intl_textdomain = yes; then
14031 cat >>confdefs.h
<<\_ACEOF
14032 #define WITH_LIBINTL 1
14035 LIBS
="-lintl $LIBS"
14039 # checks for system dependent C++ extensions support
14040 case "$ac_sys_system" in
14041 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14042 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14043 cat >conftest.
$ac_ext <<_ACEOF
14046 cat confdefs.h
>>conftest.
$ac_ext
14047 cat >>conftest.
$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 #include "/usr/lpp/xlC/include/load.h"
14053 loadAndInit("", 0, "")
14058 rm -f conftest.
$ac_objext conftest
$ac_exeext
14059 if { (ac_try
="$ac_link"
14060 case "(($ac_try" in
14061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } && {
14072 test -z "$ac_c_werror_flag" ||
14073 test ! -s conftest.err
14074 } && test -s conftest$ac_exeext &&
14075 $as_test_x conftest$ac_exeext; then
14077 cat >>confdefs.h <<\_ACEOF
14078 #define AIX_GENUINE_CPLUSPLUS 1
14081 { echo "$as_me:$LINENO: result: yes" >&5
14082 echo "${ECHO_T}yes" >&6; }
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 { echo "$as_me:$LINENO: result: no" >&5
14088 echo "${ECHO_T}no" >&6; }
14091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14092 conftest$ac_exeext conftest.$ac_ext;;
14096 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14097 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14098 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14099 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 ac_check_lib_save_LIBS=$LIBS
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14111 /* Override any GCC internal prototype to avoid an error.
14112 Use char because int might match the return type of a GCC
14113 builtin and then its argument prototype would still apply. */
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14130 *) ac_try_echo
=$ac_try;;
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_link") 2>conftest.er1
14135 grep -v '^ *+' conftest.er1
>conftest.err
14137 cat conftest.err
>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && {
14140 test -z "$ac_c_werror_flag" ||
14141 test ! -s conftest.err
14142 } && test -s conftest
$ac_exeext &&
14143 $as_test_x conftest
$ac_exeext; then
14144 ac_cv_lib_nsl_t_open
=yes
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.
$ac_ext >&5
14149 ac_cv_lib_nsl_t_open
=no
14152 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14153 conftest
$ac_exeext conftest.
$ac_ext
14154 LIBS
=$ac_check_lib_save_LIBS
14156 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14157 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14158 if test $ac_cv_lib_nsl_t_open = yes; then
14162 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14163 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14164 if test "${ac_cv_lib_socket_socket+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 ac_check_lib_save_LIBS
=$LIBS
14168 LIBS
="-lsocket $LIBS $LIBS"
14169 cat >conftest.
$ac_ext <<_ACEOF
14172 cat confdefs.h
>>conftest.
$ac_ext
14173 cat >>conftest.
$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14191 rm -f conftest.
$ac_objext conftest
$ac_exeext
14192 if { (ac_try
="$ac_link"
14193 case "(($ac_try" in
14194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_link") 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && {
14205 test -z "$ac_c_werror_flag" ||
14206 test ! -s conftest.err
14207 } && test -s conftest$ac_exeext &&
14208 $as_test_x conftest$ac_exeext; then
14209 ac_cv_lib_socket_socket=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_cv_lib_socket_socket=no
14217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14218 conftest$ac_exeext conftest.$ac_ext
14219 LIBS=$ac_check_lib_save_LIBS
14221 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14222 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14223 if test $ac_cv_lib_socket_socket = yes; then
14224 LIBS="-lsocket $LIBS"
14228 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14229 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14231 # Check whether --with-libs was given.
14232 if test "${with_libs+set}" = set; then
14233 withval=$with_libs;
14234 { echo "$as_me:$LINENO: result: $withval" >&5
14235 echo "${ECHO_T}$withval" >&6; }
14236 LIBS="$withval $LIBS"
14239 { echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6; }
14244 # Check for use of the system libffi library
14245 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14246 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14248 # Check whether --with-system_ffi was given.
14249 if test "${with_system_ffi+set}" = set; then
14250 withval=$with_system_ffi;
14254 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14255 echo "${ECHO_T}$with_system_ffi" >&6; }
14257 # Check for --with-dbmliborder
14258 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14259 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14261 # Check whether --with-dbmliborder was given.
14262 if test "${with_dbmliborder+set}" = set; then
14263 withval=$with_dbmliborder;
14264 if test x$with_dbmliborder = xyes
14266 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14267 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14268 { (exit 1); exit 1; }; }
14270 for db in `echo $with_dbmliborder |
sed 's/:/ /g'`; do
14271 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14273 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14274 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14275 { (exit 1); exit 1; }; }
14281 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14282 echo "${ECHO_T}$with_dbmliborder" >&6; }
14284 # Determine if signalmodule should be used.
14287 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14288 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14290 # Check whether --with-signal-module was given.
14291 if test "${with_signal_module+set}" = set; then
14292 withval=$with_signal_module;
14296 if test -z "$with_signal_module"
14297 then with_signal_module="yes"
14299 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14300 echo "${ECHO_T}$with_signal_module" >&6; }
14302 if test "${with_signal_module}" = "yes"; then
14303 USE_SIGNAL_MODULE=""
14306 USE_SIGNAL_MODULE="#"
14307 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14310 # This is used to generate Setup.config
14312 USE_THREAD_MODULE=""
14314 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14315 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14318 # Check whether --with-dec-threads was given.
14319 if test "${with_dec_threads+set}" = set; then
14320 withval=$with_dec_threads;
14321 { echo "$as_me:$LINENO: result: $withval" >&5
14322 echo "${ECHO_T}$withval" >&6; }
14324 if test "${with_thread+set}" != set; then
14325 with_thread="$withval";
14328 { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14333 # Templates for things AC_DEFINEd more than once.
14334 # For a single AC_DEFINE, no template is needed.
14342 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14343 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14345 # Check whether --with-threads was given.
14346 if test "${with_threads+set}" = set; then
14347 withval=$with_threads;
14351 # --with-thread is deprecated, but check for it anyway
14353 # Check whether --with-thread was given.
14354 if test "${with_thread+set}" = set; then
14355 withval=$with_thread; with_threads=$with_thread
14359 if test -z "$with_threads"
14360 then with_threads="yes"
14362 { echo "$as_me:$LINENO: result: $with_threads" >&5
14363 echo "${ECHO_T}$with_threads" >&6; }
14366 if test "$with_threads" = "no"
14368 USE_THREAD_MODULE="#"
14369 elif test "$ac_cv_pthread_is_default" = yes
14371 cat >>confdefs.h <<\_ACEOF
14372 #define WITH_THREAD 1
14375 # Defining _REENTRANT on system with POSIX threads should not hurt.
14376 cat >>confdefs.h <<\_ACEOF
14377 #define _REENTRANT 1
14381 THREADOBJ="Python/thread.o"
14382 elif test "$ac_cv_kpthread" = "yes"
14385 if test "$ac_cv_cxx_thread" = "yes"; then
14386 CXX="$CXX -Kpthread"
14388 cat >>confdefs.h <<\_ACEOF
14389 #define WITH_THREAD 1
14393 THREADOBJ="Python/thread.o"
14394 elif test "$ac_cv_kthread" = "yes"
14397 if test "$ac_cv_cxx_thread" = "yes"; then
14398 CXX="$CXX -Kthread"
14400 cat >>confdefs.h <<\_ACEOF
14401 #define WITH_THREAD 1
14405 THREADOBJ="Python/thread.o"
14406 elif test "$ac_cv_pthread" = "yes"
14409 if test "$ac_cv_cxx_thread" = "yes"; then
14410 CXX="$CXX -pthread"
14412 cat >>confdefs.h <<\_ACEOF
14413 #define WITH_THREAD 1
14417 THREADOBJ="Python/thread.o"
14419 if test ! -z "$with_threads" -a -d "$with_threads"
14420 then LDFLAGS="$LDFLAGS -L$with_threads"
14422 if test ! -z "$withval" -a -d "$withval"
14423 then LDFLAGS="$LDFLAGS -L$withval"
14426 # According to the POSIX spec, a pthreads implementation must
14427 # define _POSIX_THREADS in unistd.h. Some apparently don't
14428 # (e.g. gnu pth with pthread emulation)
14429 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14430 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14438 #include <unistd.h>
14439 #ifdef _POSIX_THREADS
14444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14445 $EGREP "yes" >/dev/null 2>&1; then
14446 unistd_defines_pthreads=yes
14448 unistd_defines_pthreads=no
14452 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14453 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14455 cat >>confdefs.h <<\_ACEOF
14456 #define _REENTRANT 1
14459 if test "${ac_cv_header_cthreads_h+set}" = set; then
14460 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14461 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14462 if test "${ac_cv_header_cthreads_h+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14466 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14468 # Is the header compilable?
14469 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14470 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14471 cat >conftest.$ac_ext <<_ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 $ac_includes_default
14478 #include <cthreads.h>
14480 rm -f conftest.$ac_objext
14481 if { (ac_try="$ac_compile"
14482 case "(($ac_try" in
14483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14484 *) ac_try_echo
=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_compile") 2>conftest.er1
14489 grep -v '^ *+' conftest.er1
>conftest.err
14491 cat conftest.err
>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && {
14494 test -z "$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 } && test -s conftest.
$ac_objext; then
14497 ac_header_compiler
=yes
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.
$ac_ext >&5
14502 ac_header_compiler
=no
14505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14507 echo "${ECHO_T}$ac_header_compiler" >&6; }
14509 # Is the header present?
14510 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14511 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14512 cat >conftest.
$ac_ext <<_ACEOF
14515 cat confdefs.h
>>conftest.
$ac_ext
14516 cat >>conftest.
$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518 #include <cthreads.h>
14520 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14521 case "(($ac_try" in
14522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } >/dev/null && {
14533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14534 test ! -s conftest.err
14536 ac_header_preproc=yes
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_header_preproc=no
14544 rm -f conftest.err conftest.$ac_ext
14545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546 echo "${ECHO_T}$ac_header_preproc" >&6; }
14548 # So? What about this header?
14549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14552 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14554 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14555 ac_header_preproc=yes
14558 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14559 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14561 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14563 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14565 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14567 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14569 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14571 ## -------------------------------------- ##
14572 ## Report this to http://bugs.python.org/ ##
14573 ## -------------------------------------- ##
14575 ) | sed "s/^/$as_me: WARNING: /" >&2
14578 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14579 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14580 if test "${ac_cv_header_cthreads_h+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 ac_cv_header_cthreads_h=$ac_header_preproc
14585 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14586 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14589 if test $ac_cv_header_cthreads_h = yes; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define WITH_THREAD 1
14594 cat >>confdefs.h <<\_ACEOF
14595 #define C_THREADS 1
14599 cat >>confdefs.h <<\_ACEOF
14600 #define HURD_C_THREADS 1
14603 LIBS="$LIBS -lthreads"
14604 THREADOBJ="Python/thread.o"
14607 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14608 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14609 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14610 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14614 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14616 # Is the header compilable?
14617 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14618 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14619 cat >conftest.$ac_ext <<_ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14625 $ac_includes_default
14626 #include <mach/cthreads.h>
14628 rm -f conftest.$ac_objext
14629 if { (ac_try="$ac_compile"
14630 case "(($ac_try" in
14631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14632 *) ac_try_echo
=$ac_try;;
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14637 grep -v '^ *+' conftest.er1
>conftest.err
14639 cat conftest.err
>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest.
$ac_objext; then
14645 ac_header_compiler
=yes
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.
$ac_ext >&5
14650 ac_header_compiler
=no
14653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14655 echo "${ECHO_T}$ac_header_compiler" >&6; }
14657 # Is the header present?
14658 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14659 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14660 cat >conftest.
$ac_ext <<_ACEOF
14663 cat confdefs.h
>>conftest.
$ac_ext
14664 cat >>conftest.
$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include <mach/cthreads.h>
14668 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14669 case "(($ac_try" in
14670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } >/dev/null && {
14681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14684 ac_header_preproc=yes
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_header_preproc=no
14692 rm -f conftest.err conftest.$ac_ext
14693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14694 echo "${ECHO_T}$ac_header_preproc" >&6; }
14696 # So? What about this header?
14697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14699 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14700 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14702 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14703 ac_header_preproc=yes
14706 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14707 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14709 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14711 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14713 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14715 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14717 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14719 ## -------------------------------------- ##
14720 ## Report this to http://bugs.python.org/ ##
14721 ## -------------------------------------- ##
14723 ) | sed "s/^/$as_me: WARNING: /" >&2
14726 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14727 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14728 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14733 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14734 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14737 if test $ac_cv_header_mach_cthreads_h = yes; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define WITH_THREAD 1
14742 cat >>confdefs.h <<\_ACEOF
14743 #define C_THREADS 1
14747 cat >>confdefs.h <<\_ACEOF
14748 #define MACH_C_THREADS 1
14751 THREADOBJ="Python/thread.o"
14754 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14755 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14757 # Check whether --with-pth was given.
14758 if test "${with_pth+set}" = set; then
14759 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14760 echo "${ECHO_T}$withval" >&6; }
14761 cat >>confdefs.h <<\_ACEOF
14762 #define WITH_THREAD 1
14766 cat >>confdefs.h <<\_ACEOF
14771 THREADOBJ="Python/thread.o"
14773 { echo "$as_me:$LINENO: result: no" >&5
14774 echo "${ECHO_T}no" >&6; }
14776 # Just looking for pthread_create in libpthread is not enough:
14777 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14778 # So we really have to include pthread.h, and then link.
14780 LIBS="$LIBS -lpthread"
14781 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14782 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <pthread.h>
14791 void * start_routine (void *arg) { exit (0); }
14796 pthread_create (NULL, NULL, start_routine, NULL)
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14805 *) ac_try_echo
=$ac_try;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1
>conftest.err
14812 cat conftest.err
>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest
$ac_exeext &&
14818 $as_test_x conftest
$ac_exeext; then
14820 { echo "$as_me:$LINENO: result: yes" >&5
14821 echo "${ECHO_T}yes" >&6; }
14822 cat >>confdefs.h
<<\_ACEOF
14823 #define WITH_THREAD 1
14827 THREADOBJ
="Python/thread.o"
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.
$ac_ext >&5
14834 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14835 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14836 if test "${ac_cv_func_pthread_detach+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 cat >conftest.
$ac_ext <<_ACEOF
14842 cat confdefs.h
>>conftest.
$ac_ext
14843 cat >>conftest.
$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14847 #define pthread_detach innocuous_pthread_detach
14849 /* System header to define __stub macros and hopefully few prototypes,
14850 which can conflict with char pthread_detach (); below.
14851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852 <limits.h> exists even on freestanding compilers. */
14855 # include <limits.h>
14857 # include <assert.h>
14860 #undef pthread_detach
14862 /* Override any GCC internal prototype to avoid an error.
14863 Use char because int might match the return type of a GCC
14864 builtin and then its argument prototype would still apply. */
14868 char pthread_detach ();
14869 /* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14879 return pthread_detach ();
14884 rm -f conftest.
$ac_objext conftest
$ac_exeext
14885 if { (ac_try
="$ac_link"
14886 case "(($ac_try" in
14887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_link") 2>conftest.er1
14893 grep -v '^ *+' conftest.er1 >conftest.err
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } && {
14898 test -z "$ac_c_werror_flag" ||
14899 test ! -s conftest.err
14900 } && test -s conftest$ac_exeext &&
14901 $as_test_x conftest$ac_exeext; then
14902 ac_cv_func_pthread_detach=yes
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14907 ac_cv_func_pthread_detach=no
14910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14911 conftest$ac_exeext conftest.$ac_ext
14913 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14914 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14915 if test $ac_cv_func_pthread_detach = yes; then
14916 cat >>confdefs.h <<\_ACEOF
14917 #define WITH_THREAD 1
14921 THREADOBJ="Python/thread.o"
14924 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14925 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14926 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14927 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14931 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14933 # Is the header compilable?
14934 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14935 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 $ac_includes_default
14943 #include <atheos/threads.h>
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14949 *) ac_try_echo
=$ac_try;;
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14954 grep -v '^ *+' conftest.er1
>conftest.err
14956 cat conftest.err
>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } && {
14959 test -z "$ac_c_werror_flag" ||
14960 test ! -s conftest.err
14961 } && test -s conftest.
$ac_objext; then
14962 ac_header_compiler
=yes
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.
$ac_ext >&5
14967 ac_header_compiler
=no
14970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14972 echo "${ECHO_T}$ac_header_compiler" >&6; }
14974 # Is the header present?
14975 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14976 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14977 cat >conftest.
$ac_ext <<_ACEOF
14980 cat confdefs.h
>>conftest.
$ac_ext
14981 cat >>conftest.
$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 #include <atheos/threads.h>
14985 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14986 case "(($ac_try" in
14987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null && {
14998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15001 ac_header_preproc=yes
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_preproc=no
15009 rm -f conftest.err conftest.$ac_ext
15010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15011 echo "${ECHO_T}$ac_header_preproc" >&6; }
15013 # So? What about this header?
15014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15016 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15017 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15019 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15020 ac_header_preproc=yes
15023 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15024 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15026 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15028 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15030 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15032 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15034 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15036 ## -------------------------------------- ##
15037 ## Report this to http://bugs.python.org/ ##
15038 ## -------------------------------------- ##
15040 ) | sed "s/^/$as_me: WARNING: /" >&2
15043 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15044 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15045 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 ac_cv_header_atheos_threads_h=$ac_header_preproc
15050 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15051 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15054 if test $ac_cv_header_atheos_threads_h = yes; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define WITH_THREAD 1
15060 cat >>confdefs.h <<\_ACEOF
15061 #define ATHEOS_THREADS 1
15064 THREADOBJ="Python/thread.o"
15067 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15068 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15069 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 ac_check_lib_save_LIBS=$LIBS
15073 LIBS="-lpthreads $LIBS"
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15081 /* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
15087 char pthread_create ();
15091 return pthread_create ();
15096 rm -f conftest.$ac_objext conftest$ac_exeext
15097 if { (ac_try="$ac_link"
15098 case "(($ac_try" in
15099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15100 *) ac_try_echo
=$ac_try;;
15102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103 (eval "$ac_link") 2>conftest.er1
15105 grep -v '^ *+' conftest.er1
>conftest.err
15107 cat conftest.err
>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && {
15110 test -z "$ac_c_werror_flag" ||
15111 test ! -s conftest.err
15112 } && test -s conftest
$ac_exeext &&
15113 $as_test_x conftest
$ac_exeext; then
15114 ac_cv_lib_pthreads_pthread_create
=yes
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.
$ac_ext >&5
15119 ac_cv_lib_pthreads_pthread_create
=no
15122 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15123 conftest
$ac_exeext conftest.
$ac_ext
15124 LIBS
=$ac_check_lib_save_LIBS
15126 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15127 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15128 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15129 cat >>confdefs.h
<<\_ACEOF
15130 #define WITH_THREAD 1
15134 LIBS
="$LIBS -lpthreads"
15135 THREADOBJ
="Python/thread.o"
15138 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15139 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15140 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 ac_check_lib_save_LIBS
=$LIBS
15145 cat >conftest.
$ac_ext <<_ACEOF
15148 cat confdefs.h
>>conftest.
$ac_ext
15149 cat >>conftest.
$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15152 /* Override any GCC internal prototype to avoid an error.
15153 Use char because int might match the return type of a GCC
15154 builtin and then its argument prototype would still apply. */
15158 char pthread_create ();
15162 return pthread_create ();
15167 rm -f conftest.
$ac_objext conftest
$ac_exeext
15168 if { (ac_try
="$ac_link"
15169 case "(($ac_try" in
15170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_link") 2>conftest.er1
15176 grep -v '^ *+' conftest.er1 >conftest.err
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && {
15181 test -z "$ac_c_werror_flag" ||
15182 test ! -s conftest.err
15183 } && test -s conftest$ac_exeext &&
15184 $as_test_x conftest$ac_exeext; then
15185 ac_cv_lib_c_r_pthread_create=yes
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 ac_cv_lib_c_r_pthread_create=no
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15198 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15199 if test $ac_cv_lib_c_r_pthread_create = yes; then
15200 cat >>confdefs.h <<\_ACEOF
15201 #define WITH_THREAD 1
15206 THREADOBJ="Python/thread.o"
15209 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15210 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15211 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 ac_check_lib_save_LIBS=$LIBS
15215 LIBS="-lpthread $LIBS"
15216 cat >conftest.$ac_ext <<_ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15223 /* Override any GCC internal prototype to avoid an error.
15224 Use char because int might match the return type of a GCC
15225 builtin and then its argument prototype would still apply. */
15229 char __pthread_create_system ();
15233 return __pthread_create_system ();
15238 rm -f conftest.$ac_objext conftest$ac_exeext
15239 if { (ac_try="$ac_link"
15240 case "(($ac_try" in
15241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15242 *) ac_try_echo
=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_link") 2>conftest.er1
15247 grep -v '^ *+' conftest.er1
>conftest.err
15249 cat conftest.err
>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } && {
15252 test -z "$ac_c_werror_flag" ||
15253 test ! -s conftest.err
15254 } && test -s conftest
$ac_exeext &&
15255 $as_test_x conftest
$ac_exeext; then
15256 ac_cv_lib_pthread___pthread_create_system
=yes
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.
$ac_ext >&5
15261 ac_cv_lib_pthread___pthread_create_system
=no
15264 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15265 conftest
$ac_exeext conftest.
$ac_ext
15266 LIBS
=$ac_check_lib_save_LIBS
15268 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15269 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15270 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15271 cat >>confdefs.h
<<\_ACEOF
15272 #define WITH_THREAD 1
15276 LIBS
="$LIBS -lpthread"
15277 THREADOBJ
="Python/thread.o"
15280 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15281 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15282 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 ac_check_lib_save_LIBS
=$LIBS
15287 cat >conftest.
$ac_ext <<_ACEOF
15290 cat confdefs.h
>>conftest.
$ac_ext
15291 cat >>conftest.
$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15294 /* Override any GCC internal prototype to avoid an error.
15295 Use char because int might match the return type of a GCC
15296 builtin and then its argument prototype would still apply. */
15300 char pthread_create ();
15304 return pthread_create ();
15309 rm -f conftest.
$ac_objext conftest
$ac_exeext
15310 if { (ac_try
="$ac_link"
15311 case "(($ac_try" in
15312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_link") 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext &&
15326 $as_test_x conftest$ac_exeext; then
15327 ac_cv_lib_cma_pthread_create=yes
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_cv_lib_cma_pthread_create=no
15335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15336 conftest$ac_exeext conftest.$ac_ext
15337 LIBS=$ac_check_lib_save_LIBS
15339 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15340 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15341 if test $ac_cv_lib_cma_pthread_create = yes; then
15342 cat >>confdefs.h <<\_ACEOF
15343 #define WITH_THREAD 1
15348 THREADOBJ="Python/thread.o"
15351 USE_THREAD_MODULE="#"
15368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15369 conftest$ac_exeext conftest.$ac_ext
15379 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15380 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15381 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 ac_check_lib_save_LIBS=$LIBS
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 /* Override any GCC internal prototype to avoid an error.
15394 Use char because int might match the return type of a GCC
15395 builtin and then its argument prototype would still apply. */
15403 return usconfig ();
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (ac_try="$ac_link"
15410 case "(($ac_try" in
15411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15412 *) ac_try_echo
=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_link") 2>conftest.er1
15417 grep -v '^ *+' conftest.er1
>conftest.err
15419 cat conftest.err
>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest
$ac_exeext &&
15425 $as_test_x conftest
$ac_exeext; then
15426 ac_cv_lib_mpc_usconfig
=yes
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.
$ac_ext >&5
15431 ac_cv_lib_mpc_usconfig
=no
15434 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15435 conftest
$ac_exeext conftest.
$ac_ext
15436 LIBS
=$ac_check_lib_save_LIBS
15438 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15439 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15440 if test $ac_cv_lib_mpc_usconfig = yes; then
15441 cat >>confdefs.h
<<\_ACEOF
15442 #define WITH_THREAD 1
15446 THREADOBJ
="Python/thread.o"
15447 USE_THREAD_MODULE
=""
15451 if test "$posix_threads" != "yes"; then
15452 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15453 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15454 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 ac_check_lib_save_LIBS
=$LIBS
15458 LIBS
="-lthread $LIBS"
15459 cat >conftest.
$ac_ext <<_ACEOF
15462 cat confdefs.h
>>conftest.
$ac_ext
15463 cat >>conftest.
$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15466 /* Override any GCC internal prototype to avoid an error.
15467 Use char because int might match the return type of a GCC
15468 builtin and then its argument prototype would still apply. */
15472 char thr_create ();
15476 return thr_create ();
15481 rm -f conftest.
$ac_objext conftest
$ac_exeext
15482 if { (ac_try
="$ac_link"
15483 case "(($ac_try" in
15484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_link") 2>conftest.er1
15490 grep -v '^ *+' conftest.er1 >conftest.err
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && {
15495 test -z "$ac_c_werror_flag" ||
15496 test ! -s conftest.err
15497 } && test -s conftest$ac_exeext &&
15498 $as_test_x conftest$ac_exeext; then
15499 ac_cv_lib_thread_thr_create=yes
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_cv_lib_thread_thr_create=no
15507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15508 conftest$ac_exeext conftest.$ac_ext
15509 LIBS=$ac_check_lib_save_LIBS
15511 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15512 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15513 if test $ac_cv_lib_thread_thr_create = yes; then
15514 cat >>confdefs.h <<\_ACEOF
15515 #define WITH_THREAD 1
15518 LIBS="$LIBS -lthread"
15519 THREADOBJ="Python/thread.o"
15520 USE_THREAD_MODULE=""
15525 if test "$USE_THREAD_MODULE" != "#"
15527 # If the above checks didn't disable threads, (at least) OSF1
15528 # needs this '-threads' argument during linking.
15529 case $ac_sys_system in
15530 OSF1) LDLAST=-threads;;
15535 if test "$posix_threads" = "yes"; then
15536 if test "$unistd_defines_pthreads" = "no"; then
15538 cat >>confdefs.h <<\_ACEOF
15539 #define _POSIX_THREADS 1
15544 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15545 case $ac_sys_system/$ac_sys_release in
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_PTHREAD_DESTRUCTOR 1
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15559 cat >>confdefs.h <<\_ACEOF
15560 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15566 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15567 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15568 if test "${ac_cv_pthread_system_supported+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 if test "$cross_compiling" = yes; then
15572 ac_cv_pthread_system_supported=no
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 #include <pthread.h>
15581 void *foo(void *parm) {
15585 pthread_attr_t attr;
15587 if (pthread_attr_init(&attr)) exit(-1);
15588 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15589 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15593 rm -f conftest$ac_exeext
15594 if { (ac_try="$ac_link"
15595 case "(($ac_try" in
15596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15597 *) ac_try_echo
=$ac_try;;
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_link") 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15604 { (case "(($ac_try" in
15605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_try") 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_cv_pthread_system_supported=yes
15615 echo "$as_me: program exited with status $ac_status" >&5
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ( exit $ac_status )
15620 ac_cv_pthread_system_supported=no
15622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15630 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15631 if test "$ac_cv_pthread_system_supported" = "yes"; then
15633 cat >>confdefs.h <<\_ACEOF
15634 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15639 for ac_func in pthread_sigmask
15641 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15655 #define $ac_func innocuous_$ac_func
15657 /* System header to define __stub macros and hopefully few prototypes,
15658 which can conflict with char $ac_func (); below.
15659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15660 <limits.h> exists even on freestanding compilers. */
15663 # include <limits.h>
15665 # include <assert.h>
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15677 /* The GNU C library defines this for functions which it implements
15678 to always fail with ENOSYS. Some functions are actually named
15679 something starting with __ and the normal name is an alias. */
15680 #if defined __stub_$ac_func || defined __stub___$ac_func
15687 return $ac_func ();
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (ac_try="$ac_link"
15694 case "(($ac_try" in
15695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15696 *) ac_try_echo
=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15701 grep -v '^ *+' conftest.er1
>conftest.err
15703 cat conftest.err
>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } && {
15706 test -z "$ac_c_werror_flag" ||
15707 test ! -s conftest.err
15708 } && test -s conftest
$ac_exeext &&
15709 $as_test_x conftest
$ac_exeext; then
15710 eval "$as_ac_var=yes"
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.
$ac_ext >&5
15715 eval "$as_ac_var=no"
15718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15719 conftest
$ac_exeext conftest.
$ac_ext
15721 ac_res
=`eval echo '${'$as_ac_var'}'`
15722 { echo "$as_me:$LINENO: result: $ac_res" >&5
15723 echo "${ECHO_T}$ac_res" >&6; }
15724 if test `eval echo '${'$as_ac_var'}'` = yes; then
15725 cat >>confdefs.h
<<_ACEOF
15726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15728 case $ac_sys_system in
15731 cat >>confdefs.h
<<\_ACEOF
15732 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15743 # Check for enable-ipv6
15746 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15747 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15748 # Check whether --enable-ipv6 was given.
15749 if test "${enable_ipv6+set}" = set; then
15750 enableval
=$enable_ipv6; case "$enableval" in
15752 { echo "$as_me:$LINENO: result: no" >&5
15753 echo "${ECHO_T}no" >&6; }
15756 *) { echo "$as_me:$LINENO: result: yes" >&5
15757 echo "${ECHO_T}yes" >&6; }
15758 cat >>confdefs.h
<<\_ACEOF
15759 #define ENABLE_IPV6 1
15767 if test "$cross_compiling" = yes; then
15768 { echo "$as_me:$LINENO: result: no" >&5
15769 echo "${ECHO_T}no" >&6; }
15773 cat >conftest.
$ac_ext <<_ACEOF
15776 cat confdefs.h
>>conftest.
$ac_ext
15777 cat >>conftest.
$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 /* AF_INET6 available check */
15780 #include <sys/types.h>
15781 #include <sys/socket.h>
15784 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15791 rm -f conftest
$ac_exeext
15792 if { (ac_try
="$ac_link"
15793 case "(($ac_try" in
15794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_link") 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15804 *) ac_try_echo
=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 { echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6; }
15815 echo "$as_me: program exited with status $ac_status" >&5
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.
$ac_ext >&5
15819 ( exit $ac_status )
15820 { echo "$as_me:$LINENO: result: no" >&5
15821 echo "${ECHO_T}no" >&6; }
15824 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15829 if test "$ipv6" = "yes"; then
15830 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15831 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15832 cat >conftest.
$ac_ext <<_ACEOF
15835 cat confdefs.h
>>conftest.
$ac_ext
15836 cat >>conftest.
$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 #include <sys/types.h>
15839 #include <netinet/in.h>
15843 struct sockaddr_in6 x;
15849 rm -f conftest.
$ac_objext
15850 if { (ac_try
="$ac_compile"
15851 case "(($ac_try" in
15852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_compile") 2>conftest.er1
15858 grep -v '^ *+' conftest.er1 >conftest.err
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest.$ac_objext; then
15866 { echo "$as_me:$LINENO: result: yes" >&5
15867 echo "${ECHO_T}yes" >&6; }
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 { echo "$as_me:$LINENO: result: no" >&5
15874 echo "${ECHO_T}no" >&6; }
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881 if test "$ipv6" = "yes"; then
15882 cat >>confdefs.h <<\_ACEOF
15883 #define ENABLE_IPV6 1
15895 if test "$ipv6" = "yes"; then
15896 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15897 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15898 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15902 cat >conftest.$ac_ext <<_ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15909 #include <netinet/in.h>
15910 #ifdef IPV6_INRIA_VERSION
15914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15915 $EGREP "yes" >/dev/null 2>&1; then
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15929 #include <netinet/in.h>
15934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15935 $EGREP "yes" >/dev/null 2>&1; then
15938 ipv6libdir=/usr/local/v6/lib
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15952 #include <features.h>
15953 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15958 $EGREP "yes" >/dev/null 2>&1; then
15966 if test -d /usr/inet6; then
15969 ipv6libdir=/usr/inet6/lib
15970 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15974 if test -f /etc/netconfig; then
15975 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15982 cat >conftest.$ac_ext <<_ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15989 #include <sys/param.h>
15990 #ifdef _TOSHIBA_INET6
15994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15995 $EGREP "yes" >/dev/null 2>&1; then
15998 ipv6libdir=/usr/local/v6/lib
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 #include </usr/local/v6/include/sys/v6config.h>
16016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16017 $EGREP "yes" >/dev/null 2>&1; then
16020 ipv6libdir=/usr/local/v6/lib;
16021 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16027 cat >conftest.$ac_ext <<_ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16034 #include <sys/param.h>
16035 #ifdef _ZETA_MINAMI_INET6
16039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16040 $EGREP "yes" >/dev/null 2>&1; then
16043 ipv6libdir=/usr/local/v6/lib
16049 if test "$ipv6type" != "unknown"; then
16053 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16054 echo "${ECHO_T}$ipv6type" >&6; }
16057 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16058 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16059 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16060 echo "using lib$ipv6lib"
16062 if test $ipv6trylibc = "yes"; then
16065 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16066 echo "You need to fetch lib$ipv6lib.a from appropriate"
16067 echo 'ipv6 kit and compile beforehand.'
16073 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16074 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16075 cat >conftest.$ac_ext <<_ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <Carbon/Carbon.h>
16085 FSIORefNum fRef = 0
16090 rm -f conftest.$ac_objext
16091 if { (ac_try="$ac_compile"
16092 case "(($ac_try" in
16093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16094 *) ac_try_echo
=$ac_try;;
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_compile") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1
>conftest.err
16101 cat conftest.err
>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest.
$ac_objext; then
16108 cat >>confdefs.h
<<\_ACEOF
16109 #define HAVE_OSX105_SDK 1
16112 { echo "$as_me:$LINENO: result: yes" >&5
16113 echo "${ECHO_T}yes" >&6; }
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.
$ac_ext >&5
16118 { echo "$as_me:$LINENO: result: no" >&5
16119 echo "${ECHO_T}no" >&6; }
16123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16125 # Check for --with-doc-strings
16126 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16127 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16129 # Check whether --with-doc-strings was given.
16130 if test "${with_doc_strings+set}" = set; then
16131 withval
=$with_doc_strings;
16135 if test -z "$with_doc_strings"
16136 then with_doc_strings
="yes"
16138 if test "$with_doc_strings" != "no"
16141 cat >>confdefs.h
<<\_ACEOF
16142 #define WITH_DOC_STRINGS 1
16146 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16147 echo "${ECHO_T}$with_doc_strings" >&6; }
16149 # Check for Python-specific malloc support
16150 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16151 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16153 # Check whether --with-tsc was given.
16154 if test "${with_tsc+set}" = set; then
16156 if test "$withval" != no
16159 cat >>confdefs.h
<<\_ACEOF
16163 { echo "$as_me:$LINENO: result: yes" >&5
16164 echo "${ECHO_T}yes" >&6; }
16165 else { echo "$as_me:$LINENO: result: no" >&5
16166 echo "${ECHO_T}no" >&6; }
16169 { echo "$as_me:$LINENO: result: no" >&5
16170 echo "${ECHO_T}no" >&6; }
16174 # Check for Python-specific malloc support
16175 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16176 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16178 # Check whether --with-pymalloc was given.
16179 if test "${with_pymalloc+set}" = set; then
16180 withval
=$with_pymalloc;
16184 if test -z "$with_pymalloc"
16185 then with_pymalloc
="yes"
16187 if test "$with_pymalloc" != "no"
16190 cat >>confdefs.h
<<\_ACEOF
16191 #define WITH_PYMALLOC 1
16195 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16196 echo "${ECHO_T}$with_pymalloc" >&6; }
16198 # Check for --with-wctype-functions
16199 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16200 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16202 # Check whether --with-wctype-functions was given.
16203 if test "${with_wctype_functions+set}" = set; then
16204 withval
=$with_wctype_functions;
16205 if test "$withval" != no
16208 cat >>confdefs.h
<<\_ACEOF
16209 #define WANT_WCTYPE_FUNCTIONS 1
16212 { echo "$as_me:$LINENO: result: yes" >&5
16213 echo "${ECHO_T}yes" >&6; }
16214 else { echo "$as_me:$LINENO: result: no" >&5
16215 echo "${ECHO_T}no" >&6; }
16218 { echo "$as_me:$LINENO: result: no" >&5
16219 echo "${ECHO_T}no" >&6; }
16223 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16227 # the dlopen() function means we might want to use dynload_shlib.o. some
16228 # platforms, such as AIX, have dlopen(), but don't want to use it.
16230 for ac_func
in dlopen
16232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16235 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 cat >conftest.
$ac_ext <<_ACEOF
16241 cat confdefs.h
>>conftest.
$ac_ext
16242 cat >>conftest.
$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16246 #define $ac_func innocuous_$ac_func
16248 /* System header to define __stub macros and hopefully few prototypes,
16249 which can conflict with char $ac_func (); below.
16250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16251 <limits.h> exists even on freestanding compilers. */
16254 # include <limits.h>
16256 # include <assert.h>
16261 /* Override any GCC internal prototype to avoid an error.
16262 Use char because int might match the return type of a GCC
16263 builtin and then its argument prototype would still apply. */
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined __stub_$ac_func || defined __stub___$ac_func
16278 return $ac_func ();
16283 rm -f conftest.
$ac_objext conftest
$ac_exeext
16284 if { (ac_try
="$ac_link"
16285 case "(($ac_try" in
16286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_link") 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } && {
16297 test -z "$ac_c_werror_flag" ||
16298 test ! -s conftest.err
16299 } && test -s conftest$ac_exeext &&
16300 $as_test_x conftest$ac_exeext; then
16301 eval "$as_ac_var=yes"
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16306 eval "$as_ac_var=no"
16309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16310 conftest$ac_exeext conftest.$ac_ext
16312 ac_res=`eval echo '${'$as_ac_var'}'`
16313 { echo "$as_me:$LINENO: result: $ac_res" >&5
16314 echo "${ECHO_T}$ac_res" >&6; }
16315 if test `eval echo '${'$as_ac_var'}'` = yes; then
16316 cat >>confdefs.h <<_ACEOF
16317 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16324 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16325 # loading of modules.
16327 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16328 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16329 if test -z "$DYNLOADFILE"
16331 case $ac_sys_system/$ac_sys_release in
16332 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16333 if test "$ac_cv_func_dlopen" = yes
16334 then DYNLOADFILE="dynload_shlib.o"
16335 else DYNLOADFILE="dynload_aix.o"
16338 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16339 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16340 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16341 atheos*) DYNLOADFILE="dynload_atheos.o";;
16343 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16344 # out any dynamic loading
16345 if test "$ac_cv_func_dlopen" = yes
16346 then DYNLOADFILE="dynload_shlib.o"
16347 else DYNLOADFILE="dynload_stub.o"
16352 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16353 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16354 if test "$DYNLOADFILE" != "dynload_stub.o"
16357 cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_DYNAMIC_LOADING 1
16363 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16366 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16367 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16368 if test -z "$MACHDEP_OBJS"
16370 MACHDEP_OBJS=$extra_machdep_objs
16372 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16374 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16375 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16377 # checks for library functions
16467 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16468 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16469 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16470 getpriority getpwent getspnam getspent getsid getwd \
16471 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16472 mremap nice pathconf pause plock poll pthread_init \
16473 putenv readlink realpath \
16474 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16476 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16477 sigaction siginterrupt sigrelse strftime strlcpy \
16478 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16479 truncate uname unsetenv utimes waitpid wait3 wait4 \
16480 wcscoll wcsftime wcsxfrm _getpty
16482 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16496 #define $ac_func innocuous_$ac_func
16498 /* System header to define __stub macros and hopefully few prototypes,
16499 which can conflict with char $ac_func (); below.
16500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16501 <limits.h> exists even on freestanding compilers. */
16504 # include <limits.h>
16506 # include <assert.h>
16511 /* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16518 /* The GNU C library defines this for functions which it implements
16519 to always fail with ENOSYS. Some functions are actually named
16520 something starting with __ and the normal name is an alias. */
16521 #if defined __stub_$ac_func || defined __stub___$ac_func
16528 return $ac_func ();
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (ac_try="$ac_link"
16535 case "(($ac_try" in
16536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16537 *) ac_try_echo
=$ac_try;;
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_link") 2>conftest.er1
16542 grep -v '^ *+' conftest.er1
>conftest.err
16544 cat conftest.err
>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } && {
16547 test -z "$ac_c_werror_flag" ||
16548 test ! -s conftest.err
16549 } && test -s conftest
$ac_exeext &&
16550 $as_test_x conftest
$ac_exeext; then
16551 eval "$as_ac_var=yes"
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.
$ac_ext >&5
16556 eval "$as_ac_var=no"
16559 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16560 conftest
$ac_exeext conftest.
$ac_ext
16562 ac_res
=`eval echo '${'$as_ac_var'}'`
16563 { echo "$as_me:$LINENO: result: $ac_res" >&5
16564 echo "${ECHO_T}$ac_res" >&6; }
16565 if test `eval echo '${'$as_ac_var'}'` = yes; then
16566 cat >>confdefs.h
<<_ACEOF
16567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16574 # For some functions, having a definition is not sufficient, since
16575 # we want to take their address.
16576 { echo "$as_me:$LINENO: checking for chroot" >&5
16577 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16578 cat >conftest.
$ac_ext <<_ACEOF
16581 cat confdefs.h
>>conftest.
$ac_ext
16582 cat >>conftest.
$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 #include <unistd.h>
16593 rm -f conftest.
$ac_objext
16594 if { (ac_try
="$ac_compile"
16595 case "(($ac_try" in
16596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_compile") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest.$ac_objext; then
16611 cat >>confdefs.h <<\_ACEOF
16612 #define HAVE_CHROOT 1
16615 { echo "$as_me:$LINENO: result: yes" >&5
16616 echo "${ECHO_T}yes" >&6; }
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 { echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6; }
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 { echo "$as_me:$LINENO: checking for link" >&5
16628 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <unistd.h>
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16648 *) ac_try_echo
=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1
>conftest.err
16655 cat conftest.err
>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest.
$ac_objext; then
16662 cat >>confdefs.h
<<\_ACEOF
16663 #define HAVE_LINK 1
16666 { echo "$as_me:$LINENO: result: yes" >&5
16667 echo "${ECHO_T}yes" >&6; }
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.
$ac_ext >&5
16672 { echo "$as_me:$LINENO: result: no" >&5
16673 echo "${ECHO_T}no" >&6; }
16677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16678 { echo "$as_me:$LINENO: checking for symlink" >&5
16679 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16680 cat >conftest.
$ac_ext <<_ACEOF
16683 cat confdefs.h
>>conftest.
$ac_ext
16684 cat >>conftest.
$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <unistd.h>
16695 rm -f conftest.
$ac_objext
16696 if { (ac_try
="$ac_compile"
16697 case "(($ac_try" in
16698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && {
16709 test -z "$ac_c_werror_flag" ||
16710 test ! -s conftest.err
16711 } && test -s conftest.$ac_objext; then
16713 cat >>confdefs.h <<\_ACEOF
16714 #define HAVE_SYMLINK 1
16717 { echo "$as_me:$LINENO: result: yes" >&5
16718 echo "${ECHO_T}yes" >&6; }
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 { echo "$as_me:$LINENO: result: no" >&5
16724 echo "${ECHO_T}no" >&6; }
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: checking for fchdir" >&5
16730 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 #include <unistd.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_FCHDIR 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 { echo "$as_me:$LINENO: checking for fsync" >&5
16781 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16782 cat >conftest.
$ac_ext <<_ACEOF
16785 cat confdefs.h
>>conftest.
$ac_ext
16786 cat >>conftest.
$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 #include <unistd.h>
16797 rm -f conftest.
$ac_objext
16798 if { (ac_try
="$ac_compile"
16799 case "(($ac_try" in
16800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_compile") 2>conftest.er1
16806 grep -v '^ *+' conftest.er1 >conftest.err
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest.$ac_objext; then
16815 cat >>confdefs.h <<\_ACEOF
16816 #define HAVE_FSYNC 1
16819 { echo "$as_me:$LINENO: result: yes" >&5
16820 echo "${ECHO_T}yes" >&6; }
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 { echo "$as_me:$LINENO: result: no" >&5
16826 echo "${ECHO_T}no" >&6; }
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16832 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 #include <unistd.h>
16848 rm -f conftest.$ac_objext
16849 if { (ac_try="$ac_compile"
16850 case "(($ac_try" in
16851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16852 *) ac_try_echo
=$ac_try;;
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_compile") 2>conftest.er1
16857 grep -v '^ *+' conftest.er1
>conftest.err
16859 cat conftest.err
>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } && {
16862 test -z "$ac_c_werror_flag" ||
16863 test ! -s conftest.err
16864 } && test -s conftest.
$ac_objext; then
16866 cat >>confdefs.h
<<\_ACEOF
16867 #define HAVE_FDATASYNC 1
16870 { echo "$as_me:$LINENO: result: yes" >&5
16871 echo "${ECHO_T}yes" >&6; }
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.
$ac_ext >&5
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16882 { echo "$as_me:$LINENO: checking for epoll" >&5
16883 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16884 cat >conftest.
$ac_ext <<_ACEOF
16887 cat confdefs.h
>>conftest.
$ac_ext
16888 cat >>conftest.
$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 #include <sys/epoll.h>
16894 void *x=epoll_create
16899 rm -f conftest.
$ac_objext
16900 if { (ac_try
="$ac_compile"
16901 case "(($ac_try" in
16902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_compile") 2>conftest.er1
16908 grep -v '^ *+' conftest.er1 >conftest.err
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest.$ac_objext; then
16917 cat >>confdefs.h <<\_ACEOF
16918 #define HAVE_EPOLL 1
16921 { echo "$as_me:$LINENO: result: yes" >&5
16922 echo "${ECHO_T}yes" >&6; }
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 { echo "$as_me:$LINENO: result: no" >&5
16928 echo "${ECHO_T}no" >&6; }
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 { echo "$as_me:$LINENO: checking for kqueue" >&5
16934 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16935 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 #include <sys/types.h>
16943 #include <sys/event.h>
16953 rm -f conftest.$ac_objext
16954 if { (ac_try="$ac_compile"
16955 case "(($ac_try" in
16956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16957 *) ac_try_echo
=$ac_try;;
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_compile") 2>conftest.er1
16962 grep -v '^ *+' conftest.er1
>conftest.err
16964 cat conftest.err
>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest.
$ac_objext; then
16971 cat >>confdefs.h
<<\_ACEOF
16972 #define HAVE_KQUEUE 1
16975 { echo "$as_me:$LINENO: result: yes" >&5
16976 echo "${ECHO_T}yes" >&6; }
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.
$ac_ext >&5
16981 { echo "$as_me:$LINENO: result: no" >&5
16982 echo "${ECHO_T}no" >&6; }
16986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16987 # On some systems (eg. FreeBSD 5), we would find a definition of the
16988 # functions ctermid_r, setgroups in the library, but no prototype
16989 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16990 # address to avoid compiler warnings and potential miscompilations
16991 # because of the missing prototypes.
16993 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16994 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16995 cat >conftest.
$ac_ext <<_ACEOF
16998 cat confdefs.h
>>conftest.
$ac_ext
16999 cat >>conftest.
$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17002 #include "confdefs.h"
17008 void* p = ctermid_r
17013 rm -f conftest.
$ac_objext
17014 if { (ac_try
="$ac_compile"
17015 case "(($ac_try" in
17016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_compile") 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } && {
17027 test -z "$ac_c_werror_flag" ||
17028 test ! -s conftest.err
17029 } && test -s conftest.$ac_objext; then
17031 cat >>confdefs.h <<\_ACEOF
17032 #define HAVE_CTERMID_R 1
17035 { echo "$as_me:$LINENO: result: yes" >&5
17036 echo "${ECHO_T}yes" >&6; }
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 { echo "$as_me:$LINENO: result: no" >&5
17042 echo "${ECHO_T}no" >&6; }
17046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 { echo "$as_me:$LINENO: checking for flock" >&5
17049 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17057 #include "confdefs.h"
17058 #include <sys/file.h>
17068 rm -f conftest.$ac_objext
17069 if { (ac_try="$ac_compile"
17070 case "(($ac_try" in
17071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17072 *) ac_try_echo
=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17077 grep -v '^ *+' conftest.er1
>conftest.err
17079 cat conftest.err
>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } && {
17082 test -z "$ac_c_werror_flag" ||
17083 test ! -s conftest.err
17084 } && test -s conftest.
$ac_objext; then
17086 cat >>confdefs.h
<<\_ACEOF
17087 #define HAVE_FLOCK 1
17090 { echo "$as_me:$LINENO: result: yes" >&5
17091 echo "${ECHO_T}yes" >&6; }
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.
$ac_ext >&5
17096 { echo "$as_me:$LINENO: result: no" >&5
17097 echo "${ECHO_T}no" >&6; }
17101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17103 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17104 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17105 cat >conftest.
$ac_ext <<_ACEOF
17108 cat confdefs.h
>>conftest.
$ac_ext
17109 cat >>conftest.
$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17112 #include "confdefs.h"
17113 #include <unistd.h>
17118 void* p = getpagesize
17123 rm -f conftest.
$ac_objext
17124 if { (ac_try
="$ac_compile"
17125 case "(($ac_try" in
17126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } && {
17137 test -z "$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17139 } && test -s conftest.$ac_objext; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_GETPAGESIZE 1
17145 { echo "$as_me:$LINENO: result: yes" >&5
17146 echo "${ECHO_T}yes" >&6; }
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 { echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6; }
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158 for ac_prog in true
17160 # Extract the first word of "$ac_prog", so it can be a program name with args.
17161 set dummy $ac_prog; ac_word=$2
17162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17164 if test "${ac_cv_prog_TRUE+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 if test -n "$TRUE"; then
17168 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17174 test -z "$as_dir" && as_dir=.
17175 for ac_exec_ext in '' $ac_executable_extensions; do
17176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17177 ac_cv_prog_TRUE="$ac_prog"
17178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17187 TRUE=$ac_cv_prog_TRUE
17188 if test -n "$TRUE"; then
17189 { echo "$as_me:$LINENO: result: $TRUE" >&5
17190 echo "${ECHO_T}$TRUE" >&6; }
17192 { echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6; }
17197 test -n "$TRUE" && break
17199 test -n "$TRUE" || TRUE="/bin/true"
17202 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17203 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17204 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 ac_check_lib_save_LIBS=$LIBS
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17216 /* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17226 return inet_aton ();
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (ac_try="$ac_link"
17233 case "(($ac_try" in
17234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17235 *) ac_try_echo
=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_link") 2>conftest.er1
17240 grep -v '^ *+' conftest.er1
>conftest.err
17242 cat conftest.err
>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && {
17245 test -z "$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17247 } && test -s conftest
$ac_exeext &&
17248 $as_test_x conftest
$ac_exeext; then
17249 ac_cv_lib_c_inet_aton
=yes
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.
$ac_ext >&5
17254 ac_cv_lib_c_inet_aton
=no
17257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17258 conftest
$ac_exeext conftest.
$ac_ext
17259 LIBS
=$ac_check_lib_save_LIBS
17261 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17262 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17263 if test $ac_cv_lib_c_inet_aton = yes; then
17267 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17268 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17269 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 ac_check_lib_save_LIBS
=$LIBS
17273 LIBS
="-lresolv $LIBS"
17274 cat >conftest.
$ac_ext <<_ACEOF
17277 cat confdefs.h
>>conftest.
$ac_ext
17278 cat >>conftest.
$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17281 /* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17291 return inet_aton ();
17296 rm -f conftest.
$ac_objext conftest
$ac_exeext
17297 if { (ac_try
="$ac_link"
17298 case "(($ac_try" in
17299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_link") 2>conftest.er1
17305 grep -v '^ *+' conftest.er1 >conftest.err
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } && {
17310 test -z "$ac_c_werror_flag" ||
17311 test ! -s conftest.err
17312 } && test -s conftest$ac_exeext &&
17313 $as_test_x conftest$ac_exeext; then
17314 ac_cv_lib_resolv_inet_aton=yes
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_cv_lib_resolv_inet_aton=no
17322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17323 conftest$ac_exeext conftest.$ac_ext
17324 LIBS=$ac_check_lib_save_LIBS
17326 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17327 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17328 if test $ac_cv_lib_resolv_inet_aton = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define HAVE_LIBRESOLV 1
17333 LIBS="-lresolv $LIBS"
17341 # On Tru64, chflags seems to be present, but calling it will
17343 { echo "$as_me:$LINENO: checking for chflags" >&5
17344 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17345 if test "${ac_cv_have_chflags+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 if test "$cross_compiling" = yes; then
17349 ac_cv_have_chflags=cross
17351 cat >conftest.$ac_ext <<_ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17358 #include <sys/stat.h>
17359 #include <unistd.h>
17360 int main(int argc, char*argv[])
17362 if(chflags(argv[0], 0) != 0)
17368 rm -f conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17372 *) ac_try_echo
=$ac_try;;
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17379 { (case "(($ac_try" in
17380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_try") 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_have_chflags=yes
17390 echo "$as_me: program exited with status $ac_status" >&5
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ( exit $ac_status )
17395 ac_cv_have_chflags=no
17397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17404 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17405 if test "$ac_cv_have_chflags" = cross ; then
17406 { echo "$as_me:$LINENO: checking for chflags" >&5
17407 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17408 if test "${ac_cv_func_chflags+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 cat >conftest.$ac_ext <<_ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17419 #define chflags innocuous_chflags
17421 /* System header to define __stub macros and hopefully few prototypes,
17422 which can conflict with char chflags (); below.
17423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17424 <limits.h> exists even on freestanding compilers. */
17427 # include <limits.h>
17429 # include <assert.h>
17434 /* Override any GCC internal prototype to avoid an error.
17435 Use char because int might match the return type of a GCC
17436 builtin and then its argument prototype would still apply. */
17441 /* The GNU C library defines this for functions which it implements
17442 to always fail with ENOSYS. Some functions are actually named
17443 something starting with __ and the normal name is an alias. */
17444 #if defined __stub_chflags || defined __stub___chflags
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (ac_try="$ac_link"
17458 case "(($ac_try" in
17459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17460 *) ac_try_echo
=$ac_try;;
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_link") 2>conftest.er1
17465 grep -v '^ *+' conftest.er1
>conftest.err
17467 cat conftest.err
>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && {
17470 test -z "$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 } && test -s conftest
$ac_exeext &&
17473 $as_test_x conftest
$ac_exeext; then
17474 ac_cv_func_chflags
=yes
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.
$ac_ext >&5
17479 ac_cv_func_chflags
=no
17482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17483 conftest
$ac_exeext conftest.
$ac_ext
17485 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17486 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17487 if test $ac_cv_func_chflags = yes; then
17488 ac_cv_have_chflags
="yes"
17490 ac_cv_have_chflags
="no"
17494 if test "$ac_cv_have_chflags" = yes ; then
17496 cat >>confdefs.h
<<\_ACEOF
17497 #define HAVE_CHFLAGS 1
17502 { echo "$as_me:$LINENO: checking for lchflags" >&5
17503 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17504 if test "${ac_cv_have_lchflags+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 if test "$cross_compiling" = yes; then
17508 ac_cv_have_lchflags
=cross
17510 cat >conftest.
$ac_ext <<_ACEOF
17513 cat confdefs.h
>>conftest.
$ac_ext
17514 cat >>conftest.
$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 #include <sys/stat.h>
17518 #include <unistd.h>
17519 int main(int argc, char*argv[])
17521 if(lchflags(argv[0], 0) != 0)
17527 rm -f conftest
$ac_exeext
17528 if { (ac_try
="$ac_link"
17529 case "(($ac_try" in
17530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_link") 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17538 { (case "(($ac_try" in
17539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17540 *) ac_try_echo
=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_try") 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_have_lchflags
=yes
17549 echo "$as_me: program exited with status $ac_status" >&5
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.
$ac_ext >&5
17553 ( exit $ac_status )
17554 ac_cv_have_lchflags
=no
17556 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17562 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17563 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17564 if test "$ac_cv_have_lchflags" = cross
; then
17565 { echo "$as_me:$LINENO: checking for lchflags" >&5
17566 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17567 if test "${ac_cv_func_lchflags+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 cat >conftest.
$ac_ext <<_ACEOF
17573 cat confdefs.h
>>conftest.
$ac_ext
17574 cat >>conftest.
$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17578 #define lchflags innocuous_lchflags
17580 /* System header to define __stub macros and hopefully few prototypes,
17581 which can conflict with char lchflags (); below.
17582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17583 <limits.h> exists even on freestanding compilers. */
17586 # include <limits.h>
17588 # include <assert.h>
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17600 /* The GNU C library defines this for functions which it implements
17601 to always fail with ENOSYS. Some functions are actually named
17602 something starting with __ and the normal name is an alias. */
17603 #if defined __stub_lchflags || defined __stub___lchflags
17610 return lchflags ();
17615 rm -f conftest.
$ac_objext conftest
$ac_exeext
17616 if { (ac_try
="$ac_link"
17617 case "(($ac_try" in
17618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>conftest.er1
17624 grep -v '^ *+' conftest.er1 >conftest.err
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest$ac_exeext &&
17632 $as_test_x conftest$ac_exeext; then
17633 ac_cv_func_lchflags=yes
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ac_cv_func_lchflags=no
17641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17642 conftest$ac_exeext conftest.$ac_ext
17644 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17645 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17646 if test $ac_cv_func_lchflags = yes; then
17647 ac_cv_have_lchflags="yes"
17649 ac_cv_have_lchflags="no"
17653 if test "$ac_cv_have_lchflags" = yes ; then
17655 cat >>confdefs.h <<\_ACEOF
17656 #define HAVE_LCHFLAGS 1
17661 case $ac_sys_system/$ac_sys_release in
17663 _CUR_CFLAGS="${CFLAGS}"
17664 _CUR_LDFLAGS="${LDFLAGS}"
17665 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17666 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17670 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17671 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17672 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 ac_check_lib_save_LIBS=$LIBS
17677 cat >conftest.$ac_ext <<_ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17684 /* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17690 char inflateCopy ();
17694 return inflateCopy ();
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17703 *) ac_try_echo
=$ac_try;;
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17708 grep -v '^ *+' conftest.er1
>conftest.err
17710 cat conftest.err
>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest
$ac_exeext &&
17716 $as_test_x conftest
$ac_exeext; then
17717 ac_cv_lib_z_inflateCopy
=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.
$ac_ext >&5
17722 ac_cv_lib_z_inflateCopy
=no
17725 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17726 conftest
$ac_exeext conftest.
$ac_ext
17727 LIBS
=$ac_check_lib_save_LIBS
17729 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17730 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17731 if test $ac_cv_lib_z_inflateCopy = yes; then
17733 cat >>confdefs.h
<<\_ACEOF
17734 #define HAVE_ZLIB_COPY 1
17740 case $ac_sys_system/$ac_sys_release in
17742 CFLAGS
="${_CUR_CFLAGS}"
17743 LDFLAGS
="${_CUR_LDFLAGS}"
17747 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17748 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17749 cat >conftest.
$ac_ext <<_ACEOF
17752 cat confdefs.h
>>conftest.
$ac_ext
17753 cat >>conftest.
$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17756 #include "confdefs.h"
17762 void* p = hstrerror; hstrerror(0)
17767 rm -f conftest.
$ac_objext conftest
$ac_exeext
17768 if { (ac_try
="$ac_link"
17769 case "(($ac_try" in
17770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_link") 2>conftest.er1
17776 grep -v '^ *+' conftest.er1 >conftest.err
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } && {
17781 test -z "$ac_c_werror_flag" ||
17782 test ! -s conftest.err
17783 } && test -s conftest$ac_exeext &&
17784 $as_test_x conftest$ac_exeext; then
17786 cat >>confdefs.h <<\_ACEOF
17787 #define HAVE_HSTRERROR 1
17790 { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 { echo "$as_me:$LINENO: result: no" >&5
17797 echo "${ECHO_T}no" >&6; }
17801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17802 conftest$ac_exeext conftest.$ac_ext
17804 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17805 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17806 cat >conftest.$ac_ext <<_ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17813 #include "confdefs.h"
17814 #include <sys/types.h>
17815 #include <sys/socket.h>
17816 #include <netinet/in.h>
17817 #include <arpa/inet.h>
17822 void* p = inet_aton;inet_aton(0,0)
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (ac_try="$ac_link"
17829 case "(($ac_try" in
17830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17831 *) ac_try_echo
=$ac_try;;
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_link") 2>conftest.er1
17836 grep -v '^ *+' conftest.er1
>conftest.err
17838 cat conftest.err
>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest
$ac_exeext &&
17844 $as_test_x conftest
$ac_exeext; then
17846 cat >>confdefs.h
<<\_ACEOF
17847 #define HAVE_INET_ATON 1
17850 { echo "$as_me:$LINENO: result: yes" >&5
17851 echo "${ECHO_T}yes" >&6; }
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.
$ac_ext >&5
17856 { echo "$as_me:$LINENO: result: no" >&5
17857 echo "${ECHO_T}no" >&6; }
17861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17862 conftest
$ac_exeext conftest.
$ac_ext
17864 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17865 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17866 cat >conftest.
$ac_ext <<_ACEOF
17869 cat confdefs.h
>>conftest.
$ac_ext
17870 cat >>conftest.
$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17873 #include "confdefs.h"
17874 #include <sys/types.h>
17875 #include <sys/socket.h>
17876 #include <netinet/in.h>
17877 #include <arpa/inet.h>
17882 void* p = inet_pton
17887 rm -f conftest.
$ac_objext
17888 if { (ac_try
="$ac_compile"
17889 case "(($ac_try" in
17890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_compile") 2>conftest.er1
17896 grep -v '^ *+' conftest.er1 >conftest.err
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } && {
17901 test -z "$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17903 } && test -s conftest.$ac_objext; then
17905 cat >>confdefs.h <<\_ACEOF
17906 #define HAVE_INET_PTON 1
17909 { echo "$as_me:$LINENO: result: yes" >&5
17910 echo "${ECHO_T}yes" >&6; }
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 { echo "$as_me:$LINENO: result: no" >&5
17916 echo "${ECHO_T}no" >&6; }
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922 # On some systems, setgroups is in unistd.h, on others, in grp.h
17923 { echo "$as_me:$LINENO: checking for setgroups" >&5
17924 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17925 cat >conftest.$ac_ext <<_ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17932 #include "confdefs.h"
17933 #include <unistd.h>
17941 void* p = setgroups
17946 rm -f conftest.$ac_objext
17947 if { (ac_try="$ac_compile"
17948 case "(($ac_try" in
17949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17950 *) ac_try_echo
=$ac_try;;
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_compile") 2>conftest.er1
17955 grep -v '^ *+' conftest.er1
>conftest.err
17957 cat conftest.err
>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } && {
17960 test -z "$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17962 } && test -s conftest.
$ac_objext; then
17964 cat >>confdefs.h
<<\_ACEOF
17965 #define HAVE_SETGROUPS 1
17968 { echo "$as_me:$LINENO: result: yes" >&5
17969 echo "${ECHO_T}yes" >&6; }
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.
$ac_ext >&5
17974 { echo "$as_me:$LINENO: result: no" >&5
17975 echo "${ECHO_T}no" >&6; }
17979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17981 # check for openpty and forkpty
17984 for ac_func
in openpty
17986 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17989 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 cat >conftest.
$ac_ext <<_ACEOF
17995 cat confdefs.h
>>conftest.
$ac_ext
17996 cat >>conftest.
$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18000 #define $ac_func innocuous_$ac_func
18002 /* System header to define __stub macros and hopefully few prototypes,
18003 which can conflict with char $ac_func (); below.
18004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18005 <limits.h> exists even on freestanding compilers. */
18008 # include <limits.h>
18010 # include <assert.h>
18015 /* Override any GCC internal prototype to avoid an error.
18016 Use char because int might match the return type of a GCC
18017 builtin and then its argument prototype would still apply. */
18022 /* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025 #if defined __stub_$ac_func || defined __stub___$ac_func
18032 return $ac_func ();
18037 rm -f conftest.
$ac_objext conftest
$ac_exeext
18038 if { (ac_try
="$ac_link"
18039 case "(($ac_try" in
18040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_link") 2>conftest.er1
18046 grep -v '^ *+' conftest.er1 >conftest.err
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } && {
18051 test -z "$ac_c_werror_flag" ||
18052 test ! -s conftest.err
18053 } && test -s conftest$ac_exeext &&
18054 $as_test_x conftest$ac_exeext; then
18055 eval "$as_ac_var=yes"
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 eval "$as_ac_var=no"
18063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18064 conftest$ac_exeext conftest.$ac_ext
18066 ac_res=`eval echo '${'$as_ac_var'}'`
18067 { echo "$as_me:$LINENO: result: $ac_res" >&5
18068 echo "${ECHO_T}$ac_res" >&6; }
18069 if test `eval echo '${'$as_ac_var'}'` = yes; then
18070 cat >>confdefs.h <<_ACEOF
18071 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18075 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18076 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18077 if test "${ac_cv_lib_util_openpty+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lutil $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18089 /* Override any GCC internal prototype to avoid an error.
18090 Use char because int might match the return type of a GCC
18091 builtin and then its argument prototype would still apply. */
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18108 *) ac_try_echo
=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_link") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1
>conftest.err
18115 cat conftest.err
>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } && {
18118 test -z "$ac_c_werror_flag" ||
18119 test ! -s conftest.err
18120 } && test -s conftest
$ac_exeext &&
18121 $as_test_x conftest
$ac_exeext; then
18122 ac_cv_lib_util_openpty
=yes
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.
$ac_ext >&5
18127 ac_cv_lib_util_openpty
=no
18130 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18131 conftest
$ac_exeext conftest.
$ac_ext
18132 LIBS
=$ac_check_lib_save_LIBS
18134 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18135 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18136 if test $ac_cv_lib_util_openpty = yes; then
18137 cat >>confdefs.h
<<\_ACEOF
18138 #define HAVE_OPENPTY 1
18140 LIBS
="$LIBS -lutil"
18142 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18143 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18144 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 ac_check_lib_save_LIBS
=$LIBS
18149 cat >conftest.
$ac_ext <<_ACEOF
18152 cat confdefs.h
>>conftest.
$ac_ext
18153 cat >>conftest.
$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 /* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply. */
18171 rm -f conftest.
$ac_objext conftest
$ac_exeext
18172 if { (ac_try
="$ac_link"
18173 case "(($ac_try" in
18174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_link") 2>conftest.er1
18180 grep -v '^ *+' conftest.er1 >conftest.err
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } && {
18185 test -z "$ac_c_werror_flag" ||
18186 test ! -s conftest.err
18187 } && test -s conftest$ac_exeext &&
18188 $as_test_x conftest$ac_exeext; then
18189 ac_cv_lib_bsd_openpty=yes
18191 echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.$ac_ext >&5
18194 ac_cv_lib_bsd_openpty=no
18197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18198 conftest$ac_exeext conftest.$ac_ext
18199 LIBS=$ac_check_lib_save_LIBS
18201 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18202 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18203 if test $ac_cv_lib_bsd_openpty = yes; then
18204 cat >>confdefs.h <<\_ACEOF
18205 #define HAVE_OPENPTY 1
18218 for ac_func in forkpty
18220 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 cat >conftest.$ac_ext <<_ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18234 #define $ac_func innocuous_$ac_func
18236 /* System header to define __stub macros and hopefully few prototypes,
18237 which can conflict with char $ac_func (); below.
18238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18239 <limits.h> exists even on freestanding compilers. */
18242 # include <limits.h>
18244 # include <assert.h>
18249 /* Override any GCC internal prototype to avoid an error.
18250 Use char because int might match the return type of a GCC
18251 builtin and then its argument prototype would still apply. */
18256 /* The GNU C library defines this for functions which it implements
18257 to always fail with ENOSYS. Some functions are actually named
18258 something starting with __ and the normal name is an alias. */
18259 #if defined __stub_$ac_func || defined __stub___$ac_func
18266 return $ac_func ();
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (ac_try="$ac_link"
18273 case "(($ac_try" in
18274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18275 *) ac_try_echo
=$ac_try;;
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_link") 2>conftest.er1
18280 grep -v '^ *+' conftest.er1
>conftest.err
18282 cat conftest.err
>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } && {
18285 test -z "$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 } && test -s conftest
$ac_exeext &&
18288 $as_test_x conftest
$ac_exeext; then
18289 eval "$as_ac_var=yes"
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.
$ac_ext >&5
18294 eval "$as_ac_var=no"
18297 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18298 conftest
$ac_exeext conftest.
$ac_ext
18300 ac_res
=`eval echo '${'$as_ac_var'}'`
18301 { echo "$as_me:$LINENO: result: $ac_res" >&5
18302 echo "${ECHO_T}$ac_res" >&6; }
18303 if test `eval echo '${'$as_ac_var'}'` = yes; then
18304 cat >>confdefs.h
<<_ACEOF
18305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18309 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18310 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18311 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 ac_check_lib_save_LIBS
=$LIBS
18315 LIBS
="-lutil $LIBS"
18316 cat >conftest.
$ac_ext <<_ACEOF
18319 cat confdefs.h
>>conftest.
$ac_ext
18320 cat >>conftest.
$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18323 /* Override any GCC internal prototype to avoid an error.
18324 Use char because int might match the return type of a GCC
18325 builtin and then its argument prototype would still apply. */
18338 rm -f conftest.
$ac_objext conftest
$ac_exeext
18339 if { (ac_try
="$ac_link"
18340 case "(($ac_try" in
18341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_link") 2>conftest.er1
18347 grep -v '^ *+' conftest.er1 >conftest.err
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } && {
18352 test -z "$ac_c_werror_flag" ||
18353 test ! -s conftest.err
18354 } && test -s conftest$ac_exeext &&
18355 $as_test_x conftest$ac_exeext; then
18356 ac_cv_lib_util_forkpty=yes
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 ac_cv_lib_util_forkpty=no
18364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18369 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18370 if test $ac_cv_lib_util_forkpty = yes; then
18371 cat >>confdefs.h <<\_ACEOF
18372 #define HAVE_FORKPTY 1
18374 LIBS="$LIBS -lutil"
18376 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18377 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18378 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 ac_check_lib_save_LIBS=$LIBS
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18390 /* Override any GCC internal prototype to avoid an error.
18391 Use char because int might match the return type of a GCC
18392 builtin and then its argument prototype would still apply. */
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (ac_try="$ac_link"
18407 case "(($ac_try" in
18408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18409 *) ac_try_echo
=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_link") 2>conftest.er1
18414 grep -v '^ *+' conftest.er1
>conftest.err
18416 cat conftest.err
>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } && {
18419 test -z "$ac_c_werror_flag" ||
18420 test ! -s conftest.err
18421 } && test -s conftest
$ac_exeext &&
18422 $as_test_x conftest
$ac_exeext; then
18423 ac_cv_lib_bsd_forkpty
=yes
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.
$ac_ext >&5
18428 ac_cv_lib_bsd_forkpty
=no
18431 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18432 conftest
$ac_exeext conftest.
$ac_ext
18433 LIBS
=$ac_check_lib_save_LIBS
18435 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18436 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18437 if test $ac_cv_lib_bsd_forkpty = yes; then
18438 cat >>confdefs.h
<<\_ACEOF
18439 #define HAVE_FORKPTY 1
18454 for ac_func
in memmove
18456 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18459 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 cat >conftest.
$ac_ext <<_ACEOF
18465 cat confdefs.h
>>conftest.
$ac_ext
18466 cat >>conftest.
$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18470 #define $ac_func innocuous_$ac_func
18472 /* System header to define __stub macros and hopefully few prototypes,
18473 which can conflict with char $ac_func (); below.
18474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 <limits.h> exists even on freestanding compilers. */
18478 # include <limits.h>
18480 # include <assert.h>
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18492 /* The GNU C library defines this for functions which it implements
18493 to always fail with ENOSYS. Some functions are actually named
18494 something starting with __ and the normal name is an alias. */
18495 #if defined __stub_$ac_func || defined __stub___$ac_func
18502 return $ac_func ();
18507 rm -f conftest.
$ac_objext conftest
$ac_exeext
18508 if { (ac_try
="$ac_link"
18509 case "(($ac_try" in
18510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } && {
18521 test -z "$ac_c_werror_flag" ||
18522 test ! -s conftest.err
18523 } && test -s conftest$ac_exeext &&
18524 $as_test_x conftest$ac_exeext; then
18525 eval "$as_ac_var=yes"
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 eval "$as_ac_var=no"
18533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18534 conftest$ac_exeext conftest.$ac_ext
18536 ac_res=`eval echo '${'$as_ac_var'}'`
18537 { echo "$as_me:$LINENO: result: $ac_res" >&5
18538 echo "${ECHO_T}$ac_res" >&6; }
18539 if test `eval echo '${'$as_ac_var'}'` = yes; then
18540 cat >>confdefs.h <<_ACEOF
18541 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18548 # check for long file support functions
18555 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18557 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18571 #define $ac_func innocuous_$ac_func
18573 /* System header to define __stub macros and hopefully few prototypes,
18574 which can conflict with char $ac_func (); below.
18575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18576 <limits.h> exists even on freestanding compilers. */
18579 # include <limits.h>
18581 # include <assert.h>
18586 /* Override any GCC internal prototype to avoid an error.
18587 Use char because int might match the return type of a GCC
18588 builtin and then its argument prototype would still apply. */
18593 /* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596 #if defined __stub_$ac_func || defined __stub___$ac_func
18603 return $ac_func ();
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18612 *) ac_try_echo
=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1
>conftest.err
18619 cat conftest.err
>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest
$ac_exeext &&
18625 $as_test_x conftest
$ac_exeext; then
18626 eval "$as_ac_var=yes"
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.
$ac_ext >&5
18631 eval "$as_ac_var=no"
18634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18635 conftest
$ac_exeext conftest.
$ac_ext
18637 ac_res
=`eval echo '${'$as_ac_var'}'`
18638 { echo "$as_me:$LINENO: result: $ac_res" >&5
18639 echo "${ECHO_T}$ac_res" >&6; }
18640 if test `eval echo '${'$as_ac_var'}'` = yes; then
18641 cat >>confdefs.h
<<_ACEOF
18642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18652 for ac_func
in dup2 getcwd strdup
18654 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18657 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 cat >conftest.
$ac_ext <<_ACEOF
18663 cat confdefs.h
>>conftest.
$ac_ext
18664 cat >>conftest.
$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18668 #define $ac_func innocuous_$ac_func
18670 /* System header to define __stub macros and hopefully few prototypes,
18671 which can conflict with char $ac_func (); below.
18672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18673 <limits.h> exists even on freestanding compilers. */
18676 # include <limits.h>
18678 # include <assert.h>
18683 /* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18690 /* The GNU C library defines this for functions which it implements
18691 to always fail with ENOSYS. Some functions are actually named
18692 something starting with __ and the normal name is an alias. */
18693 #if defined __stub_$ac_func || defined __stub___$ac_func
18700 return $ac_func ();
18705 rm -f conftest.
$ac_objext conftest
$ac_exeext
18706 if { (ac_try
="$ac_link"
18707 case "(($ac_try" in
18708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_link") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && {
18719 test -z "$ac_c_werror_flag" ||
18720 test ! -s conftest.err
18721 } && test -s conftest$ac_exeext &&
18722 $as_test_x conftest$ac_exeext; then
18723 eval "$as_ac_var=yes"
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 eval "$as_ac_var=no"
18731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18732 conftest$ac_exeext conftest.$ac_ext
18734 ac_res=`eval echo '${'$as_ac_var'}'`
18735 { echo "$as_me:$LINENO: result: $ac_res" >&5
18736 echo "${ECHO_T}$ac_res" >&6; }
18737 if test `eval echo '${'$as_ac_var'}'` = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18743 case " $LIBOBJS " in
18744 *" $ac_func.$ac_objext "* ) ;;
18745 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18754 for ac_func in getpgrp
18756 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18770 #define $ac_func innocuous_$ac_func
18772 /* System header to define __stub macros and hopefully few prototypes,
18773 which can conflict with char $ac_func (); below.
18774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18775 <limits.h> exists even on freestanding compilers. */
18778 # include <limits.h>
18780 # include <assert.h>
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18792 /* The GNU C library defines this for functions which it implements
18793 to always fail with ENOSYS. Some functions are actually named
18794 something starting with __ and the normal name is an alias. */
18795 #if defined __stub_$ac_func || defined __stub___$ac_func
18802 return $ac_func ();
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18811 *) ac_try_echo
=$ac_try;;
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>conftest.er1
18816 grep -v '^ *+' conftest.er1
>conftest.err
18818 cat conftest.err
>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } && {
18821 test -z "$ac_c_werror_flag" ||
18822 test ! -s conftest.err
18823 } && test -s conftest
$ac_exeext &&
18824 $as_test_x conftest
$ac_exeext; then
18825 eval "$as_ac_var=yes"
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.
$ac_ext >&5
18830 eval "$as_ac_var=no"
18833 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18834 conftest
$ac_exeext conftest.
$ac_ext
18836 ac_res
=`eval echo '${'$as_ac_var'}'`
18837 { echo "$as_me:$LINENO: result: $ac_res" >&5
18838 echo "${ECHO_T}$ac_res" >&6; }
18839 if test `eval echo '${'$as_ac_var'}'` = yes; then
18840 cat >>confdefs.h
<<_ACEOF
18841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18843 cat >conftest.
$ac_ext <<_ACEOF
18846 cat confdefs.h
>>conftest.
$ac_ext
18847 cat >>conftest.
$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 #include <unistd.h>
18858 rm -f conftest.
$ac_objext
18859 if { (ac_try
="$ac_compile"
18860 case "(($ac_try" in
18861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_compile") 2>conftest.er1
18867 grep -v '^ *+' conftest.er1 >conftest.err
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } && {
18872 test -z "$ac_c_werror_flag" ||
18873 test ! -s conftest.err
18874 } && test -s conftest.$ac_objext; then
18876 cat >>confdefs.h <<\_ACEOF
18877 #define GETPGRP_HAVE_ARG 1
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18894 for ac_func in setpgrp
18896 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18910 #define $ac_func innocuous_$ac_func
18912 /* System header to define __stub macros and hopefully few prototypes,
18913 which can conflict with char $ac_func (); below.
18914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18915 <limits.h> exists even on freestanding compilers. */
18918 # include <limits.h>
18920 # include <assert.h>
18925 /* Override any GCC internal prototype to avoid an error.
18926 Use char because int might match the return type of a GCC
18927 builtin and then its argument prototype would still apply. */
18932 /* The GNU C library defines this for functions which it implements
18933 to always fail with ENOSYS. Some functions are actually named
18934 something starting with __ and the normal name is an alias. */
18935 #if defined __stub_$ac_func || defined __stub___$ac_func
18942 return $ac_func ();
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18951 *) ac_try_echo
=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1
>conftest.err
18958 cat conftest.err
>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest
$ac_exeext &&
18964 $as_test_x conftest
$ac_exeext; then
18965 eval "$as_ac_var=yes"
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.
$ac_ext >&5
18970 eval "$as_ac_var=no"
18973 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18974 conftest
$ac_exeext conftest.
$ac_ext
18976 ac_res
=`eval echo '${'$as_ac_var'}'`
18977 { echo "$as_me:$LINENO: result: $ac_res" >&5
18978 echo "${ECHO_T}$ac_res" >&6; }
18979 if test `eval echo '${'$as_ac_var'}'` = yes; then
18980 cat >>confdefs.h
<<_ACEOF
18981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18983 cat >conftest.
$ac_ext <<_ACEOF
18986 cat confdefs.h
>>conftest.
$ac_ext
18987 cat >>conftest.
$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 #include <unistd.h>
18998 rm -f conftest.
$ac_objext
18999 if { (ac_try
="$ac_compile"
19000 case "(($ac_try" in
19001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_compile") 2>conftest.er1
19007 grep -v '^ *+' conftest.er1 >conftest.err
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } && {
19012 test -z "$ac_c_werror_flag" ||
19013 test ! -s conftest.err
19014 } && test -s conftest.$ac_objext; then
19016 cat >>confdefs.h <<\_ACEOF
19017 #define SETPGRP_HAVE_ARG 1
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19034 for ac_func in gettimeofday
19036 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19050 #define $ac_func innocuous_$ac_func
19052 /* System header to define __stub macros and hopefully few prototypes,
19053 which can conflict with char $ac_func (); below.
19054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19055 <limits.h> exists even on freestanding compilers. */
19058 # include <limits.h>
19060 # include <assert.h>
19065 /* Override any GCC internal prototype to avoid an error.
19066 Use char because int might match the return type of a GCC
19067 builtin and then its argument prototype would still apply. */
19072 /* The GNU C library defines this for functions which it implements
19073 to always fail with ENOSYS. Some functions are actually named
19074 something starting with __ and the normal name is an alias. */
19075 #if defined __stub_$ac_func || defined __stub___$ac_func
19082 return $ac_func ();
19087 rm -f conftest.$ac_objext conftest$ac_exeext
19088 if { (ac_try="$ac_link"
19089 case "(($ac_try" in
19090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19091 *) ac_try_echo
=$ac_try;;
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_link") 2>conftest.er1
19096 grep -v '^ *+' conftest.er1
>conftest.err
19098 cat conftest.err
>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } && {
19101 test -z "$ac_c_werror_flag" ||
19102 test ! -s conftest.err
19103 } && test -s conftest
$ac_exeext &&
19104 $as_test_x conftest
$ac_exeext; then
19105 eval "$as_ac_var=yes"
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.
$ac_ext >&5
19110 eval "$as_ac_var=no"
19113 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19114 conftest
$ac_exeext conftest.
$ac_ext
19116 ac_res
=`eval echo '${'$as_ac_var'}'`
19117 { echo "$as_me:$LINENO: result: $ac_res" >&5
19118 echo "${ECHO_T}$ac_res" >&6; }
19119 if test `eval echo '${'$as_ac_var'}'` = yes; then
19120 cat >>confdefs.h
<<_ACEOF
19121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19123 cat >conftest.
$ac_ext <<_ACEOF
19126 cat confdefs.h
>>conftest.
$ac_ext
19127 cat >>conftest.
$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <sys/time.h>
19133 gettimeofday((struct timeval*)0,(struct timezone*)0);
19138 rm -f conftest.
$ac_objext
19139 if { (ac_try
="$ac_compile"
19140 case "(($ac_try" in
19141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } && {
19152 test -z "$ac_c_werror_flag" ||
19153 test ! -s conftest.err
19154 } && test -s conftest.$ac_objext; then
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19161 cat >>confdefs.h <<\_ACEOF
19162 #define GETTIMEOFDAY_NO_TZ 1
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19174 { echo "$as_me:$LINENO: checking for major" >&5
19175 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19176 cat >conftest.$ac_ext <<_ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19183 #if defined(MAJOR_IN_MKDEV)
19184 #include <sys/mkdev.h>
19185 #elif defined(MAJOR_IN_SYSMACROS)
19186 #include <sys/sysmacros.h>
19188 #include <sys/types.h>
19195 makedev(major(0),minor(0));
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19205 *) ac_try_echo
=$ac_try;;
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_link") 2>conftest.er1
19210 grep -v '^ *+' conftest.er1
>conftest.err
19212 cat conftest.err
>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } && {
19215 test -z "$ac_c_werror_flag" ||
19216 test ! -s conftest.err
19217 } && test -s conftest
$ac_exeext &&
19218 $as_test_x conftest
$ac_exeext; then
19221 cat >>confdefs.h
<<\_ACEOF
19222 #define HAVE_DEVICE_MACROS 1
19225 { echo "$as_me:$LINENO: result: yes" >&5
19226 echo "${ECHO_T}yes" >&6; }
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.
$ac_ext >&5
19233 { echo "$as_me:$LINENO: result: no" >&5
19234 echo "${ECHO_T}no" >&6; }
19238 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19239 conftest
$ac_exeext conftest.
$ac_ext
19241 # On OSF/1 V5.1, getaddrinfo is available, but a define
19242 # for [no]getaddrinfo in netdb.h.
19243 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19244 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19245 cat >conftest.
$ac_ext <<_ACEOF
19248 cat confdefs.h
>>conftest.
$ac_ext
19249 cat >>conftest.
$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19252 #include <sys/types.h>
19253 #include <sys/socket.h>
19261 getaddrinfo(NULL, NULL, NULL, NULL);
19267 rm -f conftest.
$ac_objext conftest
$ac_exeext
19268 if { (ac_try
="$ac_link"
19269 case "(($ac_try" in
19270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_link") 2>conftest.er1
19276 grep -v '^ *+' conftest.er1 >conftest.err
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } && {
19281 test -z "$ac_c_werror_flag" ||
19282 test ! -s conftest.err
19283 } && test -s conftest$ac_exeext &&
19284 $as_test_x conftest$ac_exeext; then
19286 { echo "$as_me:$LINENO: result: yes" >&5
19287 echo "${ECHO_T}yes" >&6; }
19288 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19289 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19290 if test "$cross_compiling" = yes; then
19291 { echo "$as_me:$LINENO: result: buggy" >&5
19292 echo "${ECHO_T}buggy" >&6; }
19293 buggygetaddrinfo=yes
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19302 #include <sys/types.h>
19304 #include <string.h>
19305 #include <sys/socket.h>
19306 #include <netinet/in.h>
19310 int passive, gaierr, inet4 = 0, inet6 = 0;
19311 struct addrinfo hints, *ai, *aitop;
19312 char straddr[INET6_ADDRSTRLEN], strport[16];
19314 for (passive = 0; passive <= 1; passive++) {
19315 memset(&hints, 0, sizeof(hints));
19316 hints.ai_family = AF_UNSPEC;
19317 hints.ai_flags = passive ? AI_PASSIVE : 0;
19318 hints.ai_socktype = SOCK_STREAM;
19319 hints.ai_protocol = IPPROTO_TCP;
19320 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19321 (void)gai_strerror(gaierr);
19324 for (ai = aitop; ai; ai = ai->ai_next) {
19325 if (ai->ai_addr == NULL ||
19326 ai->ai_addrlen == 0 ||
19327 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19328 straddr, sizeof(straddr), strport, sizeof(strport),
19329 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19332 switch (ai->ai_family) {
19334 if (strcmp(strport, "54321") != 0) {
19338 if (strcmp(straddr, "0.0.0.0") != 0) {
19342 if (strcmp(straddr, "127.0.0.1") != 0) {
19349 if (strcmp(strport, "54321") != 0) {
19353 if (strcmp(straddr, "::") != 0) {
19357 if (strcmp(straddr, "::1") != 0) {
19367 /* another family support? */
19373 if (!(inet4 == 0 || inet4 == 2))
19375 if (!(inet6 == 0 || inet6 == 2))
19379 freeaddrinfo(aitop);
19384 freeaddrinfo(aitop);
19389 rm -f conftest$ac_exeext
19390 if { (ac_try="$ac_link"
19391 case "(($ac_try" in
19392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19393 *) ac_try_echo
=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_link") 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19400 { (case "(($ac_try" in
19401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 { echo "$as_me:$LINENO: result: good" >&5
19410 echo "${ECHO_T}good" >&6; }
19411 buggygetaddrinfo=no
19413 echo "$as_me: program exited with status $ac_status" >&5
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ( exit $ac_status )
19418 { echo "$as_me:$LINENO: result: buggy" >&5
19419 echo "${ECHO_T}buggy" >&6; }
19420 buggygetaddrinfo=yes
19422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19431 { echo "$as_me:$LINENO: result: no" >&5
19432 echo "${ECHO_T}no" >&6; }
19433 buggygetaddrinfo=yes
19437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19438 conftest$ac_exeext conftest.$ac_ext
19440 if test "$buggygetaddrinfo" = "yes"; then
19441 if test "$ipv6" = "yes"; then
19442 echo 'Fatal: You must get working getaddrinfo() function.'
19443 echo ' or you can specify "--disable-ipv6"'.
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_GETADDRINFO 1
19454 for ac_func in getnameinfo
19456 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19470 #define $ac_func innocuous_$ac_func
19472 /* System header to define __stub macros and hopefully few prototypes,
19473 which can conflict with char $ac_func (); below.
19474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19475 <limits.h> exists even on freestanding compilers. */
19478 # include <limits.h>
19480 # include <assert.h>
19485 /* Override any GCC internal prototype to avoid an error.
19486 Use char because int might match the return type of a GCC
19487 builtin and then its argument prototype would still apply. */
19492 /* The GNU C library defines this for functions which it implements
19493 to always fail with ENOSYS. Some functions are actually named
19494 something starting with __ and the normal name is an alias. */
19495 #if defined __stub_$ac_func || defined __stub___$ac_func
19502 return $ac_func ();
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19511 *) ac_try_echo
=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19516 grep -v '^ *+' conftest.er1
>conftest.err
19518 cat conftest.err
>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest
$ac_exeext &&
19524 $as_test_x conftest
$ac_exeext; then
19525 eval "$as_ac_var=yes"
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.
$ac_ext >&5
19530 eval "$as_ac_var=no"
19533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19534 conftest
$ac_exeext conftest.
$ac_ext
19536 ac_res
=`eval echo '${'$as_ac_var'}'`
19537 { echo "$as_me:$LINENO: result: $ac_res" >&5
19538 echo "${ECHO_T}$ac_res" >&6; }
19539 if test `eval echo '${'$as_ac_var'}'` = yes; then
19540 cat >>confdefs.h
<<_ACEOF
19541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19548 # checks for structures
19549 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19550 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19551 if test "${ac_cv_header_time+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 cat >conftest.
$ac_ext <<_ACEOF
19557 cat confdefs.h
>>conftest.
$ac_ext
19558 cat >>conftest.
$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 #include <sys/types.h>
19561 #include <sys/time.h>
19567 if ((struct tm *) 0)
19573 rm -f conftest.
$ac_objext
19574 if { (ac_try
="$ac_compile"
19575 case "(($ac_try" in
19576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } && {
19587 test -z "$ac_c_werror_flag" ||
19588 test ! -s conftest.err
19589 } && test -s conftest.$ac_objext; then
19590 ac_cv_header_time=yes
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_header_time=no
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19601 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19602 if test $ac_cv_header_time = yes; then
19604 cat >>confdefs.h <<\_ACEOF
19605 #define TIME_WITH_SYS_TIME 1
19610 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19611 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19612 if test "${ac_cv_struct_tm+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #include <sys/types.h>
19628 int *p = &tm.tm_sec;
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19638 *) ac_try_echo
=$ac_try;;
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_compile") 2>conftest.er1
19643 grep -v '^ *+' conftest.er1
>conftest.err
19645 cat conftest.err
>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest.
$ac_objext; then
19651 ac_cv_struct_tm
=time.h
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.
$ac_ext >&5
19656 ac_cv_struct_tm
=sys
/time.h
19659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19661 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19662 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19663 if test $ac_cv_struct_tm = sys
/time.h
; then
19665 cat >>confdefs.h
<<\_ACEOF
19666 #define TM_IN_SYS_TIME 1
19671 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19672 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19673 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 cat >conftest.
$ac_ext <<_ACEOF
19679 cat confdefs.h
>>conftest.
$ac_ext
19680 cat >>conftest.
$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <sys/types.h>
19683 #include <$ac_cv_struct_tm>
19689 static struct tm ac_aggr;
19690 if (ac_aggr.tm_zone)
19696 rm -f conftest.
$ac_objext
19697 if { (ac_try
="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest.$ac_objext; then
19713 ac_cv_member_struct_tm_tm_zone=yes
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 #include <sys/types.h>
19725 #include <$ac_cv_struct_tm>
19731 static struct tm ac_aggr;
19732 if (sizeof ac_aggr.tm_zone)
19738 rm -f conftest.$ac_objext
19739 if { (ac_try="$ac_compile"
19740 case "(($ac_try" in
19741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19742 *) ac_try_echo
=$ac_try;;
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_compile") 2>conftest.er1
19747 grep -v '^ *+' conftest.er1
>conftest.err
19749 cat conftest.err
>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest.
$ac_objext; then
19755 ac_cv_member_struct_tm_tm_zone
=yes
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.
$ac_ext >&5
19760 ac_cv_member_struct_tm_tm_zone
=no
19763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19768 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19769 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19770 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19772 cat >>confdefs.h
<<_ACEOF
19773 #define HAVE_STRUCT_TM_TM_ZONE 1
19779 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19781 cat >>confdefs.h
<<\_ACEOF
19782 #define HAVE_TM_ZONE 1
19786 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19787 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19788 if test "${ac_cv_have_decl_tzname+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 cat >conftest.
$ac_ext <<_ACEOF
19794 cat confdefs.h
>>conftest.
$ac_ext
19795 cat >>conftest.
$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19810 rm -f conftest.
$ac_objext
19811 if { (ac_try
="$ac_compile"
19812 case "(($ac_try" in
19813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_compile") 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_c_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest.$ac_objext; then
19827 ac_cv_have_decl_tzname=yes
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_cv_have_decl_tzname=no
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19838 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19839 if test $ac_cv_have_decl_tzname = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_DECL_TZNAME 1
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_DECL_TZNAME 0
19855 { echo "$as_me:$LINENO: checking for tzname" >&5
19856 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19857 if test "${ac_cv_var_tzname+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19867 #if !HAVE_DECL_TZNAME
19868 extern char *tzname[];
19874 return tzname[0][0];
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19883 *) ac_try_echo
=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1
>conftest.err
19890 cat conftest.err
>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest
$ac_exeext &&
19896 $as_test_x conftest
$ac_exeext; then
19897 ac_cv_var_tzname
=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.
$ac_ext >&5
19902 ac_cv_var_tzname
=no
19905 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19906 conftest
$ac_exeext conftest.
$ac_ext
19908 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19909 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19910 if test $ac_cv_var_tzname = yes; then
19912 cat >>confdefs.h
<<\_ACEOF
19913 #define HAVE_TZNAME 1
19919 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19920 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19921 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19924 cat >conftest.
$ac_ext <<_ACEOF
19927 cat confdefs.h
>>conftest.
$ac_ext
19928 cat >>conftest.
$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 $ac_includes_default
19934 static struct stat ac_aggr;
19935 if (ac_aggr.st_rdev)
19941 rm -f conftest.
$ac_objext
19942 if { (ac_try
="$ac_compile"
19943 case "(($ac_try" in
19944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && {
19955 test -z "$ac_c_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest.$ac_objext; then
19958 ac_cv_member_struct_stat_st_rdev=yes
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 $ac_includes_default
19973 static struct stat ac_aggr;
19974 if (sizeof ac_aggr.st_rdev)
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19984 *) ac_try_echo
=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1
>conftest.err
19991 cat conftest.err
>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest.
$ac_objext; then
19997 ac_cv_member_struct_stat_st_rdev
=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.
$ac_ext >&5
20002 ac_cv_member_struct_stat_st_rdev
=no
20005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20012 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20014 cat >>confdefs.h
<<_ACEOF
20015 #define HAVE_STRUCT_STAT_ST_RDEV 1
20021 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20022 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20023 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 cat >conftest.
$ac_ext <<_ACEOF
20029 cat confdefs.h
>>conftest.
$ac_ext
20030 cat >>conftest.
$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 $ac_includes_default
20036 static struct stat ac_aggr;
20037 if (ac_aggr.st_blksize)
20043 rm -f conftest.
$ac_objext
20044 if { (ac_try
="$ac_compile"
20045 case "(($ac_try" in
20046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_compile") 2>conftest.er1
20052 grep -v '^ *+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest.$ac_objext; then
20060 ac_cv_member_struct_stat_st_blksize=yes
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 $ac_includes_default
20075 static struct stat ac_aggr;
20076 if (sizeof ac_aggr.st_blksize)
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20086 *) ac_try_echo
=$ac_try;;
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1
>conftest.err
20093 cat conftest.err
>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.
$ac_objext; then
20099 ac_cv_member_struct_stat_st_blksize
=yes
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.
$ac_ext >&5
20104 ac_cv_member_struct_stat_st_blksize
=no
20107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20113 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20114 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20116 cat >>confdefs.h
<<_ACEOF
20117 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20123 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20124 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20125 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 cat >conftest.
$ac_ext <<_ACEOF
20131 cat confdefs.h
>>conftest.
$ac_ext
20132 cat >>conftest.
$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 $ac_includes_default
20138 static struct stat ac_aggr;
20139 if (ac_aggr.st_flags)
20145 rm -f conftest.
$ac_objext
20146 if { (ac_try
="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_compile") 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } && {
20159 test -z "$ac_c_werror_flag" ||
20160 test ! -s conftest.err
20161 } && test -s conftest.$ac_objext; then
20162 ac_cv_member_struct_stat_st_flags=yes
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20177 static struct stat ac_aggr;
20178 if (sizeof ac_aggr.st_flags)
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20188 *) ac_try_echo
=$ac_try;;
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_compile") 2>conftest.er1
20193 grep -v '^ *+' conftest.er1
>conftest.err
20195 cat conftest.err
>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest.
$ac_objext; then
20201 ac_cv_member_struct_stat_st_flags
=yes
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.
$ac_ext >&5
20206 ac_cv_member_struct_stat_st_flags
=no
20209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20214 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20215 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20216 if test $ac_cv_member_struct_stat_st_flags = yes; then
20218 cat >>confdefs.h
<<_ACEOF
20219 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20225 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20226 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20227 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 cat >conftest.
$ac_ext <<_ACEOF
20233 cat confdefs.h
>>conftest.
$ac_ext
20234 cat >>conftest.
$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 $ac_includes_default
20240 static struct stat ac_aggr;
20241 if (ac_aggr.st_gen)
20247 rm -f conftest.
$ac_objext
20248 if { (ac_try
="$ac_compile"
20249 case "(($ac_try" in
20250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_compile") 2>conftest.er1
20256 grep -v '^ *+' conftest.er1 >conftest.err
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest.$ac_objext; then
20264 ac_cv_member_struct_stat_st_gen=yes
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 $ac_includes_default
20279 static struct stat ac_aggr;
20280 if (sizeof ac_aggr.st_gen)
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20290 *) ac_try_echo
=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_compile") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1
>conftest.err
20297 cat conftest.err
>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.
$ac_objext; then
20303 ac_cv_member_struct_stat_st_gen
=yes
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.
$ac_ext >&5
20308 ac_cv_member_struct_stat_st_gen
=no
20311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20316 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20317 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20318 if test $ac_cv_member_struct_stat_st_gen = yes; then
20320 cat >>confdefs.h
<<_ACEOF
20321 #define HAVE_STRUCT_STAT_ST_GEN 1
20327 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20328 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20329 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 cat >conftest.
$ac_ext <<_ACEOF
20335 cat confdefs.h
>>conftest.
$ac_ext
20336 cat >>conftest.
$ac_ext <<_ACEOF
20337 /* end confdefs.h. */
20338 $ac_includes_default
20342 static struct stat ac_aggr;
20343 if (ac_aggr.st_birthtime)
20349 rm -f conftest.
$ac_objext
20350 if { (ac_try
="$ac_compile"
20351 case "(($ac_try" in
20352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_compile") 2>conftest.er1
20358 grep -v '^ *+' conftest.er1 >conftest.err
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest.$ac_objext; then
20366 ac_cv_member_struct_stat_st_birthtime=yes
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 $ac_includes_default
20381 static struct stat ac_aggr;
20382 if (sizeof ac_aggr.st_birthtime)
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20392 *) ac_try_echo
=$ac_try;;
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1
>conftest.err
20399 cat conftest.err
>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest.
$ac_objext; then
20405 ac_cv_member_struct_stat_st_birthtime
=yes
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.
$ac_ext >&5
20410 ac_cv_member_struct_stat_st_birthtime
=no
20413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20418 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20419 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20420 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20422 cat >>confdefs.h
<<_ACEOF
20423 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20429 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20430 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20431 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 cat >conftest.
$ac_ext <<_ACEOF
20437 cat confdefs.h
>>conftest.
$ac_ext
20438 cat >>conftest.
$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 $ac_includes_default
20444 static struct stat ac_aggr;
20445 if (ac_aggr.st_blocks)
20451 rm -f conftest.
$ac_objext
20452 if { (ac_try
="$ac_compile"
20453 case "(($ac_try" in
20454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_compile") 2>conftest.er1
20460 grep -v '^ *+' conftest.er1 >conftest.err
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && {
20465 test -z "$ac_c_werror_flag" ||
20466 test ! -s conftest.err
20467 } && test -s conftest.$ac_objext; then
20468 ac_cv_member_struct_stat_st_blocks=yes
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 $ac_includes_default
20483 static struct stat ac_aggr;
20484 if (sizeof ac_aggr.st_blocks)
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20494 *) ac_try_echo
=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_compile") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1
>conftest.err
20501 cat conftest.err
>&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest.
$ac_objext; then
20507 ac_cv_member_struct_stat_st_blocks
=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.
$ac_ext >&5
20512 ac_cv_member_struct_stat_st_blocks
=no
20515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20521 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20522 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20524 cat >>confdefs.h
<<_ACEOF
20525 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20529 cat >>confdefs.h
<<\_ACEOF
20530 #define HAVE_ST_BLOCKS 1
20534 case " $LIBOBJS " in
20535 *" fileblocks.$ac_objext "* ) ;;
20536 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
20544 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20545 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20546 if test "${ac_cv_header_time_altzone+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 cat >conftest.
$ac_ext <<_ACEOF
20552 cat confdefs.h
>>conftest.
$ac_ext
20553 cat >>conftest.
$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20564 rm -f conftest.
$ac_objext
20565 if { (ac_try
="$ac_compile"
20566 case "(($ac_try" in
20567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20573 grep -v '^ *+' conftest.er1 >conftest.err
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && {
20578 test -z "$ac_c_werror_flag" ||
20579 test ! -s conftest.err
20580 } && test -s conftest.$ac_objext; then
20581 ac_cv_header_time_altzone=yes
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 ac_cv_header_time_altzone=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20593 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20594 if test $ac_cv_header_time_altzone = yes; then
20596 cat >>confdefs.h <<\_ACEOF
20597 #define HAVE_ALTZONE 1
20603 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20604 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20612 #include <sys/types.h>
20613 #include <sys/select.h>
20614 #include <sys/time.h>
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20628 *) ac_try_echo
=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_compile") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1
>conftest.err
20635 cat conftest.err
>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest.
$ac_objext; then
20643 cat >>confdefs.h
<<\_ACEOF
20644 #define SYS_SELECT_WITH_SYS_TIME 1
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.
$ac_ext >&5
20656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20657 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20658 echo "${ECHO_T}$was_it_defined" >&6; }
20660 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20661 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20662 if test "${ac_cv_struct_addrinfo+set}" = set; then
20663 echo $ECHO_N "(cached) $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. */
20672 # include <netdb.h>
20681 rm -f conftest.
$ac_objext
20682 if { (ac_try
="$ac_compile"
20683 case "(($ac_try" in
20684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_compile") 2>conftest.er1
20690 grep -v '^ *+' conftest.er1 >conftest.err
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest.$ac_objext; then
20698 ac_cv_struct_addrinfo=yes
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_cv_struct_addrinfo=no
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20709 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20710 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20711 if test $ac_cv_struct_addrinfo = yes; then
20713 cat >>confdefs.h <<\_ACEOF
20714 #define HAVE_ADDRINFO 1
20719 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20720 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20721 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20731 # include <sys/types.h>
20732 # include <sys/socket.h>
20736 struct sockaddr_storage s
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20745 *) ac_try_echo
=$ac_try;;
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_compile") 2>conftest.er1
20750 grep -v '^ *+' conftest.er1
>conftest.err
20752 cat conftest.err
>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest.
$ac_objext; then
20758 ac_cv_struct_sockaddr_storage
=yes
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.
$ac_ext >&5
20763 ac_cv_struct_sockaddr_storage
=no
20766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20770 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20771 if test $ac_cv_struct_sockaddr_storage = yes; then
20773 cat >>confdefs.h
<<\_ACEOF
20774 #define HAVE_SOCKADDR_STORAGE 1
20779 # checks for compiler characteristics
20782 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20783 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20784 if test "${ac_cv_c_char_unsigned+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 cat >conftest.
$ac_ext <<_ACEOF
20790 cat confdefs.h
>>conftest.
$ac_ext
20791 cat >>conftest.
$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 $ac_includes_default
20797 static int test_array [1 - 2 * !(((char) -1) < 0)];
20804 rm -f conftest.
$ac_objext
20805 if { (ac_try
="$ac_compile"
20806 case "(($ac_try" in
20807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest.$ac_objext; then
20821 ac_cv_c_char_unsigned=no
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ac_cv_c_char_unsigned=yes
20829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20831 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20832 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20833 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20834 cat >>confdefs.h <<\_ACEOF
20835 #define __CHAR_UNSIGNED__ 1
20840 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20842 if test "${ac_cv_c_const+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20855 /* FIXME: Include the comments suggested by Paul. */
20856 #ifndef __cplusplus
20857 /* Ultrix mips cc rejects this. */
20858 typedef int charset[2];
20860 /* SunOS 4.1.1 cc rejects this. */
20861 char const *const *pcpcc;
20863 /* NEC SVR4.0.2 mips cc rejects this. */
20864 struct point {int x, y;};
20865 static struct point const zero = {0,0};
20866 /* AIX XL C 1.02.0.0 rejects this.
20867 It does not let you subtract one const X* pointer from another in
20868 an arm of an if-expression whose if-part is not a constant
20870 const char *g = "string";
20871 pcpcc = &g + (g ? g-g : 0);
20872 /* HPUX 7.0 cc rejects these. */
20874 ppc = (char**) pcpcc;
20875 pcpcc = (char const *const *) ppc;
20876 { /* SCO 3.2v4 cc rejects this. */
20878 char const *s = 0 ? (char *) 0 : (char const *) 0;
20883 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20884 int x[] = {25, 17};
20885 const int *foo = &x[0];
20888 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20889 typedef const int *iptr;
20893 { /* AIX XL C 1.02.0.0 rejects this saying
20894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20895 struct s { int j; const int *ap[3]; };
20896 struct s *b; b->j = 5;
20898 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20899 const int foo = 10;
20900 if (!foo) return 0;
20902 return !cs[0] && !zero.x;
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20913 *) ac_try_echo
=$ac_try;;
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20918 grep -v '^ *+' conftest.er1
>conftest.err
20920 cat conftest.err
>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.
$ac_objext; then
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.
$ac_ext >&5
20934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20936 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20937 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20938 if test $ac_cv_c_const = no
; then
20940 cat >>confdefs.h
<<\_ACEOF
20948 { echo "$as_me:$LINENO: checking for working volatile" >&5
20949 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20950 cat >conftest.
$ac_ext <<_ACEOF
20953 cat confdefs.h
>>conftest.
$ac_ext
20954 cat >>conftest.
$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20960 volatile int x; x = 0;
20965 rm -f conftest.
$ac_objext
20966 if { (ac_try
="$ac_compile"
20967 case "(($ac_try" in
20968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_compile") 2>conftest.er1
20974 grep -v '^ *+' conftest.er1 >conftest.err
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } && {
20979 test -z "$ac_c_werror_flag" ||
20980 test ! -s conftest.err
20981 } && test -s conftest.$ac_objext; then
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20988 cat >>confdefs.h <<\_ACEOF
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { echo "$as_me:$LINENO: result: $works" >&5
20997 echo "${ECHO_T}$works" >&6; }
21000 { echo "$as_me:$LINENO: checking for working signed char" >&5
21001 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21017 rm -f conftest.$ac_objext
21018 if { (ac_try="$ac_compile"
21019 case "(($ac_try" in
21020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21021 *) ac_try_echo
=$ac_try;;
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_compile") 2>conftest.er1
21026 grep -v '^ *+' conftest.er1
>conftest.err
21028 cat conftest.err
>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest.
$ac_objext; then
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.
$ac_ext >&5
21040 cat >>confdefs.h
<<\_ACEOF
21047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21048 { echo "$as_me:$LINENO: result: $works" >&5
21049 echo "${ECHO_T}$works" >&6; }
21052 { echo "$as_me:$LINENO: checking for prototypes" >&5
21053 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21054 cat >conftest.
$ac_ext <<_ACEOF
21057 cat confdefs.h
>>conftest.
$ac_ext
21058 cat >>conftest.
$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 int foo(int x) { return 0; }
21069 rm -f conftest.
$ac_objext
21070 if { (ac_try
="$ac_compile"
21071 case "(($ac_try" in
21072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21078 grep -v '^ *+' conftest.er1 >conftest.err
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21088 cat >>confdefs.h <<\_ACEOF
21089 #define HAVE_PROTOTYPES 1
21092 have_prototypes=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21103 echo "${ECHO_T}$have_prototypes" >&6; }
21106 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21107 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21115 #include <stdarg.h>
21116 int foo(int x, ...) {
21120 va_arg(va, char *);
21121 va_arg(va, double);
21128 return foo(10, "", 3.14);
21133 rm -f conftest.$ac_objext
21134 if { (ac_try="$ac_compile"
21135 case "(($ac_try" in
21136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21137 *) ac_try_echo
=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1
>conftest.err
21144 cat conftest.err
>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.
$ac_objext; then
21152 cat >>confdefs.h
<<\_ACEOF
21153 #define HAVE_STDARG_PROTOTYPES 1
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.
$ac_ext >&5
21165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21166 { echo "$as_me:$LINENO: result: $works" >&5
21167 echo "${ECHO_T}$works" >&6; }
21169 # check for socketpair
21170 { echo "$as_me:$LINENO: checking for socketpair" >&5
21171 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21172 cat >conftest.
$ac_ext <<_ACEOF
21175 cat confdefs.h
>>conftest.
$ac_ext
21176 cat >>conftest.
$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21179 #include <sys/types.h>
21180 #include <sys/socket.h>
21190 rm -f conftest.
$ac_objext
21191 if { (ac_try
="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21199 grep -v '^ *+' conftest.er1 >conftest.err
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21208 cat >>confdefs.h <<\_ACEOF
21209 #define HAVE_SOCKETPAIR 1
21212 { echo "$as_me:$LINENO: result: yes" >&5
21213 echo "${ECHO_T}yes" >&6; }
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 { echo "$as_me:$LINENO: result: no" >&5
21219 echo "${ECHO_T}no" >&6; }
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 # check if sockaddr has sa_len member
21226 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21227 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <sys/types.h>
21235 #include <sys/socket.h>
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21249 *) ac_try_echo
=$ac_try;;
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_compile") 2>conftest.er1
21254 grep -v '^ *+' conftest.er1
>conftest.err
21256 cat conftest.err
>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } && {
21259 test -z "$ac_c_werror_flag" ||
21260 test ! -s conftest.err
21261 } && test -s conftest.
$ac_objext; then
21262 { echo "$as_me:$LINENO: result: yes" >&5
21263 echo "${ECHO_T}yes" >&6; }
21265 cat >>confdefs.h
<<\_ACEOF
21266 #define HAVE_SOCKADDR_SA_LEN 1
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.
$ac_ext >&5
21273 { echo "$as_me:$LINENO: result: no" >&5
21274 echo "${ECHO_T}no" >&6; }
21277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21279 va_list_is_array
=no
21280 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21281 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21282 cat >conftest.
$ac_ext <<_ACEOF
21285 cat confdefs.h
>>conftest.
$ac_ext
21286 cat >>conftest.
$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 #ifdef HAVE_STDARG_PROTOTYPES
21290 #include <stdarg.h>
21292 #include <varargs.h>
21298 va_list list1, list2; list1 = list2;
21303 rm -f conftest.
$ac_objext
21304 if { (ac_try
="$ac_compile"
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_compile") 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_objext; then
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21327 cat >>confdefs.h <<\_ACEOF
21328 #define VA_LIST_IS_ARRAY 1
21331 va_list_is_array=yes
21335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21337 echo "${ECHO_T}$va_list_is_array" >&6; }
21339 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21343 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21344 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21345 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21356 #define gethostbyname_r innocuous_gethostbyname_r
21358 /* System header to define __stub macros and hopefully few prototypes,
21359 which can conflict with char gethostbyname_r (); below.
21360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21361 <limits.h> exists even on freestanding compilers. */
21364 # include <limits.h>
21366 # include <assert.h>
21369 #undef gethostbyname_r
21371 /* Override any GCC internal prototype to avoid an error.
21372 Use char because int might match the return type of a GCC
21373 builtin and then its argument prototype would still apply. */
21377 char gethostbyname_r ();
21378 /* The GNU C library defines this for functions which it implements
21379 to always fail with ENOSYS. Some functions are actually named
21380 something starting with __ and the normal name is an alias. */
21381 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21388 return gethostbyname_r ();
21393 rm -f conftest.$ac_objext conftest$ac_exeext
21394 if { (ac_try="$ac_link"
21395 case "(($ac_try" in
21396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21397 *) ac_try_echo
=$ac_try;;
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_link") 2>conftest.er1
21402 grep -v '^ *+' conftest.er1
>conftest.err
21404 cat conftest.err
>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest
$ac_exeext &&
21410 $as_test_x conftest
$ac_exeext; then
21411 ac_cv_func_gethostbyname_r
=yes
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.
$ac_ext >&5
21416 ac_cv_func_gethostbyname_r
=no
21419 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21420 conftest
$ac_exeext conftest.
$ac_ext
21422 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21423 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21424 if test $ac_cv_func_gethostbyname_r = yes; then
21426 cat >>confdefs.h
<<\_ACEOF
21427 #define HAVE_GETHOSTBYNAME_R 1
21430 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21431 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21433 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21434 cat >conftest.
$ac_ext <<_ACEOF
21437 cat confdefs.h
>>conftest.
$ac_ext
21438 cat >>conftest.
$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21441 # include <netdb.h>
21448 struct hostent *he, *res;
21453 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21459 rm -f conftest.
$ac_objext
21460 if { (ac_try
="$ac_compile"
21461 case "(($ac_try" in
21462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_compile") 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } && {
21473 test -z "$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21475 } && test -s conftest.$ac_objext; then
21477 cat >>confdefs.h <<\_ACEOF
21478 #define HAVE_GETHOSTBYNAME_R 1
21482 cat >>confdefs.h <<\_ACEOF
21483 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21486 { echo "$as_me:$LINENO: result: yes" >&5
21487 echo "${ECHO_T}yes" >&6; }
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21494 { echo "$as_me:$LINENO: result: no" >&5
21495 echo "${ECHO_T}no" >&6; }
21496 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21497 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21498 cat >conftest.$ac_ext <<_ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21505 # include <netdb.h>
21512 struct hostent *he;
21517 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21527 *) ac_try_echo
=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1
>conftest.err
21534 cat conftest.err
>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.
$ac_objext; then
21541 cat >>confdefs.h
<<\_ACEOF
21542 #define HAVE_GETHOSTBYNAME_R 1
21546 cat >>confdefs.h
<<\_ACEOF
21547 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21550 { echo "$as_me:$LINENO: result: yes" >&5
21551 echo "${ECHO_T}yes" >&6; }
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.
$ac_ext >&5
21558 { echo "$as_me:$LINENO: result: no" >&5
21559 echo "${ECHO_T}no" >&6; }
21560 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21561 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21562 cat >conftest.
$ac_ext <<_ACEOF
21565 cat confdefs.h
>>conftest.
$ac_ext
21566 cat >>conftest.
$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21569 # include <netdb.h>
21576 struct hostent *he;
21577 struct hostent_data data;
21579 (void) gethostbyname_r(name, he, &data);
21585 rm -f conftest.
$ac_objext
21586 if { (ac_try
="$ac_compile"
21587 case "(($ac_try" in
21588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_compile") 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest.$ac_objext; then
21603 cat >>confdefs.h <<\_ACEOF
21604 #define HAVE_GETHOSTBYNAME_R 1
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21612 { echo "$as_me:$LINENO: result: yes" >&5
21613 echo "${ECHO_T}yes" >&6; }
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21620 { echo "$as_me:$LINENO: result: no" >&5
21621 echo "${ECHO_T}no" >&6; }
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 for ac_func in gethostbyname
21641 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 cat >conftest.$ac_ext <<_ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21655 #define $ac_func innocuous_$ac_func
21657 /* System header to define __stub macros and hopefully few prototypes,
21658 which can conflict with char $ac_func (); below.
21659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21660 <limits.h> exists even on freestanding compilers. */
21663 # include <limits.h>
21665 # include <assert.h>
21670 /* Override any GCC internal prototype to avoid an error.
21671 Use char because int might match the return type of a GCC
21672 builtin and then its argument prototype would still apply. */
21677 /* The GNU C library defines this for functions which it implements
21678 to always fail with ENOSYS. Some functions are actually named
21679 something starting with __ and the normal name is an alias. */
21680 #if defined __stub_$ac_func || defined __stub___$ac_func
21687 return $ac_func ();
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21696 *) ac_try_echo
=$ac_try;;
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_link") 2>conftest.er1
21701 grep -v '^ *+' conftest.er1
>conftest.err
21703 cat conftest.err
>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } && {
21706 test -z "$ac_c_werror_flag" ||
21707 test ! -s conftest.err
21708 } && test -s conftest
$ac_exeext &&
21709 $as_test_x conftest
$ac_exeext; then
21710 eval "$as_ac_var=yes"
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.
$ac_ext >&5
21715 eval "$as_ac_var=no"
21718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21719 conftest
$ac_exeext conftest.
$ac_ext
21721 ac_res
=`eval echo '${'$as_ac_var'}'`
21722 { echo "$as_me:$LINENO: result: $ac_res" >&5
21723 echo "${ECHO_T}$ac_res" >&6; }
21724 if test `eval echo '${'$as_ac_var'}'` = yes; then
21725 cat >>confdefs.h
<<_ACEOF
21726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21741 # checks for system services
21744 # Linux requires this for correct f.p. operations
21745 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21746 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21747 if test "${ac_cv_func___fpu_control+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 cat >conftest.
$ac_ext <<_ACEOF
21753 cat confdefs.h
>>conftest.
$ac_ext
21754 cat >>conftest.
$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21758 #define __fpu_control innocuous___fpu_control
21760 /* System header to define __stub macros and hopefully few prototypes,
21761 which can conflict with char __fpu_control (); below.
21762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21763 <limits.h> exists even on freestanding compilers. */
21766 # include <limits.h>
21768 # include <assert.h>
21771 #undef __fpu_control
21773 /* Override any GCC internal prototype to avoid an error.
21774 Use char because int might match the return type of a GCC
21775 builtin and then its argument prototype would still apply. */
21779 char __fpu_control ();
21780 /* The GNU C library defines this for functions which it implements
21781 to always fail with ENOSYS. Some functions are actually named
21782 something starting with __ and the normal name is an alias. */
21783 #if defined __stub___fpu_control || defined __stub_____fpu_control
21790 return __fpu_control ();
21795 rm -f conftest.
$ac_objext conftest
$ac_exeext
21796 if { (ac_try
="$ac_link"
21797 case "(($ac_try" in
21798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21799 *) ac_try_echo=$ac_try;;
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_link") 2>conftest.er1
21804 grep -v '^ *+' conftest.er1 >conftest.err
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest$ac_exeext &&
21812 $as_test_x conftest$ac_exeext; then
21813 ac_cv_func___fpu_control=yes
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_cv_func___fpu_control=no
21821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21822 conftest$ac_exeext conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21825 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21826 if test $ac_cv_func___fpu_control = yes; then
21830 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21831 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21832 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 ac_check_lib_save_LIBS=$LIBS
21836 LIBS="-lieee $LIBS"
21837 cat >conftest.$ac_ext <<_ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21844 /* Override any GCC internal prototype to avoid an error.
21845 Use char because int might match the return type of a GCC
21846 builtin and then its argument prototype would still apply. */
21850 char __fpu_control ();
21854 return __fpu_control ();
21859 rm -f conftest.$ac_objext conftest$ac_exeext
21860 if { (ac_try="$ac_link"
21861 case "(($ac_try" in
21862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21863 *) ac_try_echo
=$ac_try;;
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_link") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1
>conftest.err
21870 cat conftest.err
>&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest
$ac_exeext &&
21876 $as_test_x conftest
$ac_exeext; then
21877 ac_cv_lib_ieee___fpu_control
=yes
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.
$ac_ext >&5
21882 ac_cv_lib_ieee___fpu_control
=no
21885 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21886 conftest
$ac_exeext conftest.
$ac_ext
21887 LIBS
=$ac_check_lib_save_LIBS
21889 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21890 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21891 if test $ac_cv_lib_ieee___fpu_control = yes; then
21892 cat >>confdefs.h
<<_ACEOF
21893 #define HAVE_LIBIEEE 1
21896 LIBS
="-lieee $LIBS"
21904 # Check for --with-fpectl
21905 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21906 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21908 # Check whether --with-fpectl was given.
21909 if test "${with_fpectl+set}" = set; then
21910 withval
=$with_fpectl;
21911 if test "$withval" != no
21914 cat >>confdefs.h
<<\_ACEOF
21915 #define WANT_SIGFPE_HANDLER 1
21918 { echo "$as_me:$LINENO: result: yes" >&5
21919 echo "${ECHO_T}yes" >&6; }
21920 else { echo "$as_me:$LINENO: result: no" >&5
21921 echo "${ECHO_T}no" >&6; }
21924 { echo "$as_me:$LINENO: result: no" >&5
21925 echo "${ECHO_T}no" >&6; }
21929 # check for --with-libm=...
21931 case $ac_sys_system in
21935 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21936 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21938 # Check whether --with-libm was given.
21939 if test "${with_libm+set}" = set; then
21940 withval
=$with_libm;
21941 if test "$withval" = no
21943 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21944 echo "${ECHO_T}force LIBM empty" >&6; }
21945 elif test "$withval" != yes
21947 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21948 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21949 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21950 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21951 { (exit 1); exit 1; }; }
21954 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21955 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21959 # check for --with-libc=...
21961 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21962 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21964 # Check whether --with-libc was given.
21965 if test "${with_libc+set}" = set; then
21966 withval
=$with_libc;
21967 if test "$withval" = no
21969 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21970 echo "${ECHO_T}force LIBC empty" >&6; }
21971 elif test "$withval" != yes
21973 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21974 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21975 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21976 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21977 { (exit 1); exit 1; }; }
21980 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21981 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21985 # **************************************************
21986 # * Check for various properties of floating point *
21987 # **************************************************
21989 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21990 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21991 if test "${ac_cv_little_endian_double+set}" = set; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 if test "$cross_compiling" = yes; then
21996 ac_cv_little_endian_double
=no
21998 cat >conftest.
$ac_ext <<_ACEOF
22001 cat confdefs.h
>>conftest.
$ac_ext
22002 cat >>conftest.
$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22005 #include <string.h>
22007 double x = 9006104071832581.0;
22008 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22015 rm -f conftest
$ac_exeext
22016 if { (ac_try
="$ac_link"
22017 case "(($ac_try" in
22018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_link") 2>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22028 *) ac_try_echo
=$ac_try;;
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_cv_little_endian_double
=yes
22037 echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.
$ac_ext >&5
22041 ( exit $ac_status )
22042 ac_cv_little_endian_double
=no
22044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22050 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22051 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22052 if test "$ac_cv_little_endian_double" = yes
22055 cat >>confdefs.h
<<\_ACEOF
22056 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22061 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22062 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22063 if test "${ac_cv_big_endian_double+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 if test "$cross_compiling" = yes; then
22068 ac_cv_big_endian_double
=no
22070 cat >conftest.
$ac_ext <<_ACEOF
22073 cat confdefs.h
>>conftest.
$ac_ext
22074 cat >>conftest.
$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 #include <string.h>
22079 double x = 9006104071832581.0;
22080 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22087 rm -f conftest
$ac_exeext
22088 if { (ac_try
="$ac_link"
22089 case "(($ac_try" in
22090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22098 { (case "(($ac_try" in
22099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22100 *) ac_try_echo
=$ac_try;;
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_try") 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 ac_cv_big_endian_double
=yes
22109 echo "$as_me: program exited with status $ac_status" >&5
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.
$ac_ext >&5
22113 ( exit $ac_status )
22114 ac_cv_big_endian_double
=no
22116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22122 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22123 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22124 if test "$ac_cv_big_endian_double" = yes
22127 cat >>confdefs.h
<<\_ACEOF
22128 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22133 # Some ARM platforms use a mixed-endian representation for doubles.
22134 # While Python doesn't currently have full support for these platforms
22135 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22136 # conversions work.
22137 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22138 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22139 if test "${ac_cv_mixed_endian_double+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 if test "$cross_compiling" = yes; then
22144 ac_cv_mixed_endian_double
=no
22146 cat >conftest.
$ac_ext <<_ACEOF
22149 cat confdefs.h
>>conftest.
$ac_ext
22150 cat >>conftest.
$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22153 #include <string.h>
22155 double x = 9006104071832581.0;
22156 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22163 rm -f conftest
$ac_exeext
22164 if { (ac_try
="$ac_link"
22165 case "(($ac_try" in
22166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170 (eval "$ac_link") 2>&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22174 { (case "(($ac_try" in
22175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22176 *) ac_try_echo
=$ac_try;;
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_try") 2>&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_cv_mixed_endian_double
=yes
22185 echo "$as_me: program exited with status $ac_status" >&5
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.
$ac_ext >&5
22189 ( exit $ac_status )
22190 ac_cv_mixed_endian_double
=no
22192 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22198 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22199 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22200 if test "$ac_cv_mixed_endian_double" = yes
22203 cat >>confdefs.h
<<\_ACEOF
22204 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22209 # The short float repr introduced in Python 3.1 requires the
22210 # correctly-rounded string <-> double conversion functions from
22211 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22212 # rounding; this is a problem on x86, where the x87 FPU has a default
22213 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22214 # using inline assembler to get and set the x87 FPU control word.
22215 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22217 # Check that it's okay to use gcc inline assembler to get and set
22218 # x87 control word. It should be, but you never know...
22219 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22220 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22221 cat >conftest.
$ac_ext <<_ACEOF
22224 cat confdefs.h
>>conftest.
$ac_ext
22225 cat >>conftest.
$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22233 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22234 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22240 rm -f conftest.
$ac_objext
22241 if { (ac_try
="$ac_compile"
22242 case "(($ac_try" in
22243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_compile") 2>conftest.er1
22249 grep -v '^ *+' conftest.er1 >conftest.err
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest.$ac_objext; then
22257 have_gcc_asm_for_x87=yes
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 have_gcc_asm_for_x87=no
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22267 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22268 if test "$have_gcc_asm_for_x87" = yes
22271 cat >>confdefs.h <<\_ACEOF
22272 #define HAVE_GCC_ASM_FOR_X87 1
22278 # Detect whether system arithmetic is subject to x87-style double
22279 # rounding issues. The result of this test has little meaning on non
22280 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22281 # mode is round-to-nearest and double rounding issues are present, and
22282 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22283 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22284 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22285 # $BASECFLAGS may affect the result
22287 CC="$CC $BASECFLAGS"
22288 if test "$cross_compiling" = yes; then
22289 ac_cv_x87_double_rounding=no
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22298 #include <stdlib.h>
22301 volatile double x, y, z;
22302 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22303 x = 0.99999999999999989; /* 1-2**-53 */
22307 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22313 /* both tests show evidence of double rounding */
22318 rm -f conftest$ac_exeext
22319 if { (ac_try="$ac_link"
22320 case "(($ac_try" in
22321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22322 *) ac_try_echo
=$ac_try;;
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_link") 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22329 { (case "(($ac_try" in
22330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22331 *) ac_try_echo=$ac_try;;
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334 (eval "$ac_try") 2>&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }; then
22338 ac_cv_x87_double_rounding=no
22340 echo "$as_me: program exited with status $ac_status" >&5
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22344 ( exit $ac_status )
22345 ac_cv_x87_double_rounding=yes
22347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22352 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22353 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22354 if test "$ac_cv_x87_double_rounding" = yes
22357 cat >>confdefs.h <<\_ACEOF
22358 #define X87_DOUBLE_ROUNDING 1
22363 # ************************************
22364 # * Check for mathematical functions *
22365 # ************************************
22370 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22371 # -0. on some architectures.
22372 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22373 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22374 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 if test "$cross_compiling" = yes; then
22379 ac_cv_tanh_preserves_zero_sign=no
22381 cat >conftest.$ac_ext <<_ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22389 #include <stdlib.h>
22391 /* return 0 if either negative zeros don't exist
22392 on this platform or if negative zeros exist
22393 and tanh(-0.) == -0. */
22394 if (atan2(0., -1.) == atan2(-0., -1.) ||
22395 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22400 rm -f conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22404 *) ac_try_echo
=$ac_try;;
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_link") 2>&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22420 ac_cv_tanh_preserves_zero_sign=yes
22422 echo "$as_me: program exited with status $ac_status" >&5
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22426 ( exit $ac_status )
22427 ac_cv_tanh_preserves_zero_sign=no
22429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22436 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22437 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22440 cat >>confdefs.h <<\_ACEOF
22441 #define TANH_PRESERVES_ZERO_SIGN 1
22455 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22457 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22461 echo $ECHO_N "(cached) $ECHO_C" >&6
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22471 #define $ac_func innocuous_$ac_func
22473 /* System header to define __stub macros and hopefully few prototypes,
22474 which can conflict with char $ac_func (); below.
22475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22476 <limits.h> exists even on freestanding compilers. */
22479 # include <limits.h>
22481 # include <assert.h>
22486 /* Override any GCC internal prototype to avoid an error.
22487 Use char because int might match the return type of a GCC
22488 builtin and then its argument prototype would still apply. */
22493 /* The GNU C library defines this for functions which it implements
22494 to always fail with ENOSYS. Some functions are actually named
22495 something starting with __ and the normal name is an alias. */
22496 #if defined __stub_$ac_func || defined __stub___$ac_func
22503 return $ac_func ();
22508 rm -f conftest.$ac_objext conftest$ac_exeext
22509 if { (ac_try="$ac_link"
22510 case "(($ac_try" in
22511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22512 *) ac_try_echo
=$ac_try;;
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_link") 2>conftest.er1
22517 grep -v '^ *+' conftest.er1
>conftest.err
22519 cat conftest.err
>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } && {
22522 test -z "$ac_c_werror_flag" ||
22523 test ! -s conftest.err
22524 } && test -s conftest
$ac_exeext &&
22525 $as_test_x conftest
$ac_exeext; then
22526 eval "$as_ac_var=yes"
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.
$ac_ext >&5
22531 eval "$as_ac_var=no"
22534 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22535 conftest
$ac_exeext conftest.
$ac_ext
22537 ac_res
=`eval echo '${'$as_ac_var'}'`
22538 { echo "$as_me:$LINENO: result: $ac_res" >&5
22539 echo "${ECHO_T}$ac_res" >&6; }
22540 if test `eval echo '${'$as_ac_var'}'` = yes; then
22541 cat >>confdefs.h
<<_ACEOF
22542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22548 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22549 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22550 if test "${ac_cv_have_decl_isinf+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 cat >conftest.
$ac_ext <<_ACEOF
22556 cat confdefs.h
>>conftest.
$ac_ext
22557 cat >>conftest.
$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22572 rm -f conftest.
$ac_objext
22573 if { (ac_try
="$ac_compile"
22574 case "(($ac_try" in
22575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_compile") 2>conftest.er1
22581 grep -v '^ *+' conftest.er1 >conftest.err
22583 cat conftest.err >&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest.$ac_objext; then
22589 ac_cv_have_decl_isinf=yes
22591 echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_cv_have_decl_isinf=no
22597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22600 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22601 if test $ac_cv_have_decl_isinf = yes; then
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_DECL_ISINF 1
22609 cat >>confdefs.h <<_ACEOF
22610 #define HAVE_DECL_ISINF 0
22615 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22616 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22617 if test "${ac_cv_have_decl_isnan+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22643 *) ac_try_echo
=$ac_try;;
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_compile") 2>conftest.er1
22648 grep -v '^ *+' conftest.er1
>conftest.err
22650 cat conftest.err
>&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } && {
22653 test -z "$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 } && test -s conftest.
$ac_objext; then
22656 ac_cv_have_decl_isnan
=yes
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.
$ac_ext >&5
22661 ac_cv_have_decl_isnan
=no
22664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22666 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22667 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22668 if test $ac_cv_have_decl_isnan = yes; then
22670 cat >>confdefs.h
<<_ACEOF
22671 #define HAVE_DECL_ISNAN 1
22676 cat >>confdefs.h
<<_ACEOF
22677 #define HAVE_DECL_ISNAN 0
22682 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22683 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22684 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22687 cat >conftest.
$ac_ext <<_ACEOF
22690 cat confdefs.h
>>conftest.
$ac_ext
22691 cat >>conftest.
$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22706 rm -f conftest.
$ac_objext
22707 if { (ac_try
="$ac_compile"
22708 case "(($ac_try" in
22709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22715 grep -v '^ *+' conftest.er1 >conftest.err
22717 cat conftest.err >&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22723 ac_cv_have_decl_isfinite=yes
22725 echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 ac_cv_have_decl_isfinite=no
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22734 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22735 if test $ac_cv_have_decl_isfinite = yes; then
22737 cat >>confdefs.h <<_ACEOF
22738 #define HAVE_DECL_ISFINITE 1
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_DECL_ISFINITE 0
22754 # For multiprocessing module, check that sem_open
22755 # actually works. For FreeBSD versions <= 7.2,
22756 # the kernel module that provides POSIX semaphores
22757 # isn't loaded by default, so an attempt to call
22758 # sem_open results in a 'Signal 12' error.
22759 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22760 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22761 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22764 if test "$cross_compiling" = yes; then
22765 ac_cv_posix_semaphores_enabled=yes
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22774 #include <unistd.h>
22777 #include <semaphore.h>
22778 #include <sys/stat.h>
22781 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22782 if (a == SEM_FAILED) {
22783 perror("sem_open");
22787 sem_unlink("/autoconf");
22792 rm -f conftest$ac_exeext
22793 if { (ac_try="$ac_link"
22794 case "(($ac_try" in
22795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22796 *) ac_try_echo
=$ac_try;;
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799 (eval "$ac_link") 2>&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22803 { (case "(($ac_try" in
22804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_try") 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 ac_cv_posix_semaphores_enabled=yes
22814 echo "$as_me: program exited with status $ac_status" >&5
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22818 ( exit $ac_status )
22819 ac_cv_posix_semaphores_enabled=no
22821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22828 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22829 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22830 if test $ac_cv_posix_semaphores_enabled = no
22833 cat >>confdefs.h <<\_ACEOF
22834 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22839 # Multiprocessing check for broken sem_getvalue
22840 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22841 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22842 if test "$cross_compiling" = yes; then
22843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22844 See \`config.log
' for more details." >&5
22845 echo "$as_me: error: cannot run test program while cross compiling
22846 See \`config.log' for more details.
" >&2;}
22847 { (exit 1); exit 1; }; }
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22856 #include <unistd.h>
22859 #include <semaphore.h>
22860 #include <sys/stat.h>
22863 sem_t *a = sem_open("/autocftw
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22867 perror("sem_open
");
22871 res = sem_getvalue(a, &count);
22873 sem_unlink("/autocftw
");
22874 return res==-1 ? 1 : 0;
22879 rm -f conftest$ac_exeext
22880 if { (ac_try="$ac_link"
22881 case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_link") 2>&5
22888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22890 { (case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22895 (eval "$ac_try") 2>&5
22897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22898 (exit $ac_status); }; }; then
22899 { echo "$as_me:$LINENO: result
: no
" >&5
22900 echo "${ECHO_T}no
" >&6; }
22902 echo "$as_me: program exited with status
$ac_status" >&5
22903 echo "$as_me: failed program was
:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22906 ( exit $ac_status )
22907 { echo "$as_me:$LINENO: result
: yes" >&5
22908 echo "${ECHO_T}yes" >&6; }
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_BROKEN_SEM_GETVALUE 1
22916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22921 # determine what size digit to use for Python's longs
22922 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22923 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22924 # Check whether --enable-big-digits was given.
22925 if test "${enable_big_digits+set}" = set; then
22926 enableval=$enable_big_digits; case $enable_big_digits in
22928 enable_big_digits=30 ;;
22930 enable_big_digits=15 ;;
22934 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22935 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22936 { (exit 1); exit 1; }; } ;;
22938 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22939 echo "${ECHO_T}$enable_big_digits" >&6; }
22941 cat >>confdefs.h <<_ACEOF
22942 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22947 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22948 echo "${ECHO_T}no value specified
" >&6; }
22952 # check for wchar.h
22953 if test "${ac_cv_header_wchar_h+set}" = set; then
22954 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22955 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22956 if test "${ac_cv_header_wchar_h+set}" = set; then
22957 echo $ECHO_N "(cached
) $ECHO_C" >&6
22959 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22960 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22962 # Is the header compilable?
22963 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22964 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 $ac_includes_default
22974 rm -f conftest.$ac_objext
22975 if { (ac_try="$ac_compile"
22976 case "(($ac_try" in
22977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978 *) ac_try_echo=$ac_try;;
22980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22981 (eval "$ac_compile") 2>conftest.er1
22983 grep -v '^ *+' conftest.er1 >conftest.err
22985 cat conftest.err >&5
22986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22987 (exit $ac_status); } && {
22988 test -z "$ac_c_werror_flag" ||
22989 test ! -s conftest.err
22990 } && test -s conftest.$ac_objext; then
22991 ac_header_compiler=yes
22993 echo "$as_me: failed program was
:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22996 ac_header_compiler=no
22999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23001 echo "${ECHO_T}$ac_header_compiler" >&6; }
23003 # Is the header present?
23004 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
23005 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
23006 cat >conftest.$ac_ext <<_ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23014 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23015 case "(($ac_try" in
23016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017 *) ac_try_echo=$ac_try;;
23019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23020 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23026 (exit $ac_status); } >/dev/null && {
23027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23028 test ! -s conftest.err
23030 ac_header_preproc=yes
23032 echo "$as_me: failed program was
:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23035 ac_header_preproc=no
23038 rm -f conftest.err conftest.$ac_ext
23039 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23040 echo "${ECHO_T}$ac_header_preproc" >&6; }
23042 # So? What about this header?
23043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23045 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23046 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23047 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
23048 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
23049 ac_header_preproc=yes
23052 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
23053 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
23054 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
23055 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
23056 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
23057 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
23058 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23059 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23060 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
23061 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
23062 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
23063 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
23065 ## -------------------------------------- ##
23066 ## Report this to http://bugs.python.org/ ##
23067 ## -------------------------------------- ##
23069 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23072 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
23073 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
23074 if test "${ac_cv_header_wchar_h+set}" = set; then
23075 echo $ECHO_N "(cached
) $ECHO_C" >&6
23077 ac_cv_header_wchar_h=$ac_header_preproc
23079 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
23080 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23083 if test $ac_cv_header_wchar_h = yes; then
23086 cat >>confdefs.h <<\_ACEOF
23087 #define HAVE_WCHAR_H 1
23099 # determine wchar_t size
23100 if test "$wchar_h" = yes
23102 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
23103 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
23104 if test "${ac_cv_type_wchar_t+set}" = set; then
23105 echo $ECHO_N "(cached
) $ECHO_C" >&6
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23115 typedef wchar_t ac__type_new_;
23119 if ((ac__type_new_ *) 0)
23121 if (sizeof (ac__type_new_))
23127 rm -f conftest.$ac_objext
23128 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23136 grep -v '^ *+' conftest.er1 >conftest.err
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23140 (exit $ac_status); } && {
23141 test -z "$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 } && test -s conftest.$ac_objext; then
23144 ac_cv_type_wchar_t=yes
23146 echo "$as_me: failed program was
:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 ac_cv_type_wchar_t=no
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
23155 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23157 # The cast to long int works around a bug in the HP C Compiler
23158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23160 # This bug is HP SR number 8606223364.
23161 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
23162 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
23163 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23164 echo $ECHO_N "(cached
) $ECHO_C" >&6
23166 if test "$cross_compiling" = yes; then
23167 # Depending upon the size, compute the lo and hi bounds.
23168 cat >conftest.$ac_ext <<_ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23176 typedef wchar_t ac__type_sizeof_;
23180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23196 grep -v '^ *+' conftest.er1 >conftest.err
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest.$ac_objext; then
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23214 typedef wchar_t ac__type_sizeof_;
23218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
23227 case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23232 (eval "$ac_compile") 2>conftest.er1
23234 grep -v '^ *+' conftest.er1 >conftest.err
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23238 (exit $ac_status); } && {
23239 test -z "$ac_c_werror_flag" ||
23240 test ! -s conftest.err
23241 } && test -s conftest.$ac_objext; then
23242 ac_hi=$ac_mid; break
23244 echo "$as_me: failed program was
:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23247 ac_lo=`expr $ac_mid + 1`
23248 if test $ac_lo -le $ac_mid; then
23252 ac_mid=`expr 2 '*' $ac_mid + 1`
23255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 echo "$as_me: failed program was
:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 cat >conftest.$ac_ext <<_ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23269 typedef wchar_t ac__type_sizeof_;
23273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23280 rm -f conftest.$ac_objext
23281 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
23299 cat >conftest.$ac_ext <<_ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23307 typedef wchar_t ac__type_sizeof_;
23311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 ac_lo=$ac_mid; break
23337 echo "$as_me: failed program was
:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_hi=`expr '(' $ac_mid ')' - 1`
23341 if test $ac_mid -le $ac_hi; then
23345 ac_mid=`expr 2 '*' $ac_mid`
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351 echo "$as_me: failed program was
:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 # Binary search between lo and hi bounds.
23362 while test "x
$ac_lo" != "x
$ac_hi"; do
23363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23372 typedef wchar_t ac__type_sizeof_;
23376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23383 rm -f conftest.$ac_objext
23384 if { (ac_try="$ac_compile"
23385 case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23390 (eval "$ac_compile") 2>conftest.er1
23392 grep -v '^ *+' conftest.er1 >conftest.err
23394 cat conftest.err >&5
23395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest.$ac_objext; then
23402 echo "$as_me: failed program was
:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 ac_lo=`expr '(' $ac_mid ')' + 1`
23408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23412 '') if test "$ac_cv_type_wchar_t" = yes; then
23413 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23414 See \
`config.log' for more details." >&5
23415 echo "$as_me: error: cannot compute sizeof (wchar_t)
23416 See \`config.log
' for more details." >&2;}
23417 { (exit 77); exit 77; }; }
23419 ac_cv_sizeof_wchar_t=0
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23431 typedef wchar_t ac__type_sizeof_;
23432 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23433 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23435 #include <stdlib.h>
23440 FILE *f = fopen ("conftest.val", "w");
23443 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23445 long int i = longval ();
23446 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23448 fprintf (f, "%ld\n", i);
23452 unsigned long int i = ulongval ();
23453 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23455 fprintf (f, "%lu\n", i);
23457 return ferror (f) || fclose (f) != 0;
23463 rm -f conftest$ac_exeext
23464 if { (ac_try="$ac_link"
23465 case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_link") 2>&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23474 { (case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_try") 2>&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; }; then
23483 ac_cv_sizeof_wchar_t=`cat conftest.val`
23485 echo "$as_me: program exited with status $ac_status" >&5
23486 echo "$as_me: failed program was:" >&5
23487 sed 's
/^
/|
/' conftest.$ac_ext >&5
23489 ( exit $ac_status )
23490 if test "$ac_cv_type_wchar_t" = yes; then
23491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23492 See \`config.log' for more details.
" >&5
23493 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23494 See \
`config.log' for more details." >&2;}
23495 { (exit 77); exit 77; }; }
23497 ac_cv_sizeof_wchar_t=0
23500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23504 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23505 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23509 cat >>confdefs.h <<_ACEOF
23510 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23516 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23517 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23519 cat >conftest.$ac_ext <<_ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23527 #if TCL_UTF_MAX != 6
23528 # error "NOT UCS4_TCL"
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23542 *) ac_try_echo
=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23547 grep -v '^ *+' conftest.er1
>conftest.err
23549 cat conftest.err
>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest.
$ac_objext; then
23557 cat >>confdefs.h
<<\_ACEOF
23558 #define HAVE_UCS4_TCL 1
23564 echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.
$ac_ext >&5
23570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23571 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23572 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23574 # check whether wchar_t is signed or not
23575 if test "$wchar_h" = yes
23577 # check whether wchar_t is signed or not
23578 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23579 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23580 if test "${ac_cv_wchar_t_signed+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 if test "$cross_compiling" = yes; then
23585 ac_cv_wchar_t_signed
=yes
23587 cat >conftest.
$ac_ext <<_ACEOF
23590 cat confdefs.h
>>conftest.
$ac_ext
23591 cat >>conftest.
$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23597 /* Success: exit code 0 */
23598 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23602 rm -f conftest
$ac_exeext
23603 if { (ac_try
="$ac_link"
23604 case "(($ac_try" in
23605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23606 *) ac_try_echo=$ac_try;;
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609 (eval "$ac_link") 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23613 { (case "(($ac_try" in
23614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23615 *) ac_try_echo
=$ac_try;;
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_try") 2>&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 ac_cv_wchar_t_signed
=yes
23624 echo "$as_me: program exited with status $ac_status" >&5
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.
$ac_ext >&5
23628 ( exit $ac_status )
23629 ac_cv_wchar_t_signed
=no
23631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23637 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23638 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23641 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23642 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23644 # Check whether --with-wide-unicode was given.
23645 if test "${with_wide_unicode+set}" = set; then
23646 withval
=$with_wide_unicode;
23647 if test "$withval" != no
23648 then unicode_size
="4"
23649 else unicode_size
="2"
23654 case "$have_ucs4_tcl" in
23655 yes) unicode_size
="4" ;;
23656 *) unicode_size
="2" ;;
23664 case "$unicode_size" in
23665 4) cat >>confdefs.h
<<\_ACEOF
23666 #define Py_UNICODE_SIZE 4
23669 *) cat >>confdefs.h
<<\_ACEOF
23670 #define Py_UNICODE_SIZE 2
23678 # wchar_t is only usable if it maps to an unsigned type
23679 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23680 -a "$ac_cv_wchar_t_signed" = "no"
23682 PY_UNICODE_TYPE
="wchar_t"
23684 cat >>confdefs.h
<<\_ACEOF
23685 #define HAVE_USABLE_WCHAR_T 1
23688 cat >>confdefs.h
<<\_ACEOF
23689 #define PY_UNICODE_TYPE wchar_t
23692 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23694 PY_UNICODE_TYPE
="unsigned short"
23695 cat >>confdefs.h
<<\_ACEOF
23696 #define PY_UNICODE_TYPE unsigned short
23699 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23701 PY_UNICODE_TYPE
="unsigned long"
23702 cat >>confdefs.h
<<\_ACEOF
23703 #define PY_UNICODE_TYPE unsigned long
23707 PY_UNICODE_TYPE
="no type found"
23709 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23710 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23712 # check for endianness
23713 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23714 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23715 if test "${ac_cv_c_bigendian+set}" = set; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23718 # See if sys/param.h defines the BYTE_ORDER macro.
23719 cat >conftest.
$ac_ext <<_ACEOF
23722 cat confdefs.h
>>conftest.
$ac_ext
23723 cat >>conftest.
$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 #include <sys/types.h>
23726 #include <sys/param.h>
23731 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23732 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23733 bogus endian macros
23740 rm -f conftest.
$ac_objext
23741 if { (ac_try
="$ac_compile"
23742 case "(($ac_try" in
23743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_compile") 2>conftest.er1
23749 grep -v '^ *+' conftest.er1 >conftest.err
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } && {
23754 test -z "$ac_c_werror_flag" ||
23755 test ! -s conftest.err
23756 } && test -s conftest.$ac_objext; then
23757 # It does; now see whether it defined to BIG_ENDIAN or not.
23758 cat >conftest.$ac_ext <<_ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23764 #include <sys/types.h>
23765 #include <sys/param.h>
23770 #if BYTE_ORDER != BIG_ENDIAN
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23782 *) ac_try_echo
=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1
>conftest.err
23789 cat conftest.err
>&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest.
$ac_objext; then
23795 ac_cv_c_bigendian
=yes
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.
$ac_ext >&5
23800 ac_cv_c_bigendian
=no
23803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.
$ac_ext >&5
23808 # It does not; compile a test program.
23809 if test "$cross_compiling" = yes; then
23810 # try to guess the endianness by grepping values into an object file
23811 ac_cv_c_bigendian
=unknown
23812 cat >conftest.
$ac_ext <<_ACEOF
23815 cat confdefs.h
>>conftest.
$ac_ext
23816 cat >>conftest.
$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23818 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23819 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23821 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23822 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23827 _ascii (); _ebcdic ();
23832 rm -f conftest.
$ac_objext
23833 if { (ac_try
="$ac_compile"
23834 case "(($ac_try" in
23835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_compile") 2>conftest.er1
23841 grep -v '^ *+' conftest.er1 >conftest.err
23843 cat conftest.err >&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } && {
23846 test -z "$ac_c_werror_flag" ||
23847 test ! -s conftest.err
23848 } && test -s conftest.$ac_objext; then
23849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23850 ac_cv_c_bigendian=yes
23852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23853 if test "$ac_cv_c_bigendian" = unknown; then
23854 ac_cv_c_bigendian=no
23856 # finding both strings is unlikely to happen, but who knows?
23857 ac_cv_c_bigendian=unknown
23861 echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869 cat >conftest.$ac_ext <<_ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 $ac_includes_default
23880 /* Are we little or big endian? From Harbison&Steele. */
23884 char c[sizeof (long int)];
23887 return u.c[sizeof (long int) - 1] == 1;
23893 rm -f conftest$ac_exeext
23894 if { (ac_try="$ac_link"
23895 case "(($ac_try" in
23896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23897 *) ac_try_echo
=$ac_try;;
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_link") 2>&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23904 { (case "(($ac_try" in
23905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23906 *) ac_try_echo=$ac_try;;
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909 (eval "$ac_try") 2>&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; }; then
23913 ac_cv_c_bigendian=no
23915 echo "$as_me: program exited with status $ac_status" >&5
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ( exit $ac_status )
23920 ac_cv_c_bigendian=yes
23922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23930 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23931 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23932 case $ac_cv_c_bigendian in
23935 cat >>confdefs.h <<\_ACEOF
23936 #define WORDS_BIGENDIAN 1
23942 { { echo "$as_me:$LINENO: error: unknown endianness
23943 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23944 echo "$as_me: error: unknown endianness
23945 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23946 { (exit 1); exit 1; }; } ;;
23950 # Check whether right shifting a negative integer extends the sign bit
23951 # or fills with zeros (like the Cray J90, according to Tim Peters).
23952 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23953 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23954 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23958 if test "$cross_compiling" = yes; then
23959 ac_cv_rshift_extends_sign=yes
23961 cat >conftest.$ac_ext <<_ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23970 exit(((-1)>>3 == -1) ? 0 : 1);
23974 rm -f conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23978 *) ac_try_echo
=$ac_try;;
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_link") 2>&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23985 { (case "(($ac_try" in
23986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990 (eval "$ac_try") 2>&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); }; }; then
23994 ac_cv_rshift_extends_sign=yes
23996 echo "$as_me: program exited with status $ac_status" >&5
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ( exit $ac_status )
24001 ac_cv_rshift_extends_sign=no
24003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24009 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24010 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24011 if test "$ac_cv_rshift_extends_sign" = no
24014 cat >>confdefs.h <<\_ACEOF
24015 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24020 # check for getc_unlocked and related locking functions
24021 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24022 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24023 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24027 cat >conftest.$ac_ext <<_ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24038 FILE *f = fopen("/dev/null", "r");
24047 rm -f conftest.$ac_objext conftest$ac_exeext
24048 if { (ac_try="$ac_link"
24049 case "(($ac_try" in
24050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24051 *) ac_try_echo
=$ac_try;;
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_link") 2>conftest.er1
24056 grep -v '^ *+' conftest.er1
>conftest.err
24058 cat conftest.err
>&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest
$ac_exeext &&
24064 $as_test_x conftest
$ac_exeext; then
24065 ac_cv_have_getc_unlocked
=yes
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.
$ac_ext >&5
24070 ac_cv_have_getc_unlocked
=no
24073 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24074 conftest
$ac_exeext conftest.
$ac_ext
24077 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24078 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24079 if test "$ac_cv_have_getc_unlocked" = yes
24082 cat >>confdefs.h
<<\_ACEOF
24083 #define HAVE_GETC_UNLOCKED 1
24088 # check where readline lives
24089 # save the value of LIBS so we don't actually link Python with readline
24090 LIBS_no_readline
=$LIBS
24092 # On some systems we need to link readline to a termcap compatible
24093 # library. NOTE: Keep the precedence of listed libraries synchronised
24095 py_cv_lib_readline
=no
24096 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24097 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24098 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
24099 if test -z "$py_libtermcap"; then
24100 READLINE_LIBS
="-lreadline"
24102 READLINE_LIBS
="-lreadline -l$py_libtermcap"
24104 LIBS
="$READLINE_LIBS $LIBS_no_readline"
24105 cat >conftest.
$ac_ext <<_ACEOF
24108 cat confdefs.h
>>conftest.
$ac_ext
24109 cat >>conftest.
$ac_ext <<_ACEOF
24110 /* end confdefs.h. */
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24122 return readline ();
24127 rm -f conftest.
$ac_objext conftest
$ac_exeext
24128 if { (ac_try
="$ac_link"
24129 case "(($ac_try" in
24130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24131 *) ac_try_echo=$ac_try;;
24133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24134 (eval "$ac_link") 2>conftest.er1
24136 grep -v '^ *+' conftest.er1 >conftest.err
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } && {
24141 test -z "$ac_c_werror_flag" ||
24142 test ! -s conftest.err
24143 } && test -s conftest$ac_exeext &&
24144 $as_test_x conftest$ac_exeext; then
24145 py_cv_lib_readline=yes
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24154 conftest$ac_exeext conftest.$ac_ext
24155 if test $py_cv_lib_readline = yes; then
24159 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24160 #AC_SUBST([READLINE_LIBS])
24161 if test $py_cv_lib_readline = no; then
24162 { echo "$as_me:$LINENO: result: none" >&5
24163 echo "${ECHO_T}none" >&6; }
24165 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24166 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24168 cat >>confdefs.h <<\_ACEOF
24169 #define HAVE_LIBREADLINE 1
24174 # check for readline 2.1
24175 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24176 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24177 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24178 echo $ECHO_N "(cached) $ECHO_C" >&6
24180 ac_check_lib_save_LIBS=$LIBS
24181 LIBS="-lreadline $READLINE_LIBS $LIBS"
24182 cat >conftest.$ac_ext <<_ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24189 /* Override any GCC internal prototype to avoid an error.
24190 Use char because int might match the return type of a GCC
24191 builtin and then its argument prototype would still apply. */
24195 char rl_callback_handler_install ();
24199 return rl_callback_handler_install ();
24204 rm -f conftest.$ac_objext conftest$ac_exeext
24205 if { (ac_try="$ac_link"
24206 case "(($ac_try" in
24207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24208 *) ac_try_echo
=$ac_try;;
24210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211 (eval "$ac_link") 2>conftest.er1
24213 grep -v '^ *+' conftest.er1
>conftest.err
24215 cat conftest.err
>&5
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } && {
24218 test -z "$ac_c_werror_flag" ||
24219 test ! -s conftest.err
24220 } && test -s conftest
$ac_exeext &&
24221 $as_test_x conftest
$ac_exeext; then
24222 ac_cv_lib_readline_rl_callback_handler_install
=yes
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.
$ac_ext >&5
24227 ac_cv_lib_readline_rl_callback_handler_install
=no
24230 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24231 conftest
$ac_exeext conftest.
$ac_ext
24232 LIBS
=$ac_check_lib_save_LIBS
24234 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24235 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24236 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24238 cat >>confdefs.h
<<\_ACEOF
24239 #define HAVE_RL_CALLBACK 1
24245 # check for readline 2.2
24246 cat >conftest.
$ac_ext <<_ACEOF
24249 cat confdefs.h
>>conftest.
$ac_ext
24250 cat >>conftest.
$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 #include <readline/readline.h>
24254 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24255 case "(($ac_try" in
24256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24262 grep -v '^ *+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } >/dev/null && {
24267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24278 rm -f conftest.err conftest.$ac_ext
24279 if test $have_readline = yes
24281 cat >conftest.$ac_ext <<_ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h. */
24287 #include <readline/readline.h>
24290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24291 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24293 cat >>confdefs.h <<\_ACEOF
24294 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24300 cat >conftest.$ac_ext <<_ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306 #include <readline/readline.h>
24309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24310 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24312 cat >>confdefs.h <<\_ACEOF
24313 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24321 # check for readline 4.0
24322 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24323 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24324 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 ac_check_lib_save_LIBS=$LIBS
24328 LIBS="-lreadline $READLINE_LIBS $LIBS"
24329 cat >conftest.$ac_ext <<_ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h. */
24336 /* Override any GCC internal prototype to avoid an error.
24337 Use char because int might match the return type of a GCC
24338 builtin and then its argument prototype would still apply. */
24342 char rl_pre_input_hook ();
24346 return rl_pre_input_hook ();
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (ac_try="$ac_link"
24353 case "(($ac_try" in
24354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24355 *) ac_try_echo
=$ac_try;;
24357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358 (eval "$ac_link") 2>conftest.er1
24360 grep -v '^ *+' conftest.er1
>conftest.err
24362 cat conftest.err
>&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } && {
24365 test -z "$ac_c_werror_flag" ||
24366 test ! -s conftest.err
24367 } && test -s conftest
$ac_exeext &&
24368 $as_test_x conftest
$ac_exeext; then
24369 ac_cv_lib_readline_rl_pre_input_hook
=yes
24371 echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.
$ac_ext >&5
24374 ac_cv_lib_readline_rl_pre_input_hook
=no
24377 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24378 conftest
$ac_exeext conftest.
$ac_ext
24379 LIBS
=$ac_check_lib_save_LIBS
24381 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24382 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24383 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24385 cat >>confdefs.h
<<\_ACEOF
24386 #define HAVE_RL_PRE_INPUT_HOOK 1
24393 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24394 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24395 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 ac_check_lib_save_LIBS
=$LIBS
24399 LIBS
="-lreadline $READLINE_LIBS $LIBS"
24400 cat >conftest.
$ac_ext <<_ACEOF
24403 cat confdefs.h
>>conftest.
$ac_ext
24404 cat >>conftest.
$ac_ext <<_ACEOF
24405 /* end confdefs.h. */
24407 /* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24413 char rl_completion_display_matches_hook ();
24417 return rl_completion_display_matches_hook ();
24422 rm -f conftest.
$ac_objext conftest
$ac_exeext
24423 if { (ac_try
="$ac_link"
24424 case "(($ac_try" in
24425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429 (eval "$ac_link") 2>conftest.er1
24431 grep -v '^ *+' conftest.er1 >conftest.err
24433 cat conftest.err >&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } && {
24436 test -z "$ac_c_werror_flag" ||
24437 test ! -s conftest.err
24438 } && test -s conftest$ac_exeext &&
24439 $as_test_x conftest$ac_exeext; then
24440 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24449 conftest$ac_exeext conftest.$ac_ext
24450 LIBS=$ac_check_lib_save_LIBS
24452 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24453 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24454 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24456 cat >>confdefs.h <<\_ACEOF
24457 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24463 # check for readline 4.2
24464 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24465 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24466 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 ac_check_lib_save_LIBS=$LIBS
24470 LIBS="-lreadline $READLINE_LIBS $LIBS"
24471 cat >conftest.$ac_ext <<_ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24478 /* Override any GCC internal prototype to avoid an error.
24479 Use char because int might match the return type of a GCC
24480 builtin and then its argument prototype would still apply. */
24484 char rl_completion_matches ();
24488 return rl_completion_matches ();
24493 rm -f conftest.$ac_objext conftest$ac_exeext
24494 if { (ac_try="$ac_link"
24495 case "(($ac_try" in
24496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24497 *) ac_try_echo
=$ac_try;;
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_link") 2>conftest.er1
24502 grep -v '^ *+' conftest.er1
>conftest.err
24504 cat conftest.err
>&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest
$ac_exeext &&
24510 $as_test_x conftest
$ac_exeext; then
24511 ac_cv_lib_readline_rl_completion_matches
=yes
24513 echo "$as_me: failed program was:" >&5
24514 sed 's/^/| /' conftest.
$ac_ext >&5
24516 ac_cv_lib_readline_rl_completion_matches
=no
24519 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24520 conftest
$ac_exeext conftest.
$ac_ext
24521 LIBS
=$ac_check_lib_save_LIBS
24523 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24524 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24525 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24527 cat >>confdefs.h
<<\_ACEOF
24528 #define HAVE_RL_COMPLETION_MATCHES 1
24534 # also in readline 4.2
24535 cat >conftest.
$ac_ext <<_ACEOF
24538 cat confdefs.h
>>conftest.
$ac_ext
24539 cat >>conftest.
$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 #include <readline/readline.h>
24543 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24544 case "(($ac_try" in
24545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } >/dev/null && {
24556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24567 rm -f conftest.err conftest.$ac_ext
24568 if test $have_readline = yes
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24576 #include <readline/readline.h>
24579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24580 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24582 cat >>confdefs.h <<\_ACEOF
24583 #define HAVE_RL_CATCH_SIGNAL 1
24591 # End of readline checks: restore LIBS
24592 LIBS=$LIBS_no_readline
24594 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24595 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24596 if test "${ac_cv_broken_nice+set}" = set; then
24597 echo $ECHO_N "(cached) $ECHO_C" >&6
24600 if test "$cross_compiling" = yes; then
24601 ac_cv_broken_nice=no
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24612 int val1 = nice(1);
24613 if (val1 != -1 && val1 == nice(2))
24619 rm -f conftest$ac_exeext
24620 if { (ac_try="$ac_link"
24621 case "(($ac_try" in
24622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24623 *) ac_try_echo
=$ac_try;;
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_link") 2>&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24630 { (case "(($ac_try" in
24631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_try") 2>&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); }; }; then
24639 ac_cv_broken_nice=yes
24641 echo "$as_me: program exited with status $ac_status" >&5
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24645 ( exit $ac_status )
24646 ac_cv_broken_nice=no
24648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24654 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24655 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24656 if test "$ac_cv_broken_nice" = yes
24659 cat >>confdefs.h <<\_ACEOF
24660 #define HAVE_BROKEN_NICE 1
24665 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24666 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24667 if test "$cross_compiling" = yes; then
24668 ac_cv_broken_poll=no
24670 cat >conftest.$ac_ext <<_ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24681 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24685 int poll_test = poll (&poll_struct, 1, 0);
24691 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24702 rm -f conftest$ac_exeext
24703 if { (ac_try="$ac_link"
24704 case "(($ac_try" in
24705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24706 *) ac_try_echo
=$ac_try;;
24708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24709 (eval "$ac_link") 2>&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24713 { (case "(($ac_try" in
24714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718 (eval "$ac_try") 2>&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; }; then
24722 ac_cv_broken_poll=yes
24724 echo "$as_me: program exited with status $ac_status" >&5
24725 echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24728 ( exit $ac_status )
24729 ac_cv_broken_poll=no
24731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24735 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24736 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24737 if test "$ac_cv_broken_poll" = yes
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_BROKEN_POLL 1
24746 # Before we can test tzset, we need to check if struct tm has a tm_zone
24747 # (which is not required by ISO C or UNIX spec) and/or if we support
24749 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24754 cat >conftest.$ac_ext <<_ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 #include <sys/types.h>
24761 #include <$ac_cv_struct_tm>
24767 static struct tm ac_aggr;
24768 if (ac_aggr.tm_zone)
24774 rm -f conftest.$ac_objext
24775 if { (ac_try="$ac_compile"
24776 case "(($ac_try" in
24777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24778 *) ac_try_echo
=$ac_try;;
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781 (eval "$ac_compile") 2>conftest.er1
24783 grep -v '^ *+' conftest.er1
>conftest.err
24785 cat conftest.err
>&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && {
24788 test -z "$ac_c_werror_flag" ||
24789 test ! -s conftest.err
24790 } && test -s conftest.
$ac_objext; then
24791 ac_cv_member_struct_tm_tm_zone
=yes
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.
$ac_ext >&5
24796 cat >conftest.
$ac_ext <<_ACEOF
24799 cat confdefs.h
>>conftest.
$ac_ext
24800 cat >>conftest.
$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802 #include <sys/types.h>
24803 #include <$ac_cv_struct_tm>
24809 static struct tm ac_aggr;
24810 if (sizeof ac_aggr.tm_zone)
24816 rm -f conftest.
$ac_objext
24817 if { (ac_try
="$ac_compile"
24818 case "(($ac_try" in
24819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24820 *) ac_try_echo=$ac_try;;
24822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24823 (eval "$ac_compile") 2>conftest.er1
24825 grep -v '^ *+' conftest.er1 >conftest.err
24827 cat conftest.err >&5
24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829 (exit $ac_status); } && {
24830 test -z "$ac_c_werror_flag" ||
24831 test ! -s conftest.err
24832 } && test -s conftest.$ac_objext; then
24833 ac_cv_member_struct_tm_tm_zone=yes
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24838 ac_cv_member_struct_tm_tm_zone=no
24841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24847 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24848 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24850 cat >>confdefs.h <<_ACEOF
24851 #define HAVE_STRUCT_TM_TM_ZONE 1
24857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24859 cat >>confdefs.h <<\_ACEOF
24860 #define HAVE_TM_ZONE 1
24864 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24865 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24866 if test "${ac_cv_have_decl_tzname+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24888 rm -f conftest.$ac_objext
24889 if { (ac_try="$ac_compile"
24890 case "(($ac_try" in
24891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24892 *) ac_try_echo
=$ac_try;;
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895 (eval "$ac_compile") 2>conftest.er1
24897 grep -v '^ *+' conftest.er1
>conftest.err
24899 cat conftest.err
>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } && {
24902 test -z "$ac_c_werror_flag" ||
24903 test ! -s conftest.err
24904 } && test -s conftest.
$ac_objext; then
24905 ac_cv_have_decl_tzname
=yes
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.
$ac_ext >&5
24910 ac_cv_have_decl_tzname
=no
24913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24916 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24917 if test $ac_cv_have_decl_tzname = yes; then
24919 cat >>confdefs.h
<<_ACEOF
24920 #define HAVE_DECL_TZNAME 1
24925 cat >>confdefs.h
<<_ACEOF
24926 #define HAVE_DECL_TZNAME 0
24933 { echo "$as_me:$LINENO: checking for tzname" >&5
24934 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24935 if test "${ac_cv_var_tzname+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24938 cat >conftest.
$ac_ext <<_ACEOF
24941 cat confdefs.h
>>conftest.
$ac_ext
24942 cat >>conftest.
$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24945 #if !HAVE_DECL_TZNAME
24946 extern char *tzname[];
24952 return tzname[0][0];
24957 rm -f conftest.
$ac_objext conftest
$ac_exeext
24958 if { (ac_try
="$ac_link"
24959 case "(($ac_try" in
24960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964 (eval "$ac_link") 2>conftest.er1
24966 grep -v '^ *+' conftest.er1 >conftest.err
24968 cat conftest.err >&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } && {
24971 test -z "$ac_c_werror_flag" ||
24972 test ! -s conftest.err
24973 } && test -s conftest$ac_exeext &&
24974 $as_test_x conftest$ac_exeext; then
24975 ac_cv_var_tzname=yes
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ac_cv_var_tzname=no
24983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24984 conftest$ac_exeext conftest.$ac_ext
24986 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24987 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24988 if test $ac_cv_var_tzname = yes; then
24990 cat >>confdefs.h <<\_ACEOF
24991 #define HAVE_TZNAME 1
24998 # check tzset(3) exists and works like we expect it to
24999 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25000 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25001 if test "${ac_cv_working_tzset+set}" = set; then
25002 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 if test "$cross_compiling" = yes; then
25006 ac_cv_working_tzset=no
25008 cat >conftest.$ac_ext <<_ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25015 #include <stdlib.h>
25017 #include <string.h>
25020 extern char *tzname[];
25025 /* Note that we need to ensure that not only does tzset(3)
25026 do 'something' with localtime, but it works as documented
25027 in the library reference and as expected by the test suite.
25028 This includes making sure that tzname is set properly if
25029 tm->tm_zone does not exist since it is the alternative way
25030 of getting timezone info.
25032 Red Hat 6.2 doesn't understand the southern hemisphere
25033 after New Year's Day.
25036 time_t groundhogday = 1044144000; /* GMT-based */
25037 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25039 putenv("TZ=UTC+0");
25041 if (localtime(&groundhogday)->tm_hour != 0)
25044 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25045 if (strcmp(tzname[0], "UTC") ||
25046 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25050 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25052 if (localtime(&groundhogday)->tm_hour != 19)
25055 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25059 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25061 if (localtime(&groundhogday)->tm_hour != 11)
25064 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25068 #if HAVE_STRUCT_TM_TM_ZONE
25069 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25071 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25079 rm -f conftest$ac_exeext
25080 if { (ac_try="$ac_link"
25081 case "(($ac_try" in
25082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25083 *) ac_try_echo
=$ac_try;;
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_link") 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25090 { (case "(($ac_try" in
25091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25092 *) ac_try_echo=$ac_try;;
25094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25095 (eval "$ac_try") 2>&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 ac_cv_working_tzset=yes
25101 echo "$as_me: program exited with status $ac_status" >&5
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 ( exit $ac_status )
25106 ac_cv_working_tzset=no
25108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25114 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25115 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25116 if test "$ac_cv_working_tzset" = yes
25119 cat >>confdefs.h <<\_ACEOF
25120 #define HAVE_WORKING_TZSET 1
25125 # Look for subsecond timestamps in struct stat
25126 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25127 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25128 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25129 echo $ECHO_N "(cached) $ECHO_C" >&6
25131 cat >conftest.$ac_ext <<_ACEOF
25134 cat confdefs.h >>conftest.$ac_ext
25135 cat >>conftest.$ac_ext <<_ACEOF
25136 /* end confdefs.h. */
25137 #include <sys/stat.h>
25143 st.st_mtim.tv_nsec = 1;
25149 rm -f conftest.$ac_objext
25150 if { (ac_try="$ac_compile"
25151 case "(($ac_try" in
25152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25153 *) ac_try_echo
=$ac_try;;
25155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25156 (eval "$ac_compile") 2>conftest.er1
25158 grep -v '^ *+' conftest.er1
>conftest.err
25160 cat conftest.err
>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); } && {
25163 test -z "$ac_c_werror_flag" ||
25164 test ! -s conftest.err
25165 } && test -s conftest.
$ac_objext; then
25166 ac_cv_stat_tv_nsec
=yes
25168 echo "$as_me: failed program was:" >&5
25169 sed 's/^/| /' conftest.
$ac_ext >&5
25171 ac_cv_stat_tv_nsec
=no
25174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25178 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25179 if test "$ac_cv_stat_tv_nsec" = yes
25182 cat >>confdefs.h
<<\_ACEOF
25183 #define HAVE_STAT_TV_NSEC 1
25188 # Look for BSD style subsecond timestamps in struct stat
25189 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25190 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25191 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 cat >conftest.
$ac_ext <<_ACEOF
25197 cat confdefs.h
>>conftest.
$ac_ext
25198 cat >>conftest.
$ac_ext <<_ACEOF
25199 /* end confdefs.h. */
25200 #include <sys/stat.h>
25206 st.st_mtimespec.tv_nsec = 1;
25212 rm -f conftest.
$ac_objext
25213 if { (ac_try
="$ac_compile"
25214 case "(($ac_try" in
25215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_compile") 2>conftest.er1
25221 grep -v '^ *+' conftest.er1 >conftest.err
25223 cat conftest.err >&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && {
25226 test -z "$ac_c_werror_flag" ||
25227 test ! -s conftest.err
25228 } && test -s conftest.$ac_objext; then
25229 ac_cv_stat_tv_nsec2=yes
25231 echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25234 ac_cv_stat_tv_nsec2=no
25237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25240 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25241 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25242 if test "$ac_cv_stat_tv_nsec2" = yes
25245 cat >>confdefs.h <<\_ACEOF
25246 #define HAVE_STAT_TV_NSEC2 1
25251 # On HP/UX 11.0, mvwdelch is a block with a return statement
25252 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25253 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25254 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25255 echo $ECHO_N "(cached) $ECHO_C" >&6
25257 cat >conftest.$ac_ext <<_ACEOF
25260 cat confdefs.h >>conftest.$ac_ext
25261 cat >>conftest.$ac_ext <<_ACEOF
25262 /* end confdefs.h. */
25263 #include <curses.h>
25269 rtn = mvwdelch(0,0,0);
25275 rm -f conftest.$ac_objext
25276 if { (ac_try="$ac_compile"
25277 case "(($ac_try" in
25278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25279 *) ac_try_echo
=$ac_try;;
25281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282 (eval "$ac_compile") 2>conftest.er1
25284 grep -v '^ *+' conftest.er1
>conftest.err
25286 cat conftest.err
>&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } && {
25289 test -z "$ac_c_werror_flag" ||
25290 test ! -s conftest.err
25291 } && test -s conftest.
$ac_objext; then
25292 ac_cv_mvwdelch_is_expression
=yes
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.
$ac_ext >&5
25297 ac_cv_mvwdelch_is_expression
=no
25300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25303 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25304 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25306 if test "$ac_cv_mvwdelch_is_expression" = yes
25309 cat >>confdefs.h
<<\_ACEOF
25310 #define MVWDELCH_IS_EXPRESSION 1
25315 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25316 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25317 if test "${ac_cv_window_has_flags+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25320 cat >conftest.
$ac_ext <<_ACEOF
25323 cat confdefs.h
>>conftest.
$ac_ext
25324 cat >>conftest.
$ac_ext <<_ACEOF
25325 /* end confdefs.h. */
25326 #include <curses.h>
25338 rm -f conftest.
$ac_objext
25339 if { (ac_try
="$ac_compile"
25340 case "(($ac_try" in
25341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25342 *) ac_try_echo=$ac_try;;
25344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25345 (eval "$ac_compile") 2>conftest.er1
25347 grep -v '^ *+' conftest.er1 >conftest.err
25349 cat conftest.err >&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } && {
25352 test -z "$ac_c_werror_flag" ||
25353 test ! -s conftest.err
25354 } && test -s conftest.$ac_objext; then
25355 ac_cv_window_has_flags=yes
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25360 ac_cv_window_has_flags=no
25363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25366 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25367 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25370 if test "$ac_cv_window_has_flags" = yes
25373 cat >>confdefs.h <<\_ACEOF
25374 #define WINDOW_HAS_FLAGS 1
25379 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25380 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 #include <curses.h>
25391 void *x=is_term_resized
25396 rm -f conftest.$ac_objext
25397 if { (ac_try="$ac_compile"
25398 case "(($ac_try" in
25399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25400 *) ac_try_echo
=$ac_try;;
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403 (eval "$ac_compile") 2>conftest.er1
25405 grep -v '^ *+' conftest.er1
>conftest.err
25407 cat conftest.err
>&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } && {
25410 test -z "$ac_c_werror_flag" ||
25411 test ! -s conftest.err
25412 } && test -s conftest.
$ac_objext; then
25414 cat >>confdefs.h
<<\_ACEOF
25415 #define HAVE_CURSES_IS_TERM_RESIZED 1
25418 { echo "$as_me:$LINENO: result: yes" >&5
25419 echo "${ECHO_T}yes" >&6; }
25421 echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.
$ac_ext >&5
25424 { echo "$as_me:$LINENO: result: no" >&5
25425 echo "${ECHO_T}no" >&6; }
25429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25431 { echo "$as_me:$LINENO: checking for resize_term" >&5
25432 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25433 cat >conftest.
$ac_ext <<_ACEOF
25436 cat confdefs.h
>>conftest.
$ac_ext
25437 cat >>conftest.
$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 #include <curses.h>
25443 void *x=resize_term
25448 rm -f conftest.
$ac_objext
25449 if { (ac_try
="$ac_compile"
25450 case "(($ac_try" in
25451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_compile") 2>conftest.er1
25457 grep -v '^ *+' conftest.er1 >conftest.err
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } && {
25462 test -z "$ac_c_werror_flag" ||
25463 test ! -s conftest.err
25464 } && test -s conftest.$ac_objext; then
25466 cat >>confdefs.h <<\_ACEOF
25467 #define HAVE_CURSES_RESIZE_TERM 1
25470 { echo "$as_me:$LINENO: result: yes" >&5
25471 echo "${ECHO_T}yes" >&6; }
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 { echo "$as_me:$LINENO: result: no" >&5
25477 echo "${ECHO_T}no" >&6; }
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25484 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25485 cat >conftest.$ac_ext <<_ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 #include <curses.h>
25500 rm -f conftest.$ac_objext
25501 if { (ac_try="$ac_compile"
25502 case "(($ac_try" in
25503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25504 *) ac_try_echo
=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_compile") 2>conftest.er1
25509 grep -v '^ *+' conftest.er1
>conftest.err
25511 cat conftest.err
>&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } && {
25514 test -z "$ac_c_werror_flag" ||
25515 test ! -s conftest.err
25516 } && test -s conftest.
$ac_objext; then
25518 cat >>confdefs.h
<<\_ACEOF
25519 #define HAVE_CURSES_RESIZETERM 1
25522 { echo "$as_me:$LINENO: result: yes" >&5
25523 echo "${ECHO_T}yes" >&6; }
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.
$ac_ext >&5
25528 { echo "$as_me:$LINENO: result: no" >&5
25529 echo "${ECHO_T}no" >&6; }
25533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25535 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25536 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25538 if test -r /dev
/ptmx
25540 { echo "$as_me:$LINENO: result: yes" >&5
25541 echo "${ECHO_T}yes" >&6; }
25543 cat >>confdefs.h
<<\_ACEOF
25544 #define HAVE_DEV_PTMX 1
25548 { echo "$as_me:$LINENO: result: no" >&5
25549 echo "${ECHO_T}no" >&6; }
25552 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25553 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25555 if test -r /dev
/ptc
25557 { echo "$as_me:$LINENO: result: yes" >&5
25558 echo "${ECHO_T}yes" >&6; }
25560 cat >>confdefs.h
<<\_ACEOF
25561 #define HAVE_DEV_PTC 1
25565 { echo "$as_me:$LINENO: result: no" >&5
25566 echo "${ECHO_T}no" >&6; }
25569 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25570 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25571 if test "$cross_compiling" = yes; then
25572 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25573 See \`config.log' for more details." >&5
25574 echo "$as_me: error: cannot run test program while cross compiling
25575 See \`config.log' for more details." >&2;}
25576 { (exit 1); exit 1; }; }
25578 cat >conftest.
$ac_ext <<_ACEOF
25581 cat confdefs.h
>>conftest.
$ac_ext
25582 cat >>conftest.
$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25585 #include <stddef.h>
25586 #include <string.h>
25588 #ifdef HAVE_SYS_TYPES_H
25589 #include <sys/types.h>
25592 #ifdef HAVE_SSIZE_T
25593 typedef ssize_t Py_ssize_t;
25594 #elif SIZEOF_VOID_P == SIZEOF_LONG
25595 typedef long Py_ssize_t;
25597 typedef int Py_ssize_t;
25604 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25607 if (strcmp(buffer, "123"))
25610 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25613 if (strcmp(buffer, "-123"))
25619 rm -f conftest
$ac_exeext
25620 if { (ac_try
="$ac_link"
25621 case "(($ac_try" in
25622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25623 *) ac_try_echo=$ac_try;;
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626 (eval "$ac_link") 2>&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25630 { (case "(($ac_try" in
25631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25632 *) ac_try_echo
=$ac_try;;
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635 (eval "$ac_try") 2>&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 { echo "$as_me:$LINENO: result: yes" >&5
25640 echo "${ECHO_T}yes" >&6; }
25642 cat >>confdefs.h
<<\_ACEOF
25643 #define PY_FORMAT_SIZE_T "z"
25647 echo "$as_me: program exited with status $ac_status" >&5
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.
$ac_ext >&5
25651 ( exit $ac_status )
25652 { echo "$as_me:$LINENO: result: no" >&5
25653 echo "${ECHO_T}no" >&6; }
25655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25660 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25661 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25662 if test "${ac_cv_type_socklen_t+set}" = set; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25665 cat >conftest.
$ac_ext <<_ACEOF
25668 cat confdefs.h
>>conftest.
$ac_ext
25669 cat >>conftest.
$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25672 #ifdef HAVE_SYS_TYPES_H
25673 #include <sys/types.h>
25675 #ifdef HAVE_SYS_SOCKET_H
25676 #include <sys/socket.h>
25680 typedef socklen_t ac__type_new_;
25684 if ((ac__type_new_ *) 0)
25686 if (sizeof (ac__type_new_))
25692 rm -f conftest.
$ac_objext
25693 if { (ac_try
="$ac_compile"
25694 case "(($ac_try" in
25695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699 (eval "$ac_compile") 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } && {
25706 test -z "$ac_c_werror_flag" ||
25707 test ! -s conftest.err
25708 } && test -s conftest.$ac_objext; then
25709 ac_cv_type_socklen_t=yes
25711 echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25714 ac_cv_type_socklen_t=no
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25719 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25720 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25721 if test $ac_cv_type_socklen_t = yes; then
25725 cat >>confdefs.h <<\_ACEOF
25726 #define socklen_t int
25732 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25733 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25734 if test "$cross_compiling" = yes; then
25735 ac_cv_broken_mbstowcs=no
25737 cat >conftest.$ac_ext <<_ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25747 const char *str = "text";
25748 len = mbstowcs(NULL, str, 0);
25753 rm -f conftest$ac_exeext
25754 if { (ac_try="$ac_link"
25755 case "(($ac_try" in
25756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25757 *) ac_try_echo
=$ac_try;;
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_link") 2>&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25764 { (case "(($ac_try" in
25765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25766 *) ac_try_echo=$ac_try;;
25768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25769 (eval "$ac_try") 2>&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; }; then
25773 ac_cv_broken_mbstowcs=no
25775 echo "$as_me: program exited with status $ac_status" >&5
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ( exit $ac_status )
25780 ac_cv_broken_mbstowcs=yes
25782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25786 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25787 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25788 if test "$ac_cv_broken_mbstowcs" = yes
25791 cat >>confdefs.h <<\_ACEOF
25792 #define HAVE_BROKEN_MBSTOWCS 1
25797 # Check for --with-computed-gotos
25798 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25799 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25801 # Check whether --with-computed-gotos was given.
25802 if test "${with_computed_gotos+set}" = set; then
25803 withval=$with_computed_gotos;
25804 if test "$withval" != no
25807 cat >>confdefs.h <<\_ACEOF
25808 #define USE_COMPUTED_GOTOS 1
25811 { echo "$as_me:$LINENO: result: yes" >&5
25812 echo "${ECHO_T}yes" >&6; }
25813 else { echo "$as_me:$LINENO: result: no" >&5
25814 echo "${ECHO_T}no" >&6; }
25817 { echo "$as_me:$LINENO: result: no" >&5
25818 echo "${ECHO_T}no" >&6; }
25822 if test $ac_sys_system = Darwin
25824 LIBS="$LIBS -framework CoreFoundation"
25831 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25833 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25837 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25838 { echo "$as_me:$LINENO: checking for build directories" >&5
25839 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25840 for dir in $SRCDIRS; do
25841 if test ! -d $dir; then
25845 { echo "$as_me:$LINENO: result: done" >&5
25846 echo "${ECHO_T}done" >&6; }
25848 # generate output files
25849 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25851 cat >confcache <<\_ACEOF
25852 # This file is a shell script that caches the results of configure
25853 # tests run on this system so they can be shared between configure
25854 # scripts and configure runs, see configure's option --config-cache.
25855 # It is not useful on other systems. If it contains results you don't
25856 # want to keep, you may remove or edit it.
25858 # config.status only pays attention to the cache file if you give it
25859 # the --recheck option to rerun configure.
25861 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25863 # following values.
25867 # The following way of writing the cache mishandles newlines in values,
25868 # but we know of no workaround that is simple, portable, and efficient.
25869 # So, we kill variables containing newlines.
25870 # Ultrix sh set writes to stderr and can't be redirected directly,
25871 # and sets the high bit in the cache file unless we assign to the vars.
25873 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25874 eval ac_val
=\$
$ac_var
25878 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25879 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25882 _ | IFS | as_nl
) ;; #(
25883 *) $as_unset $ac_var ;;
25889 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25890 *${as_nl}ac_space
=\
*)
25891 # `set' does not quote correctly, so add quotes (double-quote
25892 # substitution turns \\\\ into \\, and sed turns \\ into \).
25895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25898 # `set' quotes correctly as required by POSIX, so do not add quotes.
25899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25912 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25913 if test -w "$cache_file"; then
25914 test "x$cache_file" != "x/dev/null" &&
25915 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25916 echo "$as_me: updating cache $cache_file" >&6;}
25917 cat confcache
>$cache_file
25919 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25920 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25925 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25926 # Let make expand exec_prefix.
25927 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25929 DEFS
=-DHAVE_CONFIG_H
25933 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25934 # 1. Remove the extension, and $U if already installed.
25935 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25936 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25938 # will be set to the directory where LIBOBJS objects are built.
25939 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25940 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25942 LIBOBJS
=$ac_libobjs
25944 LTLIBOBJS
=$ac_ltlibobjs
25948 : ${CONFIG_STATUS=./config.status}
25949 ac_clean_files_save
=$ac_clean_files
25950 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25953 cat >$CONFIG_STATUS <<_ACEOF
25955 # Generated by $as_me.
25956 # Run this file to recreate the current configuration.
25957 # Compiler output produced by configure, useful for debugging
25958 # configure, is in config.log if it exists.
25961 ac_cs_recheck=false
25963 SHELL=\${CONFIG_SHELL-$SHELL}
25966 cat >>$CONFIG_STATUS <<\_ACEOF
25967 ## --------------------- ##
25968 ## M4sh Initialization. ##
25969 ## --------------------- ##
25971 # Be more Bourne compatible
25972 DUALCASE
=1; export DUALCASE
# for MKS sh
25973 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25976 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25977 # is contrary to our usage. Disable this feature.
25978 alias -g '${1+"$@"}'='"$@"'
25979 setopt NO_GLOB_SUBST
25981 case `(set -o) 2>/dev/null` in
25982 *posix
*) set -o posix
;;
25991 # Avoid depending upon Character Ranges.
25992 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25993 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25994 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25995 as_cr_digits
='0123456789'
25996 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25998 # The user is always right.
25999 if test "${PATH_SEPARATOR+set}" != set; then
26000 echo "#! /bin/sh" >conf$$.sh
26001 echo "exit 0" >>conf$$.sh
26003 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26011 # Support unset when possible.
26012 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26020 # We need space, tab and new line, in precisely that order. Quoting is
26021 # there to prevent editors from complaining about space-tab.
26022 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26023 # splitting by setting IFS to empty value.)
26028 # Find who we are. Look in the path if we contain no directory separator.
26030 *[\\/]* ) as_myself
=$0 ;;
26031 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26032 for as_dir
in $PATH
26035 test -z "$as_dir" && as_dir
=.
26036 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26042 # We did not find ourselves, most probably we were run as `sh COMMAND'
26043 # in which case we are not to be found in the path.
26044 if test "x$as_myself" = x
; then
26047 if test ! -f "$as_myself"; then
26048 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26049 { (exit 1); exit 1; }
26052 # Work around bugs in pre-3.0 UWIN ksh.
26053 for as_var
in ENV MAIL MAILPATH
26054 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26062 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26063 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26064 LC_TELEPHONE LC_TIME
26066 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26067 eval $as_var=C
; export $as_var
26069 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26073 # Required to use basename.
26074 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26075 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26081 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26082 as_basename
=basename
26088 # Name of the executable.
26089 as_me
=`$as_basename -- "$0" ||
26090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26091 X"$0" : 'X\(//\)$' \| \
26092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26094 sed '/^.*\/\([^/][^/]*\)\/*$/{
26113 as_lineno_1
=$LINENO
26114 as_lineno_2
=$LINENO
26115 test "x$as_lineno_1" != "x$as_lineno_2" &&
26116 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26118 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26119 # uniformly replaced by the line number. The first 'sed' inserts a
26120 # line-number line after each line using $LINENO; the second 'sed'
26121 # does the real work. The second script uses 'N' to pair each
26122 # line-number line with the line containing $LINENO, and appends
26123 # trailing '-' during substitution so that $LINENO is not a special
26124 # case at line end.
26125 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26126 # scripts with optimization help from Paolo Bonzini. Blame Lee
26127 # E. McMahon (1931-1989) for sed's syntax. :-)
26139 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26142 ' >$as_me.lineno
&&
26143 chmod +x
"$as_me.lineno" ||
26144 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26145 { (exit 1); exit 1; }; }
26147 # Don't try to exec as it changes $[0], causing all sort of problems
26148 # (the dirname of $[0] is not the place where we might find the
26149 # original and so on. Autoconf is especially sensitive to this).
26150 .
"./$as_me.lineno"
26151 # Exit status is that of the last command.
26156 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26162 ECHO_C
= ECHO_N
= ECHO_T
=
26163 case `echo -n x` in
26165 case `echo 'x\c'` in
26166 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26173 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26174 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26180 rm -f conf$$ conf$$.exe conf$$.
file
26181 if test -d conf$$.dir
; then
26182 rm -f conf$$.dir
/conf$$.
file
26188 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26190 # ... but there are two gotchas:
26191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26193 # In both cases, we have to default to `cp -p'.
26194 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26196 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26201 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26202 rmdir conf$$.dir
2>/dev
/null
26204 if mkdir
-p .
2>/dev
/null
; then
26207 test -d .
/-p && rmdir .
/-p
26211 if test -x / >/dev
/null
2>&1; then
26212 as_test_x
='test -x'
26214 if ls -dL / >/dev
/null
2>&1; then
26221 if test -d "$1"; then
26227 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26228 ???[sx]*):;;*)false;;esac;fi
26232 as_executable_p
=$as_test_x
26234 # Sed expression to map a string onto a valid CPP name.
26235 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26237 # Sed expression to map a string onto a valid variable name.
26238 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26243 # Save the log message, to keep $[0] and so on meaningful, and to
26244 # report actual input values of CONFIG_FILES etc. instead of their
26245 # values after options handling.
26247 This file was extended by python $as_me 3.1, which was
26248 generated by GNU Autoconf 2.61. Invocation command line was
26250 CONFIG_FILES = $CONFIG_FILES
26251 CONFIG_HEADERS = $CONFIG_HEADERS
26252 CONFIG_LINKS = $CONFIG_LINKS
26253 CONFIG_COMMANDS = $CONFIG_COMMANDS
26256 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26261 cat >>$CONFIG_STATUS <<_ACEOF
26262 # Files that config.status was made for.
26263 config_files="$ac_config_files"
26264 config_headers="$ac_config_headers"
26268 cat >>$CONFIG_STATUS <<\_ACEOF
26270 \`$as_me' instantiates files from templates according to the
26271 current configuration.
26273 Usage: $0 [OPTIONS] [FILE]...
26275 -h, --help print this help, then exit
26276 -V, --version print version number and configuration settings, then exit
26277 -q, --quiet do not print progress messages
26278 -d, --debug don't remove temporary files
26279 --recheck update $as_me by reconfiguring in the same conditions
26280 --file=FILE[:TEMPLATE]
26281 instantiate the configuration file FILE
26282 --header=FILE[:TEMPLATE]
26283 instantiate the configuration header FILE
26285 Configuration files:
26288 Configuration headers:
26291 Report bugs to <bug-autoconf@gnu.org>."
26294 cat >>$CONFIG_STATUS <<_ACEOF
26296 python config.status 3.1
26297 configured by $0, generated by GNU Autoconf 2.61,
26298 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26300 Copyright (C) 2006 Free Software Foundation, Inc.
26301 This config.status script is free software; the Free Software Foundation
26302 gives unlimited permission to copy, distribute and modify it."
26309 cat >>$CONFIG_STATUS <<\_ACEOF
26310 # If no file are specified by the user, then we need to provide default
26311 # value. By we need to know if files were specified by the user.
26317 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26318 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26329 # Handling of the options.
26330 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26332 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26333 echo "$ac_cs_version"; exit ;;
26334 --debug |
--debu |
--deb |
--de |
--d |
-d )
26336 --file |
--fil |
--fi |
--f )
26338 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26339 ac_need_defaults
=false
;;
26340 --header |
--heade |
--head |
--hea )
26342 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26343 ac_need_defaults
=false
;;
26345 # Conflict between --help and --header
26346 { echo "$as_me: error: ambiguous option: $1
26347 Try \`$0 --help' for more information." >&2
26348 { (exit 1); exit 1; }; };;
26349 --help |
--hel |
-h )
26350 echo "$ac_cs_usage"; exit ;;
26351 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26352 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26355 # This is an error.
26356 -*) { echo "$as_me: error: unrecognized option: $1
26357 Try \`$0 --help' for more information." >&2
26358 { (exit 1); exit 1; }; } ;;
26360 *) ac_config_targets
="$ac_config_targets $1"
26361 ac_need_defaults
=false
;;
26367 ac_configure_extra_args
=
26369 if $ac_cs_silent; then
26371 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26375 cat >>$CONFIG_STATUS <<_ACEOF
26376 if \$ac_cs_recheck; then
26377 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26378 CONFIG_SHELL=$SHELL
26379 export CONFIG_SHELL
26380 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26384 cat >>$CONFIG_STATUS <<\_ACEOF
26388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26389 ## Running $as_me. ##
26395 cat >>$CONFIG_STATUS <<_ACEOF
26398 cat >>$CONFIG_STATUS <<\_ACEOF
26400 # Handling of arguments.
26401 for ac_config_target
in $ac_config_targets
26403 case $ac_config_target in
26404 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
26405 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
26406 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26407 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26408 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26409 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
26410 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
26411 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
26413 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26414 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26415 { (exit 1); exit 1; }; };;
26420 # If the user did not use the arguments to specify the items to instantiate,
26421 # then the envvar interface is used. Set only those that are not.
26422 # We use the long form for the default assignment because of an extremely
26423 # bizarre bug on SunOS 4.1.3.
26424 if $ac_need_defaults; then
26425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26429 # Have a temporary directory for convenience. Make it in the build tree
26430 # simply because there is no reason against having it here, and in addition,
26431 # creating and moving files from /tmp can sometimes cause problems.
26432 # Hook for its removal unless debugging.
26433 # Note that there is a small window in which the directory will not be cleaned:
26434 # after its creation but before its name has been assigned to `$tmp'.
26438 trap 'exit_status=$?
26439 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26441 trap '{ (exit 1); exit 1; }' 1 2 13 15
26443 # Create a (secure) tmp directory for tmp files.
26446 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26447 test -n "$tmp" && test -d "$tmp"
26450 tmp
=.
/conf$$
-$RANDOM
26451 (umask 077 && mkdir
"$tmp")
26454 echo "$me: cannot create a temporary directory in ." >&2
26455 { (exit 1); exit 1; }
26459 # Set up the sed scripts for CONFIG_FILES section.
26462 # No need to generate the scripts if there are no CONFIG_FILES.
26463 # This happens for instance when ./config.status config.h
26464 if test -n "$CONFIG_FILES"; then
26471 for ac_last_try
in false false false false false
:; do
26472 cat >conf$
$subs.
sed <<_ACEOF
26473 SHELL!$SHELL$ac_delim
26474 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26475 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26476 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26477 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26478 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26479 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26480 exec_prefix!$exec_prefix$ac_delim
26481 prefix!$prefix$ac_delim
26482 program_transform_name!$program_transform_name$ac_delim
26483 bindir!$bindir$ac_delim
26484 sbindir!$sbindir$ac_delim
26485 libexecdir!$libexecdir$ac_delim
26486 datarootdir!$datarootdir$ac_delim
26487 datadir!$datadir$ac_delim
26488 sysconfdir!$sysconfdir$ac_delim
26489 sharedstatedir!$sharedstatedir$ac_delim
26490 localstatedir!$localstatedir$ac_delim
26491 includedir!$includedir$ac_delim
26492 oldincludedir!$oldincludedir$ac_delim
26493 docdir!$docdir$ac_delim
26494 infodir!$infodir$ac_delim
26495 htmldir!$htmldir$ac_delim
26496 dvidir!$dvidir$ac_delim
26497 pdfdir!$pdfdir$ac_delim
26498 psdir!$psdir$ac_delim
26499 libdir!$libdir$ac_delim
26500 localedir!$localedir$ac_delim
26501 mandir!$mandir$ac_delim
26502 DEFS!$DEFS$ac_delim
26503 ECHO_C!$ECHO_C$ac_delim
26504 ECHO_N!$ECHO_N$ac_delim
26505 ECHO_T!$ECHO_T$ac_delim
26506 LIBS!$LIBS$ac_delim
26507 build_alias!$build_alias$ac_delim
26508 host_alias!$host_alias$ac_delim
26509 target_alias!$target_alias$ac_delim
26510 VERSION!$VERSION$ac_delim
26511 SOVERSION!$SOVERSION$ac_delim
26512 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26513 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26514 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26515 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26516 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26517 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26518 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26519 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26520 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26521 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26522 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26523 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26524 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26525 MACHDEP!$MACHDEP$ac_delim
26526 SGI_ABI!$SGI_ABI$ac_delim
26527 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26528 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26530 CFLAGS!$CFLAGS$ac_delim
26531 LDFLAGS!$LDFLAGS$ac_delim
26532 CPPFLAGS!$CPPFLAGS$ac_delim
26533 ac_ct_CC!$ac_ct_CC$ac_delim
26534 EXEEXT!$EXEEXT$ac_delim
26535 OBJEXT!$OBJEXT$ac_delim
26537 MAINCC!$MAINCC$ac_delim
26539 GREP!$GREP$ac_delim
26540 EGREP!$EGREP$ac_delim
26541 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26542 LIBRARY!$LIBRARY$ac_delim
26543 LDLIBRARY!$LDLIBRARY$ac_delim
26544 DLLLIBRARY!$DLLLIBRARY$ac_delim
26545 BLDLIBRARY!$BLDLIBRARY$ac_delim
26546 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26547 INSTSONAME!$INSTSONAME$ac_delim
26548 RUNSHARED!$RUNSHARED$ac_delim
26549 LINKCC!$LINKCC$ac_delim
26550 GNULD!$GNULD$ac_delim
26551 RANLIB!$RANLIB$ac_delim
26553 ARFLAGS!$ARFLAGS$ac_delim
26554 SVNVERSION!$SVNVERSION$ac_delim
26555 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26556 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26557 INSTALL_DATA!$INSTALL_DATA$ac_delim
26560 BASECFLAGS!$BASECFLAGS$ac_delim
26561 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26562 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26563 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26565 LDSHARED!$LDSHARED$ac_delim
26566 BLDSHARED!$BLDSHARED$ac_delim
26567 CCSHARED!$CCSHARED$ac_delim
26568 LINKFORSHARED!$LINKFORSHARED$ac_delim
26569 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26572 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26574 elif $ac_last_try; then
26575 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26576 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26577 { (exit 1); exit 1; }; }
26579 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26583 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26584 if test -n "$ac_eof"; then
26585 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26586 ac_eof
=`expr $ac_eof + 1`
26589 cat >>$CONFIG_STATUS <<_ACEOF
26590 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26594 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26595 s/^/s,@/; s/!/@,|#_!!_#|/
26598 s/'"$ac_delim"'$/,g/; t
26600 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26601 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26602 rm -f conf$
$subs.
sed
26603 cat >>$CONFIG_STATUS <<_ACEOF
26609 for ac_last_try
in false false false false false
:; do
26610 cat >conf$
$subs.
sed <<_ACEOF
26611 SHLIBS!$SHLIBS$ac_delim
26612 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26613 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26614 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26615 LDLAST!$LDLAST$ac_delim
26616 THREADOBJ!$THREADOBJ$ac_delim
26617 DLINCLDIR!$DLINCLDIR$ac_delim
26618 DYNLOADFILE!$DYNLOADFILE$ac_delim
26619 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26620 TRUE!$TRUE$ac_delim
26621 LIBOBJS!$LIBOBJS$ac_delim
26622 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26623 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26624 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26625 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26626 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26627 LIBM!$LIBM$ac_delim
26628 LIBC!$LIBC$ac_delim
26629 THREADHEADERS!$THREADHEADERS$ac_delim
26630 SRCDIRS!$SRCDIRS$ac_delim
26631 LTLIBOBJS!$LTLIBOBJS$ac_delim
26634 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26636 elif $ac_last_try; then
26637 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26638 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26639 { (exit 1); exit 1; }; }
26641 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26645 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26646 if test -n "$ac_eof"; then
26647 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26648 ac_eof
=`expr $ac_eof + 1`
26651 cat >>$CONFIG_STATUS <<_ACEOF
26652 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26656 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26657 s/^/s,@/; s/!/@,|#_!!_#|/
26660 s/'"$ac_delim"'$/,g/; t
26662 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26663 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26664 rm -f conf$
$subs.
sed
26665 cat >>$CONFIG_STATUS <<_ACEOF
26672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26674 # trailing colons and then remove the whole line if VPATH becomes empty
26675 # (actually we leave an empty line to preserve line numbers).
26676 if test "x$srcdir" = x.
; then
26677 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26678 s/:*\$(srcdir):*/:/
26679 s/:*\${srcdir}:*/:/
26681 s/^\([^=]*=[ ]*\):*/\1/
26687 cat >>$CONFIG_STATUS <<\_ACEOF
26688 fi # test -n "$CONFIG_FILES"
26691 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26694 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26696 case $ac_mode$ac_tag in
26698 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26699 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26700 { (exit 1); exit 1; }; };;
26701 :[FH
]-) ac_tag
=-:-;;
26702 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26719 -) ac_f
="$tmp/stdin";;
26720 *) # Look for the file first in the build tree, then in the source tree
26721 # (if the path is not absolute). The absolute path cannot be DOS-style,
26722 # because $ac_f cannot contain `:'.
26726 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26728 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26729 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26730 { (exit 1); exit 1; }; };;
26732 ac_file_inputs
="$ac_file_inputs $ac_f"
26735 # Let's still pretend it is `configure' which instantiates (i.e., don't
26736 # use $as_me), people would be surprised to read:
26737 # /* config.h. Generated by config.status. */
26738 configure_input
="Generated from "`IFS=:
26739 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26740 if test x
"$ac_file" != x-
; then
26741 configure_input
="$ac_file. $configure_input"
26742 { echo "$as_me:$LINENO: creating $ac_file" >&5
26743 echo "$as_me: creating $ac_file" >&6;}
26747 *:-:* |
*:-) cat >"$tmp/stdin";;
26752 ac_dir
=`$as_dirname -- "$ac_file" ||
26753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26754 X"$ac_file" : 'X\(//\)[^/]' \| \
26755 X"$ac_file" : 'X\(//\)$' \| \
26756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26762 /^X\(\/\/\)[^/].*/{
26777 -*) as_dir
=.
/$as_dir;;
26779 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26783 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26784 *) as_qdir
=$as_dir;;
26786 as_dirs
="'$as_qdir' $as_dirs"
26787 as_dir
=`$as_dirname -- "$as_dir" ||
26788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26789 X"$as_dir" : 'X\(//\)[^/]' \| \
26790 X"$as_dir" : 'X\(//\)$' \| \
26791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26797 /^X\(\/\/\)[^/].*/{
26810 test -d "$as_dir" && break
26812 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26813 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26814 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26815 { (exit 1); exit 1; }; }; }
26819 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26821 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26822 # A ".." for each directory in $ac_dir_suffix.
26823 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26824 case $ac_top_builddir_sub in
26825 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26826 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26829 ac_abs_top_builddir
=$ac_pwd
26830 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26831 # for backward compatibility:
26832 ac_top_builddir
=$ac_top_build_prefix
26835 .
) # We are building in place.
26837 ac_top_srcdir
=$ac_top_builddir_sub
26838 ac_abs_top_srcdir
=$ac_pwd ;;
26839 [\\/]* | ?
:[\\/]* ) # Absolute name.
26840 ac_srcdir
=$srcdir$ac_dir_suffix;
26841 ac_top_srcdir
=$srcdir
26842 ac_abs_top_srcdir
=$srcdir ;;
26843 *) # Relative name.
26844 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26845 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26846 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26848 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26858 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26859 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26863 cat >>$CONFIG_STATUS <<\_ACEOF
26864 # If the template does not know about datarootdir, expand it.
26865 # FIXME: This hack should be removed a few years after 2.60.
26866 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26868 case `sed -n '/datarootdir/ {
26877 ' $ac_file_inputs` in
26878 *datarootdir
*) ac_datarootdir_seen
=yes;;
26879 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26880 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26881 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26883 cat >>$CONFIG_STATUS <<_ACEOF
26884 ac_datarootdir_hack='
26885 s&@datadir@&$datadir&g
26886 s&@docdir@&$docdir&g
26887 s&@infodir@&$infodir&g
26888 s&@localedir@&$localedir&g
26889 s&@mandir@&$mandir&g
26890 s&\\\${datarootdir}&$datarootdir&g' ;;
26894 # Neutralize VPATH when `$srcdir' = `.'.
26895 # Shell code in configure.ac might set extrasub.
26896 # FIXME: do we really want to maintain this feature?
26897 cat >>$CONFIG_STATUS <<_ACEOF
26901 cat >>$CONFIG_STATUS <<\_ACEOF
26903 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26904 s
&@configure_input@
&$configure_input&;t t
26905 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26906 s
&@srcdir@
&$ac_srcdir&;t t
26907 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26908 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26909 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26910 s
&@builddir@
&$ac_builddir&;t t
26911 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26912 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26913 s
&@INSTALL@
&$ac_INSTALL&;t t
26914 $ac_datarootdir_hack
26915 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26918 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26920 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26921 which seems to be undefined. Please make sure it is defined." >&5
26922 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26923 which seems to be undefined. Please make sure it is defined." >&2;}
26927 -) cat "$tmp/out"; rm -f "$tmp/out";;
26928 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26937 # Transform confdefs.h into a sed script `conftest.defines', that
26938 # substitutes the proper values into config.h.in to produce config.h.
26939 rm -f conftest.defines conftest.
tail
26940 # First, append a space to every undef/define line, to ease matching.
26941 echo 's/$/ /' >conftest.defines
26942 # Then, protect against being on the right side of a sed subst, or in
26943 # an unquoted here document, in config.status. If some macros were
26944 # called several times there might be several #defines for the same
26945 # symbol, which is useless. But do not sort them, since the last
26946 # AC_DEFINE must be honored.
26947 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26948 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26949 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26950 # PARAMS is the parameter list in the macro definition--in most cases, it's
26951 # just an empty string.
26952 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26953 ac_dB
='\\)[ (].*,\\1define\\2'
26961 s/^[ ]*#[ ]*define[ ][ ]*//
26966 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26967 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26968 ' >>conftest.defines
26970 # Remove the space that was appended to ease matching.
26971 # Then replace #undef with comments. This is necessary, for
26972 # example, in the case of _POSIX_SOURCE, which is predefined and required
26973 # on some systems where configure will not decide to define it.
26974 # (The regexp can be short, since the line contains either #define or #undef.)
26976 s,^[ #]*u.*,/* & */,' >>conftest.defines
26978 # Break up conftest.defines:
26979 ac_max_sed_lines
=50
26981 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26982 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26983 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26985 ac_in
='$ac_file_inputs'
26986 ac_out
='"$tmp/out1"'
26987 ac_nxt
='"$tmp/out2"'
26991 # Write a here document:
26992 cat >>$CONFIG_STATUS <<_ACEOF
26993 # First, check the format of the line:
26994 cat >"\$tmp/defines.sed" <<\\CEOF
26995 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26996 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27000 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27002 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27003 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27004 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27005 grep . conftest.
tail >/dev
/null ||
break
27006 rm -f conftest.defines
27007 mv conftest.
tail conftest.defines
27009 rm -f conftest.defines conftest.
tail
27011 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27012 cat >>$CONFIG_STATUS <<\_ACEOF
27013 if test x
"$ac_file" != x-
; then
27014 echo "/* $configure_input */" >"$tmp/config.h"
27015 cat "$ac_result" >>"$tmp/config.h"
27016 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27017 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27018 echo "$as_me: $ac_file is unchanged" >&6;}
27021 mv "$tmp/config.h" $ac_file
27024 echo "/* $configure_input */"
27036 { (exit 0); exit 0; }
27038 chmod +x
$CONFIG_STATUS
27039 ac_clean_files
=$ac_clean_files_save
27042 # configure is writing to config.log, and then calls config.status.
27043 # config.status does its own redirection, appending to config.log.
27044 # Unfortunately, on DOS this fails, as config.log is still kept open
27045 # by configure, so config.status won't be able to write to it; its
27046 # output is simply discarded. So we exec the FD to /dev/null,
27047 # effectively closing config.log, so it can be properly (re)opened and
27048 # appended to by config.status. When coming back to configure, we
27049 # need to make the FD available again.
27050 if test "$no_create" != yes; then
27052 ac_config_status_args
=
27053 test "$silent" = yes &&
27054 ac_config_status_args
="$ac_config_status_args --quiet"
27056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27059 # would make configure fail if this is the last instruction.
27060 $ac_cs_success ||
{ (exit 1); exit 1; }
27064 echo "creating Modules/Setup"
27065 if test ! -f Modules
/Setup
27067 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27070 echo "creating Modules/Setup.local"
27071 if test ! -f Modules
/Setup.
local
27073 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27076 echo "creating Makefile"
27077 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27078 -s Modules Modules
/Setup.config \
27079 Modules
/Setup.
local Modules
/Setup
27080 mv config.c Modules