2 # From configure.in Revision: 78783 .
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;;
2164 define_xopen_source=no;;
2165 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2166 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2167 # or has another value. By not (re)defining it, the defaults come in place.
2169 define_xopen_source=no;;
2171 if test `uname
-r` -eq 1; then
2172 define_xopen_source=no
2175 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2176 # defining NI_NUMERICHOST.
2178 define_xopen_source=no
2183 if test $define_xopen_source = yes
2185 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2186 # defined precisely as g++ defines it
2187 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2189 case $ac_sys_system/$ac_sys_release in
2190 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2192 cat >>confdefs.h <<\_ACEOF
2193 #define _XOPEN_SOURCE 500
2199 cat >>confdefs.h <<\_ACEOF
2200 #define _XOPEN_SOURCE 600
2206 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2207 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2208 # several APIs are not declared. Since this is also needed in some
2209 # cases for HP-UX, we define it globally.
2210 # except for Solaris 10, where it must not be defined,
2211 # as it implies XPG4.2
2212 case $ac_sys_system/$ac_sys_release in
2217 cat >>confdefs.h <<\_ACEOF
2218 #define _XOPEN_SOURCE_EXTENDED 1
2225 cat >>confdefs.h <<\_ACEOF
2226 #define _POSIX_C_SOURCE 200112L
2233 # SGI compilers allow the specification of the both the ABI and the
2234 # ISA on the command line. Depending on the values of these switches,
2235 # different and often incompatable code will be generated.
2237 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2238 # thus supply support for various ABI/ISA combinations. The MACHDEP
2239 # variable is also adjusted.
2242 if test ! -z "$SGI_ABI"
2245 LDFLAGS="$SGI_ABI $LDFLAGS"
2246 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2248 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2249 echo "${ECHO_T}$MACHDEP" >&6; }
2251 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2252 # it may influence the way we can build extensions, so distutils
2256 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2257 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2259 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2260 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2261 ac_sys_machine=`uname
-m`
2262 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2263 echo "${ECHO_T}$ac_sys_machine" >&6; }
2265 # checks for alternative programs
2267 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2268 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2269 # just to get things to compile and link. Users are free to override OPT
2270 # when running configure or make. The build should not break if they do.
2271 # BASECFLAGS should generally not be messed with, however.
2273 # XXX shouldn't some/most/all of this code be merged with the stuff later
2274 # on that fiddles with OPT and BASECFLAGS?
2275 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2276 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2287 without_gcc=$withval;;
2291 case $ac_sys_system in
2298 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2299 echo "${ECHO_T}$without_gcc" >&6; }
2301 # If the user switches compilers, we can't believe the cache
2302 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2304 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2305 (it is also a good idea to do 'make clean' before compiling)" >&5
2306 echo "$as_me: error: cached CC is different -- throw away $cache_file
2307 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2308 { (exit 1); exit 1; }; }
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 if test -n "$CC"; then
2325 ac_cv_prog_CC="$CC" # Let the user override the test.
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 if test -n "$CC"; then
2346 { echo "$as_me:$LINENO: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6; }
2349 { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2355 if test -z "$ac_cv_prog_CC"; then
2357 # Extract the first word of "gcc", so it can be a program name with args.
2358 set dummy gcc; ac_word=$2
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$ac_ct_CC"; then
2365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_ac_ct_CC="gcc"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6; }
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2393 if test "x$ac_ct_CC" = x; then
2396 case $cross_compiling:$ac_tool_warned in
2398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&5
2401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2412 if test -z "$CC"; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}cc; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_CC="${ac_tool_prefix}cc"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 { echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6; }
2446 { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2473 ac_prog_rejected=yes
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test $ac_prog_rejected = yes; then
2485 # We found a bogon in the path, so make sure we never use it.
2486 set dummy $ac_cv_prog_CC
2488 if test $# != 0; then
2489 # We chose a different compiler from the bogus one.
2490 # However, it has the same basename, so the bogon will be chosen
2491 # first if we set CC to just the basename; use the full file name.
2493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2499 if test -n "$CC"; then
2500 { echo "$as_me:$LINENO: result: $CC" >&5
2501 echo "${ECHO_T}$CC" >&6; }
2503 { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in cl.exe
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 if test -n "$CC"; then
2542 { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2550 test -n "$CC" && break
2553 if test -z "$CC"; then
2555 for ac_prog in cl.exe
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$ac_ct_CC"; then
2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_ac_ct_CC="$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2585 if test -n "$ac_ct_CC"; then
2586 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2587 echo "${ECHO_T}$ac_ct_CC" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2594 test -n "$ac_ct_CC" && break
2597 if test "x$ac_ct_CC" = x; then
2600 case $cross_compiling:$ac_tool_warned in
2602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2603 whose name does not start with the host triplet. If you think this
2604 configuration is useful to you, please write to autoconf@gnu.org." >&5
2605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2608 ac_tool_warned=yes ;;
2617 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2618 See \`config.log
' for more details." >&5
2619 echo "$as_me: error: no acceptable C compiler found in \$PATH
2620 See \`config.log' for more details.
" >&2;}
2621 { (exit 1); exit 1; }; }
2623 # Provide some information about the compiler.
2624 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2625 ac_compiler=`set X $ac_compile; echo $2`
2626 { (ac_try="$ac_compiler --version >&5"
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_compiler --version >&5") 2>&5
2634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2635 (exit $ac_status); }
2636 { (ac_try="$ac_compiler -v >&5"
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_compiler -v >&5") 2>&5
2644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2645 (exit $ac_status); }
2646 { (ac_try="$ac_compiler -V >&5"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compiler -V >&5") 2>&5
2654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2655 (exit $ac_status); }
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2672 ac_clean_files_save=$ac_clean_files
2673 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2674 # Try to create an executable without -o first, disregard a.out.
2675 # It will help us diagnose broken compilers, and finding out an intuition
2677 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2678 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2679 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2681 # List of possible output files, starting from the most likely.
2682 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2683 # only as a last resort. b.out is created by i960 compilers.
2684 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2686 # The IRIX 6 linker writes into existing files which may not be
2687 # executable, retaining their permissions. Remove them first so a
2688 # subsequent execution test works.
2690 for ac_file in $ac_files
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2699 if { (ac_try="$ac_link_default"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_link_default") 2>&5
2707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2708 (exit $ac_status); }; then
2709 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2710 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2711 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2712 # so that the user can short-circuit this test for compilers unknown to
2714 for ac_file in $ac_files ''
2716 test -f "$ac_file" || continue
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2721 # We found the default executable, but exeext='' is most
2725 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2727 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2729 # We set ac_cv_exeext here because the later test for it is not
2730 # safe: cross compilers may not add the suffix if given an `-o'
2731 # argument, so we may need to know it at that point already.
2732 # Even if this section looks crufty: it has the advantage of
2739 test "$ac_cv_exeext" = no && ac_cv_exeext=
2745 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2746 echo "${ECHO_T}$ac_file" >&6; }
2747 if test -z "$ac_file"; then
2748 echo "$as_me: failed program was
:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2752 See \
`config.log' for more details." >&5
2753 echo "$as_me: error: C compiler cannot create executables
2754 See \`config.log
' for more details." >&2;}
2755 { (exit 77); exit 77; }; }
2758 ac_exeext=$ac_cv_exeext
2760 # Check that the compiler produces executables we can run. If not, either
2761 # the compiler is broken, or we cross compile.
2762 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2765 # If not cross compiling, check that we can run a simple program.
2766 if test "$cross_compiling" != yes; then
2767 if { ac_try='.
/$ac_file'
2768 { (case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_try") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2779 if test "$cross_compiling" = maybe; then
2782 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2783 If you meant to cross compile, use \`--host'.
2784 See \
`config.log' for more details." >&5
2785 echo "$as_me: error: cannot run C compiled programs.
2786 If you meant to cross compile, use \`--host'.
2787 See \`config.log' for more details.
" >&2;}
2788 { (exit 1); exit 1; }; }
2792 { echo "$as_me:$LINENO: result
: yes" >&5
2793 echo "${ECHO_T}yes" >&6; }
2795 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2796 ac_clean_files=$ac_clean_files_save
2797 # Check that the compiler produces executables we can run. If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2800 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2801 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2802 echo "${ECHO_T}$cross_compiling" >&6; }
2804 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2805 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2806 if { (ac_try="$ac_link"
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_link") 2>&5
2814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2815 (exit $ac_status); }; then
2816 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2817 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2818 # work properly (i.e., refer to `conftest.exe'), while it won't with
2820 for ac_file in conftest.exe conftest conftest.*; do
2821 test -f "$ac_file" || continue
2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2824 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2831 See \
`config.log' for more details." >&5
2832 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2833 See \`config.log
' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2837 rm -f conftest$ac_cv_exeext
2838 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2839 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2841 rm -f conftest.$ac_ext
2842 EXEEXT=$ac_cv_exeext
2844 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2845 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2846 if test "${ac_cv_objext+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2864 rm -f conftest.o conftest.obj
2865 if { (ac_try="$ac_compile"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_compile") 2>&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
2875 for ac_file in conftest.o conftest.obj conftest.*; do
2876 test -f "$ac_file" || continue;
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2879 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2884 echo "$as_me: failed program was:" >&5
2885 sed 's
/^
/|
/' conftest.$ac_ext >&5
2887 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2888 See \`config.log' for more details.
" >&5
2889 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2890 See \
`config.log' for more details." >&2;}
2891 { (exit 1); exit 1; }; }
2894 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2896 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2897 echo "${ECHO_T}$ac_cv_objext" >&6; }
2898 OBJEXT=$ac_cv_objext
2900 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2901 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2902 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2923 rm -f conftest.$ac_objext
2924 if { (ac_try="$ac_compile"
2926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2927 *) ac_try_echo
=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && {
2937 test -z "$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest.
$ac_objext; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.
$ac_ext >&5
2948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2949 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2952 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2953 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2954 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2955 ac_test_CFLAGS
=${CFLAGS+set}
2956 ac_save_CFLAGS
=$CFLAGS
2957 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2958 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2959 if test "${ac_cv_prog_cc_g+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 ac_save_c_werror_flag
=$ac_c_werror_flag
2963 ac_c_werror_flag
=yes
2966 cat >conftest.
$ac_ext <<_ACEOF
2969 cat confdefs.h
>>conftest.
$ac_ext
2970 cat >>conftest.
$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2981 rm -f conftest.
$ac_objext
2982 if { (ac_try
="$ac_compile"
2984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && {
2995 test -z "$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 } && test -s conftest.$ac_objext; then
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3023 *) ac_try_echo
=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1
>conftest.err
3030 cat conftest.err
>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } && {
3033 test -z "$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 } && test -s conftest.
$ac_objext; then
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.
$ac_ext >&5
3041 ac_c_werror_flag
=$ac_save_c_werror_flag
3043 cat >conftest.
$ac_ext <<_ACEOF
3046 cat confdefs.h
>>conftest.
$ac_ext
3047 cat >>conftest.
$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.
$ac_objext
3059 if { (ac_try
="$ac_compile"
3061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_c_werror_flag=$ac_save_c_werror_flag
3092 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3093 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3094 if test "$ac_test_CFLAGS" = set; then
3095 CFLAGS=$ac_save_CFLAGS
3096 elif test $ac_cv_prog_cc_g = yes; then
3097 if test "$GCC" = yes; then
3103 if test "$GCC" = yes; then
3109 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3110 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3111 if test "${ac_cv_prog_cc_c89+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 ac_cv_prog_cc_c89=no
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3124 #include <sys/types.h>
3125 #include <sys/stat.h>
3126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3127 struct buf { int x; };
3128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3129 static char *e (p, i)
3135 static char *f (char * (*g) (char **, int), char **p, ...)
3140 s = g (p, va_arg (v,int));
3145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3146 function prototypes and stuff, but not '\xHH' hex character constants.
3147 These don't provoke an error unfortunately, instead are silently treated
3148 as 'x'. The following induces an error, until -std is added to get
3149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3150 array size at least. It's necessary to write '\x00'==0 to get something
3151 that's true only with -std. */
3152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3155 inside strings and character constants. */
3157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3159 int test (int i, double x);
3160 struct s1 {int (*f) (int a);};
3161 struct s2 {int (*f) (double a);};
3162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3176 CC="$ac_save_CC $ac_arg"
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3181 *) ac_try_echo
=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1
>conftest.err
3188 cat conftest.err
>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.
$ac_objext; then
3194 ac_cv_prog_cc_c89
=$ac_arg
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.
$ac_ext >&5
3202 rm -f core conftest.err conftest.
$ac_objext
3203 test "x$ac_cv_prog_cc_c89" != "xno" && break
3205 rm -f conftest.
$ac_ext
3210 case "x$ac_cv_prog_cc_c89" in
3212 { echo "$as_me:$LINENO: result: none needed" >&5
3213 echo "${ECHO_T}none needed" >&6; } ;;
3215 { echo "$as_me:$LINENO: result: unsupported" >&5
3216 echo "${ECHO_T}unsupported" >&6; } ;;
3218 CC
="$CC $ac_cv_prog_cc_c89"
3219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3225 ac_cpp
='$CPP $CPPFLAGS'
3226 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3233 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3234 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3236 # Check whether --with-cxx_main was given.
3237 if test "${with_cxx_main+set}" = set; then
3238 withval
=$with_cxx_main;
3241 no
) with_cxx_main
=no
3243 yes) with_cxx_main
=yes
3245 *) with_cxx_main
=yes
3259 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3260 echo "${ECHO_T}$with_cxx_main" >&6; }
3266 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3267 set dummy g
++; ac_word
=$2
3268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3270 if test "${ac_cv_path_CXX+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3279 for as_dir
in notfound
3282 test -z "$as_dir" && as_dir
=.
3283 for ac_exec_ext
in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3298 if test -n "$CXX"; then
3299 { echo "$as_me:$LINENO: result: $CXX" >&5
3300 echo "${ECHO_T}$CXX" >&6; }
3302 { echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6; }
3307 cc
) # Extract the first word of "c++", so it can be a program name with args.
3308 set dummy c
++; ac_word
=$2
3309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3311 if test "${ac_cv_path_CXX+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 for as_dir
in notfound
3323 test -z "$as_dir" && as_dir
=.
3324 for ac_exec_ext
in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3339 if test -n "$CXX"; then
3340 { echo "$as_me:$LINENO: result: $CXX" >&5
3341 echo "${ECHO_T}$CXX" >&6; }
3343 { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3349 if test "$CXX" = "notfound"
3356 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3358 # Extract the first word of "$ac_prog", so it can be a program name with args.
3359 set dummy
$ac_prog; ac_word
=$2
3360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3362 if test "${ac_cv_prog_CXX+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 if test -n "$CXX"; then
3366 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir
=.
3373 for ac_exec_ext
in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CXX
="$ac_prog"
3376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CXX"; then
3387 { echo "$as_me:$LINENO: result: $CXX" >&5
3388 echo "${ECHO_T}$CXX" >&6; }
3390 { echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6; }
3395 test -n "$CXX" && break
3397 test -n "$CXX" || CXX
="notfound"
3399 if test "$CXX" = "notfound"
3404 if test "$preset_cxx" != "$CXX"
3406 { echo "$as_me:$LINENO: WARNING:
3408 By default, distutils will build C++ extension modules with \"$CXX\".
3409 If this is not intended, then set CXX on the configure command line.
3411 echo "$as_me: WARNING:
3413 By default, distutils will build C++ extension modules with \"$CXX\".
3414 If this is not intended, then set CXX on the configure command line.
3419 # checks for UNIX variants that set C preprocessor variables
3422 ac_cpp
='$CPP $CPPFLAGS'
3423 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3426 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3427 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3428 # On Suns, sometimes $CPP names a directory.
3429 if test -n "$CPP" && test -d "$CPP"; then
3432 if test -z "$CPP"; then
3433 if test "${ac_cv_prog_CPP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 # Double quotes because CPP needs to be expanded
3437 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440 for ac_c_preproc_warn_flag
in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.
$ac_ext <<_ACEOF
3451 cat confdefs.h
>>conftest.
$ac_ext
3452 cat >>conftest.
$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3455 # include <limits.h>
3457 # include <assert.h>
3461 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3501 *) ac_try_echo
=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1
>conftest.err
3508 cat conftest.err
>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev
/null
&& {
3511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3514 # Broken: success on invalid input.
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.
$ac_ext >&5
3520 # Passes both tests.
3525 rm -f conftest.err conftest.
$ac_ext
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.
$ac_ext
3530 if $ac_preproc_ok; then
3542 { echo "$as_me:$LINENO: result: $CPP" >&5
3543 echo "${ECHO_T}$CPP" >&6; }
3545 for ac_c_preproc_warn_flag
in '' yes
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat >conftest.
$ac_ext <<_ACEOF
3556 cat confdefs.h
>>conftest.
$ac_ext
3557 cat >>conftest.
$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3560 # include <limits.h>
3562 # include <assert.h>
3566 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null && {
3579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 # Broken: fails on valid input.
3591 rm -f conftest.err conftest.$ac_ext
3593 # OK, works on sane cases. Now check whether nonexistent headers
3594 # can be detected and how.
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3606 *) ac_try_echo
=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3611 grep -v '^ *+' conftest.er1
>conftest.err
3613 cat conftest.err
>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev
/null
&& {
3616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3619 # Broken: success on invalid input.
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.
$ac_ext >&5
3625 # Passes both tests.
3630 rm -f conftest.err conftest.
$ac_ext
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.
$ac_ext
3635 if $ac_preproc_ok; then
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3646 ac_cpp
='$CPP $CPPFLAGS'
3647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy
grep ggrep
; ac_prog_name
=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_path_GREP_found
=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3666 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3669 test -z "$as_dir" && as_dir
=.
3670 for ac_prog
in grep ggrep
; do
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3678 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3689 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3690 ac_count
=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP
="$ac_path_GREP"
3694 ac_path_GREP_max
=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3699 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3703 $ac_path_GREP_found && break 3
3713 GREP
="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3721 ac_cv_path_GREP
=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP
="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3737 then ac_cv_path_EGREP
="$GREP -E"
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy
egrep; ac_prog_name
=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_path_EGREP_found
=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3748 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3751 test -z "$as_dir" && as_dir
=.
3752 for ac_prog
in egrep; do
3753 for ac_exec_ext
in '' $ac_executable_extensions; do
3754 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3760 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3771 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3772 ac_count
=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP
="$ac_path_EGREP"
3776 ac_path_EGREP_max
=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3785 $ac_path_EGREP_found && break 3
3795 EGREP
="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3803 ac_cv_path_EGREP
=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP
="$ac_cv_path_EGREP"
3815 { echo "$as_me:$LINENO: checking for AIX" >&5
3816 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3817 cat >conftest.
$ac_ext <<_ACEOF
3820 cat confdefs.h
>>conftest.
$ac_ext
3821 cat >>conftest.
$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 $EGREP "yes" >/dev
/null
2>&1; then
3830 { echo "$as_me:$LINENO: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6; }
3832 cat >>confdefs.h
<<\_ACEOF
3833 #define _ALL_SOURCE 1
3837 { echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6; }
3844 # Check for unsupported systems
3845 case $ac_sys_system/$ac_sys_release in
3847 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3848 echo See README
for details.
3853 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3854 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3856 # Check whether --with-suffix was given.
3857 if test "${with_suffix+set}" = set; then
3858 withval
=$with_suffix;
3862 *) EXEEXT
=$withval;;
3866 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3867 echo "${ECHO_T}$EXEEXT" >&6; }
3869 # Test whether we're running on a non-case-sensitive system, in which
3870 # case we give a warning if no ext is given
3872 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3873 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3874 if test ! -d CaseSensitiveTestDir
; then
3875 mkdir CaseSensitiveTestDir
3878 if test -d casesensitivetestdir
3880 { echo "$as_me:$LINENO: result: yes" >&5
3881 echo "${ECHO_T}yes" >&6; }
3884 { echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6; }
3888 rmdir CaseSensitiveTestDir
3893 gcc
) CC
="$CC -D_HAVE_BSDI";;
3897 case $ac_sys_system in
3900 cc|
*/cc
) CC
="$CC -Ae";;
3903 # Some functions have a prototype only with that define, e.g. confstr
3905 cat >>confdefs.h
<<\_ACEOF
3906 #define __EXTENSIONS__ 1
3914 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3915 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3916 if test -z "$LIBRARY"
3918 LIBRARY
='libpython$(VERSION).a'
3920 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3921 echo "${ECHO_T}$LIBRARY" >&6; }
3923 # LDLIBRARY is the name of the library to link against (as opposed to the
3924 # name of the library into which to insert object files). BLDLIBRARY is also
3925 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3926 # is blank as the main program is not linked directly against LDLIBRARY.
3927 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3928 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3929 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3930 # DLLLIBRARY is the shared (i.e., DLL) library.
3932 # RUNSHARED is used to run shared python without installed libraries
3934 # INSTSONAME is the name of the shared library that will be use to install
3935 # on the system - some systems like version suffix, others don't
3942 LDLIBRARY
="$LIBRARY"
3943 BLDLIBRARY
='$(LDLIBRARY)'
3944 INSTSONAME
='$(LDLIBRARY)'
3949 # LINKCC is the command that links the python executable -- default is $(CC).
3950 # If CXX is set, and if it is needed to link a main function that was
3951 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3952 # python might then depend on the C++ runtime
3953 # This is altered for AIX in order to build the export list before
3956 { echo "$as_me:$LINENO: checking LINKCC" >&5
3957 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3958 if test -z "$LINKCC"
3960 LINKCC
='$(PURIFY) $(MAINCC)'
3961 case $ac_sys_system in
3964 if test $ac_sys_release -ge 5 -o \
3965 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3968 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3970 # qcc must be used because the other compilers do not
3975 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3976 echo "${ECHO_T}$LINKCC" >&6; }
3978 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3979 # make sure we default having it set to "no": this is used by
3980 # distutils.unixccompiler to know if it should add --enable-new-dtags
3981 # to linker command lines, and failing to detect GNU ld simply results
3982 # in the same bahaviour as before.
3984 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3987 if test "$GCC" = yes; then
3988 ac_prog
=`$CC -print-prog-name=ld`
3990 case `"$ac_prog" -V 2>&1 < /dev/null` in
3996 { echo "$as_me:$LINENO: result: $GNULD" >&5
3997 echo "${ECHO_T}$GNULD" >&6; }
3999 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4000 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4001 # Check whether --enable-shared was given.
4002 if test "${enable_shared+set}" = set; then
4003 enableval
=$enable_shared;
4007 if test -z "$enable_shared"
4009 case $ac_sys_system in
4011 enable_shared
="yes";;
4013 enable_shared
="no";;
4016 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4017 echo "${ECHO_T}$enable_shared" >&6; }
4019 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4020 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4021 # Check whether --enable-profiling was given.
4022 if test "${enable_profiling+set}" = set; then
4023 enableval
=$enable_profiling; ac_save_cc
="$CC"
4025 if test "$cross_compiling" = yes; then
4026 ac_enable_profiling
="no"
4028 cat >conftest.
$ac_ext <<_ACEOF
4031 cat confdefs.h
>>conftest.
$ac_ext
4032 cat >>conftest.
$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 int main() { return 0; }
4036 rm -f conftest
$ac_exeext
4037 if { (ac_try
="$ac_link"
4039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043 (eval "$ac_link") 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4047 { (case "(($ac_try" in
4048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4049 *) ac_try_echo
=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_try") 2>&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 ac_enable_profiling
="yes"
4058 echo "$as_me: program exited with status $ac_status" >&5
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.
$ac_ext >&5
4063 ac_enable_profiling
="no"
4065 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4072 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4073 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4075 case "$ac_enable_profiling" in
4077 BASECFLAGS
="-pg $BASECFLAGS"
4078 LDFLAGS
="-pg $LDFLAGS"
4082 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4083 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4085 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4086 # library that we build, but we do not want to link against it (we
4087 # will find it with a -framework option). For this reason there is an
4088 # extra variable BLDLIBRARY against which Python and the extension
4089 # modules are linked, BLDLIBRARY. This is normally the same as
4090 # LDLIBRARY, but empty for MacOSX framework builds.
4091 if test "$enable_framework"
4093 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4094 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4097 BLDLIBRARY
='$(LDLIBRARY)'
4100 # Other platforms follow
4101 if test $enable_shared = "yes"; then
4103 cat >>confdefs.h
<<\_ACEOF
4104 #define Py_ENABLE_SHARED 1
4107 case $ac_sys_system in
4109 LDLIBRARY
='libpython$(VERSION).dll.a'
4110 DLLLIBRARY
='libpython$(VERSION).dll'
4113 LDLIBRARY
='libpython$(VERSION).so'
4114 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4115 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4116 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4118 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4119 LDLIBRARY
='libpython$(VERSION).so'
4120 BLDLIBRARY
='-L. -lpython$(VERSION)'
4121 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4122 case $ac_sys_system in
4124 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4127 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4132 LDLIBRARY
='libpython$(VERSION).so'
4135 LDLIBRARY
='libpython$(VERSION).sl'
4138 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4139 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4142 LDLIBRARY
='libpython$(VERSION).so'
4143 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4144 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4147 LDLIBRARY
='libpython$(VERSION).so'
4148 BLDLIBRARY
='-L. -lpython$(VERSION)'
4149 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4152 LDLIBRARY
='libpython$(VERSION).dylib'
4153 BLDLIBRARY
='-L. -lpython$(VERSION)'
4154 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4158 else # shared is disabled
4159 case $ac_sys_system in
4161 BLDLIBRARY
='$(LIBRARY)'
4162 LDLIBRARY
='libpython$(VERSION).dll.a'
4167 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4168 echo "${ECHO_T}$LDLIBRARY" >&6; }
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4172 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4175 if test "${ac_cv_prog_RANLIB+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 if test -n "$RANLIB"; then
4179 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir
=.
4186 for ac_exec_ext
in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 RANLIB
=$ac_cv_prog_RANLIB
4199 if test -n "$RANLIB"; then
4200 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4201 echo "${ECHO_T}$RANLIB" >&6; }
4203 { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4209 if test -z "$ac_cv_prog_RANLIB"; then
4210 ac_ct_RANLIB
=$RANLIB
4211 # Extract the first word of "ranlib", so it can be a program name with args.
4212 set dummy ranlib
; ac_word
=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 if test -n "$ac_ct_RANLIB"; then
4219 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4239 if test -n "$ac_ct_RANLIB"; then
4240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4241 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4243 { echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6; }
4247 if test "x$ac_ct_RANLIB" = x
; then
4250 case $cross_compiling:$ac_tool_warned in
4252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4253 whose name does not start with the host triplet. If you think this
4254 configuration is useful to you, please write to autoconf@gnu.org." >&5
4255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4256 whose name does not start with the host triplet. If you think this
4257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4258 ac_tool_warned
=yes ;;
4260 RANLIB
=$ac_ct_RANLIB
4263 RANLIB
="$ac_cv_prog_RANLIB"
4267 for ac_prog
in ar aal
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy
$ac_prog; ac_word
=$2
4271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4273 if test "${ac_cv_prog_AR+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$AR"; then
4277 ac_cv_prog_AR
="$AR" # Let the user override the test.
4279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir
=.
4284 for ac_exec_ext
in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_AR
="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 if test -n "$AR"; then
4298 { echo "$as_me:$LINENO: result: $AR" >&5
4299 echo "${ECHO_T}$AR" >&6; }
4301 { echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6; }
4306 test -n "$AR" && break
4308 test -n "$AR" || AR
="ar"
4311 # tweak ARFLAGS only if the user didn't set it on the command line
4313 if test -z "$ARFLAGS"
4319 # Extract the first word of "svnversion", so it can be a program name with args.
4320 set dummy svnversion
; ac_word
=$2
4321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4323 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$SVNVERSION"; then
4327 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir
=.
4334 for ac_exec_ext
in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_SVNVERSION
="found"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4347 SVNVERSION
=$ac_cv_prog_SVNVERSION
4348 if test -n "$SVNVERSION"; then
4349 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4350 echo "${ECHO_T}$SVNVERSION" >&6; }
4352 { echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6; }
4357 if test $SVNVERSION = found
4359 SVNVERSION
="svnversion \$(srcdir)"
4361 SVNVERSION
="echo Unversioned directory"
4366 # install -d does not work on BSDI or HP-UX
4367 if test -z "$INSTALL"
4369 INSTALL
="${srcdir}/install-sh -c"
4373 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4374 if test -f "$ac_dir/install-sh"; then
4376 ac_install_sh
="$ac_aux_dir/install-sh -c"
4378 elif test -f "$ac_dir/install.sh"; then
4380 ac_install_sh
="$ac_aux_dir/install.sh -c"
4382 elif test -f "$ac_dir/shtool"; then
4384 ac_install_sh
="$ac_aux_dir/shtool install -c"
4388 if test -z "$ac_aux_dir"; then
4389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4390 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4391 { (exit 1); exit 1; }; }
4394 # These three variables are undocumented and unsupported,
4395 # and are intended to be withdrawn in a future Autoconf release.
4396 # They can cause serious problems if a builder's source tree is in a directory
4397 # whose full name contains unusual characters.
4398 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4399 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4400 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4403 # Find a good install program. We prefer a C program (faster),
4404 # so one script is as good as another. But avoid the broken or
4405 # incompatible versions:
4406 # SysV /etc/install, /usr/sbin/install
4407 # SunOS /usr/etc/install
4408 # IRIX /sbin/install
4410 # AmigaOS /C/install, which installs bootblocks on floppy discs
4411 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4414 # OS/2's system install, which has a completely different semantic
4415 # ./install, which can be erroneously created by make from ./install.sh.
4416 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4417 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4418 if test -z "$INSTALL"; then
4419 if test "${ac_cv_path_install+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir
=.
4427 # Account for people who put trailing slashes in PATH elements.
4429 .
/ | .
// |
/cC
/* | \
4430 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4431 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4434 # OSF1 and SCO ODT 3.0 have their own names for install.
4435 # Don't use installbsd from OSF since it installs stuff as root
4437 for ac_prog
in ginstall scoinst
install; do
4438 for ac_exec_ext
in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4440 if test $ac_prog = install &&
4441 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4442 # AIX install. It has an incompatible calling convention.
4444 elif test $ac_prog = install &&
4445 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4446 # program-specific install script used by HP pwplus--don't use.
4449 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4462 if test "${ac_cv_path_install+set}" = set; then
4463 INSTALL
=$ac_cv_path_install
4465 # As a last resort, use the slow shell script. Don't cache a
4466 # value for INSTALL within a source directory, because that will
4467 # break other packages using the cache if that directory is
4468 # removed, or if the value is a relative name.
4469 INSTALL
=$ac_install_sh
4472 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4473 echo "${ECHO_T}$INSTALL" >&6; }
4475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4476 # It thinks the first close brace ends the variable substitution.
4477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4479 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4481 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4484 # Not every filesystem supports hard links
4486 if test -z "$LN" ; then
4487 case $ac_sys_system in
4488 CYGWIN
*) LN
="ln -s";;
4489 atheos
*) LN
="ln -s";;
4494 # Check for --with-pydebug
4495 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4496 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4498 # Check whether --with-pydebug was given.
4499 if test "${with_pydebug+set}" = set; then
4500 withval
=$with_pydebug;
4501 if test "$withval" != no
4504 cat >>confdefs.h
<<\_ACEOF
4508 { echo "$as_me:$LINENO: result: yes" >&5
4509 echo "${ECHO_T}yes" >&6; };
4511 else { echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4520 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4521 # merged with this chunk of code?
4523 # Optimizer/debugger flags
4524 # ------------------------
4525 # (The following bit of code is complicated enough - please keep things
4526 # indented properly. Just pretend you're editing Python code. ;-)
4528 # There are two parallel sets of case statements below, one that checks to
4529 # see if OPT was set and one that does BASECFLAGS setting based upon
4530 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4533 # tweak OPT based on compiler and platform, only if the user didn't set
4534 # it on the command line
4536 if test "${OPT-unset}" == "unset"
4540 if test "$CC" != 'g++' ; then
4541 STRICT_PROTO
="-Wstrict-prototypes"
4543 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4544 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4547 case $ac_cv_prog_cc_g in
4549 if test "$Py_DEBUG" = 'true' ; then
4550 # Optimization messes up debuggers, so turn it off for
4552 OPT
="-g -Wall $STRICT_PROTO"
4554 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4558 OPT
="-O3 -Wall $STRICT_PROTO"
4561 case $ac_sys_system in
4562 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4575 # The -arch flags for universal builds on OSX
4576 UNIVERSAL_ARCH_FLAGS
=
4579 # tweak BASECFLAGS based on compiler and platform
4582 # Python violates C99 rules, by casting between incompatible
4583 # pointer types. GCC may generate bad code as a result of that,
4584 # so use -fno-strict-aliasing if supported.
4585 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4586 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4588 CC
="$CC -fno-strict-aliasing"
4589 if test "$cross_compiling" = yes; then
4590 ac_cv_no_strict_aliasing_ok
=no
4592 cat >conftest.
$ac_ext <<_ACEOF
4595 cat confdefs.h
>>conftest.
$ac_ext
4596 cat >>conftest.
$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 int main() { return 0; }
4600 rm -f conftest
$ac_exeext
4601 if { (ac_try
="$ac_link"
4603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_link") 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611 { (case "(($ac_try" in
4612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4613 *) ac_try_echo
=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_try") 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_no_strict_aliasing_ok
=yes
4622 echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.
$ac_ext >&5
4627 ac_cv_no_strict_aliasing_ok
=no
4629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4634 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4635 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4636 if test $ac_cv_no_strict_aliasing_ok = yes
4638 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4641 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4642 # support. Without this, treatment of subnormals doesn't follow
4644 case $ac_sys_machine in
4646 BASECFLAGS
="$BASECFLAGS -mieee"
4650 case $ac_sys_system in
4652 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4654 # is there any other compiler on Darwin besides gcc?
4656 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4657 # used to be here, but non-Apple gcc doesn't accept them.
4660 if test "${enable_universalsdk}"; then
4661 UNIVERSAL_ARCH_FLAGS
=""
4662 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4663 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4666 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4667 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4668 ARCH_RUN_32BIT
="true"
4670 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4671 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4672 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4674 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4675 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
4676 ARCH_RUN_32BIT
="/usr/bin/arch -i386"
4678 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4679 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
4680 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4683 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4684 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4685 { (exit 1); exit 1; }; }
4690 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4691 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4692 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4693 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4697 # Calculate the right deployment target for this build.
4699 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4700 if test ${cur_target} '>' 10.2; then
4702 if test ${enable_universalsdk}; then
4703 if test "${UNIVERSAL_ARCHS}" = "all"; then
4704 # Ensure that the default platform for a
4705 # 4-way universal build is OSX 10.5,
4706 # that's the first OS release where
4707 # 4-way builds make sense.
4710 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4713 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4716 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4720 if test `/usr/bin/arch` = "i386"; then
4721 # On Intel macs default to a deployment
4722 # target of 10.4, that's the first OSX
4723 # release with Intel support.
4728 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4730 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4731 # environment with a value that is the same as what we'll use
4732 # in the Makefile to ensure that we'll get the same compiler
4733 # environment during configure and build time.
4734 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4735 export MACOSX_DEPLOYMENT_TARGET
4736 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4740 BASECFLAGS
="$BASECFLAGS -mieee"
4746 case $ac_sys_system in
4747 OpenUNIX
*|UnixWare
*)
4748 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4751 BASECFLAGS
="$BASECFLAGS -ieee -std"
4754 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4760 if test "$Py_DEBUG" = 'true'; then
4766 if test "$ac_arch_flags"
4768 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4771 # disable check for icc since it seems to pass, but generates a warning
4774 ac_cv_opt_olimit_ok
=no
4777 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4778 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4779 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 CC
="$CC -OPT:Olimit=0"
4784 if test "$cross_compiling" = yes; then
4785 ac_cv_opt_olimit_ok
=no
4787 cat >conftest.
$ac_ext <<_ACEOF
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 int main() { return 0; }
4795 rm -f conftest
$ac_exeext
4796 if { (ac_try
="$ac_link"
4798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_link") 2>&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4806 { (case "(($ac_try" in
4807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4808 *) ac_try_echo
=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_try") 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_opt_olimit_ok
=yes
4817 echo "$as_me: program exited with status $ac_status" >&5
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.
$ac_ext >&5
4822 ac_cv_opt_olimit_ok
=no
4824 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4831 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4832 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4833 if test $ac_cv_opt_olimit_ok = yes; then
4834 case $ac_sys_system in
4835 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4836 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4841 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4845 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4846 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4847 if test "${ac_cv_olimit_ok+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 CC
="$CC -Olimit 1500"
4852 if test "$cross_compiling" = yes; then
4855 cat >conftest.
$ac_ext <<_ACEOF
4858 cat confdefs.h
>>conftest.
$ac_ext
4859 cat >>conftest.
$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 int main() { return 0; }
4863 rm -f conftest
$ac_exeext
4864 if { (ac_try
="$ac_link"
4866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870 (eval "$ac_link") 2>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4874 { (case "(($ac_try" in
4875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4876 *) ac_try_echo
=$ac_try;;
4878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_try") 2>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4885 echo "$as_me: program exited with status $ac_status" >&5
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.
$ac_ext >&5
4892 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4899 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4900 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4901 if test $ac_cv_olimit_ok = yes; then
4902 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4906 # Check whether GCC supports PyArg_ParseTuple format
4907 if test "$GCC" = "yes"
4909 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4910 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4912 CFLAGS
="$CFLAGS -Werror"
4913 cat >conftest.
$ac_ext <<_ACEOF
4916 cat confdefs.h
>>conftest.
$ac_ext
4917 cat >>conftest.
$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4920 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4930 rm -f conftest.
$ac_objext
4931 if { (ac_try
="$ac_compile"
4933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_compile") 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest.$ac_objext; then
4948 cat >>confdefs.h <<\_ACEOF
4949 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4952 { echo "$as_me:$LINENO: result: yes" >&5
4953 echo "${ECHO_T}yes" >&6; }
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 # On some compilers, pthreads are available without further options
4968 # (e.g. MacOS X). On some of these systems, the compiler will not
4969 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4970 # So we have to see first whether pthreads are available without
4971 # options before we can check whether -Kpthread improves anything.
4972 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4973 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4974 if test "${ac_cv_pthread_is_default+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test "$cross_compiling" = yes; then
4978 ac_cv_pthread_is_default=no
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 #include <pthread.h>
4989 void* routine(void* p){return NULL;}
4993 if(pthread_create(&p,NULL,routine,NULL)!=0)
4995 (void)pthread_detach(p);
5000 rm -f conftest$ac_exeext
5001 if { (ac_try="$ac_link"
5003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5004 *) ac_try_echo
=$ac_try;;
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_link") 2>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5011 { (case "(($ac_try" in
5012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_try") 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5021 ac_cv_pthread_is_default=yes
5026 echo "$as_me: program exited with status $ac_status" >&5
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5031 ac_cv_pthread_is_default=no
5033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5040 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5041 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5044 if test $ac_cv_pthread_is_default = yes
5048 # -Kpthread, if available, provides the right #defines
5049 # and linker options to make pthread_create available
5050 # Some compilers won't report that they do not support -Kpthread,
5051 # so we need to run a program to see whether it really made the
5052 # function available.
5053 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5054 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5055 if test "${ac_cv_kpthread+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 if test "$cross_compiling" = yes; then
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5070 #include <pthread.h>
5072 void* routine(void* p){return NULL;}
5076 if(pthread_create(&p,NULL,routine,NULL)!=0)
5078 (void)pthread_detach(p);
5083 rm -f conftest$ac_exeext
5084 if { (ac_try="$ac_link"
5086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5087 *) ac_try_echo
=$ac_try;;
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_link") 2>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5094 { (case "(($ac_try" in
5095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_try") 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5105 echo "$as_me: program exited with status $ac_status" >&5
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5119 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5120 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5123 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5125 # -Kthread, if available, provides the right #defines
5126 # and linker options to make pthread_create available
5127 # Some compilers won't report that they do not support -Kthread,
5128 # so we need to run a program to see whether it really made the
5129 # function available.
5130 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5131 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5132 if test "${ac_cv_kthread+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 if test "$cross_compiling" = yes; then
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5147 #include <pthread.h>
5149 void* routine(void* p){return NULL;}
5153 if(pthread_create(&p,NULL,routine,NULL)!=0)
5155 (void)pthread_detach(p);
5160 rm -f conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5164 *) ac_try_echo
=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5171 { (case "(($ac_try" in
5172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_try") 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5182 echo "$as_me: program exited with status $ac_status" >&5
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5196 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5197 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5200 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5202 # -pthread, if available, provides the right #defines
5203 # and linker options to make pthread_create available
5204 # Some compilers won't report that they do not support -pthread,
5205 # so we need to run a program to see whether it really made the
5206 # function available.
5207 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5208 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5209 if test "${ac_cv_thread+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 if test "$cross_compiling" = yes; then
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5224 #include <pthread.h>
5226 void* routine(void* p){return NULL;}
5230 if(pthread_create(&p,NULL,routine,NULL)!=0)
5232 (void)pthread_detach(p);
5237 rm -f conftest$ac_exeext
5238 if { (ac_try="$ac_link"
5240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5241 *) ac_try_echo
=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_link") 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5248 { (case "(($ac_try" in
5249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_try") 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5259 echo "$as_me: program exited with status $ac_status" >&5
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5273 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5274 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5277 # If we have set a CC compiler flag for thread support then
5278 # check if it works for CXX, too.
5282 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5283 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5286 if test "$ac_cv_kpthread" = "yes"
5288 CXX="$CXX -Kpthread"
5289 ac_cv_cxx_thread=yes
5290 elif test "$ac_cv_kthread" = "yes"
5293 ac_cv_cxx_thread=yes
5294 elif test "$ac_cv_pthread" = "yes"
5297 ac_cv_cxx_thread=yes
5300 if test $ac_cv_cxx_thread = yes
5302 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5303 $CXX -c conftest.$ac_ext 2>&5
5304 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5305 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5307 ac_cv_cxx_thread=yes
5313 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5314 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5319 # checks for header files
5320 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5322 if test "${ac_cv_header_stdc+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5348 *) ac_try_echo
=$ac_try;;
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5353 grep -v '^ *+' conftest.er1
>conftest.err
5355 cat conftest.err
>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && {
5358 test -z "$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5360 } && test -s conftest.
$ac_objext; then
5361 ac_cv_header_stdc
=yes
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.
$ac_ext >&5
5366 ac_cv_header_stdc
=no
5369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5371 if test $ac_cv_header_stdc = yes; then
5372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5373 cat >conftest.
$ac_ext <<_ACEOF
5376 cat confdefs.h
>>conftest.
$ac_ext
5377 cat >>conftest.
$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "memchr" >/dev
/null
2>&1; then
5386 ac_cv_header_stdc
=no
5392 if test $ac_cv_header_stdc = yes; then
5393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5394 cat >conftest.
$ac_ext <<_ACEOF
5397 cat confdefs.h
>>conftest.
$ac_ext
5398 cat >>conftest.
$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5404 $EGREP "free" >/dev
/null
2>&1; then
5407 ac_cv_header_stdc
=no
5413 if test $ac_cv_header_stdc = yes; then
5414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5415 if test "$cross_compiling" = yes; then
5418 cat >conftest.
$ac_ext <<_ACEOF
5421 cat confdefs.h
>>conftest.
$ac_ext
5422 cat >>conftest.
$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5426 #if ((' ' & 0x0FF) == 0x020)
5427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5430 # define ISLOWER(c) \
5431 (('a' <= (c) && (c) <= 'i') \
5432 || ('j' <= (c) && (c) <= 'r') \
5433 || ('s' <= (c) && (c) <= 'z'))
5434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5442 for (i = 0; i < 256; i++)
5443 if (XOR (islower (i), ISLOWER (i))
5444 || toupper (i) != TOUPPER (i))
5449 rm -f conftest
$ac_exeext
5450 if { (ac_try
="$ac_link"
5452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_link") 2>&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5460 { (case "(($ac_try" in
5461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5462 *) ac_try_echo
=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_try") 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5471 echo "$as_me: program exited with status $ac_status" >&5
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.
$ac_ext >&5
5476 ac_cv_header_stdc
=no
5478 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5484 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5485 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5486 if test $ac_cv_header_stdc = yes; then
5488 cat >>confdefs.h
<<\_ACEOF
5489 #define STDC_HEADERS 1
5494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5504 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5505 inttypes.h stdint.h unistd.h
5507 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 cat >conftest.
$ac_ext <<_ACEOF
5516 cat confdefs.h
>>conftest.
$ac_ext
5517 cat >>conftest.
$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5521 #include <$ac_header>
5523 rm -f conftest.
$ac_objext
5524 if { (ac_try
="$ac_compile"
5526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 eval "$as_ac_Header=yes"
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 eval "$as_ac_Header=no"
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 ac_res=`eval echo '${'$as_ac_Header'}'`
5551 { echo "$as_me:$LINENO: result: $ac_res" >&5
5552 echo "${ECHO_T}$ac_res" >&6; }
5553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5554 cat >>confdefs.h <<_ACEOF
5555 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5617 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5619 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5620 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5622 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5623 sys/lock.h sys/mkdev.h sys/modem.h \
5624 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5625 sys/termio.h sys/time.h \
5626 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5627 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5628 bluetooth/bluetooth.h linux/tipc.h
5630 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_res=`eval echo '${'$as_ac_Header'}'`
5638 { echo "$as_me:$LINENO: result: $ac_res" >&5
5639 echo "${ECHO_T}$ac_res" >&6; }
5641 # Is the header compilable?
5642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 $ac_includes_default
5651 #include <$ac_header>
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5657 *) ac_try_echo
=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5662 grep -v '^ *+' conftest.er1
>conftest.err
5664 cat conftest.err
>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest.
$ac_objext; then
5670 ac_header_compiler
=yes
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.
$ac_ext >&5
5675 ac_header_compiler
=no
5678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5680 echo "${ECHO_T}$ac_header_compiler" >&6; }
5682 # Is the header present?
5683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5685 cat >conftest.
$ac_ext <<_ACEOF
5688 cat confdefs.h
>>conftest.
$ac_ext
5689 cat >>conftest.
$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 #include <$ac_header>
5693 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } >/dev/null && {
5706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5709 ac_header_preproc=yes
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_header_preproc=no
5717 rm -f conftest.err conftest.$ac_ext
5718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5719 echo "${ECHO_T}$ac_header_preproc" >&6; }
5721 # So? What about this header?
5722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5728 ac_header_preproc=yes
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5744 ## -------------------------------------- ##
5745 ## Report this to http://bugs.python.org/ ##
5746 ## -------------------------------------- ##
5748 ) | sed "s/^/$as_me: WARNING: /" >&2
5751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 eval "$as_ac_Header=\$ac_header_preproc"
5758 ac_res=`eval echo '${'$as_ac_Header'}'`
5759 { echo "$as_me:$LINENO: result: $ac_res" >&5
5760 echo "${ECHO_T}$ac_res" >&6; }
5763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5764 cat >>confdefs.h <<_ACEOF
5765 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5778 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5779 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5780 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5781 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5807 *) ac_try_echo
=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1
>conftest.err
5814 cat conftest.err
>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.
$ac_objext; then
5820 eval "$as_ac_Header=yes"
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.
$ac_ext >&5
5825 eval "$as_ac_Header=no"
5828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5830 ac_res
=`eval echo '${'$as_ac_Header'}'`
5831 { echo "$as_me:$LINENO: result: $ac_res" >&5
5832 echo "${ECHO_T}$ac_res" >&6; }
5833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5834 cat >>confdefs.h
<<_ACEOF
5835 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5838 ac_header_dirent
=$ac_hdr; break
5842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5843 if test $ac_header_dirent = dirent.h
; then
5844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5846 if test "${ac_cv_search_opendir+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 ac_func_search_save_LIBS
=$LIBS
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5872 for ac_lib
in '' dir
; do
5873 if test -z "$ac_lib"; then
5874 ac_res
="none required"
5877 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5879 rm -f conftest.
$ac_objext conftest
$ac_exeext
5880 if { (ac_try
="$ac_link"
5882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_link") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest$ac_exeext &&
5896 $as_test_x conftest$ac_exeext; then
5897 ac_cv_search_opendir=$ac_res
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5907 if test "${ac_cv_search_opendir+set}" = set; then
5911 if test "${ac_cv_search_opendir+set}" = set; then
5914 ac_cv_search_opendir=no
5917 LIBS=$ac_func_search_save_LIBS
5919 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5920 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5921 ac_res=$ac_cv_search_opendir
5922 if test "$ac_res" != no; then
5923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5928 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5929 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5930 if test "${ac_cv_search_opendir+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_func_search_save_LIBS=$LIBS
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5941 /* Override any GCC internal prototype to avoid an error.
5942 Use char because int might match the return type of a GCC
5943 builtin and then its argument prototype would still apply. */
5956 for ac_lib in '' x; do
5957 if test -z "$ac_lib"; then
5958 ac_res="none required"
5961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5963 rm -f conftest.$ac_objext conftest$ac_exeext
5964 if { (ac_try="$ac_link"
5966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5967 *) ac_try_echo
=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_link") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest
$ac_exeext &&
5980 $as_test_x conftest
$ac_exeext; then
5981 ac_cv_search_opendir
=$ac_res
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5989 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5991 if test "${ac_cv_search_opendir+set}" = set; then
5995 if test "${ac_cv_search_opendir+set}" = set; then
5998 ac_cv_search_opendir
=no
6001 LIBS
=$ac_func_search_save_LIBS
6003 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6004 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6005 ac_res
=$ac_cv_search_opendir
6006 if test "$ac_res" != no
; then
6007 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6013 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6014 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6015 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6028 return makedev(0, 0);
6033 rm -f conftest.
$ac_objext conftest
$ac_exeext
6034 if { (ac_try
="$ac_link"
6036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_link") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest$ac_exeext &&
6050 $as_test_x conftest$ac_exeext; then
6051 ac_cv_header_sys_types_h_makedev=yes
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 ac_cv_header_sys_types_h_makedev=no
6059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6060 conftest$ac_exeext conftest.$ac_ext
6063 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6064 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6066 if test $ac_cv_header_sys_types_h_makedev = no; then
6067 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6068 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6069 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6070 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6074 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6076 # Is the header compilable?
6077 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6078 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6086 #include <sys/mkdev.h>
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6092 *) ac_try_echo
=$ac_try;;
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_compile") 2>conftest.er1
6097 grep -v '^ *+' conftest.er1
>conftest.err
6099 cat conftest.err
>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.
$ac_objext; then
6105 ac_header_compiler
=yes
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.
$ac_ext >&5
6110 ac_header_compiler
=no
6113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6115 echo "${ECHO_T}$ac_header_compiler" >&6; }
6117 # Is the header present?
6118 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6119 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6120 cat >conftest.
$ac_ext <<_ACEOF
6123 cat confdefs.h
>>conftest.
$ac_ext
6124 cat >>conftest.
$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <sys/mkdev.h>
6128 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } >/dev/null && {
6141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6144 ac_header_preproc=yes
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 ac_header_preproc=no
6152 rm -f conftest.err conftest.$ac_ext
6153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6154 echo "${ECHO_T}$ac_header_preproc" >&6; }
6156 # So? What about this header?
6157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6159 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6160 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6162 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6163 ac_header_preproc=yes
6166 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6167 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6169 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6171 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6173 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6175 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6177 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6179 ## -------------------------------------- ##
6180 ## Report this to http://bugs.python.org/ ##
6181 ## -------------------------------------- ##
6183 ) | sed "s/^/$as_me: WARNING: /" >&2
6186 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6187 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6188 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6193 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6194 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6197 if test $ac_cv_header_sys_mkdev_h = yes; then
6199 cat >>confdefs.h <<\_ACEOF
6200 #define MAJOR_IN_MKDEV 1
6207 if test $ac_cv_header_sys_mkdev_h = no; then
6208 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6209 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6210 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6211 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6215 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6217 # Is the header compilable?
6218 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6219 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6227 #include <sys/sysmacros.h>
6229 rm -f conftest.$ac_objext
6230 if { (ac_try="$ac_compile"
6232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6233 *) ac_try_echo
=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1
>conftest.err
6240 cat conftest.err
>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.
$ac_objext; then
6246 ac_header_compiler
=yes
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.
$ac_ext >&5
6251 ac_header_compiler
=no
6254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6256 echo "${ECHO_T}$ac_header_compiler" >&6; }
6258 # Is the header present?
6259 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6260 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/sysmacros.h>
6269 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6277 grep -v '^ *+' conftest.er1 >conftest.err
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } >/dev/null && {
6282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6283 test ! -s conftest.err
6285 ac_header_preproc=yes
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 ac_header_preproc=no
6293 rm -f conftest.err conftest.$ac_ext
6294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6295 echo "${ECHO_T}$ac_header_preproc" >&6; }
6297 # So? What about this header?
6298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6301 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6302 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6303 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6304 ac_header_preproc=yes
6307 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6308 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6310 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6312 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6314 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6316 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6317 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6318 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6320 ## -------------------------------------- ##
6321 ## Report this to http://bugs.python.org/ ##
6322 ## -------------------------------------- ##
6324 ) | sed "s/^/$as_me: WARNING: /" >&2
6327 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6328 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6329 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6334 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6335 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6338 if test $ac_cv_header_sys_sysmacros_h = yes; then
6340 cat >>confdefs.h <<\_ACEOF
6341 #define MAJOR_IN_SYSMACROS 1
6351 # On Solaris, term.h requires curses.h
6353 for ac_header in term.h
6355 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6368 #ifdef HAVE_CURSES_H
6373 #include <$ac_header>
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6379 *) ac_try_echo
=$ac_try;;
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_compile") 2>conftest.er1
6384 grep -v '^ *+' conftest.er1
>conftest.err
6386 cat conftest.err
>&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } && {
6389 test -z "$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6391 } && test -s conftest.
$ac_objext; then
6392 eval "$as_ac_Header=yes"
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.
$ac_ext >&5
6397 eval "$as_ac_Header=no"
6400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6402 ac_res
=`eval echo '${'$as_ac_Header'}'`
6403 { echo "$as_me:$LINENO: result: $ac_res" >&5
6404 echo "${ECHO_T}$ac_res" >&6; }
6405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6406 cat >>confdefs.h
<<_ACEOF
6407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415 # On Linux, netlink.h requires asm/types.h
6417 for ac_header
in linux
/netlink.h
6419 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6422 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 cat >conftest.
$ac_ext <<_ACEOF
6428 cat confdefs.h
>>conftest.
$ac_ext
6429 cat >>conftest.
$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6432 #ifdef HAVE_ASM_TYPES_H
6433 #include <asm/types.h>
6435 #ifdef HAVE_SYS_SOCKET_H
6436 #include <sys/socket.h>
6440 #include <$ac_header>
6442 rm -f conftest.
$ac_objext
6443 if { (ac_try
="$ac_compile"
6445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_compile") 2>conftest.er1
6451 grep -v '^ *+' conftest.er1 >conftest.err
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } && {
6456 test -z "$ac_c_werror_flag" ||
6457 test ! -s conftest.err
6458 } && test -s conftest.$ac_objext; then
6459 eval "$as_ac_Header=yes"
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 eval "$as_ac_Header=no"
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 ac_res=`eval echo '${'$as_ac_Header'}'`
6470 { echo "$as_me:$LINENO: result: $ac_res" >&5
6471 echo "${ECHO_T}$ac_res" >&6; }
6472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6482 # checks for typedefs
6484 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6485 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496 $EGREP "clock_t" >/dev/null 2>&1; then
6501 cat >>confdefs.h <<\_ACEOF
6502 #define clock_t long
6509 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6510 echo "${ECHO_T}$was_it_defined" >&6; }
6512 # Check whether using makedev requires defining _OSF_SOURCE
6513 { echo "$as_me:$LINENO: checking for makedev" >&5
6514 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <sys/types.h>
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (ac_try="$ac_link"
6533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6534 *) ac_try_echo
=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_link") 2>conftest.er1
6539 grep -v '^ *+' conftest.er1
>conftest.err
6541 cat conftest.err
>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest
$ac_exeext &&
6547 $as_test_x conftest
$ac_exeext; then
6548 ac_cv_has_makedev
=yes
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.
$ac_ext >&5
6553 ac_cv_has_makedev
=no
6556 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6557 conftest
$ac_exeext conftest.
$ac_ext
6558 if test "$ac_cv_has_makedev" = "no"; then
6559 # we didn't link, try if _OSF_SOURCE will allow us to link
6560 cat >conftest.
$ac_ext <<_ACEOF
6563 cat confdefs.h
>>conftest.
$ac_ext
6564 cat >>conftest.
$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6567 #define _OSF_SOURCE 1
6568 #include <sys/types.h>
6578 rm -f conftest.
$ac_objext conftest
$ac_exeext
6579 if { (ac_try
="$ac_link"
6581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_link") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest$ac_exeext &&
6595 $as_test_x conftest$ac_exeext; then
6596 ac_cv_has_makedev=yes
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_has_makedev=no
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605 conftest$ac_exeext conftest.$ac_ext
6606 if test "$ac_cv_has_makedev" = "yes"; then
6608 cat >>confdefs.h <<\_ACEOF
6609 #define _OSF_SOURCE 1
6614 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6615 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6616 if test "$ac_cv_has_makedev" = "yes"; then
6618 cat >>confdefs.h <<\_ACEOF
6619 #define HAVE_MAKEDEV 1
6624 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6625 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6626 # defined, but the compiler does not support pragma redefine_extname,
6627 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6628 # structures (such as rlimit64) without declaring them. As a
6629 # work-around, disable LFS on such configurations
6632 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6633 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6634 cat >conftest.$ac_ext <<_ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6641 #define _LARGEFILE_SOURCE 1
6642 #define _FILE_OFFSET_BITS 64
6643 #include <sys/resource.h>
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6657 *) ac_try_echo
=$ac_try;;
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6662 grep -v '^ *+' conftest.er1
>conftest.err
6664 cat conftest.err
>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.
$ac_objext; then
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.
$ac_ext >&5
6678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6680 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6681 if test "$sol_lfs_bug" = "yes"; then
6685 if test "$use_lfs" = "yes"; then
6686 # Two defines needed to enable largefile support on various platforms
6687 # These may affect some typedefs
6689 cat >>confdefs.h
<<\_ACEOF
6690 #define _LARGEFILE_SOURCE 1
6694 cat >>confdefs.h
<<\_ACEOF
6695 #define _FILE_OFFSET_BITS 64
6700 # Add some code to confdefs.h so that the test for off_t works on SCO
6701 cat >> confdefs.h
<<\EOF
6707 # Type availability checks
6708 { echo "$as_me:$LINENO: checking for mode_t" >&5
6709 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6710 if test "${ac_cv_type_mode_t+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 cat >conftest.
$ac_ext <<_ACEOF
6716 cat confdefs.h
>>conftest.
$ac_ext
6717 cat >>conftest.
$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6720 typedef mode_t ac__type_new_;
6724 if ((ac__type_new_ *) 0)
6726 if (sizeof (ac__type_new_))
6732 rm -f conftest.
$ac_objext
6733 if { (ac_try
="$ac_compile"
6735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_compile") 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest.$ac_objext; then
6749 ac_cv_type_mode_t=yes
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ac_cv_type_mode_t=no
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6760 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6761 if test $ac_cv_type_mode_t = yes; then
6765 cat >>confdefs.h <<_ACEOF
6771 { echo "$as_me:$LINENO: checking for off_t" >&5
6772 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6773 if test "${ac_cv_type_off_t+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 $ac_includes_default
6783 typedef off_t ac__type_new_;
6787 if ((ac__type_new_ *) 0)
6789 if (sizeof (ac__type_new_))
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6799 *) ac_try_echo
=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.
$ac_objext; then
6812 ac_cv_type_off_t
=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.
$ac_ext >&5
6820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6823 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6824 if test $ac_cv_type_off_t = yes; then
6828 cat >>confdefs.h
<<_ACEOF
6829 #define off_t long int
6834 { echo "$as_me:$LINENO: checking for pid_t" >&5
6835 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6836 if test "${ac_cv_type_pid_t+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 cat >conftest.
$ac_ext <<_ACEOF
6842 cat confdefs.h
>>conftest.
$ac_ext
6843 cat >>conftest.
$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 typedef pid_t ac__type_new_;
6850 if ((ac__type_new_ *) 0)
6852 if (sizeof (ac__type_new_))
6858 rm -f conftest.
$ac_objext
6859 if { (ac_try
="$ac_compile"
6861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865 (eval "$ac_compile") 2>conftest.er1
6867 grep -v '^ *+' conftest.er1 >conftest.err
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && {
6872 test -z "$ac_c_werror_flag" ||
6873 test ! -s conftest.err
6874 } && test -s conftest.$ac_objext; then
6875 ac_cv_type_pid_t=yes
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6886 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6887 if test $ac_cv_type_pid_t = yes; then
6891 cat >>confdefs.h <<_ACEOF
6897 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6898 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6899 if test "${ac_cv_type_signal+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 #include <sys/types.h>
6914 return *(signal (0, 0)) (0) == 1;
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6923 *) ac_try_echo
=$ac_try;;
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_compile") 2>conftest.er1
6928 grep -v '^ *+' conftest.er1
>conftest.err
6930 cat conftest.err
>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest.
$ac_objext; then
6936 ac_cv_type_signal
=int
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.
$ac_ext >&5
6941 ac_cv_type_signal
=void
6944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6946 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6947 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6949 cat >>confdefs.h
<<_ACEOF
6950 #define RETSIGTYPE $ac_cv_type_signal
6954 { echo "$as_me:$LINENO: checking for size_t" >&5
6955 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6956 if test "${ac_cv_type_size_t+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 typedef size_t ac__type_new_;
6970 if ((ac__type_new_ *) 0)
6972 if (sizeof (ac__type_new_))
6978 rm -f conftest.
$ac_objext
6979 if { (ac_try
="$ac_compile"
6981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6987 grep -v '^ *+' conftest.er1 >conftest.err
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_type_size_t=yes
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_cv_type_size_t=no
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7006 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7007 if test $ac_cv_type_size_t = yes; then
7011 cat >>confdefs.h <<_ACEOF
7012 #define size_t unsigned int
7017 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7018 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7019 if test "${ac_cv_type_uid_t+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7032 $EGREP "uid_t" >/dev/null 2>&1; then
7033 ac_cv_type_uid_t=yes
7040 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7041 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7042 if test $ac_cv_type_uid_t = no; then
7044 cat >>confdefs.h <<\_ACEOF
7049 cat >>confdefs.h <<\_ACEOF
7056 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7057 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7058 if test "${ac_cv_c_uint32_t+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7063 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7064 cat >conftest.$ac_ext <<_ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7074 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7081 rm -f conftest.$ac_objext
7082 if { (ac_try="$ac_compile"
7084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7085 *) ac_try_echo
=$ac_try;;
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088 (eval "$ac_compile") 2>conftest.er1
7090 grep -v '^ *+' conftest.er1
>conftest.err
7092 cat conftest.err
>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && {
7095 test -z "$ac_c_werror_flag" ||
7096 test ! -s conftest.err
7097 } && test -s conftest.
$ac_objext; then
7099 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7100 *) ac_cv_c_uint32_t
=$ac_type ;;
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.
$ac_ext >&5
7110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7111 test "$ac_cv_c_uint32_t" != no
&& break
7114 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7115 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7116 case $ac_cv_c_uint32_t in #(
7120 cat >>confdefs.h
<<\_ACEOF
7125 cat >>confdefs.h
<<_ACEOF
7126 #define uint32_t $ac_cv_c_uint32_t
7132 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7133 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7134 if test "${ac_cv_c_uint64_t+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7139 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7140 cat >conftest.
$ac_ext <<_ACEOF
7143 cat confdefs.h
>>conftest.
$ac_ext
7144 cat >>conftest.
$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7150 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7157 rm -f conftest.
$ac_objext
7158 if { (ac_try
="$ac_compile"
7160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7166 grep -v '^ *+' conftest.er1 >conftest.err
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7175 uint64_t) ac_cv_c_uint64_t=yes ;;
7176 *) ac_cv_c_uint64_t=$ac_type ;;
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 test "$ac_cv_c_uint64_t" != no && break
7190 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7191 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7192 case $ac_cv_c_uint64_t in #(
7196 cat >>confdefs.h <<\_ACEOF
7201 cat >>confdefs.h <<_ACEOF
7202 #define uint64_t $ac_cv_c_uint64_t
7208 { echo "$as_me:$LINENO: checking for int32_t" >&5
7209 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7210 if test "${ac_cv_c_int32_t+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 for ac_type in 'int32_t' 'int' 'long int' \
7215 'long long int' 'short int' 'signed char'; do
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7226 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7237 *) ac_try_echo
=$ac_try;;
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7242 grep -v '^ *+' conftest.er1
>conftest.err
7244 cat conftest.err
>&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.
$ac_objext; then
7250 cat >conftest.
$ac_ext <<_ACEOF
7253 cat confdefs.h
>>conftest.
$ac_ext
7254 cat >>conftest.
$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 $ac_includes_default
7260 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7261 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7268 rm -f conftest.
$ac_objext
7269 if { (ac_try
="$ac_compile"
7271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_compile") 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest.$ac_objext; then
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7291 int32_t) ac_cv_c_int32_t=yes ;;
7292 *) ac_cv_c_int32_t=$ac_type ;;
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 test "$ac_cv_c_int32_t" != no && break
7309 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7310 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7311 case $ac_cv_c_int32_t in #(
7315 cat >>confdefs.h <<_ACEOF
7316 #define int32_t $ac_cv_c_int32_t
7322 { echo "$as_me:$LINENO: checking for int64_t" >&5
7323 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7324 if test "${ac_cv_c_int64_t+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 for ac_type in 'int64_t' 'int' 'long int' \
7329 'long long int' 'short int' 'signed char'; do
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7340 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7351 *) ac_try_echo
=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1
>conftest.err
7358 cat conftest.err
>&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.
$ac_objext; then
7364 cat >conftest.
$ac_ext <<_ACEOF
7367 cat confdefs.h
>>conftest.
$ac_ext
7368 cat >>conftest.
$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7374 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7375 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7382 rm -f conftest.
$ac_objext
7383 if { (ac_try
="$ac_compile"
7385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7405 int64_t) ac_cv_c_int64_t=yes ;;
7406 *) ac_cv_c_int64_t=$ac_type ;;
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 test "$ac_cv_c_int64_t" != no && break
7423 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7424 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7425 case $ac_cv_c_int64_t in #(
7429 cat >>confdefs.h <<_ACEOF
7430 #define int64_t $ac_cv_c_int64_t
7435 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7436 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7437 if test "${ac_cv_type_ssize_t+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7447 typedef ssize_t ac__type_new_;
7451 if ((ac__type_new_ *) 0)
7453 if (sizeof (ac__type_new_))
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7463 *) ac_try_echo
=$ac_try;;
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7468 grep -v '^ *+' conftest.er1
>conftest.err
7470 cat conftest.err
>&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.
$ac_objext; then
7476 ac_cv_type_ssize_t
=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.
$ac_ext >&5
7481 ac_cv_type_ssize_t
=no
7484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7486 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7487 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7488 if test $ac_cv_type_ssize_t = yes; then
7490 cat >>confdefs.h
<<\_ACEOF
7491 #define HAVE_SSIZE_T 1
7497 # Sizes of various common basic types
7498 # ANSI C requires sizeof(char) == 1, so no need to check it
7499 { echo "$as_me:$LINENO: checking for int" >&5
7500 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7501 if test "${ac_cv_type_int+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.
$ac_ext <<_ACEOF
7507 cat confdefs.h
>>conftest.
$ac_ext
7508 cat >>conftest.
$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 typedef int ac__type_new_;
7515 if ((ac__type_new_ *) 0)
7517 if (sizeof (ac__type_new_))
7523 rm -f conftest.
$ac_objext
7524 if { (ac_try
="$ac_compile"
7526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7551 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7553 # The cast to long int works around a bug in the HP C Compiler
7554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7555 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7556 # This bug is HP SR number 8606223364.
7557 { echo "$as_me:$LINENO: checking size of int" >&5
7558 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7559 if test "${ac_cv_sizeof_int+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test "$cross_compiling" = yes; then
7563 # Depending upon the size, compute the lo and hi bounds.
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 typedef int ac__type_sizeof_;
7575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7591 grep -v '^
*+' conftest.er1 >conftest.err
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest.$ac_objext; then
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 typedef int ac__type_sizeof_;
7612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compile") 2>conftest.er1
7628 grep -v '^
*+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && {
7633 test -z "$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7635 } && test -s conftest.$ac_objext; then
7636 ac_hi=$ac_mid; break
7638 echo "$as_me: failed program was:" >&5
7639 sed 's
/^
/|
/' conftest.$ac_ext >&5
7641 ac_lo=`expr $ac_mid + 1`
7642 if test $ac_lo -le $ac_mid; then
7646 ac_mid=`expr 2 '*' $ac_mid + 1`
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 echo "$as_me: failed program was:" >&5
7653 sed 's
/^
/|
/' conftest.$ac_ext >&5
7655 cat >conftest.$ac_ext <<_ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 $ac_includes_default
7662 typedef int ac__type_sizeof_;
7666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7673 rm -f conftest.$ac_objext
7674 if { (ac_try="$ac_compile"
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7682 grep -v '^
*+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7692 cat >conftest.$ac_ext <<_ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 typedef int ac__type_sizeof_;
7703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^
*+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_lo=$ac_mid; break
7729 echo "$as_me: failed program was:" >&5
7730 sed 's
/^
/|
/' conftest.$ac_ext >&5
7732 ac_hi=`expr '(' $ac_mid ')' - 1`
7733 if test $ac_mid -le $ac_hi; then
7737 ac_mid=`expr 2 '*' $ac_mid`
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 echo "$as_me: failed program was:" >&5
7744 sed 's
/^
/|
/' conftest.$ac_ext >&5
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 # Binary search between lo and hi bounds.
7754 while test "x$ac_lo" != "x$ac_hi"; do
7755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762 $ac_includes_default
7763 typedef int ac__type_sizeof_;
7767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7783 grep -v '^
*+' conftest.er1 >conftest.err
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7793 echo "$as_me: failed program was:" >&5
7794 sed 's
/^
/|
/' conftest.$ac_ext >&5
7796 ac_lo=`expr '(' $ac_mid ')' + 1`
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 ?*) ac_cv_sizeof_int=$ac_lo;;
7803 '') if test "$ac_cv_type_int" = yes; then
7804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7805 See \`config.log' for more details.
" >&5
7806 echo "$as_me: error
: cannot compute sizeof
(int
)
7807 See \
`config.log' for more details." >&2;}
7808 { (exit 77); exit 77; }; }
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 $ac_includes_default
7821 typedef int ac__type_sizeof_;
7822 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7823 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7830 FILE *f = fopen ("conftest.val", "w");
7833 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7835 long int i = longval ();
7836 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7838 fprintf (f, "%ld\n", i);
7842 unsigned long int i = ulongval ();
7843 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7845 fprintf (f, "%lu\n", i);
7847 return ferror (f) || fclose (f) != 0;
7853 rm -f conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7857 *) ac_try_echo
=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_link") 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7864 { (case "(($ac_try" in
7865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_try") 2>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 ac_cv_sizeof_int=`cat conftest.val
`
7875 echo "$as_me: program exited with status $ac_status" >&5
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7880 if test "$ac_cv_type_int" = yes; then
7881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7882 See \`config.log
' for more details." >&5
7883 echo "$as_me: error: cannot compute sizeof (int)
7884 See \`config.log' for more details.
" >&2;}
7885 { (exit 77); exit 77; }; }
7890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7894 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7895 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7899 cat >>confdefs.h <<_ACEOF
7900 #define SIZEOF_INT $ac_cv_sizeof_int
7904 { echo "$as_me:$LINENO: checking
for long
" >&5
7905 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7906 if test "${ac_cv_type_long+set}" = set; then
7907 echo $ECHO_N "(cached
) $ECHO_C" >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 typedef long ac__type_new_;
7920 if ((ac__type_new_ *) 0)
7922 if (sizeof (ac__type_new_))
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7947 echo "$as_me: failed program was
:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7956 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7958 # The cast to long int works around a bug in the HP C Compiler
7959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7961 # This bug is HP SR number 8606223364.
7962 { echo "$as_me:$LINENO: checking size of long
" >&5
7963 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7964 if test "${ac_cv_sizeof_long+set}" = set; then
7965 echo $ECHO_N "(cached
) $ECHO_C" >&6
7967 if test "$cross_compiling" = yes; then
7968 # Depending upon the size, compute the lo and hi bounds.
7969 cat >conftest.$ac_ext <<_ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7976 typedef long ac__type_sizeof_;
7980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7996 grep -v '^ *+' conftest.er1 >conftest.err
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 typedef long ac__type_sizeof_;
8017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_hi=$ac_mid; break
8043 echo "$as_me: failed program was
:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_lo=`expr $ac_mid + 1`
8047 if test $ac_lo -le $ac_mid; then
8051 ac_mid=`expr 2 '*' $ac_mid + 1`
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 echo "$as_me: failed program was
:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 cat >conftest.$ac_ext <<_ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8067 typedef long ac__type_sizeof_;
8071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.$ac_objext; then
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8104 typedef long ac__type_sizeof_;
8108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_lo=$ac_mid; break
8134 echo "$as_me: failed program was
:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_hi=`expr '(' $ac_mid ')' - 1`
8138 if test $ac_mid -le $ac_hi; then
8142 ac_mid=`expr 2 '*' $ac_mid`
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 echo "$as_me: failed program was
:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 # Binary search between lo and hi bounds.
8159 while test "x
$ac_lo" != "x
$ac_hi"; do
8160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8161 cat >conftest.$ac_ext <<_ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 $ac_includes_default
8168 typedef long ac__type_sizeof_;
8172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8198 echo "$as_me: failed program was
:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_lo=`expr '(' $ac_mid ')' + 1`
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 ?*) ac_cv_sizeof_long=$ac_lo;;
8208 '') if test "$ac_cv_type_long" = yes; then
8209 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8210 See \
`config.log' for more details." >&5
8211 echo "$as_me: error: cannot compute sizeof (long)
8212 See \`config.log
' for more details." >&2;}
8213 { (exit 77); exit 77; }; }
8219 cat >conftest.$ac_ext <<_ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 typedef long ac__type_sizeof_;
8227 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8228 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8235 FILE *f = fopen ("conftest.val", "w");
8238 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8240 long int i = longval ();
8241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8243 fprintf (f, "%ld\n", i);
8247 unsigned long int i = ulongval ();
8248 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8250 fprintf (f, "%lu\n", i);
8252 return ferror (f) || fclose (f) != 0;
8258 rm -f conftest$ac_exeext
8259 if { (ac_try="$ac_link"
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_link") 2>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8269 { (case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_try") 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_sizeof_long=`cat conftest.val`
8280 echo "$as_me: program exited with status $ac_status" >&5
8281 echo "$as_me: failed program was:" >&5
8282 sed 's
/^
/|
/' conftest.$ac_ext >&5
8285 if test "$ac_cv_type_long" = yes; then
8286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8287 See \`config.log' for more details.
" >&5
8288 echo "$as_me: error
: cannot compute sizeof
(long
)
8289 See \
`config.log' for more details." >&2;}
8290 { (exit 77); exit 77; }; }
8295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8299 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8300 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8304 cat >>confdefs.h <<_ACEOF
8305 #define SIZEOF_LONG $ac_cv_sizeof_long
8309 { echo "$as_me:$LINENO: checking for void *" >&5
8310 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8311 if test "${ac_cv_type_void_p+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 $ac_includes_default
8321 typedef void * ac__type_new_;
8325 if ((ac__type_new_ *) 0)
8327 if (sizeof (ac__type_new_))
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8337 *) ac_try_echo
=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8342 grep -v '^ *+' conftest.er1
>conftest.err
8344 cat conftest.err
>&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.
$ac_objext; then
8350 ac_cv_type_void_p
=yes
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.
$ac_ext >&5
8355 ac_cv_type_void_p
=no
8358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8360 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8361 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8363 # The cast to long int works around a bug in the HP C Compiler
8364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8366 # This bug is HP SR number 8606223364.
8367 { echo "$as_me:$LINENO: checking size of void *" >&5
8368 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8369 if test "${ac_cv_sizeof_void_p+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 if test "$cross_compiling" = yes; then
8373 # Depending upon the size, compute the lo and hi bounds.
8374 cat >conftest.
$ac_ext <<_ACEOF
8377 cat confdefs.h
>>conftest.
$ac_ext
8378 cat >>conftest.
$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 typedef void * ac__type_sizeof_;
8385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8392 rm -f conftest.
$ac_objext
8393 if { (ac_try
="$ac_compile"
8395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest.$ac_objext; then
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 typedef void * ac__type_sizeof_;
8422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8433 *) ac_try_echo
=$ac_try;;
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8438 grep -v '^ *+' conftest.er1
>conftest.err
8440 cat conftest.err
>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.
$ac_objext; then
8446 ac_hi
=$ac_mid; break
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.
$ac_ext >&5
8451 ac_lo
=`expr $ac_mid + 1`
8452 if test $ac_lo -le $ac_mid; then
8456 ac_mid
=`expr 2 '*' $ac_mid + 1`
8459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.
$ac_ext >&5
8465 cat >conftest.
$ac_ext <<_ACEOF
8468 cat confdefs.h
>>conftest.
$ac_ext
8469 cat >>conftest.
$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8472 typedef void * ac__type_sizeof_;
8476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8483 rm -f conftest.
$ac_objext
8484 if { (ac_try
="$ac_compile"
8486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_compile") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest.$ac_objext; then
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 typedef void * ac__type_sizeof_;
8513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8524 *) ac_try_echo
=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1
>conftest.err
8531 cat conftest.err
>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.
$ac_objext; then
8537 ac_lo
=$ac_mid; break
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.
$ac_ext >&5
8542 ac_hi
=`expr '(' $ac_mid ')' - 1`
8543 if test $ac_mid -le $ac_hi; then
8547 ac_mid
=`expr 2 '*' $ac_mid`
8550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.
$ac_ext >&5
8559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8563 # Binary search between lo and hi bounds.
8564 while test "x$ac_lo" != "x$ac_hi"; do
8565 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8566 cat >conftest.
$ac_ext <<_ACEOF
8569 cat confdefs.h
>>conftest.
$ac_ext
8570 cat >>conftest.
$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 typedef void * ac__type_sizeof_;
8577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8584 rm -f conftest.
$ac_objext
8585 if { (ac_try
="$ac_compile"
8587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_compile") 2>conftest.er1
8593 grep -v '^ *+' conftest.er1 >conftest.err
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
8600 } && test -s conftest.$ac_objext; then
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_lo=`expr '(' $ac_mid ')' + 1`
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8613 '') if test "$ac_cv_type_void_p" = yes; then
8614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8615 See \`config.log
' for more details." >&5
8616 echo "$as_me: error: cannot compute sizeof (void *)
8617 See \`config.log' for more details.
" >&2;}
8618 { (exit 77); exit 77; }; }
8620 ac_cv_sizeof_void_p=0
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 typedef void * ac__type_sizeof_;
8632 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8633 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8640 FILE *f = fopen ("conftest.val
", "w
");
8643 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8645 long int i = longval ();
8646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8648 fprintf (f, "%ld
\n", i);
8652 unsigned long int i = ulongval ();
8653 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8655 fprintf (f, "%lu
\n", i);
8657 return ferror (f) || fclose (f) != 0;
8663 rm -f conftest$ac_exeext
8664 if { (ac_try="$ac_link"
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_link") 2>&5
8672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_try") 2>&5
8681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_sizeof_void_p=`cat conftest.val`
8685 echo "$as_me: program exited with status
$ac_status" >&5
8686 echo "$as_me: failed program was
:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8690 if test "$ac_cv_type_void_p" = yes; then
8691 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8692 See \
`config.log' for more details." >&5
8693 echo "$as_me: error: cannot compute sizeof (void *)
8694 See \`config.log
' for more details." >&2;}
8695 { (exit 77); exit 77; }; }
8697 ac_cv_sizeof_void_p=0
8700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8704 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8705 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8709 cat >>confdefs.h <<_ACEOF
8710 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8714 { echo "$as_me:$LINENO: checking for short" >&5
8715 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8716 if test "${ac_cv_type_short+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 $ac_includes_default
8726 typedef short ac__type_new_;
8730 if ((ac__type_new_ *) 0)
8732 if (sizeof (ac__type_new_))
8738 rm -f conftest.$ac_objext
8739 if { (ac_try="$ac_compile"
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8747 grep -v '^
*+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest.$ac_objext; then
8755 ac_cv_type_short=yes
8757 echo "$as_me: failed program was:" >&5
8758 sed 's
/^
/|
/' conftest.$ac_ext >&5
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8766 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8768 # The cast to long int works around a bug in the HP C Compiler
8769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8771 # This bug is HP SR number 8606223364.
8772 { echo "$as_me:$LINENO: checking size of short" >&5
8773 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8774 if test "${ac_cv_sizeof_short+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 if test "$cross_compiling" = yes; then
8778 # Depending upon the size, compute the lo and hi bounds.
8779 cat >conftest.
$ac_ext <<_ACEOF
8782 cat confdefs.h
>>conftest.
$ac_ext
8783 cat >>conftest.
$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 typedef short ac__type_sizeof_;
8790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8797 rm -f conftest.
$ac_objext
8798 if { (ac_try
="$ac_compile"
8800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_compile") 2>conftest.er1
8806 grep -v '^ *+' conftest.er1 >conftest.err
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest.$ac_objext; then
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 $ac_includes_default
8823 typedef short ac__type_sizeof_;
8827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8834 rm -f conftest.$ac_objext
8835 if { (ac_try="$ac_compile"
8837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8838 *) ac_try_echo
=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_compile") 2>conftest.er1
8843 grep -v '^ *+' conftest.er1
>conftest.err
8845 cat conftest.err
>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest.
$ac_objext; then
8851 ac_hi
=$ac_mid; break
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.
$ac_ext >&5
8856 ac_lo
=`expr $ac_mid + 1`
8857 if test $ac_lo -le $ac_mid; then
8861 ac_mid
=`expr 2 '*' $ac_mid + 1`
8864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.
$ac_ext >&5
8870 cat >conftest.
$ac_ext <<_ACEOF
8873 cat confdefs.h
>>conftest.
$ac_ext
8874 cat >>conftest.
$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 $ac_includes_default
8877 typedef short ac__type_sizeof_;
8881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8888 rm -f conftest.
$ac_objext
8889 if { (ac_try
="$ac_compile"
8891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_compile") 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest.$ac_objext; then
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8914 typedef short ac__type_sizeof_;
8918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8925 rm -f conftest.$ac_objext
8926 if { (ac_try="$ac_compile"
8928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8929 *) ac_try_echo
=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_compile") 2>conftest.er1
8934 grep -v '^ *+' conftest.er1
>conftest.err
8936 cat conftest.err
>&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest.
$ac_objext; then
8942 ac_lo
=$ac_mid; break
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.
$ac_ext >&5
8947 ac_hi
=`expr '(' $ac_mid ')' - 1`
8948 if test $ac_mid -le $ac_hi; then
8952 ac_mid
=`expr 2 '*' $ac_mid`
8955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.
$ac_ext >&5
8964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8968 # Binary search between lo and hi bounds.
8969 while test "x$ac_lo" != "x$ac_hi"; do
8970 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8971 cat >conftest.
$ac_ext <<_ACEOF
8974 cat confdefs.h
>>conftest.
$ac_ext
8975 cat >>conftest.
$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977 $ac_includes_default
8978 typedef short ac__type_sizeof_;
8982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8989 rm -f conftest.
$ac_objext
8990 if { (ac_try
="$ac_compile"
8992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_compile") 2>conftest.er1
8998 grep -v '^ *+' conftest.er1 >conftest.err
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } && {
9003 test -z "$ac_c_werror_flag" ||
9004 test ! -s conftest.err
9005 } && test -s conftest.$ac_objext; then
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_lo=`expr '(' $ac_mid ')' + 1`
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 ?*) ac_cv_sizeof_short=$ac_lo;;
9018 '') if test "$ac_cv_type_short" = yes; then
9019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9020 See \`config.log
' for more details." >&5
9021 echo "$as_me: error: cannot compute sizeof (short)
9022 See \`config.log' for more details.
" >&2;}
9023 { (exit 77); exit 77; }; }
9025 ac_cv_sizeof_short=0
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9036 typedef short ac__type_sizeof_;
9037 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9038 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9045 FILE *f = fopen ("conftest.val
", "w
");
9048 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9050 long int i = longval ();
9051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9053 fprintf (f, "%ld
\n", i);
9057 unsigned long int i = ulongval ();
9058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9060 fprintf (f, "%lu
\n", i);
9062 return ferror (f) || fclose (f) != 0;
9068 rm -f conftest$ac_exeext
9069 if { (ac_try="$ac_link"
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_link") 2>&5
9077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 ac_cv_sizeof_short=`cat conftest.val`
9090 echo "$as_me: program exited with status
$ac_status" >&5
9091 echo "$as_me: failed program was
:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9095 if test "$ac_cv_type_short" = yes; then
9096 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9097 See \
`config.log' for more details." >&5
9098 echo "$as_me: error: cannot compute sizeof (short)
9099 See \`config.log
' for more details." >&2;}
9100 { (exit 77); exit 77; }; }
9102 ac_cv_sizeof_short=0
9105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9109 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9110 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9114 cat >>confdefs.h <<_ACEOF
9115 #define SIZEOF_SHORT $ac_cv_sizeof_short
9119 { echo "$as_me:$LINENO: checking for float" >&5
9120 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9121 if test "${ac_cv_type_float+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 $ac_includes_default
9131 typedef float ac__type_new_;
9135 if ((ac__type_new_ *) 0)
9137 if (sizeof (ac__type_new_))
9143 rm -f conftest.$ac_objext
9144 if { (ac_try="$ac_compile"
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9152 grep -v '^
*+' conftest.er1 >conftest.err
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.$ac_objext; then
9160 ac_cv_type_float=yes
9162 echo "$as_me: failed program was:" >&5
9163 sed 's
/^
/|
/' conftest.$ac_ext >&5
9168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9171 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9173 # The cast to long int works around a bug in the HP C Compiler
9174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9176 # This bug is HP SR number 8606223364.
9177 { echo "$as_me:$LINENO: checking size of float" >&5
9178 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9179 if test "${ac_cv_sizeof_float+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 if test "$cross_compiling" = yes; then
9183 # Depending upon the size, compute the lo and hi bounds.
9184 cat >conftest.
$ac_ext <<_ACEOF
9187 cat confdefs.h
>>conftest.
$ac_ext
9188 cat >>conftest.
$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 $ac_includes_default
9191 typedef float ac__type_sizeof_;
9195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9202 rm -f conftest.
$ac_objext
9203 if { (ac_try
="$ac_compile"
9205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9211 grep -v '^ *+' conftest.er1 >conftest.err
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.$ac_objext; then
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 typedef float ac__type_sizeof_;
9232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9243 *) ac_try_echo
=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_compile") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1
>conftest.err
9250 cat conftest.err
>&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest.
$ac_objext; then
9256 ac_hi
=$ac_mid; break
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.
$ac_ext >&5
9261 ac_lo
=`expr $ac_mid + 1`
9262 if test $ac_lo -le $ac_mid; then
9266 ac_mid
=`expr 2 '*' $ac_mid + 1`
9269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.
$ac_ext >&5
9275 cat >conftest.
$ac_ext <<_ACEOF
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9282 typedef float ac__type_sizeof_;
9286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9293 rm -f conftest.
$ac_objext
9294 if { (ac_try
="$ac_compile"
9296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_compile") 2>conftest.er1
9302 grep -v '^ *+' conftest.er1 >conftest.err
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 } && test -s conftest.$ac_objext; then
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 typedef float ac__type_sizeof_;
9323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9334 *) ac_try_echo
=$ac_try;;
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_compile") 2>conftest.er1
9339 grep -v '^ *+' conftest.er1
>conftest.err
9341 cat conftest.err
>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && {
9344 test -z "$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9346 } && test -s conftest.
$ac_objext; then
9347 ac_lo
=$ac_mid; break
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.
$ac_ext >&5
9352 ac_hi
=`expr '(' $ac_mid ')' - 1`
9353 if test $ac_mid -le $ac_hi; then
9357 ac_mid
=`expr 2 '*' $ac_mid`
9360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.
$ac_ext >&5
9369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9373 # Binary search between lo and hi bounds.
9374 while test "x$ac_lo" != "x$ac_hi"; do
9375 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9376 cat >conftest.
$ac_ext <<_ACEOF
9379 cat confdefs.h
>>conftest.
$ac_ext
9380 cat >>conftest.
$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 $ac_includes_default
9383 typedef float ac__type_sizeof_;
9387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9394 rm -f conftest.
$ac_objext
9395 if { (ac_try
="$ac_compile"
9397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_compile") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1 >conftest.err
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest.$ac_objext; then
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_lo=`expr '(' $ac_mid ')' + 1`
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422 ?*) ac_cv_sizeof_float=$ac_lo;;
9423 '') if test "$ac_cv_type_float" = yes; then
9424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9425 See \`config.log
' for more details." >&5
9426 echo "$as_me: error: cannot compute sizeof (float)
9427 See \`config.log' for more details.
" >&2;}
9428 { (exit 77); exit 77; }; }
9430 ac_cv_sizeof_float=0
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 $ac_includes_default
9441 typedef float ac__type_sizeof_;
9442 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9443 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9450 FILE *f = fopen ("conftest.val
", "w
");
9453 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9455 long int i = longval ();
9456 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9458 fprintf (f, "%ld
\n", i);
9462 unsigned long int i = ulongval ();
9463 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9465 fprintf (f, "%lu
\n", i);
9467 return ferror (f) || fclose (f) != 0;
9473 rm -f conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>&5
9482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_cv_sizeof_float=`cat conftest.val`
9495 echo "$as_me: program exited with status
$ac_status" >&5
9496 echo "$as_me: failed program was
:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9500 if test "$ac_cv_type_float" = yes; then
9501 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9502 See \
`config.log' for more details." >&5
9503 echo "$as_me: error: cannot compute sizeof (float)
9504 See \`config.log
' for more details." >&2;}
9505 { (exit 77); exit 77; }; }
9507 ac_cv_sizeof_float=0
9510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9514 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9515 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9519 cat >>confdefs.h <<_ACEOF
9520 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9524 { echo "$as_me:$LINENO: checking for double" >&5
9525 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9526 if test "${ac_cv_type_double+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535 $ac_includes_default
9536 typedef double ac__type_new_;
9540 if ((ac__type_new_ *) 0)
9542 if (sizeof (ac__type_new_))
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
9557 grep -v '^
*+' conftest.er1 >conftest.err
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.$ac_objext; then
9565 ac_cv_type_double=yes
9567 echo "$as_me: failed program was:" >&5
9568 sed 's
/^
/|
/' conftest.$ac_ext >&5
9570 ac_cv_type_double=no
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9576 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9578 # The cast to long int works around a bug in the HP C Compiler
9579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9581 # This bug is HP SR number 8606223364.
9582 { echo "$as_me:$LINENO: checking size of double" >&5
9583 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9584 if test "${ac_cv_sizeof_double+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 if test "$cross_compiling" = yes; then
9588 # Depending upon the size, compute the lo and hi bounds.
9589 cat >conftest.
$ac_ext <<_ACEOF
9592 cat confdefs.h
>>conftest.
$ac_ext
9593 cat >>conftest.
$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 typedef double ac__type_sizeof_;
9600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9607 rm -f conftest.
$ac_objext
9608 if { (ac_try
="$ac_compile"
9610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_compile") 2>conftest.er1
9616 grep -v '^ *+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest.$ac_objext; then
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 $ac_includes_default
9633 typedef double ac__type_sizeof_;
9637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9644 rm -f conftest.$ac_objext
9645 if { (ac_try="$ac_compile"
9647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9648 *) ac_try_echo
=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_compile") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1
>conftest.err
9655 cat conftest.err
>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest.
$ac_objext; then
9661 ac_hi
=$ac_mid; break
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.
$ac_ext >&5
9666 ac_lo
=`expr $ac_mid + 1`
9667 if test $ac_lo -le $ac_mid; then
9671 ac_mid
=`expr 2 '*' $ac_mid + 1`
9674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.
$ac_ext >&5
9680 cat >conftest.
$ac_ext <<_ACEOF
9683 cat confdefs.h
>>conftest.
$ac_ext
9684 cat >>conftest.
$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 $ac_includes_default
9687 typedef double ac__type_sizeof_;
9691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9698 rm -f conftest.
$ac_objext
9699 if { (ac_try
="$ac_compile"
9701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_compile") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest.$ac_objext; then
9717 cat >conftest.$ac_ext <<_ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 $ac_includes_default
9724 typedef double ac__type_sizeof_;
9728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9735 rm -f conftest.$ac_objext
9736 if { (ac_try="$ac_compile"
9738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9739 *) ac_try_echo
=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_compile") 2>conftest.er1
9744 grep -v '^ *+' conftest.er1
>conftest.err
9746 cat conftest.err
>&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && {
9749 test -z "$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest.
$ac_objext; then
9752 ac_lo
=$ac_mid; break
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.
$ac_ext >&5
9757 ac_hi
=`expr '(' $ac_mid ')' - 1`
9758 if test $ac_mid -le $ac_hi; then
9762 ac_mid
=`expr 2 '*' $ac_mid`
9765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.
$ac_ext >&5
9774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9778 # Binary search between lo and hi bounds.
9779 while test "x$ac_lo" != "x$ac_hi"; do
9780 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9781 cat >conftest.
$ac_ext <<_ACEOF
9784 cat confdefs.h
>>conftest.
$ac_ext
9785 cat >>conftest.
$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 $ac_includes_default
9788 typedef double ac__type_sizeof_;
9792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9799 rm -f conftest.
$ac_objext
9800 if { (ac_try
="$ac_compile"
9802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_compile") 2>conftest.er1
9808 grep -v '^ *+' conftest.er1 >conftest.err
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest.$ac_objext; then
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_lo=`expr '(' $ac_mid ')' + 1`
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 ?*) ac_cv_sizeof_double=$ac_lo;;
9828 '') if test "$ac_cv_type_double" = yes; then
9829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9830 See \`config.log
' for more details." >&5
9831 echo "$as_me: error: cannot compute sizeof (double)
9832 See \`config.log' for more details.
" >&2;}
9833 { (exit 77); exit 77; }; }
9835 ac_cv_sizeof_double=0
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 $ac_includes_default
9846 typedef double ac__type_sizeof_;
9847 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9848 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9855 FILE *f = fopen ("conftest.val
", "w
");
9858 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9860 long int i = longval ();
9861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9863 fprintf (f, "%ld
\n", i);
9867 unsigned long int i = ulongval ();
9868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9870 fprintf (f, "%lu
\n", i);
9872 return ferror (f) || fclose (f) != 0;
9878 rm -f conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>&5
9887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_sizeof_double=`cat conftest.val`
9900 echo "$as_me: program exited with status
$ac_status" >&5
9901 echo "$as_me: failed program was
:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9905 if test "$ac_cv_type_double" = yes; then
9906 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9907 See \
`config.log' for more details." >&5
9908 echo "$as_me: error: cannot compute sizeof (double)
9909 See \`config.log
' for more details." >&2;}
9910 { (exit 77); exit 77; }; }
9912 ac_cv_sizeof_double=0
9915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9919 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9920 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9924 cat >>confdefs.h <<_ACEOF
9925 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9929 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9930 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9931 if test "${ac_cv_type_fpos_t+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 $ac_includes_default
9941 typedef fpos_t ac__type_new_;
9945 if ((ac__type_new_ *) 0)
9947 if (sizeof (ac__type_new_))
9953 rm -f conftest.$ac_objext
9954 if { (ac_try="$ac_compile"
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_compile") 2>conftest.er1
9962 grep -v '^
*+' conftest.er1 >conftest.err
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest.$ac_objext; then
9970 ac_cv_type_fpos_t=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's
/^
/|
/' conftest.$ac_ext >&5
9975 ac_cv_type_fpos_t=no
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9981 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9983 # The cast to long int works around a bug in the HP C Compiler
9984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9986 # This bug is HP SR number 8606223364.
9987 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9988 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9989 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 if test "$cross_compiling" = yes; then
9993 # Depending upon the size, compute the lo and hi bounds.
9994 cat >conftest.
$ac_ext <<_ACEOF
9997 cat confdefs.h
>>conftest.
$ac_ext
9998 cat >>conftest.
$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 typedef fpos_t ac__type_sizeof_;
10005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10012 rm -f conftest.
$ac_objext
10013 if { (ac_try
="$ac_compile"
10014 case "(($ac_try" in
10015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_compile") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest.$ac_objext; then
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10038 typedef fpos_t ac__type_sizeof_;
10042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10049 rm -f conftest.$ac_objext
10050 if { (ac_try="$ac_compile"
10051 case "(($ac_try" in
10052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10053 *) ac_try_echo
=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_compile") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1
>conftest.err
10060 cat conftest.err
>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest.
$ac_objext; then
10066 ac_hi
=$ac_mid; break
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.
$ac_ext >&5
10071 ac_lo
=`expr $ac_mid + 1`
10072 if test $ac_lo -le $ac_mid; then
10076 ac_mid
=`expr 2 '*' $ac_mid + 1`
10079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.
$ac_ext >&5
10085 cat >conftest.
$ac_ext <<_ACEOF
10088 cat confdefs.h
>>conftest.
$ac_ext
10089 cat >>conftest.
$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 $ac_includes_default
10092 typedef fpos_t ac__type_sizeof_;
10096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10103 rm -f conftest.
$ac_objext
10104 if { (ac_try
="$ac_compile"
10105 case "(($ac_try" in
10106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_compile") 2>conftest.er1
10112 grep -v '^ *+' conftest.er1 >conftest.err
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest.$ac_objext; then
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10129 typedef fpos_t ac__type_sizeof_;
10133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10144 *) ac_try_echo
=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10149 grep -v '^ *+' conftest.er1
>conftest.err
10151 cat conftest.err
>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.
$ac_objext; then
10157 ac_lo
=$ac_mid; break
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.
$ac_ext >&5
10162 ac_hi
=`expr '(' $ac_mid ')' - 1`
10163 if test $ac_mid -le $ac_hi; then
10167 ac_mid
=`expr 2 '*' $ac_mid`
10170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.
$ac_ext >&5
10179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10183 # Binary search between lo and hi bounds.
10184 while test "x$ac_lo" != "x$ac_hi"; do
10185 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10186 cat >conftest.
$ac_ext <<_ACEOF
10189 cat confdefs.h
>>conftest.
$ac_ext
10190 cat >>conftest.
$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 $ac_includes_default
10193 typedef fpos_t ac__type_sizeof_;
10197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10204 rm -f conftest.
$ac_objext
10205 if { (ac_try
="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_lo=`expr '(' $ac_mid ')' + 1`
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10233 '') if test "$ac_cv_type_fpos_t" = yes; then
10234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10235 See \`config.log
' for more details." >&5
10236 echo "$as_me: error: cannot compute sizeof (fpos_t)
10237 See \`config.log' for more details.
" >&2;}
10238 { (exit 77); exit 77; }; }
10240 ac_cv_sizeof_fpos_t=0
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 typedef fpos_t ac__type_sizeof_;
10252 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10253 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10255 #include <stdlib.h>
10260 FILE *f = fopen ("conftest.val
", "w
");
10263 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10265 long int i = longval ();
10266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10268 fprintf (f, "%ld
\n", i);
10272 unsigned long int i = ulongval ();
10273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10275 fprintf (f, "%lu
\n", i);
10277 return ferror (f) || fclose (f) != 0;
10283 rm -f conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>&5
10292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_sizeof_fpos_t=`cat conftest.val`
10305 echo "$as_me: program exited with status
$ac_status" >&5
10306 echo "$as_me: failed program was
:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ( exit $ac_status )
10310 if test "$ac_cv_type_fpos_t" = yes; then
10311 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10312 See \
`config.log' for more details." >&5
10313 echo "$as_me: error: cannot compute sizeof (fpos_t)
10314 See \`config.log
' for more details." >&2;}
10315 { (exit 77); exit 77; }; }
10317 ac_cv_sizeof_fpos_t=0
10320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10324 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10325 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10329 cat >>confdefs.h <<_ACEOF
10330 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10334 { echo "$as_me:$LINENO: checking for size_t" >&5
10335 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10336 if test "${ac_cv_type_size_t+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >conftest.$ac_ext <<_ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 $ac_includes_default
10346 typedef size_t ac__type_new_;
10350 if ((ac__type_new_ *) 0)
10352 if (sizeof (ac__type_new_))
10358 rm -f conftest.$ac_objext
10359 if { (ac_try="$ac_compile"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_compile") 2>conftest.er1
10367 grep -v '^
*+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest.$ac_objext; then
10375 ac_cv_type_size_t=yes
10377 echo "$as_me: failed program was:" >&5
10378 sed 's
/^
/|
/' conftest.$ac_ext >&5
10380 ac_cv_type_size_t=no
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10386 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10388 # The cast to long int works around a bug in the HP C Compiler
10389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10391 # This bug is HP SR number 8606223364.
10392 { echo "$as_me:$LINENO: checking size of size_t" >&5
10393 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10394 if test "${ac_cv_sizeof_size_t+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 if test "$cross_compiling" = yes; then
10398 # Depending upon the size, compute the lo and hi bounds.
10399 cat >conftest.
$ac_ext <<_ACEOF
10402 cat confdefs.h
>>conftest.
$ac_ext
10403 cat >>conftest.
$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 $ac_includes_default
10406 typedef size_t ac__type_sizeof_;
10410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10417 rm -f conftest.
$ac_objext
10418 if { (ac_try
="$ac_compile"
10419 case "(($ac_try" in
10420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.$ac_objext; then
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 typedef size_t ac__type_sizeof_;
10447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10454 rm -f conftest.$ac_objext
10455 if { (ac_try="$ac_compile"
10456 case "(($ac_try" in
10457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10458 *) ac_try_echo
=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_compile") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1
>conftest.err
10465 cat conftest.err
>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest.
$ac_objext; then
10471 ac_hi
=$ac_mid; break
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.
$ac_ext >&5
10476 ac_lo
=`expr $ac_mid + 1`
10477 if test $ac_lo -le $ac_mid; then
10481 ac_mid
=`expr 2 '*' $ac_mid + 1`
10484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.
$ac_ext >&5
10490 cat >conftest.
$ac_ext <<_ACEOF
10493 cat confdefs.h
>>conftest.
$ac_ext
10494 cat >>conftest.
$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 $ac_includes_default
10497 typedef size_t ac__type_sizeof_;
10501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10508 rm -f conftest.
$ac_objext
10509 if { (ac_try
="$ac_compile"
10510 case "(($ac_try" in
10511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_compile") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest.$ac_objext; then
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 typedef size_t ac__type_sizeof_;
10538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10549 *) ac_try_echo
=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_compile") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1
>conftest.err
10556 cat conftest.err
>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest.
$ac_objext; then
10562 ac_lo
=$ac_mid; break
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.
$ac_ext >&5
10567 ac_hi
=`expr '(' $ac_mid ')' - 1`
10568 if test $ac_mid -le $ac_hi; then
10572 ac_mid
=`expr 2 '*' $ac_mid`
10575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.
$ac_ext >&5
10584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10588 # Binary search between lo and hi bounds.
10589 while test "x$ac_lo" != "x$ac_hi"; do
10590 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10591 cat >conftest.
$ac_ext <<_ACEOF
10594 cat confdefs.h
>>conftest.
$ac_ext
10595 cat >>conftest.
$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 typedef size_t ac__type_sizeof_;
10602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10609 rm -f conftest.
$ac_objext
10610 if { (ac_try
="$ac_compile"
10611 case "(($ac_try" in
10612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_compile") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1 >conftest.err
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest.$ac_objext; then
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_lo=`expr '(' $ac_mid ')' + 1`
10634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10638 '') if test "$ac_cv_type_size_t" = yes; then
10639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10640 See \`config.log
' for more details." >&5
10641 echo "$as_me: error: cannot compute sizeof (size_t)
10642 See \`config.log' for more details.
" >&2;}
10643 { (exit 77); exit 77; }; }
10645 ac_cv_sizeof_size_t=0
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 $ac_includes_default
10656 typedef size_t ac__type_sizeof_;
10657 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10658 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10660 #include <stdlib.h>
10665 FILE *f = fopen ("conftest.val
", "w
");
10668 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10670 long int i = longval ();
10671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10673 fprintf (f, "%ld
\n", i);
10677 unsigned long int i = ulongval ();
10678 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10680 fprintf (f, "%lu
\n", i);
10682 return ferror (f) || fclose (f) != 0;
10688 rm -f conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>&5
10697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10699 { (case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_try") 2>&5
10706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_sizeof_size_t=`cat conftest.val`
10710 echo "$as_me: program exited with status
$ac_status" >&5
10711 echo "$as_me: failed program was
:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ( exit $ac_status )
10715 if test "$ac_cv_type_size_t" = yes; then
10716 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10717 See \
`config.log' for more details." >&5
10718 echo "$as_me: error: cannot compute sizeof (size_t)
10719 See \`config.log
' for more details." >&2;}
10720 { (exit 77); exit 77; }; }
10722 ac_cv_sizeof_size_t=0
10725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10729 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10730 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10734 cat >>confdefs.h <<_ACEOF
10735 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10739 { echo "$as_me:$LINENO: checking for pid_t" >&5
10740 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10741 if test "${ac_cv_type_pid_t+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 cat >conftest.$ac_ext <<_ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 typedef pid_t ac__type_new_;
10755 if ((ac__type_new_ *) 0)
10757 if (sizeof (ac__type_new_))
10763 rm -f conftest.$ac_objext
10764 if { (ac_try="$ac_compile"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_compile") 2>conftest.er1
10772 grep -v '^
*+' conftest.er1 >conftest.err
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest.$ac_objext; then
10780 ac_cv_type_pid_t=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's
/^
/|
/' conftest.$ac_ext >&5
10785 ac_cv_type_pid_t=no
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10791 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10793 # The cast to long int works around a bug in the HP C Compiler
10794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10796 # This bug is HP SR number 8606223364.
10797 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10798 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10799 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 if test "$cross_compiling" = yes; then
10803 # Depending upon the size, compute the lo and hi bounds.
10804 cat >conftest.
$ac_ext <<_ACEOF
10807 cat confdefs.h
>>conftest.
$ac_ext
10808 cat >>conftest.
$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 $ac_includes_default
10811 typedef pid_t ac__type_sizeof_;
10815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10822 rm -f conftest.
$ac_objext
10823 if { (ac_try
="$ac_compile"
10824 case "(($ac_try" in
10825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_compile") 2>conftest.er1
10831 grep -v '^ *+' conftest.er1 >conftest.err
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest.$ac_objext; then
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 typedef pid_t ac__type_sizeof_;
10852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10859 rm -f conftest.$ac_objext
10860 if { (ac_try="$ac_compile"
10861 case "(($ac_try" in
10862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10863 *) ac_try_echo
=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_compile") 2>conftest.er1
10868 grep -v '^ *+' conftest.er1
>conftest.err
10870 cat conftest.err
>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest.
$ac_objext; then
10876 ac_hi
=$ac_mid; break
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.
$ac_ext >&5
10881 ac_lo
=`expr $ac_mid + 1`
10882 if test $ac_lo -le $ac_mid; then
10886 ac_mid
=`expr 2 '*' $ac_mid + 1`
10889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.
$ac_ext >&5
10895 cat >conftest.
$ac_ext <<_ACEOF
10898 cat confdefs.h
>>conftest.
$ac_ext
10899 cat >>conftest.
$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10901 $ac_includes_default
10902 typedef pid_t ac__type_sizeof_;
10906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10913 rm -f conftest.
$ac_objext
10914 if { (ac_try
="$ac_compile"
10915 case "(($ac_try" in
10916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_compile") 2>conftest.er1
10922 grep -v '^ *+' conftest.er1 >conftest.err
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest.$ac_objext; then
10932 cat >conftest.$ac_ext <<_ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 $ac_includes_default
10939 typedef pid_t ac__type_sizeof_;
10943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10950 rm -f conftest.$ac_objext
10951 if { (ac_try="$ac_compile"
10952 case "(($ac_try" in
10953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10954 *) ac_try_echo
=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10959 grep -v '^ *+' conftest.er1
>conftest.err
10961 cat conftest.err
>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest.
$ac_objext; then
10967 ac_lo
=$ac_mid; break
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.
$ac_ext >&5
10972 ac_hi
=`expr '(' $ac_mid ')' - 1`
10973 if test $ac_mid -le $ac_hi; then
10977 ac_mid
=`expr 2 '*' $ac_mid`
10980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.
$ac_ext >&5
10989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10993 # Binary search between lo and hi bounds.
10994 while test "x$ac_lo" != "x$ac_hi"; do
10995 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10996 cat >conftest.
$ac_ext <<_ACEOF
10999 cat confdefs.h
>>conftest.
$ac_ext
11000 cat >>conftest.
$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 $ac_includes_default
11003 typedef pid_t ac__type_sizeof_;
11007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11014 rm -f conftest.
$ac_objext
11015 if { (ac_try
="$ac_compile"
11016 case "(($ac_try" in
11017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_compile") 2>conftest.er1
11023 grep -v '^ *+' conftest.er1 >conftest.err
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest.$ac_objext; then
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_lo=`expr '(' $ac_mid ')' + 1`
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11043 '') if test "$ac_cv_type_pid_t" = yes; then
11044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11045 See \`config.log
' for more details." >&5
11046 echo "$as_me: error: cannot compute sizeof (pid_t)
11047 See \`config.log' for more details.
" >&2;}
11048 { (exit 77); exit 77; }; }
11050 ac_cv_sizeof_pid_t=0
11054 cat >conftest.$ac_ext <<_ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 $ac_includes_default
11061 typedef pid_t ac__type_sizeof_;
11062 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11063 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11065 #include <stdlib.h>
11070 FILE *f = fopen ("conftest.val
", "w
");
11073 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11075 long int i = longval ();
11076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11078 fprintf (f, "%ld
\n", i);
11082 unsigned long int i = ulongval ();
11083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11085 fprintf (f, "%lu
\n", i);
11087 return ferror (f) || fclose (f) != 0;
11093 rm -f conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>&5
11102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 ac_cv_sizeof_pid_t=`cat conftest.val`
11115 echo "$as_me: program exited with status
$ac_status" >&5
11116 echo "$as_me: failed program was
:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ( exit $ac_status )
11120 if test "$ac_cv_type_pid_t" = yes; then
11121 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11122 See \
`config.log' for more details." >&5
11123 echo "$as_me: error: cannot compute sizeof (pid_t)
11124 See \`config.log
' for more details." >&2;}
11125 { (exit 77); exit 77; }; }
11127 ac_cv_sizeof_pid_t=0
11130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11134 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11135 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11139 cat >>confdefs.h <<_ACEOF
11140 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11145 { echo "$as_me:$LINENO: checking for long long support" >&5
11146 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11158 long long x; x = (long long)0;
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
11172 grep -v '^
*+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } && {
11177 test -z "$ac_c_werror_flag" ||
11178 test ! -s conftest.err
11179 } && test -s conftest.$ac_objext; then
11182 cat >>confdefs.h <<\_ACEOF
11183 #define HAVE_LONG_LONG 1
11189 echo "$as_me: failed program was:" >&5
11190 sed 's
/^
/|
/' conftest.$ac_ext >&5
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11197 echo "${ECHO_T}$have_long_long" >&6; }
11198 if test "$have_long_long" = yes ; then
11199 { echo "$as_me:$LINENO: checking for long long" >&5
11200 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11201 if test "${ac_cv_type_long_long+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 $ac_includes_default
11211 typedef long long ac__type_new_;
11215 if ((ac__type_new_ *) 0)
11217 if (sizeof (ac__type_new_))
11223 rm -f conftest.$ac_objext
11224 if { (ac_try="$ac_compile"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_compile") 2>conftest.er1
11232 grep -v '^
*+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest.$ac_objext; then
11240 ac_cv_type_long_long=yes
11242 echo "$as_me: failed program was:" >&5
11243 sed 's
/^
/|
/' conftest.$ac_ext >&5
11245 ac_cv_type_long_long=no
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11251 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11253 # The cast to long int works around a bug in the HP C Compiler
11254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11256 # This bug is HP SR number 8606223364.
11257 { echo "$as_me:$LINENO: checking size of long long" >&5
11258 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11259 if test "${ac_cv_sizeof_long_long+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 if test "$cross_compiling" = yes; then
11263 # Depending upon the size, compute the lo and hi bounds.
11264 cat >conftest.
$ac_ext <<_ACEOF
11267 cat confdefs.h
>>conftest.
$ac_ext
11268 cat >>conftest.
$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 $ac_includes_default
11271 typedef long long ac__type_sizeof_;
11275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11282 rm -f conftest.
$ac_objext
11283 if { (ac_try
="$ac_compile"
11284 case "(($ac_try" in
11285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1 >conftest.err
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.$ac_objext; then
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 typedef long long ac__type_sizeof_;
11312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11323 *) ac_try_echo
=$ac_try;;
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11328 grep -v '^ *+' conftest.er1
>conftest.err
11330 cat conftest.err
>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } && {
11333 test -z "$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11335 } && test -s conftest.
$ac_objext; then
11336 ac_hi
=$ac_mid; break
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.
$ac_ext >&5
11341 ac_lo
=`expr $ac_mid + 1`
11342 if test $ac_lo -le $ac_mid; then
11346 ac_mid
=`expr 2 '*' $ac_mid + 1`
11349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11355 cat >conftest.
$ac_ext <<_ACEOF
11358 cat confdefs.h
>>conftest.
$ac_ext
11359 cat >>conftest.
$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 $ac_includes_default
11362 typedef long long ac__type_sizeof_;
11366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11373 rm -f conftest.
$ac_objext
11374 if { (ac_try
="$ac_compile"
11375 case "(($ac_try" in
11376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_compile") 2>conftest.er1
11382 grep -v '^ *+' conftest.er1 >conftest.err
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_c_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest.$ac_objext; then
11392 cat >conftest.$ac_ext <<_ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 $ac_includes_default
11399 typedef long long ac__type_sizeof_;
11403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11414 *) ac_try_echo
=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_compile") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1
>conftest.err
11421 cat conftest.err
>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest.
$ac_objext; then
11427 ac_lo
=$ac_mid; break
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11432 ac_hi
=`expr '(' $ac_mid ')' - 1`
11433 if test $ac_mid -le $ac_hi; then
11437 ac_mid
=`expr 2 '*' $ac_mid`
11440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.
$ac_ext >&5
11449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11453 # Binary search between lo and hi bounds.
11454 while test "x$ac_lo" != "x$ac_hi"; do
11455 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11456 cat >conftest.
$ac_ext <<_ACEOF
11459 cat confdefs.h
>>conftest.
$ac_ext
11460 cat >>conftest.
$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 $ac_includes_default
11463 typedef long long ac__type_sizeof_;
11467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11474 rm -f conftest.
$ac_objext
11475 if { (ac_try
="$ac_compile"
11476 case "(($ac_try" in
11477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_compile") 2>conftest.er1
11483 grep -v '^ *+' conftest.er1 >conftest.err
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && {
11488 test -z "$ac_c_werror_flag" ||
11489 test ! -s conftest.err
11490 } && test -s conftest.$ac_objext; then
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 ac_lo=`expr '(' $ac_mid ')' + 1`
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11503 '') if test "$ac_cv_type_long_long" = yes; then
11504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11505 See \`config.log
' for more details." >&5
11506 echo "$as_me: error: cannot compute sizeof (long long)
11507 See \`config.log' for more details.
" >&2;}
11508 { (exit 77); exit 77; }; }
11510 ac_cv_sizeof_long_long=0
11514 cat >conftest.$ac_ext <<_ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 typedef long long ac__type_sizeof_;
11522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11525 #include <stdlib.h>
11530 FILE *f = fopen ("conftest.val
", "w
");
11533 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11535 long int i = longval ();
11536 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11538 fprintf (f, "%ld
\n", i);
11542 unsigned long int i = ulongval ();
11543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11545 fprintf (f, "%lu
\n", i);
11547 return ferror (f) || fclose (f) != 0;
11553 rm -f conftest$ac_exeext
11554 if { (ac_try="$ac_link"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_link") 2>&5
11562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11564 { (case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_try") 2>&5
11571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_cv_sizeof_long_long=`cat conftest.val`
11575 echo "$as_me: program exited with status
$ac_status" >&5
11576 echo "$as_me: failed program was
:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ( exit $ac_status )
11580 if test "$ac_cv_type_long_long" = yes; then
11581 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11582 See \
`config.log' for more details." >&5
11583 echo "$as_me: error: cannot compute sizeof (long long)
11584 See \`config.log
' for more details." >&2;}
11585 { (exit 77); exit 77; }; }
11587 ac_cv_sizeof_long_long=0
11590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11595 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11599 cat >>confdefs.h <<_ACEOF
11600 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11606 { echo "$as_me:$LINENO: checking for long double support" >&5
11607 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11608 have_long_double=no
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11619 long double x; x = (long double)0;
11624 rm -f conftest.$ac_objext
11625 if { (ac_try="$ac_compile"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11633 grep -v '^
*+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11643 cat >>confdefs.h <<\_ACEOF
11644 #define HAVE_LONG_DOUBLE 1
11647 have_long_double=yes
11650 echo "$as_me: failed program was:" >&5
11651 sed 's
/^
/|
/' conftest.$ac_ext >&5
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11658 echo "${ECHO_T}$have_long_double" >&6; }
11659 if test "$have_long_double" = yes ; then
11660 { echo "$as_me:$LINENO: checking for long double" >&5
11661 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11662 if test "${ac_cv_type_long_double+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 $ac_includes_default
11672 typedef long double ac__type_new_;
11676 if ((ac__type_new_ *) 0)
11678 if (sizeof (ac__type_new_))
11684 rm -f conftest.$ac_objext
11685 if { (ac_try="$ac_compile"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11693 grep -v '^
*+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_cv_type_long_double=yes
11703 echo "$as_me: failed program was:" >&5
11704 sed 's
/^
/|
/' conftest.$ac_ext >&5
11706 ac_cv_type_long_double=no
11709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11712 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11714 # The cast to long int works around a bug in the HP C Compiler
11715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11717 # This bug is HP SR number 8606223364.
11718 { echo "$as_me:$LINENO: checking size of long double" >&5
11719 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11720 if test "${ac_cv_sizeof_long_double+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 if test "$cross_compiling" = yes; then
11724 # Depending upon the size, compute the lo and hi bounds.
11725 cat >conftest.
$ac_ext <<_ACEOF
11728 cat confdefs.h
>>conftest.
$ac_ext
11729 cat >>conftest.
$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 $ac_includes_default
11732 typedef long double ac__type_sizeof_;
11736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11743 rm -f conftest.
$ac_objext
11744 if { (ac_try
="$ac_compile"
11745 case "(($ac_try" in
11746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_compile") 2>conftest.er1
11752 grep -v '^ *+' conftest.er1 >conftest.err
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } && {
11757 test -z "$ac_c_werror_flag" ||
11758 test ! -s conftest.err
11759 } && test -s conftest.$ac_objext; then
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 typedef long double ac__type_sizeof_;
11773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11780 rm -f conftest.$ac_objext
11781 if { (ac_try="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11784 *) ac_try_echo
=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1
>conftest.err
11791 cat conftest.err
>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.
$ac_objext; then
11797 ac_hi
=$ac_mid; break
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.
$ac_ext >&5
11802 ac_lo
=`expr $ac_mid + 1`
11803 if test $ac_lo -le $ac_mid; then
11807 ac_mid
=`expr 2 '*' $ac_mid + 1`
11810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.
$ac_ext >&5
11816 cat >conftest.
$ac_ext <<_ACEOF
11819 cat confdefs.h
>>conftest.
$ac_ext
11820 cat >>conftest.
$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 typedef long double ac__type_sizeof_;
11827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11834 rm -f conftest.
$ac_objext
11835 if { (ac_try
="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11853 cat >conftest.$ac_ext <<_ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 $ac_includes_default
11860 typedef long double ac__type_sizeof_;
11864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11871 rm -f conftest.$ac_objext
11872 if { (ac_try="$ac_compile"
11873 case "(($ac_try" in
11874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11875 *) ac_try_echo
=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1
>conftest.err
11882 cat conftest.err
>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.
$ac_objext; then
11888 ac_lo
=$ac_mid; break
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.
$ac_ext >&5
11893 ac_hi
=`expr '(' $ac_mid ')' - 1`
11894 if test $ac_mid -le $ac_hi; then
11898 ac_mid
=`expr 2 '*' $ac_mid`
11901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.
$ac_ext >&5
11910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11914 # Binary search between lo and hi bounds.
11915 while test "x$ac_lo" != "x$ac_hi"; do
11916 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11917 cat >conftest.
$ac_ext <<_ACEOF
11920 cat confdefs.h
>>conftest.
$ac_ext
11921 cat >>conftest.
$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 $ac_includes_default
11924 typedef long double ac__type_sizeof_;
11928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11935 rm -f conftest.
$ac_objext
11936 if { (ac_try
="$ac_compile"
11937 case "(($ac_try" in
11938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_compile") 2>conftest.er1
11944 grep -v '^ *+' conftest.er1 >conftest.err
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_lo=`expr '(' $ac_mid ')' + 1`
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11964 '') if test "$ac_cv_type_long_double" = yes; then
11965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11966 See \`config.log
' for more details." >&5
11967 echo "$as_me: error: cannot compute sizeof (long double)
11968 See \`config.log' for more details.
" >&2;}
11969 { (exit 77); exit 77; }; }
11971 ac_cv_sizeof_long_double=0
11975 cat >conftest.$ac_ext <<_ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 $ac_includes_default
11982 typedef long double ac__type_sizeof_;
11983 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11984 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11986 #include <stdlib.h>
11991 FILE *f = fopen ("conftest.val
", "w
");
11994 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11996 long int i = longval ();
11997 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11999 fprintf (f, "%ld
\n", i);
12003 unsigned long int i = ulongval ();
12004 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12006 fprintf (f, "%lu
\n", i);
12008 return ferror (f) || fclose (f) != 0;
12014 rm -f conftest$ac_exeext
12015 if { (ac_try="$ac_link"
12016 case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_link") 2>&5
12023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_sizeof_long_double=`cat conftest.val`
12036 echo "$as_me: program exited with status
$ac_status" >&5
12037 echo "$as_me: failed program was
:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ( exit $ac_status )
12041 if test "$ac_cv_type_long_double" = yes; then
12042 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12043 See \
`config.log' for more details." >&5
12044 echo "$as_me: error: cannot compute sizeof (long double)
12045 See \`config.log
' for more details." >&2;}
12046 { (exit 77); exit 77; }; }
12048 ac_cv_sizeof_long_double=0
12051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12055 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12056 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12060 cat >>confdefs.h <<_ACEOF
12061 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12068 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12069 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12081 _Bool x; x = (_Bool)0;
12086 rm -f conftest.$ac_objext
12087 if { (ac_try="$ac_compile"
12088 case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_compile") 2>conftest.er1
12095 grep -v '^
*+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest.$ac_objext; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HAVE_C99_BOOL 1
12112 echo "$as_me: failed program was:" >&5
12113 sed 's
/^
/|
/' conftest.$ac_ext >&5
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12120 echo "${ECHO_T}$have_c99_bool" >&6; }
12121 if test "$have_c99_bool" = yes ; then
12122 { echo "$as_me:$LINENO: checking for _Bool" >&5
12123 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12124 if test "${ac_cv_type__Bool+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 cat >conftest.$ac_ext <<_ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 $ac_includes_default
12134 typedef _Bool ac__type_new_;
12138 if ((ac__type_new_ *) 0)
12140 if (sizeof (ac__type_new_))
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compile") 2>conftest.er1
12155 grep -v '^
*+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest.$ac_objext; then
12163 ac_cv_type__Bool=yes
12165 echo "$as_me: failed program was:" >&5
12166 sed 's
/^
/|
/' conftest.$ac_ext >&5
12168 ac_cv_type__Bool=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12174 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12176 # The cast to long int works around a bug in the HP C Compiler
12177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12179 # This bug is HP SR number 8606223364.
12180 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12181 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12182 if test "${ac_cv_sizeof__Bool+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 if test "$cross_compiling" = yes; then
12186 # Depending upon the size, compute the lo and hi bounds.
12187 cat >conftest.
$ac_ext <<_ACEOF
12190 cat confdefs.h
>>conftest.
$ac_ext
12191 cat >>conftest.
$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12193 $ac_includes_default
12194 typedef _Bool ac__type_sizeof_;
12198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12205 rm -f conftest.
$ac_objext
12206 if { (ac_try
="$ac_compile"
12207 case "(($ac_try" in
12208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_compile") 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } && {
12219 test -z "$ac_c_werror_flag" ||
12220 test ! -s conftest.err
12221 } && test -s conftest.$ac_objext; then
12224 cat >conftest.$ac_ext <<_ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12230 $ac_includes_default
12231 typedef _Bool ac__type_sizeof_;
12235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12246 *) ac_try_echo
=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1
>conftest.err
12253 cat conftest.err
>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest.
$ac_objext; then
12259 ac_hi
=$ac_mid; break
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.
$ac_ext >&5
12264 ac_lo
=`expr $ac_mid + 1`
12265 if test $ac_lo -le $ac_mid; then
12269 ac_mid
=`expr 2 '*' $ac_mid + 1`
12272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.
$ac_ext >&5
12278 cat >conftest.
$ac_ext <<_ACEOF
12281 cat confdefs.h
>>conftest.
$ac_ext
12282 cat >>conftest.
$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 $ac_includes_default
12285 typedef _Bool ac__type_sizeof_;
12289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12296 rm -f conftest.
$ac_objext
12297 if { (ac_try
="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
12305 grep -v '^ *+' conftest.er1 >conftest.err
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 $ac_includes_default
12322 typedef _Bool ac__type_sizeof_;
12326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12337 *) ac_try_echo
=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_compile") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1
>conftest.err
12344 cat conftest.err
>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest.
$ac_objext; then
12350 ac_lo
=$ac_mid; break
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.
$ac_ext >&5
12355 ac_hi
=`expr '(' $ac_mid ')' - 1`
12356 if test $ac_mid -le $ac_hi; then
12360 ac_mid
=`expr 2 '*' $ac_mid`
12363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.
$ac_ext >&5
12372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12376 # Binary search between lo and hi bounds.
12377 while test "x$ac_lo" != "x$ac_hi"; do
12378 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12379 cat >conftest.
$ac_ext <<_ACEOF
12382 cat confdefs.h
>>conftest.
$ac_ext
12383 cat >>conftest.
$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12386 typedef _Bool ac__type_sizeof_;
12390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12397 rm -f conftest.
$ac_objext
12398 if { (ac_try
="$ac_compile"
12399 case "(($ac_try" in
12400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_lo=`expr '(' $ac_mid ')' + 1`
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12426 '') if test "$ac_cv_type__Bool" = yes; then
12427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12428 See \`config.log
' for more details." >&5
12429 echo "$as_me: error: cannot compute sizeof (_Bool)
12430 See \`config.log' for more details.
" >&2;}
12431 { (exit 77); exit 77; }; }
12433 ac_cv_sizeof__Bool=0
12437 cat >conftest.$ac_ext <<_ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12443 $ac_includes_default
12444 typedef _Bool ac__type_sizeof_;
12445 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12446 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12448 #include <stdlib.h>
12453 FILE *f = fopen ("conftest.val
", "w
");
12456 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12458 long int i = longval ();
12459 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12461 fprintf (f, "%ld
\n", i);
12465 unsigned long int i = ulongval ();
12466 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12468 fprintf (f, "%lu
\n", i);
12470 return ferror (f) || fclose (f) != 0;
12476 rm -f conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>&5
12485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12487 { (case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_try") 2>&5
12494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 ac_cv_sizeof__Bool=`cat conftest.val`
12498 echo "$as_me: program exited with status
$ac_status" >&5
12499 echo "$as_me: failed program was
:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12502 ( exit $ac_status )
12503 if test "$ac_cv_type__Bool" = yes; then
12504 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12505 See \
`config.log' for more details." >&5
12506 echo "$as_me: error: cannot compute sizeof (_Bool)
12507 See \`config.log
' for more details." >&2;}
12508 { (exit 77); exit 77; }; }
12510 ac_cv_sizeof__Bool=0
12513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12518 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12522 cat >>confdefs.h <<_ACEOF
12523 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12529 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12530 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12531 if test "${ac_cv_type_uintptr_t+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 cat >conftest.$ac_ext <<_ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 #ifdef HAVE_STDINT_H
12541 #include <stdint.h>
12544 typedef uintptr_t ac__type_new_;
12548 if ((ac__type_new_ *) 0)
12550 if (sizeof (ac__type_new_))
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12565 grep -v '^
*+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest.$ac_objext; then
12573 ac_cv_type_uintptr_t=yes
12575 echo "$as_me: failed program was:" >&5
12576 sed 's
/^
/|
/' conftest.$ac_ext >&5
12578 ac_cv_type_uintptr_t=no
12581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12584 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12585 if test $ac_cv_type_uintptr_t = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_UINTPTR_T 1
12591 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12592 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12593 if test "${ac_cv_type_uintptr_t+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 typedef uintptr_t ac__type_new_;
12607 if ((ac__type_new_ *) 0)
12609 if (sizeof (ac__type_new_))
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_compile") 2>conftest.er1
12624 grep -v '^
*+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest.$ac_objext; then
12632 ac_cv_type_uintptr_t=yes
12634 echo "$as_me: failed program was:" >&5
12635 sed 's
/^
/|
/' conftest.$ac_ext >&5
12637 ac_cv_type_uintptr_t=no
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12643 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12645 # The cast to long int works around a bug in the HP C Compiler
12646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12648 # This bug is HP SR number 8606223364.
12649 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12650 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12651 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 if test "$cross_compiling" = yes; then
12655 # Depending upon the size, compute the lo and hi bounds.
12656 cat >conftest.
$ac_ext <<_ACEOF
12659 cat confdefs.h
>>conftest.
$ac_ext
12660 cat >>conftest.
$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 typedef uintptr_t ac__type_sizeof_;
12667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12674 rm -f conftest.
$ac_objext
12675 if { (ac_try
="$ac_compile"
12676 case "(($ac_try" in
12677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_compile") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest.$ac_objext; then
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 $ac_includes_default
12700 typedef uintptr_t ac__type_sizeof_;
12704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12711 rm -f conftest.$ac_objext
12712 if { (ac_try="$ac_compile"
12713 case "(($ac_try" in
12714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12715 *) ac_try_echo
=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1
>conftest.err
12722 cat conftest.err
>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.
$ac_objext; then
12728 ac_hi
=$ac_mid; break
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.
$ac_ext >&5
12733 ac_lo
=`expr $ac_mid + 1`
12734 if test $ac_lo -le $ac_mid; then
12738 ac_mid
=`expr 2 '*' $ac_mid + 1`
12741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.
$ac_ext >&5
12747 cat >conftest.
$ac_ext <<_ACEOF
12750 cat confdefs.h
>>conftest.
$ac_ext
12751 cat >>conftest.
$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 $ac_includes_default
12754 typedef uintptr_t ac__type_sizeof_;
12758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12765 rm -f conftest.
$ac_objext
12766 if { (ac_try
="$ac_compile"
12767 case "(($ac_try" in
12768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_compile") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest.$ac_objext; then
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790 $ac_includes_default
12791 typedef uintptr_t ac__type_sizeof_;
12795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12802 rm -f conftest.$ac_objext
12803 if { (ac_try="$ac_compile"
12804 case "(($ac_try" in
12805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12806 *) ac_try_echo
=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_compile") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1
>conftest.err
12813 cat conftest.err
>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } && {
12816 test -z "$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 } && test -s conftest.
$ac_objext; then
12819 ac_lo
=$ac_mid; break
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.
$ac_ext >&5
12824 ac_hi
=`expr '(' $ac_mid ')' - 1`
12825 if test $ac_mid -le $ac_hi; then
12829 ac_mid
=`expr 2 '*' $ac_mid`
12832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.
$ac_ext >&5
12841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12845 # Binary search between lo and hi bounds.
12846 while test "x$ac_lo" != "x$ac_hi"; do
12847 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12848 cat >conftest.
$ac_ext <<_ACEOF
12851 cat confdefs.h
>>conftest.
$ac_ext
12852 cat >>conftest.
$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12855 typedef uintptr_t ac__type_sizeof_;
12859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12866 rm -f conftest.
$ac_objext
12867 if { (ac_try
="$ac_compile"
12868 case "(($ac_try" in
12869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_compile") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest.$ac_objext; then
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_lo=`expr '(' $ac_mid ')' + 1`
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12895 '') if test "$ac_cv_type_uintptr_t" = yes; then
12896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12897 See \`config.log
' for more details." >&5
12898 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12899 See \`config.log' for more details.
" >&2;}
12900 { (exit 77); exit 77; }; }
12902 ac_cv_sizeof_uintptr_t=0
12906 cat >conftest.$ac_ext <<_ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 $ac_includes_default
12913 typedef uintptr_t ac__type_sizeof_;
12914 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12915 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12917 #include <stdlib.h>
12922 FILE *f = fopen ("conftest.val
", "w
");
12925 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12927 long int i = longval ();
12928 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12930 fprintf (f, "%ld
\n", i);
12934 unsigned long int i = ulongval ();
12935 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12937 fprintf (f, "%lu
\n", i);
12939 return ferror (f) || fclose (f) != 0;
12945 rm -f conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>&5
12954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12967 echo "$as_me: program exited with status
$ac_status" >&5
12968 echo "$as_me: failed program was
:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 ( exit $ac_status )
12972 if test "$ac_cv_type_uintptr_t" = yes; then
12973 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12974 See \
`config.log' for more details." >&5
12975 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12976 See \`config.log
' for more details." >&2;}
12977 { (exit 77); exit 77; }; }
12979 ac_cv_sizeof_uintptr_t=0
12982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12986 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12987 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12991 cat >>confdefs.h <<_ACEOF
12992 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13000 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
13001 { echo "$as_me:$LINENO: checking size of off_t" >&5
13002 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13003 if test "${ac_cv_sizeof_off_t+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 if test "$cross_compiling" = yes; then
13007 ac_cv_sizeof_off_t
=4
13009 cat >conftest.
$ac_ext <<_ACEOF
13012 cat confdefs.h
>>conftest.
$ac_ext
13013 cat >>conftest.
$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13016 #include <sys/types.h>
13019 FILE *f=fopen("conftestval", "w");
13021 fprintf(f, "%d\n", sizeof(off_t));
13025 rm -f conftest
$ac_exeext
13026 if { (ac_try
="$ac_link"
13027 case "(($ac_try" in
13028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_link") 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13038 *) ac_try_echo
=$ac_try;;
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_sizeof_off_t
=`cat conftestval`
13047 echo "$as_me: program exited with status $ac_status" >&5
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.
$ac_ext >&5
13051 ( exit $ac_status )
13052 ac_cv_sizeof_off_t
=0
13054 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13062 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13064 cat >>confdefs.h
<<_ACEOF
13065 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13069 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13070 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13071 if test "$have_long_long" = yes
13073 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13074 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13076 cat >>confdefs.h
<<\_ACEOF
13077 #define HAVE_LARGEFILE_SUPPORT 1
13080 { echo "$as_me:$LINENO: result: yes" >&5
13081 echo "${ECHO_T}yes" >&6; }
13083 { echo "$as_me:$LINENO: result: no" >&5
13084 echo "${ECHO_T}no" >&6; }
13087 { echo "$as_me:$LINENO: result: no" >&5
13088 echo "${ECHO_T}no" >&6; }
13091 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13092 { echo "$as_me:$LINENO: checking size of time_t" >&5
13093 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13094 if test "${ac_cv_sizeof_time_t+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 if test "$cross_compiling" = yes; then
13098 ac_cv_sizeof_time_t
=4
13100 cat >conftest.
$ac_ext <<_ACEOF
13103 cat confdefs.h
>>conftest.
$ac_ext
13104 cat >>conftest.
$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13110 FILE *f=fopen("conftestval", "w");
13112 fprintf(f, "%d\n", sizeof(time_t));
13116 rm -f conftest
$ac_exeext
13117 if { (ac_try
="$ac_link"
13118 case "(($ac_try" in
13119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_link") 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13127 { (case "(($ac_try" in
13128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13129 *) ac_try_echo
=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_try") 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_sizeof_time_t
=`cat conftestval`
13138 echo "$as_me: program exited with status $ac_status" >&5
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.
$ac_ext >&5
13142 ( exit $ac_status )
13143 ac_cv_sizeof_time_t
=0
13145 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13152 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13153 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13155 cat >>confdefs.h
<<_ACEOF
13156 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13161 # if have pthread_t then define SIZEOF_PTHREAD_T
13163 if test "$ac_cv_kpthread" = "yes"
13164 then CC
="$CC -Kpthread"
13165 elif test "$ac_cv_kthread" = "yes"
13166 then CC
="$CC -Kthread"
13167 elif test "$ac_cv_pthread" = "yes"
13168 then CC
="$CC -pthread"
13170 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13171 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13173 cat >conftest.
$ac_ext <<_ACEOF
13176 cat confdefs.h
>>conftest.
$ac_ext
13177 cat >>conftest.
$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 #include <pthread.h>
13183 pthread_t x; x = *(pthread_t*)0;
13188 rm -f conftest.
$ac_objext
13189 if { (ac_try
="$ac_compile"
13190 case "(($ac_try" in
13191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_compile") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest.$ac_objext; then
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13215 echo "${ECHO_T}$have_pthread_t" >&6; }
13216 if test "$have_pthread_t" = yes ; then
13217 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13218 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13219 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13220 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 if test "$cross_compiling" = yes; then
13224 ac_cv_sizeof_pthread_t=4
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13233 #include <pthread.h>
13236 FILE *f=fopen("conftestval", "w");
13238 fprintf(f, "%d\n", sizeof(pthread_t));
13242 rm -f conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13246 *) ac_try_echo
=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13253 { (case "(($ac_try" in
13254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_sizeof_pthread_t=`cat conftestval
`
13264 echo "$as_me: program exited with status $ac_status" >&5
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13268 ( exit $ac_status )
13269 ac_cv_sizeof_pthread_t=0
13271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13279 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13281 cat >>confdefs.h <<_ACEOF
13282 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13291 case $ac_sys_system/$ac_sys_release in
13292 Darwin/[01567]\..*)
13293 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13296 OTHER_LIBTOOL_OPT=""
13303 case $ac_sys_system/$ac_sys_release in
13304 Darwin/[01567]\..*)
13305 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13306 if test "${enable_universalsdk}"; then
13309 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr
/bin
/arch
`"
13311 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13312 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13314 gcc_version=`gcc
-dumpversion`
13315 if test ${gcc_version} '<' 4.0
13317 LIBTOOL_CRUFT="-lcc_dynamic"
13321 if test "$cross_compiling" = yes; then
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13331 #include <unistd.h>
13332 int main(int argc, char*argv[])
13334 if (sizeof(long) == 4) {
13342 rm -f conftest$ac_exeext
13343 if { (ac_try="$ac_link"
13344 case "(($ac_try" in
13345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13346 *) ac_try_echo
=$ac_try;;
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_link") 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13353 { (case "(($ac_try" in
13354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13364 echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ( exit $ac_status )
13371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376 if test "${ac_osx_32bit}" = "yes"; then
13377 case `/usr
/bin
/arch
` in
13379 MACOSX_DEFAULT_ARCH="i386"
13382 MACOSX_DEFAULT_ARCH="ppc"
13385 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13386 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13387 { (exit 1); exit 1; }; }
13391 case `/usr
/bin
/arch
` in
13393 MACOSX_DEFAULT_ARCH="x86_64"
13396 MACOSX_DEFAULT_ARCH="ppc64"
13399 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13400 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13401 { (exit 1); exit 1; }; }
13405 #ARCH_RUN_32BIT="true"
13408 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13409 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13410 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13413 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13414 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13415 if test "$enable_framework"
13417 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13418 # -F. is needed to allow linking to the framework while
13419 # in the build location.
13421 cat >>confdefs.h <<\_ACEOF
13422 #define WITH_NEXT_FRAMEWORK 1
13425 { echo "$as_me:$LINENO: result: yes" >&5
13426 echo "${ECHO_T}yes" >&6; }
13427 if test $enable_shared = "yes"
13429 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13430 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13431 { (exit 1); exit 1; }; }
13434 { echo "$as_me:$LINENO: result: no" >&5
13435 echo "${ECHO_T}no" >&6; }
13438 { echo "$as_me:$LINENO: checking for dyld" >&5
13439 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13440 case $ac_sys_system/$ac_sys_release in
13443 cat >>confdefs.h <<\_ACEOF
13444 #define WITH_DYLD 1
13447 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13448 echo "${ECHO_T}always on for Darwin" >&6; }
13451 { echo "$as_me:$LINENO: result: no" >&5
13452 echo "${ECHO_T}no" >&6; }
13456 # Set info about shared libraries.
13462 # SO is the extension of shared libraries `(including the dot
!)
13463 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13464 { echo "$as_me:$LINENO: checking SO" >&5
13465 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13468 case $ac_sys_system in
13479 # this might also be a termcap variable, see #610332
13481 echo '====================================================================='
13483 echo '+ WARNING: You have set SO in your environment. +'
13484 echo '+ Do you really mean to change the extension for shared libraries? +'
13485 echo '+ Continuing in 10 seconds to let you to ponder. +'
13487 echo '====================================================================='
13490 { echo "$as_me:$LINENO: result: $SO" >&5
13491 echo "${ECHO_T}$SO" >&6; }
13494 cat >>confdefs.h
<<_ACEOF
13495 #define SHLIB_EXT "$SO"
13498 # LDSHARED is the ld *command* used to create shared library
13499 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13500 # (Shared libraries in this instance are shared modules to be loaded into
13501 # Python, as opposed to building Python itself as a shared library.)
13502 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13503 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13504 if test -z "$LDSHARED"
13506 case $ac_sys_system/$ac_sys_release in
13508 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13509 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13511 IRIX
/5*) LDSHARED
="ld -shared";;
13512 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13514 if test "$GCC" = "yes"
13515 then LDSHARED
='$(CC) -shared'
13516 else LDSHARED
='$(CC) -G';
13519 if test "$GCC" = "yes"
13520 then LDSHARED
='$(CC) -shared'
13521 else LDSHARED
='ld -b';
13523 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13525 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13526 if test "$enable_framework" ; then
13527 # Link against the framework. All externals should be defined.
13528 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13529 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13531 # No framework. Ignore undefined symbols, assuming they come from Python
13532 LDSHARED
="$LDSHARED -undefined suppress"
13534 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13535 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13536 if test "$enable_framework" ; then
13537 # Link against the framework. All externals should be defined.
13538 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13539 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13541 # No framework, use the Python app as bundle-loader
13542 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13543 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13546 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13547 # This allows an extension to be used in any Python
13549 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13551 if test "${enable_universalsdk}"; then
13552 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13554 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13555 BLDSHARED
="$LDSHARED"
13557 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13558 if test "$enable_framework" ; then
13559 # Link against the framework. All externals should be defined.
13560 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13561 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13563 # No framework, use the Python app as bundle-loader
13564 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13565 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13569 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13570 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13572 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13574 LDSHARED
="$CC -shared ${LDFLAGS}"
13576 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13579 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13581 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13584 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13585 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13588 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13592 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13593 OpenUNIX
*|UnixWare
*)
13594 if test "$GCC" = "yes"
13595 then LDSHARED
='$(CC) -shared'
13596 else LDSHARED
='$(CC) -G'
13598 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13599 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13600 atheos
*) LDSHARED
="gcc -shared";;
13604 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13605 echo "${ECHO_T}$LDSHARED" >&6; }
13606 BLDSHARED
=${BLDSHARED-$LDSHARED}
13607 # CCSHARED are the C *flags* used to create objects to go into a shared
13608 # library (module) -- this is only needed for a few systems
13609 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13610 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13611 if test -z "$CCSHARED"
13613 case $ac_sys_system/$ac_sys_release in
13614 SunOS
*) if test "$GCC" = yes;
13615 then CCSHARED
="-fPIC";
13616 elif test `uname -p` = sparc
;
13617 then CCSHARED
="-xcode=pic32";
13618 else CCSHARED
="-Kpic";
13620 hp
*|HP
*) if test "$GCC" = yes;
13621 then CCSHARED
="-fPIC";
13622 else CCSHARED
="+z";
13624 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13625 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13626 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13627 OpenUNIX
*|UnixWare
*)
13628 if test "$GCC" = "yes"
13629 then CCSHARED
="-fPIC"
13630 else CCSHARED
="-KPIC"
13633 if test "$GCC" = "yes"
13634 then CCSHARED
="-fPIC"
13635 else CCSHARED
="-Kpic -belf"
13637 IRIX
*/6*) case $CC in
13638 *gcc
*) CCSHARED
="-shared";;
13641 atheos
*) CCSHARED
="-fPIC";;
13644 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13645 echo "${ECHO_T}$CCSHARED" >&6; }
13646 # LINKFORSHARED are the flags passed to the $(CC) command that links
13647 # the python executable -- this is only needed for a few systems
13648 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13649 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13650 if test -z "$LINKFORSHARED"
13652 case $ac_sys_system/$ac_sys_release in
13653 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13655 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13656 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13657 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13658 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13659 # -u libsys_s pulls in all symbols in libsys
13661 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13662 if test "$enable_framework"
13664 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13666 LINKFORSHARED
="$LINKFORSHARED";;
13667 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13668 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13669 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13670 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13671 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13673 LINKFORSHARED
="-Wl,--export-dynamic"
13675 SunOS
/5*) case $CC in
13677 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13679 LINKFORSHARED
="-Xlinker --export-dynamic"
13683 if test $enable_shared = "no"
13685 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13688 # -Wl,-E causes the symbols to be added to the dynamic
13689 # symbol table so that they can be found when a module
13690 # is loaded. -N 2048K causes the stack size to be set
13691 # to 2048 kilobytes so that the stack doesn't overflow
13692 # when running test_compile.py.
13693 LINKFORSHARED
='-Wl,-E -N 2048K';;
13696 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13697 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13701 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13702 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13703 if test ! "$LIBRARY" = "$LDLIBRARY"
13705 case $ac_sys_system in
13707 # Cygwin needs CCSHARED when building extension DLLs
13708 # but not when building the interpreter DLL.
13709 CFLAGSFORSHARED
='';;
13711 CFLAGSFORSHARED
='$(CCSHARED)'
13714 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13715 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13717 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13718 # library (with --enable-shared).
13719 # For platforms on which shared libraries are not allowed to have unresolved
13720 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13721 # if it is not required, since it creates a dependency of the shared library
13722 # to LIBS. This, in turn, means that applications linking the shared libpython
13723 # don't need to link LIBS explicitly. The default should be only changed
13724 # on systems where this approach causes problems.
13726 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13727 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13728 case "$ac_sys_system" in
13732 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13733 echo "${ECHO_T}$SHLIBS" >&6; }
13736 # checks for libraries
13738 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 ac_check_lib_save_LIBS
=$LIBS
13745 cat >conftest.
$ac_ext <<_ACEOF
13748 cat confdefs.h
>>conftest.
$ac_ext
13749 cat >>conftest.
$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13752 /* Override any GCC internal prototype to avoid an error.
13753 Use char because int might match the return type of a GCC
13754 builtin and then its argument prototype would still apply. */
13767 rm -f conftest.
$ac_objext conftest
$ac_exeext
13768 if { (ac_try
="$ac_link"
13769 case "(($ac_try" in
13770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_link") 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
13783 } && test -s conftest$ac_exeext &&
13784 $as_test_x conftest$ac_exeext; then
13785 ac_cv_lib_dl_dlopen=yes
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_cv_lib_dl_dlopen=no
13793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13794 conftest$ac_exeext conftest.$ac_ext
13795 LIBS=$ac_check_lib_save_LIBS
13797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13798 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13799 if test $ac_cv_lib_dl_dlopen = yes; then
13800 cat >>confdefs.h <<_ACEOF
13801 #define HAVE_LIBDL 1
13807 # Dynamic linking for SunOS/Solaris and SYSV
13809 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13810 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13811 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 ac_check_lib_save_LIBS=$LIBS
13816 cat >conftest.$ac_ext <<_ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13833 return shl_load ();
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13842 *) ac_try_echo
=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1
>conftest.err
13849 cat conftest.err
>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest
$ac_exeext &&
13855 $as_test_x conftest
$ac_exeext; then
13856 ac_cv_lib_dld_shl_load
=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.
$ac_ext >&5
13861 ac_cv_lib_dld_shl_load
=no
13864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13865 conftest
$ac_exeext conftest.
$ac_ext
13866 LIBS
=$ac_check_lib_save_LIBS
13868 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13869 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13870 if test $ac_cv_lib_dld_shl_load = yes; then
13871 cat >>confdefs.h
<<_ACEOF
13872 #define HAVE_LIBDLD 1
13878 # Dynamic linking for HP-UX
13880 # only check for sem_init if thread support is requested
13881 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13882 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13883 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13884 if test "${ac_cv_search_sem_init+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 ac_func_search_save_LIBS
=$LIBS
13888 cat >conftest.
$ac_ext <<_ACEOF
13891 cat confdefs.h
>>conftest.
$ac_ext
13892 cat >>conftest.
$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13895 /* Override any GCC internal prototype to avoid an error.
13896 Use char because int might match the return type of a GCC
13897 builtin and then its argument prototype would still apply. */
13905 return sem_init ();
13910 for ac_lib
in '' pthread rt posix4
; do
13911 if test -z "$ac_lib"; then
13912 ac_res
="none required"
13915 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13917 rm -f conftest.
$ac_objext conftest
$ac_exeext
13918 if { (ac_try
="$ac_link"
13919 case "(($ac_try" in
13920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_link") 2>conftest.er1
13926 grep -v '^ *+' conftest.er1 >conftest.err
13928 cat conftest.err >&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && {
13931 test -z "$ac_c_werror_flag" ||
13932 test ! -s conftest.err
13933 } && test -s conftest$ac_exeext &&
13934 $as_test_x conftest$ac_exeext; then
13935 ac_cv_search_sem_init=$ac_res
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13945 if test "${ac_cv_search_sem_init+set}" = set; then
13949 if test "${ac_cv_search_sem_init+set}" = set; then
13952 ac_cv_search_sem_init=no
13954 rm conftest.$ac_ext
13955 LIBS=$ac_func_search_save_LIBS
13957 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13958 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13959 ac_res=$ac_cv_search_sem_init
13960 if test "$ac_res" != no; then
13961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13964 # 'Real Time' functions on Solaris
13965 # posix4 on Solaris 2.6
13966 # pthread (first!) on Linux
13969 # check if we need libintl for locale functions
13970 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13971 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13972 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 ac_check_lib_save_LIBS=$LIBS
13976 LIBS="-lintl $LIBS"
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13990 char textdomain ();
13994 return textdomain ();
13999 rm -f conftest.$ac_objext conftest$ac_exeext
14000 if { (ac_try="$ac_link"
14001 case "(($ac_try" in
14002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14003 *) ac_try_echo
=$ac_try;;
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_link") 2>conftest.er1
14008 grep -v '^ *+' conftest.er1
>conftest.err
14010 cat conftest.err
>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } && {
14013 test -z "$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14015 } && test -s conftest
$ac_exeext &&
14016 $as_test_x conftest
$ac_exeext; then
14017 ac_cv_lib_intl_textdomain
=yes
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.
$ac_ext >&5
14022 ac_cv_lib_intl_textdomain
=no
14025 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14026 conftest
$ac_exeext conftest.
$ac_ext
14027 LIBS
=$ac_check_lib_save_LIBS
14029 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14030 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14031 if test $ac_cv_lib_intl_textdomain = yes; then
14033 cat >>confdefs.h
<<\_ACEOF
14034 #define WITH_LIBINTL 1
14037 LIBS
="-lintl $LIBS"
14041 # checks for system dependent C++ extensions support
14042 case "$ac_sys_system" in
14043 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14044 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14045 cat >conftest.
$ac_ext <<_ACEOF
14048 cat confdefs.h
>>conftest.
$ac_ext
14049 cat >>conftest.
$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include "/usr/lpp/xlC/include/load.h"
14055 loadAndInit("", 0, "")
14060 rm -f conftest.
$ac_objext conftest
$ac_exeext
14061 if { (ac_try
="$ac_link"
14062 case "(($ac_try" in
14063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_link") 2>conftest.er1
14069 grep -v '^ *+' conftest.er1 >conftest.err
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } && {
14074 test -z "$ac_c_werror_flag" ||
14075 test ! -s conftest.err
14076 } && test -s conftest$ac_exeext &&
14077 $as_test_x conftest$ac_exeext; then
14079 cat >>confdefs.h <<\_ACEOF
14080 #define AIX_GENUINE_CPLUSPLUS 1
14083 { echo "$as_me:$LINENO: result: yes" >&5
14084 echo "${ECHO_T}yes" >&6; }
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 { echo "$as_me:$LINENO: result: no" >&5
14090 echo "${ECHO_T}no" >&6; }
14093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14094 conftest$ac_exeext conftest.$ac_ext;;
14098 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14099 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14100 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14101 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_check_lib_save_LIBS=$LIBS
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (ac_try="$ac_link"
14130 case "(($ac_try" in
14131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14132 *) ac_try_echo
=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_link") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1
>conftest.err
14139 cat conftest.err
>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest
$ac_exeext &&
14145 $as_test_x conftest
$ac_exeext; then
14146 ac_cv_lib_nsl_t_open
=yes
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.
$ac_ext >&5
14151 ac_cv_lib_nsl_t_open
=no
14154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14155 conftest
$ac_exeext conftest.
$ac_ext
14156 LIBS
=$ac_check_lib_save_LIBS
14158 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14159 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14160 if test $ac_cv_lib_nsl_t_open = yes; then
14164 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14165 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14166 if test "${ac_cv_lib_socket_socket+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 ac_check_lib_save_LIBS
=$LIBS
14170 LIBS
="-lsocket $LIBS $LIBS"
14171 cat >conftest.
$ac_ext <<_ACEOF
14174 cat confdefs.h
>>conftest.
$ac_ext
14175 cat >>conftest.
$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14193 rm -f conftest.
$ac_objext conftest
$ac_exeext
14194 if { (ac_try
="$ac_link"
14195 case "(($ac_try" in
14196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest$ac_exeext &&
14210 $as_test_x conftest$ac_exeext; then
14211 ac_cv_lib_socket_socket=yes
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 ac_cv_lib_socket_socket=no
14219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LIBS=$ac_check_lib_save_LIBS
14223 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14224 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14225 if test $ac_cv_lib_socket_socket = yes; then
14226 LIBS="-lsocket $LIBS"
14230 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14231 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14233 # Check whether --with-libs was given.
14234 if test "${with_libs+set}" = set; then
14235 withval=$with_libs;
14236 { echo "$as_me:$LINENO: result: $withval" >&5
14237 echo "${ECHO_T}$withval" >&6; }
14238 LIBS="$withval $LIBS"
14241 { echo "$as_me:$LINENO: result: no" >&5
14242 echo "${ECHO_T}no" >&6; }
14246 # Check for use of the system libffi library
14247 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14248 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14250 # Check whether --with-system_ffi was given.
14251 if test "${with_system_ffi+set}" = set; then
14252 withval=$with_system_ffi;
14256 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14257 echo "${ECHO_T}$with_system_ffi" >&6; }
14259 # Check for --with-dbmliborder
14260 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14261 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14263 # Check whether --with-dbmliborder was given.
14264 if test "${with_dbmliborder+set}" = set; then
14265 withval=$with_dbmliborder;
14266 if test x$with_dbmliborder = xyes
14268 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14269 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14270 { (exit 1); exit 1; }; }
14272 for db in `echo $with_dbmliborder |
sed 's/:/ /g'`; do
14273 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14275 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14276 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14277 { (exit 1); exit 1; }; }
14283 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14284 echo "${ECHO_T}$with_dbmliborder" >&6; }
14286 # Determine if signalmodule should be used.
14289 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14290 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14292 # Check whether --with-signal-module was given.
14293 if test "${with_signal_module+set}" = set; then
14294 withval=$with_signal_module;
14298 if test -z "$with_signal_module"
14299 then with_signal_module="yes"
14301 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14302 echo "${ECHO_T}$with_signal_module" >&6; }
14304 if test "${with_signal_module}" = "yes"; then
14305 USE_SIGNAL_MODULE=""
14308 USE_SIGNAL_MODULE="#"
14309 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14312 # This is used to generate Setup.config
14314 USE_THREAD_MODULE=""
14316 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14317 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14320 # Check whether --with-dec-threads was given.
14321 if test "${with_dec_threads+set}" = set; then
14322 withval=$with_dec_threads;
14323 { echo "$as_me:$LINENO: result: $withval" >&5
14324 echo "${ECHO_T}$withval" >&6; }
14326 if test "${with_thread+set}" != set; then
14327 with_thread="$withval";
14330 { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14335 # Templates for things AC_DEFINEd more than once.
14336 # For a single AC_DEFINE, no template is needed.
14344 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14345 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14347 # Check whether --with-threads was given.
14348 if test "${with_threads+set}" = set; then
14349 withval=$with_threads;
14353 # --with-thread is deprecated, but check for it anyway
14355 # Check whether --with-thread was given.
14356 if test "${with_thread+set}" = set; then
14357 withval=$with_thread; with_threads=$with_thread
14361 if test -z "$with_threads"
14362 then with_threads="yes"
14364 { echo "$as_me:$LINENO: result: $with_threads" >&5
14365 echo "${ECHO_T}$with_threads" >&6; }
14368 if test "$with_threads" = "no"
14370 USE_THREAD_MODULE="#"
14371 elif test "$ac_cv_pthread_is_default" = yes
14373 cat >>confdefs.h <<\_ACEOF
14374 #define WITH_THREAD 1
14377 # Defining _REENTRANT on system with POSIX threads should not hurt.
14378 cat >>confdefs.h <<\_ACEOF
14379 #define _REENTRANT 1
14383 THREADOBJ="Python/thread.o"
14384 elif test "$ac_cv_kpthread" = "yes"
14387 if test "$ac_cv_cxx_thread" = "yes"; then
14388 CXX="$CXX -Kpthread"
14390 cat >>confdefs.h <<\_ACEOF
14391 #define WITH_THREAD 1
14395 THREADOBJ="Python/thread.o"
14396 elif test "$ac_cv_kthread" = "yes"
14399 if test "$ac_cv_cxx_thread" = "yes"; then
14400 CXX="$CXX -Kthread"
14402 cat >>confdefs.h <<\_ACEOF
14403 #define WITH_THREAD 1
14407 THREADOBJ="Python/thread.o"
14408 elif test "$ac_cv_pthread" = "yes"
14411 if test "$ac_cv_cxx_thread" = "yes"; then
14412 CXX="$CXX -pthread"
14414 cat >>confdefs.h <<\_ACEOF
14415 #define WITH_THREAD 1
14419 THREADOBJ="Python/thread.o"
14421 if test ! -z "$with_threads" -a -d "$with_threads"
14422 then LDFLAGS="$LDFLAGS -L$with_threads"
14424 if test ! -z "$withval" -a -d "$withval"
14425 then LDFLAGS="$LDFLAGS -L$withval"
14428 # According to the POSIX spec, a pthreads implementation must
14429 # define _POSIX_THREADS in unistd.h. Some apparently don't
14430 # (e.g. gnu pth with pthread emulation)
14431 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14432 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14440 #include <unistd.h>
14441 #ifdef _POSIX_THREADS
14446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14447 $EGREP "yes" >/dev/null 2>&1; then
14448 unistd_defines_pthreads=yes
14450 unistd_defines_pthreads=no
14454 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14455 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14457 cat >>confdefs.h <<\_ACEOF
14458 #define _REENTRANT 1
14461 if test "${ac_cv_header_cthreads_h+set}" = set; then
14462 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14463 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14464 if test "${ac_cv_header_cthreads_h+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14468 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14470 # Is the header compilable?
14471 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14472 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14480 #include <cthreads.h>
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14486 *) ac_try_echo
=$ac_try;;
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_compile") 2>conftest.er1
14491 grep -v '^ *+' conftest.er1
>conftest.err
14493 cat conftest.err
>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } && {
14496 test -z "$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 } && test -s conftest.
$ac_objext; then
14499 ac_header_compiler
=yes
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.
$ac_ext >&5
14504 ac_header_compiler
=no
14507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 echo "${ECHO_T}$ac_header_compiler" >&6; }
14511 # Is the header present?
14512 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14513 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14514 cat >conftest.
$ac_ext <<_ACEOF
14517 cat confdefs.h
>>conftest.
$ac_ext
14518 cat >>conftest.
$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <cthreads.h>
14522 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14523 case "(($ac_try" in
14524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14530 grep -v '^ *+' conftest.er1 >conftest.err
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev/null && {
14535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14536 test ! -s conftest.err
14538 ac_header_preproc=yes
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_header_preproc=no
14546 rm -f conftest.err conftest.$ac_ext
14547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14548 echo "${ECHO_T}$ac_header_preproc" >&6; }
14550 # So? What about this header?
14551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14553 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14554 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14556 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14557 ac_header_preproc=yes
14560 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14561 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14563 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14565 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14567 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14569 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14571 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14573 ## -------------------------------------- ##
14574 ## Report this to http://bugs.python.org/ ##
14575 ## -------------------------------------- ##
14577 ) | sed "s/^/$as_me: WARNING: /" >&2
14580 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14581 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14582 if test "${ac_cv_header_cthreads_h+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 ac_cv_header_cthreads_h=$ac_header_preproc
14587 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14588 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14591 if test $ac_cv_header_cthreads_h = yes; then
14592 cat >>confdefs.h <<\_ACEOF
14593 #define WITH_THREAD 1
14596 cat >>confdefs.h <<\_ACEOF
14597 #define C_THREADS 1
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HURD_C_THREADS 1
14605 LIBS="$LIBS -lthreads"
14606 THREADOBJ="Python/thread.o"
14609 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14610 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14611 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14616 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14618 # Is the header compilable?
14619 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14620 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14628 #include <mach/cthreads.h>
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14634 *) ac_try_echo
=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_compile") 2>conftest.er1
14639 grep -v '^ *+' conftest.er1
>conftest.err
14641 cat conftest.err
>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest.
$ac_objext; then
14647 ac_header_compiler
=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.
$ac_ext >&5
14652 ac_header_compiler
=no
14655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14661 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14662 cat >conftest.
$ac_ext <<_ACEOF
14665 cat confdefs.h
>>conftest.
$ac_ext
14666 cat >>conftest.
$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <mach/cthreads.h>
14670 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null && {
14683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14686 ac_header_preproc=yes
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_header_preproc=no
14694 rm -f conftest.err conftest.$ac_ext
14695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696 echo "${ECHO_T}$ac_header_preproc" >&6; }
14698 # So? What about this header?
14699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14702 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14704 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14705 ac_header_preproc=yes
14708 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14709 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14711 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14713 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14715 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14717 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14719 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14721 ## -------------------------------------- ##
14722 ## Report this to http://bugs.python.org/ ##
14723 ## -------------------------------------- ##
14725 ) | sed "s/^/$as_me: WARNING: /" >&2
14728 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14729 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14730 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14735 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14736 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14739 if test $ac_cv_header_mach_cthreads_h = yes; then
14740 cat >>confdefs.h <<\_ACEOF
14741 #define WITH_THREAD 1
14744 cat >>confdefs.h <<\_ACEOF
14745 #define C_THREADS 1
14749 cat >>confdefs.h <<\_ACEOF
14750 #define MACH_C_THREADS 1
14753 THREADOBJ="Python/thread.o"
14756 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14757 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14759 # Check whether --with-pth was given.
14760 if test "${with_pth+set}" = set; then
14761 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14762 echo "${ECHO_T}$withval" >&6; }
14763 cat >>confdefs.h <<\_ACEOF
14764 #define WITH_THREAD 1
14768 cat >>confdefs.h <<\_ACEOF
14773 THREADOBJ="Python/thread.o"
14775 { echo "$as_me:$LINENO: result: no" >&5
14776 echo "${ECHO_T}no" >&6; }
14778 # Just looking for pthread_create in libpthread is not enough:
14779 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14780 # So we really have to include pthread.h, and then link.
14782 LIBS="$LIBS -lpthread"
14783 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14784 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 #include <pthread.h>
14793 void * start_routine (void *arg) { exit (0); }
14798 pthread_create (NULL, NULL, start_routine, NULL)
14803 rm -f conftest.$ac_objext conftest$ac_exeext
14804 if { (ac_try="$ac_link"
14805 case "(($ac_try" in
14806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14807 *) ac_try_echo
=$ac_try;;
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_link") 2>conftest.er1
14812 grep -v '^ *+' conftest.er1
>conftest.err
14814 cat conftest.err
>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } && {
14817 test -z "$ac_c_werror_flag" ||
14818 test ! -s conftest.err
14819 } && test -s conftest
$ac_exeext &&
14820 $as_test_x conftest
$ac_exeext; then
14822 { echo "$as_me:$LINENO: result: yes" >&5
14823 echo "${ECHO_T}yes" >&6; }
14824 cat >>confdefs.h
<<\_ACEOF
14825 #define WITH_THREAD 1
14829 THREADOBJ
="Python/thread.o"
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.
$ac_ext >&5
14836 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14837 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14838 if test "${ac_cv_func_pthread_detach+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 cat >conftest.
$ac_ext <<_ACEOF
14844 cat confdefs.h
>>conftest.
$ac_ext
14845 cat >>conftest.
$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14849 #define pthread_detach innocuous_pthread_detach
14851 /* System header to define __stub macros and hopefully few prototypes,
14852 which can conflict with char pthread_detach (); below.
14853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14854 <limits.h> exists even on freestanding compilers. */
14857 # include <limits.h>
14859 # include <assert.h>
14862 #undef pthread_detach
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14870 char pthread_detach ();
14871 /* The GNU C library defines this for functions which it implements
14872 to always fail with ENOSYS. Some functions are actually named
14873 something starting with __ and the normal name is an alias. */
14874 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14881 return pthread_detach ();
14886 rm -f conftest.
$ac_objext conftest
$ac_exeext
14887 if { (ac_try
="$ac_link"
14888 case "(($ac_try" in
14889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_link") 2>conftest.er1
14895 grep -v '^ *+' conftest.er1 >conftest.err
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext &&
14903 $as_test_x conftest$ac_exeext; then
14904 ac_cv_func_pthread_detach=yes
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_cv_func_pthread_detach=no
14912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14913 conftest$ac_exeext conftest.$ac_ext
14915 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14916 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14917 if test $ac_cv_func_pthread_detach = yes; then
14918 cat >>confdefs.h <<\_ACEOF
14919 #define WITH_THREAD 1
14923 THREADOBJ="Python/thread.o"
14926 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14927 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14928 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14929 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14933 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14935 # Is the header compilable?
14936 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14937 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14945 #include <atheos/threads.h>
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14951 *) ac_try_echo
=$ac_try;;
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_compile") 2>conftest.er1
14956 grep -v '^ *+' conftest.er1
>conftest.err
14958 cat conftest.err
>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } && {
14961 test -z "$ac_c_werror_flag" ||
14962 test ! -s conftest.err
14963 } && test -s conftest.
$ac_objext; then
14964 ac_header_compiler
=yes
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.
$ac_ext >&5
14969 ac_header_compiler
=no
14972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974 echo "${ECHO_T}$ac_header_compiler" >&6; }
14976 # Is the header present?
14977 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14978 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14979 cat >conftest.
$ac_ext <<_ACEOF
14982 cat confdefs.h
>>conftest.
$ac_ext
14983 cat >>conftest.
$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <atheos/threads.h>
14987 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14988 case "(($ac_try" in
14989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } >/dev/null && {
15000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15003 ac_header_preproc=yes
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 ac_header_preproc=no
15011 rm -f conftest.err conftest.$ac_ext
15012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15013 echo "${ECHO_T}$ac_header_preproc" >&6; }
15015 # So? What about this header?
15016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15018 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15019 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15021 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15022 ac_header_preproc=yes
15025 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15026 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15028 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15030 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15032 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15034 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15036 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15038 ## -------------------------------------- ##
15039 ## Report this to http://bugs.python.org/ ##
15040 ## -------------------------------------- ##
15042 ) | sed "s/^/$as_me: WARNING: /" >&2
15045 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15046 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15047 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 ac_cv_header_atheos_threads_h=$ac_header_preproc
15052 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15053 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15056 if test $ac_cv_header_atheos_threads_h = yes; then
15057 cat >>confdefs.h <<\_ACEOF
15058 #define WITH_THREAD 1
15062 cat >>confdefs.h <<\_ACEOF
15063 #define ATHEOS_THREADS 1
15066 THREADOBJ="Python/thread.o"
15069 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15070 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15071 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 ac_check_lib_save_LIBS=$LIBS
15075 LIBS="-lpthreads $LIBS"
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any GCC internal prototype to avoid an error.
15084 Use char because int might match the return type of a GCC
15085 builtin and then its argument prototype would still apply. */
15089 char pthread_create ();
15093 return pthread_create ();
15098 rm -f conftest.$ac_objext conftest$ac_exeext
15099 if { (ac_try="$ac_link"
15100 case "(($ac_try" in
15101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15102 *) ac_try_echo
=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_link") 2>conftest.er1
15107 grep -v '^ *+' conftest.er1
>conftest.err
15109 cat conftest.err
>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest
$ac_exeext &&
15115 $as_test_x conftest
$ac_exeext; then
15116 ac_cv_lib_pthreads_pthread_create
=yes
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.
$ac_ext >&5
15121 ac_cv_lib_pthreads_pthread_create
=no
15124 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15125 conftest
$ac_exeext conftest.
$ac_ext
15126 LIBS
=$ac_check_lib_save_LIBS
15128 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15129 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15130 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15131 cat >>confdefs.h
<<\_ACEOF
15132 #define WITH_THREAD 1
15136 LIBS
="$LIBS -lpthreads"
15137 THREADOBJ
="Python/thread.o"
15140 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15141 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15142 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 ac_check_lib_save_LIBS
=$LIBS
15147 cat >conftest.
$ac_ext <<_ACEOF
15150 cat confdefs.h
>>conftest.
$ac_ext
15151 cat >>conftest.
$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15154 /* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
15160 char pthread_create ();
15164 return pthread_create ();
15169 rm -f conftest.
$ac_objext conftest
$ac_exeext
15170 if { (ac_try
="$ac_link"
15171 case "(($ac_try" in
15172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_link") 2>conftest.er1
15178 grep -v '^ *+' conftest.er1 >conftest.err
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } && {
15183 test -z "$ac_c_werror_flag" ||
15184 test ! -s conftest.err
15185 } && test -s conftest$ac_exeext &&
15186 $as_test_x conftest$ac_exeext; then
15187 ac_cv_lib_c_r_pthread_create=yes
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_cv_lib_c_r_pthread_create=no
15195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196 conftest$ac_exeext conftest.$ac_ext
15197 LIBS=$ac_check_lib_save_LIBS
15199 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15200 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15201 if test $ac_cv_lib_c_r_pthread_create = yes; then
15202 cat >>confdefs.h <<\_ACEOF
15203 #define WITH_THREAD 1
15208 THREADOBJ="Python/thread.o"
15211 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15212 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15213 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lpthread $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15225 /* Override any GCC internal prototype to avoid an error.
15226 Use char because int might match the return type of a GCC
15227 builtin and then its argument prototype would still apply. */
15231 char __pthread_create_system ();
15235 return __pthread_create_system ();
15240 rm -f conftest.$ac_objext conftest$ac_exeext
15241 if { (ac_try="$ac_link"
15242 case "(($ac_try" in
15243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15244 *) ac_try_echo
=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_link") 2>conftest.er1
15249 grep -v '^ *+' conftest.er1
>conftest.err
15251 cat conftest.err
>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } && {
15254 test -z "$ac_c_werror_flag" ||
15255 test ! -s conftest.err
15256 } && test -s conftest
$ac_exeext &&
15257 $as_test_x conftest
$ac_exeext; then
15258 ac_cv_lib_pthread___pthread_create_system
=yes
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.
$ac_ext >&5
15263 ac_cv_lib_pthread___pthread_create_system
=no
15266 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15267 conftest
$ac_exeext conftest.
$ac_ext
15268 LIBS
=$ac_check_lib_save_LIBS
15270 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15271 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15272 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15273 cat >>confdefs.h
<<\_ACEOF
15274 #define WITH_THREAD 1
15278 LIBS
="$LIBS -lpthread"
15279 THREADOBJ
="Python/thread.o"
15282 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15283 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15284 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 ac_check_lib_save_LIBS
=$LIBS
15289 cat >conftest.
$ac_ext <<_ACEOF
15292 cat confdefs.h
>>conftest.
$ac_ext
15293 cat >>conftest.
$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15296 /* Override any GCC internal prototype to avoid an error.
15297 Use char because int might match the return type of a GCC
15298 builtin and then its argument prototype would still apply. */
15302 char pthread_create ();
15306 return pthread_create ();
15311 rm -f conftest.
$ac_objext conftest
$ac_exeext
15312 if { (ac_try
="$ac_link"
15313 case "(($ac_try" in
15314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_link") 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest$ac_exeext &&
15328 $as_test_x conftest$ac_exeext; then
15329 ac_cv_lib_cma_pthread_create=yes
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_cv_lib_cma_pthread_create=no
15337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15338 conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15341 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15342 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15343 if test $ac_cv_lib_cma_pthread_create = yes; then
15344 cat >>confdefs.h <<\_ACEOF
15345 #define WITH_THREAD 1
15350 THREADOBJ="Python/thread.o"
15353 USE_THREAD_MODULE="#"
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371 conftest$ac_exeext conftest.$ac_ext
15381 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15382 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15383 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 ac_check_lib_save_LIBS=$LIBS
15388 cat >conftest.$ac_ext <<_ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15395 /* Override any GCC internal prototype to avoid an error.
15396 Use char because int might match the return type of a GCC
15397 builtin and then its argument prototype would still apply. */
15405 return usconfig ();
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (ac_try="$ac_link"
15412 case "(($ac_try" in
15413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15414 *) ac_try_echo
=$ac_try;;
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_link") 2>conftest.er1
15419 grep -v '^ *+' conftest.er1
>conftest.err
15421 cat conftest.err
>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest
$ac_exeext &&
15427 $as_test_x conftest
$ac_exeext; then
15428 ac_cv_lib_mpc_usconfig
=yes
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.
$ac_ext >&5
15433 ac_cv_lib_mpc_usconfig
=no
15436 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15437 conftest
$ac_exeext conftest.
$ac_ext
15438 LIBS
=$ac_check_lib_save_LIBS
15440 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15441 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15442 if test $ac_cv_lib_mpc_usconfig = yes; then
15443 cat >>confdefs.h
<<\_ACEOF
15444 #define WITH_THREAD 1
15448 THREADOBJ
="Python/thread.o"
15449 USE_THREAD_MODULE
=""
15453 if test "$posix_threads" != "yes"; then
15454 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15455 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15456 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 ac_check_lib_save_LIBS
=$LIBS
15460 LIBS
="-lthread $LIBS"
15461 cat >conftest.
$ac_ext <<_ACEOF
15464 cat confdefs.h
>>conftest.
$ac_ext
15465 cat >>conftest.
$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15468 /* Override any GCC internal prototype to avoid an error.
15469 Use char because int might match the return type of a GCC
15470 builtin and then its argument prototype would still apply. */
15474 char thr_create ();
15478 return thr_create ();
15483 rm -f conftest.
$ac_objext conftest
$ac_exeext
15484 if { (ac_try
="$ac_link"
15485 case "(($ac_try" in
15486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest$ac_exeext &&
15500 $as_test_x conftest$ac_exeext; then
15501 ac_cv_lib_thread_thr_create=yes
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 ac_cv_lib_thread_thr_create=no
15509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15510 conftest$ac_exeext conftest.$ac_ext
15511 LIBS=$ac_check_lib_save_LIBS
15513 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15514 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15515 if test $ac_cv_lib_thread_thr_create = yes; then
15516 cat >>confdefs.h <<\_ACEOF
15517 #define WITH_THREAD 1
15520 LIBS="$LIBS -lthread"
15521 THREADOBJ="Python/thread.o"
15522 USE_THREAD_MODULE=""
15527 if test "$USE_THREAD_MODULE" != "#"
15529 # If the above checks didn't disable threads, (at least) OSF1
15530 # needs this '-threads' argument during linking.
15531 case $ac_sys_system in
15532 OSF1) LDLAST=-threads;;
15537 if test "$posix_threads" = "yes"; then
15538 if test "$unistd_defines_pthreads" = "no"; then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define _POSIX_THREADS 1
15546 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15547 case $ac_sys_system/$ac_sys_release in
15549 cat >>confdefs.h <<\_ACEOF
15550 #define HAVE_PTHREAD_DESTRUCTOR 1
15555 cat >>confdefs.h <<\_ACEOF
15556 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15561 cat >>confdefs.h <<\_ACEOF
15562 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15568 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15569 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15570 if test "${ac_cv_pthread_system_supported+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 if test "$cross_compiling" = yes; then
15574 ac_cv_pthread_system_supported=no
15576 cat >conftest.$ac_ext <<_ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <pthread.h>
15583 void *foo(void *parm) {
15587 pthread_attr_t attr;
15589 if (pthread_attr_init(&attr)) exit(-1);
15590 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15591 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15595 rm -f conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15599 *) ac_try_echo
=$ac_try;;
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_link") 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15606 { (case "(($ac_try" in
15607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_try") 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_cv_pthread_system_supported=yes
15617 echo "$as_me: program exited with status $ac_status" >&5
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ( exit $ac_status )
15622 ac_cv_pthread_system_supported=no
15624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15632 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15633 if test "$ac_cv_pthread_system_supported" = "yes"; then
15635 cat >>confdefs.h <<\_ACEOF
15636 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15641 for ac_func in pthread_sigmask
15643 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 cat >conftest.$ac_ext <<_ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15657 #define $ac_func innocuous_$ac_func
15659 /* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func (); below.
15661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15662 <limits.h> exists even on freestanding compilers. */
15665 # include <limits.h>
15667 # include <assert.h>
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply. */
15679 /* The GNU C library defines this for functions which it implements
15680 to always fail with ENOSYS. Some functions are actually named
15681 something starting with __ and the normal name is an alias. */
15682 #if defined __stub_$ac_func || defined __stub___$ac_func
15689 return $ac_func ();
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (ac_try="$ac_link"
15696 case "(($ac_try" in
15697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15698 *) ac_try_echo
=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_link") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1
>conftest.err
15705 cat conftest.err
>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && {
15708 test -z "$ac_c_werror_flag" ||
15709 test ! -s conftest.err
15710 } && test -s conftest
$ac_exeext &&
15711 $as_test_x conftest
$ac_exeext; then
15712 eval "$as_ac_var=yes"
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.
$ac_ext >&5
15717 eval "$as_ac_var=no"
15720 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15721 conftest
$ac_exeext conftest.
$ac_ext
15723 ac_res
=`eval echo '${'$as_ac_var'}'`
15724 { echo "$as_me:$LINENO: result: $ac_res" >&5
15725 echo "${ECHO_T}$ac_res" >&6; }
15726 if test `eval echo '${'$as_ac_var'}'` = yes; then
15727 cat >>confdefs.h
<<_ACEOF
15728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15730 case $ac_sys_system in
15733 cat >>confdefs.h
<<\_ACEOF
15734 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15745 # Check for enable-ipv6
15748 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15749 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15750 # Check whether --enable-ipv6 was given.
15751 if test "${enable_ipv6+set}" = set; then
15752 enableval
=$enable_ipv6; case "$enableval" in
15754 { echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6; }
15758 *) { echo "$as_me:$LINENO: result: yes" >&5
15759 echo "${ECHO_T}yes" >&6; }
15760 cat >>confdefs.h
<<\_ACEOF
15761 #define ENABLE_IPV6 1
15769 if test "$cross_compiling" = yes; then
15770 { echo "$as_me:$LINENO: result: no" >&5
15771 echo "${ECHO_T}no" >&6; }
15775 cat >conftest.
$ac_ext <<_ACEOF
15778 cat confdefs.h
>>conftest.
$ac_ext
15779 cat >>conftest.
$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* AF_INET6 available check */
15782 #include <sys/types.h>
15783 #include <sys/socket.h>
15786 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15793 rm -f conftest
$ac_exeext
15794 if { (ac_try
="$ac_link"
15795 case "(($ac_try" in
15796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_link") 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15804 { (case "(($ac_try" in
15805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15806 *) ac_try_echo
=$ac_try;;
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_try") 2>&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then
15813 { echo "$as_me:$LINENO: result: yes" >&5
15814 echo "${ECHO_T}yes" >&6; }
15817 echo "$as_me: program exited with status $ac_status" >&5
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.
$ac_ext >&5
15821 ( exit $ac_status )
15822 { echo "$as_me:$LINENO: result: no" >&5
15823 echo "${ECHO_T}no" >&6; }
15826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15831 if test "$ipv6" = "yes"; then
15832 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15833 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15834 cat >conftest.
$ac_ext <<_ACEOF
15837 cat confdefs.h
>>conftest.
$ac_ext
15838 cat >>conftest.
$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <sys/types.h>
15841 #include <netinet/in.h>
15845 struct sockaddr_in6 x;
15851 rm -f conftest.
$ac_objext
15852 if { (ac_try
="$ac_compile"
15853 case "(($ac_try" in
15854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_compile") 2>conftest.er1
15860 grep -v '^ *+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && {
15865 test -z "$ac_c_werror_flag" ||
15866 test ! -s conftest.err
15867 } && test -s conftest.$ac_objext; then
15868 { echo "$as_me:$LINENO: result: yes" >&5
15869 echo "${ECHO_T}yes" >&6; }
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 { echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6; }
15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 if test "$ipv6" = "yes"; then
15884 cat >>confdefs.h <<\_ACEOF
15885 #define ENABLE_IPV6 1
15897 if test "$ipv6" = "yes"; then
15898 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15899 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15900 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15911 #include <netinet/in.h>
15912 #ifdef IPV6_INRIA_VERSION
15916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15917 $EGREP "yes" >/dev/null 2>&1; then
15924 cat >conftest.$ac_ext <<_ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15931 #include <netinet/in.h>
15936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15937 $EGREP "yes" >/dev/null 2>&1; then
15940 ipv6libdir=/usr/local/v6/lib
15947 cat >conftest.$ac_ext <<_ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15954 #include <features.h>
15955 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960 $EGREP "yes" >/dev/null 2>&1; then
15968 if test -d /usr/inet6; then
15971 ipv6libdir=/usr/inet6/lib
15972 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15976 if test -f /etc/netconfig; then
15977 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 #include <sys/param.h>
15992 #ifdef _TOSHIBA_INET6
15996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15997 $EGREP "yes" >/dev/null 2>&1; then
16000 ipv6libdir=/usr/local/v6/lib
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16013 #include </usr/local/v6/include/sys/v6config.h>
16018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16019 $EGREP "yes" >/dev/null 2>&1; then
16022 ipv6libdir=/usr/local/v6/lib;
16023 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16036 #include <sys/param.h>
16037 #ifdef _ZETA_MINAMI_INET6
16041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16042 $EGREP "yes" >/dev/null 2>&1; then
16045 ipv6libdir=/usr/local/v6/lib
16051 if test "$ipv6type" != "unknown"; then
16055 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16056 echo "${ECHO_T}$ipv6type" >&6; }
16059 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16060 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16061 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16062 echo "using lib$ipv6lib"
16064 if test $ipv6trylibc = "yes"; then
16067 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16068 echo "You need to fetch lib$ipv6lib.a from appropriate"
16069 echo 'ipv6 kit and compile beforehand.'
16075 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16076 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <Carbon/Carbon.h>
16087 FSIORefNum fRef = 0
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16096 *) ac_try_echo
=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_compile") 2>conftest.er1
16101 grep -v '^ *+' conftest.er1
>conftest.err
16103 cat conftest.err
>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && {
16106 test -z "$ac_c_werror_flag" ||
16107 test ! -s conftest.err
16108 } && test -s conftest.
$ac_objext; then
16110 cat >>confdefs.h
<<\_ACEOF
16111 #define HAVE_OSX105_SDK 1
16114 { echo "$as_me:$LINENO: result: yes" >&5
16115 echo "${ECHO_T}yes" >&6; }
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.
$ac_ext >&5
16120 { echo "$as_me:$LINENO: result: no" >&5
16121 echo "${ECHO_T}no" >&6; }
16125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16127 # Check for --with-doc-strings
16128 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16129 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16131 # Check whether --with-doc-strings was given.
16132 if test "${with_doc_strings+set}" = set; then
16133 withval
=$with_doc_strings;
16137 if test -z "$with_doc_strings"
16138 then with_doc_strings
="yes"
16140 if test "$with_doc_strings" != "no"
16143 cat >>confdefs.h
<<\_ACEOF
16144 #define WITH_DOC_STRINGS 1
16148 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16149 echo "${ECHO_T}$with_doc_strings" >&6; }
16151 # Check for Python-specific malloc support
16152 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16153 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16155 # Check whether --with-tsc was given.
16156 if test "${with_tsc+set}" = set; then
16158 if test "$withval" != no
16161 cat >>confdefs.h
<<\_ACEOF
16165 { echo "$as_me:$LINENO: result: yes" >&5
16166 echo "${ECHO_T}yes" >&6; }
16167 else { echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6; }
16171 { echo "$as_me:$LINENO: result: no" >&5
16172 echo "${ECHO_T}no" >&6; }
16176 # Check for Python-specific malloc support
16177 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16178 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16180 # Check whether --with-pymalloc was given.
16181 if test "${with_pymalloc+set}" = set; then
16182 withval
=$with_pymalloc;
16186 if test -z "$with_pymalloc"
16187 then with_pymalloc
="yes"
16189 if test "$with_pymalloc" != "no"
16192 cat >>confdefs.h
<<\_ACEOF
16193 #define WITH_PYMALLOC 1
16197 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16198 echo "${ECHO_T}$with_pymalloc" >&6; }
16200 # Check for --with-wctype-functions
16201 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16202 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16204 # Check whether --with-wctype-functions was given.
16205 if test "${with_wctype_functions+set}" = set; then
16206 withval
=$with_wctype_functions;
16207 if test "$withval" != no
16210 cat >>confdefs.h
<<\_ACEOF
16211 #define WANT_WCTYPE_FUNCTIONS 1
16214 { echo "$as_me:$LINENO: result: yes" >&5
16215 echo "${ECHO_T}yes" >&6; }
16216 else { echo "$as_me:$LINENO: result: no" >&5
16217 echo "${ECHO_T}no" >&6; }
16220 { echo "$as_me:$LINENO: result: no" >&5
16221 echo "${ECHO_T}no" >&6; }
16225 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16229 # the dlopen() function means we might want to use dynload_shlib.o. some
16230 # platforms, such as AIX, have dlopen(), but don't want to use it.
16232 for ac_func
in dlopen
16234 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16237 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 cat >conftest.
$ac_ext <<_ACEOF
16243 cat confdefs.h
>>conftest.
$ac_ext
16244 cat >>conftest.
$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16248 #define $ac_func innocuous_$ac_func
16250 /* System header to define __stub macros and hopefully few prototypes,
16251 which can conflict with char $ac_func (); below.
16252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16253 <limits.h> exists even on freestanding compilers. */
16256 # include <limits.h>
16258 # include <assert.h>
16263 /* Override any GCC internal prototype to avoid an error.
16264 Use char because int might match the return type of a GCC
16265 builtin and then its argument prototype would still apply. */
16270 /* The GNU C library defines this for functions which it implements
16271 to always fail with ENOSYS. Some functions are actually named
16272 something starting with __ and the normal name is an alias. */
16273 #if defined __stub_$ac_func || defined __stub___$ac_func
16280 return $ac_func ();
16285 rm -f conftest.
$ac_objext conftest
$ac_exeext
16286 if { (ac_try
="$ac_link"
16287 case "(($ac_try" in
16288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_link") 2>conftest.er1
16294 grep -v '^ *+' conftest.er1 >conftest.err
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } && {
16299 test -z "$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16301 } && test -s conftest$ac_exeext &&
16302 $as_test_x conftest$ac_exeext; then
16303 eval "$as_ac_var=yes"
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 eval "$as_ac_var=no"
16311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16312 conftest$ac_exeext conftest.$ac_ext
16314 ac_res=`eval echo '${'$as_ac_var'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16317 if test `eval echo '${'$as_ac_var'}'` = yes; then
16318 cat >>confdefs.h <<_ACEOF
16319 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16326 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16327 # loading of modules.
16329 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16330 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16331 if test -z "$DYNLOADFILE"
16333 case $ac_sys_system/$ac_sys_release in
16334 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16335 if test "$ac_cv_func_dlopen" = yes
16336 then DYNLOADFILE="dynload_shlib.o"
16337 else DYNLOADFILE="dynload_aix.o"
16340 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16341 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16342 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16343 atheos*) DYNLOADFILE="dynload_atheos.o";;
16345 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16346 # out any dynamic loading
16347 if test "$ac_cv_func_dlopen" = yes
16348 then DYNLOADFILE="dynload_shlib.o"
16349 else DYNLOADFILE="dynload_stub.o"
16354 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16355 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16356 if test "$DYNLOADFILE" != "dynload_stub.o"
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_DYNAMIC_LOADING 1
16365 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16368 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16369 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16370 if test -z "$MACHDEP_OBJS"
16372 MACHDEP_OBJS=$extra_machdep_objs
16374 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16376 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16377 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16379 # checks for library functions
16469 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16470 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16471 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16472 getpriority getpwent getspnam getspent getsid getwd \
16473 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16474 mremap nice pathconf pause plock poll pthread_init \
16475 putenv readlink realpath \
16476 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16478 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16479 sigaction siginterrupt sigrelse strftime strlcpy \
16480 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16481 truncate uname unsetenv utimes waitpid wait3 wait4 \
16482 wcscoll wcsftime wcsxfrm _getpty
16484 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 cat >conftest.$ac_ext <<_ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16498 #define $ac_func innocuous_$ac_func
16500 /* System header to define __stub macros and hopefully few prototypes,
16501 which can conflict with char $ac_func (); below.
16502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16503 <limits.h> exists even on freestanding compilers. */
16506 # include <limits.h>
16508 # include <assert.h>
16513 /* Override any GCC internal prototype to avoid an error.
16514 Use char because int might match the return type of a GCC
16515 builtin and then its argument prototype would still apply. */
16520 /* The GNU C library defines this for functions which it implements
16521 to always fail with ENOSYS. Some functions are actually named
16522 something starting with __ and the normal name is an alias. */
16523 #if defined __stub_$ac_func || defined __stub___$ac_func
16530 return $ac_func ();
16535 rm -f conftest.$ac_objext conftest$ac_exeext
16536 if { (ac_try="$ac_link"
16537 case "(($ac_try" in
16538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16539 *) ac_try_echo
=$ac_try;;
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_link") 2>conftest.er1
16544 grep -v '^ *+' conftest.er1
>conftest.err
16546 cat conftest.err
>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest
$ac_exeext &&
16552 $as_test_x conftest
$ac_exeext; then
16553 eval "$as_ac_var=yes"
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.
$ac_ext >&5
16558 eval "$as_ac_var=no"
16561 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16562 conftest
$ac_exeext conftest.
$ac_ext
16564 ac_res
=`eval echo '${'$as_ac_var'}'`
16565 { echo "$as_me:$LINENO: result: $ac_res" >&5
16566 echo "${ECHO_T}$ac_res" >&6; }
16567 if test `eval echo '${'$as_ac_var'}'` = yes; then
16568 cat >>confdefs.h
<<_ACEOF
16569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16576 # For some functions, having a definition is not sufficient, since
16577 # we want to take their address.
16578 { echo "$as_me:$LINENO: checking for chroot" >&5
16579 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16580 cat >conftest.
$ac_ext <<_ACEOF
16583 cat confdefs.h
>>conftest.
$ac_ext
16584 cat >>conftest.
$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <unistd.h>
16595 rm -f conftest.
$ac_objext
16596 if { (ac_try
="$ac_compile"
16597 case "(($ac_try" in
16598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_compile") 2>conftest.er1
16604 grep -v '^ *+' conftest.er1 >conftest.err
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } && {
16609 test -z "$ac_c_werror_flag" ||
16610 test ! -s conftest.err
16611 } && test -s conftest.$ac_objext; then
16613 cat >>confdefs.h <<\_ACEOF
16614 #define HAVE_CHROOT 1
16617 { echo "$as_me:$LINENO: result: yes" >&5
16618 echo "${ECHO_T}yes" >&6; }
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 { echo "$as_me:$LINENO: result: no" >&5
16624 echo "${ECHO_T}no" >&6; }
16628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 { echo "$as_me:$LINENO: checking for link" >&5
16630 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16631 cat >conftest.$ac_ext <<_ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 #include <unistd.h>
16646 rm -f conftest.$ac_objext
16647 if { (ac_try="$ac_compile"
16648 case "(($ac_try" in
16649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16650 *) ac_try_echo
=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_compile") 2>conftest.er1
16655 grep -v '^ *+' conftest.er1
>conftest.err
16657 cat conftest.err
>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && {
16660 test -z "$ac_c_werror_flag" ||
16661 test ! -s conftest.err
16662 } && test -s conftest.
$ac_objext; then
16664 cat >>confdefs.h
<<\_ACEOF
16665 #define HAVE_LINK 1
16668 { echo "$as_me:$LINENO: result: yes" >&5
16669 echo "${ECHO_T}yes" >&6; }
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.
$ac_ext >&5
16674 { echo "$as_me:$LINENO: result: no" >&5
16675 echo "${ECHO_T}no" >&6; }
16679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16680 { echo "$as_me:$LINENO: checking for symlink" >&5
16681 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16682 cat >conftest.
$ac_ext <<_ACEOF
16685 cat confdefs.h
>>conftest.
$ac_ext
16686 cat >>conftest.
$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #include <unistd.h>
16697 rm -f conftest.
$ac_objext
16698 if { (ac_try
="$ac_compile"
16699 case "(($ac_try" in
16700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.$ac_objext; then
16715 cat >>confdefs.h <<\_ACEOF
16716 #define HAVE_SYMLINK 1
16719 { echo "$as_me:$LINENO: result: yes" >&5
16720 echo "${ECHO_T}yes" >&6; }
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 { echo "$as_me:$LINENO: result: no" >&5
16726 echo "${ECHO_T}no" >&6; }
16730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16731 { echo "$as_me:$LINENO: checking for fchdir" >&5
16732 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16733 cat >conftest.$ac_ext <<_ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include <unistd.h>
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16752 *) ac_try_echo
=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_compile") 2>conftest.er1
16757 grep -v '^ *+' conftest.er1
>conftest.err
16759 cat conftest.err
>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest.
$ac_objext; then
16766 cat >>confdefs.h
<<\_ACEOF
16767 #define HAVE_FCHDIR 1
16770 { echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6; }
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.
$ac_ext >&5
16776 { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16782 { echo "$as_me:$LINENO: checking for fsync" >&5
16783 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16784 cat >conftest.
$ac_ext <<_ACEOF
16787 cat confdefs.h
>>conftest.
$ac_ext
16788 cat >>conftest.
$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790 #include <unistd.h>
16799 rm -f conftest.
$ac_objext
16800 if { (ac_try
="$ac_compile"
16801 case "(($ac_try" in
16802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_compile") 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } && {
16813 test -z "$ac_c_werror_flag" ||
16814 test ! -s conftest.err
16815 } && test -s conftest.$ac_objext; then
16817 cat >>confdefs.h <<\_ACEOF
16818 #define HAVE_FSYNC 1
16821 { echo "$as_me:$LINENO: result: yes" >&5
16822 echo "${ECHO_T}yes" >&6; }
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 { echo "$as_me:$LINENO: result: no" >&5
16828 echo "${ECHO_T}no" >&6; }
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16834 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 #include <unistd.h>
16850 rm -f conftest.$ac_objext
16851 if { (ac_try="$ac_compile"
16852 case "(($ac_try" in
16853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16854 *) ac_try_echo
=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_compile") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1
>conftest.err
16861 cat conftest.err
>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest.
$ac_objext; then
16868 cat >>confdefs.h
<<\_ACEOF
16869 #define HAVE_FDATASYNC 1
16872 { echo "$as_me:$LINENO: result: yes" >&5
16873 echo "${ECHO_T}yes" >&6; }
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.
$ac_ext >&5
16878 { echo "$as_me:$LINENO: result: no" >&5
16879 echo "${ECHO_T}no" >&6; }
16883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16884 { echo "$as_me:$LINENO: checking for epoll" >&5
16885 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16886 cat >conftest.
$ac_ext <<_ACEOF
16889 cat confdefs.h
>>conftest.
$ac_ext
16890 cat >>conftest.
$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 #include <sys/epoll.h>
16896 void *x=epoll_create
16901 rm -f conftest.
$ac_objext
16902 if { (ac_try
="$ac_compile"
16903 case "(($ac_try" in
16904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_compile") 2>conftest.er1
16910 grep -v '^ *+' conftest.er1 >conftest.err
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } && {
16915 test -z "$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16917 } && test -s conftest.$ac_objext; then
16919 cat >>confdefs.h <<\_ACEOF
16920 #define HAVE_EPOLL 1
16923 { echo "$as_me:$LINENO: result: yes" >&5
16924 echo "${ECHO_T}yes" >&6; }
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 { echo "$as_me:$LINENO: result: no" >&5
16930 echo "${ECHO_T}no" >&6; }
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { echo "$as_me:$LINENO: checking for kqueue" >&5
16936 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16944 #include <sys/types.h>
16945 #include <sys/event.h>
16955 rm -f conftest.$ac_objext
16956 if { (ac_try="$ac_compile"
16957 case "(($ac_try" in
16958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16959 *) ac_try_echo
=$ac_try;;
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_compile") 2>conftest.er1
16964 grep -v '^ *+' conftest.er1
>conftest.err
16966 cat conftest.err
>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && {
16969 test -z "$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16971 } && test -s conftest.
$ac_objext; then
16973 cat >>confdefs.h
<<\_ACEOF
16974 #define HAVE_KQUEUE 1
16977 { echo "$as_me:$LINENO: result: yes" >&5
16978 echo "${ECHO_T}yes" >&6; }
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.
$ac_ext >&5
16983 { echo "$as_me:$LINENO: result: no" >&5
16984 echo "${ECHO_T}no" >&6; }
16988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16989 # On some systems (eg. FreeBSD 5), we would find a definition of the
16990 # functions ctermid_r, setgroups in the library, but no prototype
16991 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16992 # address to avoid compiler warnings and potential miscompilations
16993 # because of the missing prototypes.
16995 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16996 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16997 cat >conftest.
$ac_ext <<_ACEOF
17000 cat confdefs.h
>>conftest.
$ac_ext
17001 cat >>conftest.
$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17004 #include "confdefs.h"
17010 void* p = ctermid_r
17015 rm -f conftest.
$ac_objext
17016 if { (ac_try
="$ac_compile"
17017 case "(($ac_try" in
17018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_compile") 2>conftest.er1
17024 grep -v '^ *+' conftest.er1 >conftest.err
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } && {
17029 test -z "$ac_c_werror_flag" ||
17030 test ! -s conftest.err
17031 } && test -s conftest.$ac_objext; then
17033 cat >>confdefs.h <<\_ACEOF
17034 #define HAVE_CTERMID_R 1
17037 { echo "$as_me:$LINENO: result: yes" >&5
17038 echo "${ECHO_T}yes" >&6; }
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 { echo "$as_me:$LINENO: result: no" >&5
17044 echo "${ECHO_T}no" >&6; }
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17050 { echo "$as_me:$LINENO: checking for flock" >&5
17051 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17052 cat >conftest.$ac_ext <<_ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17059 #include "confdefs.h"
17060 #include <sys/file.h>
17070 rm -f conftest.$ac_objext
17071 if { (ac_try="$ac_compile"
17072 case "(($ac_try" in
17073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17074 *) ac_try_echo
=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_compile") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1
>conftest.err
17081 cat conftest.err
>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest.
$ac_objext; then
17088 cat >>confdefs.h
<<\_ACEOF
17089 #define HAVE_FLOCK 1
17092 { echo "$as_me:$LINENO: result: yes" >&5
17093 echo "${ECHO_T}yes" >&6; }
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.
$ac_ext >&5
17098 { echo "$as_me:$LINENO: result: no" >&5
17099 echo "${ECHO_T}no" >&6; }
17103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17105 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17106 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17107 cat >conftest.
$ac_ext <<_ACEOF
17110 cat confdefs.h
>>conftest.
$ac_ext
17111 cat >>conftest.
$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17114 #include "confdefs.h"
17115 #include <unistd.h>
17120 void* p = getpagesize
17125 rm -f conftest.
$ac_objext
17126 if { (ac_try
="$ac_compile"
17127 case "(($ac_try" in
17128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_compile") 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest.$ac_objext; then
17143 cat >>confdefs.h <<\_ACEOF
17144 #define HAVE_GETPAGESIZE 1
17147 { echo "$as_me:$LINENO: result: yes" >&5
17148 echo "${ECHO_T}yes" >&6; }
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 { echo "$as_me:$LINENO: result: no" >&5
17154 echo "${ECHO_T}no" >&6; }
17158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160 for ac_prog in true
17162 # Extract the first word of "$ac_prog", so it can be a program name with args.
17163 set dummy $ac_prog; ac_word=$2
17164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17166 if test "${ac_cv_prog_TRUE+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 if test -n "$TRUE"; then
17170 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17173 for as_dir in $PATH
17176 test -z "$as_dir" && as_dir=.
17177 for ac_exec_ext in '' $ac_executable_extensions; do
17178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17179 ac_cv_prog_TRUE="$ac_prog"
17180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17189 TRUE=$ac_cv_prog_TRUE
17190 if test -n "$TRUE"; then
17191 { echo "$as_me:$LINENO: result: $TRUE" >&5
17192 echo "${ECHO_T}$TRUE" >&6; }
17194 { echo "$as_me:$LINENO: result: no" >&5
17195 echo "${ECHO_T}no" >&6; }
17199 test -n "$TRUE" && break
17201 test -n "$TRUE" || TRUE="/bin/true"
17204 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17205 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17206 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 ac_check_lib_save_LIBS=$LIBS
17211 cat >conftest.$ac_ext <<_ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17218 /* Override any GCC internal prototype to avoid an error.
17219 Use char because int might match the return type of a GCC
17220 builtin and then its argument prototype would still apply. */
17228 return inet_aton ();
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17237 *) ac_try_echo
=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1
>conftest.err
17244 cat conftest.err
>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest
$ac_exeext &&
17250 $as_test_x conftest
$ac_exeext; then
17251 ac_cv_lib_c_inet_aton
=yes
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.
$ac_ext >&5
17256 ac_cv_lib_c_inet_aton
=no
17259 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17260 conftest
$ac_exeext conftest.
$ac_ext
17261 LIBS
=$ac_check_lib_save_LIBS
17263 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17264 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17265 if test $ac_cv_lib_c_inet_aton = yes; then
17269 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17270 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17271 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 ac_check_lib_save_LIBS
=$LIBS
17275 LIBS
="-lresolv $LIBS"
17276 cat >conftest.
$ac_ext <<_ACEOF
17279 cat confdefs.h
>>conftest.
$ac_ext
17280 cat >>conftest.
$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17293 return inet_aton ();
17298 rm -f conftest.
$ac_objext conftest
$ac_exeext
17299 if { (ac_try
="$ac_link"
17300 case "(($ac_try" in
17301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 ac_cv_lib_resolv_inet_aton=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_cv_lib_resolv_inet_aton=no
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 LIBS=$ac_check_lib_save_LIBS
17328 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17329 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17330 if test $ac_cv_lib_resolv_inet_aton = yes; then
17331 cat >>confdefs.h <<_ACEOF
17332 #define HAVE_LIBRESOLV 1
17335 LIBS="-lresolv $LIBS"
17343 # On Tru64, chflags seems to be present, but calling it will
17345 { echo "$as_me:$LINENO: checking for chflags" >&5
17346 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17347 if test "${ac_cv_have_chflags+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 if test "$cross_compiling" = yes; then
17351 ac_cv_have_chflags=cross
17353 cat >conftest.$ac_ext <<_ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17360 #include <sys/stat.h>
17361 #include <unistd.h>
17362 int main(int argc, char*argv[])
17364 if(chflags(argv[0], 0) != 0)
17370 rm -f conftest$ac_exeext
17371 if { (ac_try="$ac_link"
17372 case "(($ac_try" in
17373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17374 *) ac_try_echo
=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_link") 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17381 { (case "(($ac_try" in
17382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_have_chflags=yes
17392 echo "$as_me: program exited with status $ac_status" >&5
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ( exit $ac_status )
17397 ac_cv_have_chflags=no
17399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17405 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17406 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17407 if test "$ac_cv_have_chflags" = cross ; then
17408 { echo "$as_me:$LINENO: checking for chflags" >&5
17409 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17410 if test "${ac_cv_func_chflags+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 cat >conftest.$ac_ext <<_ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17421 #define chflags innocuous_chflags
17423 /* System header to define __stub macros and hopefully few prototypes,
17424 which can conflict with char chflags (); below.
17425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17426 <limits.h> exists even on freestanding compilers. */
17429 # include <limits.h>
17431 # include <assert.h>
17436 /* Override any GCC internal prototype to avoid an error.
17437 Use char because int might match the return type of a GCC
17438 builtin and then its argument prototype would still apply. */
17443 /* The GNU C library defines this for functions which it implements
17444 to always fail with ENOSYS. Some functions are actually named
17445 something starting with __ and the normal name is an alias. */
17446 #if defined __stub_chflags || defined __stub___chflags
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (ac_try="$ac_link"
17460 case "(($ac_try" in
17461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17462 *) ac_try_echo
=$ac_try;;
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_link") 2>conftest.er1
17467 grep -v '^ *+' conftest.er1
>conftest.err
17469 cat conftest.err
>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } && {
17472 test -z "$ac_c_werror_flag" ||
17473 test ! -s conftest.err
17474 } && test -s conftest
$ac_exeext &&
17475 $as_test_x conftest
$ac_exeext; then
17476 ac_cv_func_chflags
=yes
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.
$ac_ext >&5
17481 ac_cv_func_chflags
=no
17484 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17485 conftest
$ac_exeext conftest.
$ac_ext
17487 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17488 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17489 if test $ac_cv_func_chflags = yes; then
17490 ac_cv_have_chflags
="yes"
17492 ac_cv_have_chflags
="no"
17496 if test "$ac_cv_have_chflags" = yes ; then
17498 cat >>confdefs.h
<<\_ACEOF
17499 #define HAVE_CHFLAGS 1
17504 { echo "$as_me:$LINENO: checking for lchflags" >&5
17505 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17506 if test "${ac_cv_have_lchflags+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 if test "$cross_compiling" = yes; then
17510 ac_cv_have_lchflags
=cross
17512 cat >conftest.
$ac_ext <<_ACEOF
17515 cat confdefs.h
>>conftest.
$ac_ext
17516 cat >>conftest.
$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17519 #include <sys/stat.h>
17520 #include <unistd.h>
17521 int main(int argc, char*argv[])
17523 if(lchflags(argv[0], 0) != 0)
17529 rm -f conftest
$ac_exeext
17530 if { (ac_try
="$ac_link"
17531 case "(($ac_try" in
17532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17542 *) ac_try_echo
=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_cv_have_lchflags
=yes
17551 echo "$as_me: program exited with status $ac_status" >&5
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.
$ac_ext >&5
17555 ( exit $ac_status )
17556 ac_cv_have_lchflags
=no
17558 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17564 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17565 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17566 if test "$ac_cv_have_lchflags" = cross
; then
17567 { echo "$as_me:$LINENO: checking for lchflags" >&5
17568 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17569 if test "${ac_cv_func_lchflags+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 cat >conftest.
$ac_ext <<_ACEOF
17575 cat confdefs.h
>>conftest.
$ac_ext
17576 cat >>conftest.
$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17580 #define lchflags innocuous_lchflags
17582 /* System header to define __stub macros and hopefully few prototypes,
17583 which can conflict with char lchflags (); below.
17584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17585 <limits.h> exists even on freestanding compilers. */
17588 # include <limits.h>
17590 # include <assert.h>
17595 /* Override any GCC internal prototype to avoid an error.
17596 Use char because int might match the return type of a GCC
17597 builtin and then its argument prototype would still apply. */
17602 /* The GNU C library defines this for functions which it implements
17603 to always fail with ENOSYS. Some functions are actually named
17604 something starting with __ and the normal name is an alias. */
17605 #if defined __stub_lchflags || defined __stub___lchflags
17612 return lchflags ();
17617 rm -f conftest.
$ac_objext conftest
$ac_exeext
17618 if { (ac_try
="$ac_link"
17619 case "(($ac_try" in
17620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_link") 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } && {
17631 test -z "$ac_c_werror_flag" ||
17632 test ! -s conftest.err
17633 } && test -s conftest$ac_exeext &&
17634 $as_test_x conftest$ac_exeext; then
17635 ac_cv_func_lchflags=yes
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_func_lchflags=no
17643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17644 conftest$ac_exeext conftest.$ac_ext
17646 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17647 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17648 if test $ac_cv_func_lchflags = yes; then
17649 ac_cv_have_lchflags="yes"
17651 ac_cv_have_lchflags="no"
17655 if test "$ac_cv_have_lchflags" = yes ; then
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_LCHFLAGS 1
17663 case $ac_sys_system/$ac_sys_release in
17665 _CUR_CFLAGS="${CFLAGS}"
17666 _CUR_LDFLAGS="${LDFLAGS}"
17667 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17668 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17672 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17673 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17674 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 ac_check_lib_save_LIBS=$LIBS
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17692 char inflateCopy ();
17696 return inflateCopy ();
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17705 *) ac_try_echo
=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1
>conftest.err
17712 cat conftest.err
>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest
$ac_exeext &&
17718 $as_test_x conftest
$ac_exeext; then
17719 ac_cv_lib_z_inflateCopy
=yes
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.
$ac_ext >&5
17724 ac_cv_lib_z_inflateCopy
=no
17727 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17728 conftest
$ac_exeext conftest.
$ac_ext
17729 LIBS
=$ac_check_lib_save_LIBS
17731 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17732 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17733 if test $ac_cv_lib_z_inflateCopy = yes; then
17735 cat >>confdefs.h
<<\_ACEOF
17736 #define HAVE_ZLIB_COPY 1
17742 case $ac_sys_system/$ac_sys_release in
17744 CFLAGS
="${_CUR_CFLAGS}"
17745 LDFLAGS
="${_CUR_LDFLAGS}"
17749 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17750 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17751 cat >conftest.
$ac_ext <<_ACEOF
17754 cat confdefs.h
>>conftest.
$ac_ext
17755 cat >>conftest.
$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17758 #include "confdefs.h"
17764 void* p = hstrerror; hstrerror(0)
17769 rm -f conftest.
$ac_objext conftest
$ac_exeext
17770 if { (ac_try
="$ac_link"
17771 case "(($ac_try" in
17772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_link") 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest$ac_exeext &&
17786 $as_test_x conftest$ac_exeext; then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE_HSTRERROR 1
17792 { echo "$as_me:$LINENO: result: yes" >&5
17793 echo "${ECHO_T}yes" >&6; }
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 { echo "$as_me:$LINENO: result: no" >&5
17799 echo "${ECHO_T}no" >&6; }
17803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17804 conftest$ac_exeext conftest.$ac_ext
17806 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17807 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17808 cat >conftest.$ac_ext <<_ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17815 #include "confdefs.h"
17816 #include <sys/types.h>
17817 #include <sys/socket.h>
17818 #include <netinet/in.h>
17819 #include <arpa/inet.h>
17824 void* p = inet_aton;inet_aton(0,0)
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (ac_try="$ac_link"
17831 case "(($ac_try" in
17832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17833 *) ac_try_echo
=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_link") 2>conftest.er1
17838 grep -v '^ *+' conftest.er1
>conftest.err
17840 cat conftest.err
>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && {
17843 test -z "$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17845 } && test -s conftest
$ac_exeext &&
17846 $as_test_x conftest
$ac_exeext; then
17848 cat >>confdefs.h
<<\_ACEOF
17849 #define HAVE_INET_ATON 1
17852 { echo "$as_me:$LINENO: result: yes" >&5
17853 echo "${ECHO_T}yes" >&6; }
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.
$ac_ext >&5
17858 { echo "$as_me:$LINENO: result: no" >&5
17859 echo "${ECHO_T}no" >&6; }
17863 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17864 conftest
$ac_exeext conftest.
$ac_ext
17866 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17867 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17868 cat >conftest.
$ac_ext <<_ACEOF
17871 cat confdefs.h
>>conftest.
$ac_ext
17872 cat >>conftest.
$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 #include "confdefs.h"
17876 #include <sys/types.h>
17877 #include <sys/socket.h>
17878 #include <netinet/in.h>
17879 #include <arpa/inet.h>
17884 void* p = inet_pton
17889 rm -f conftest.
$ac_objext
17890 if { (ac_try
="$ac_compile"
17891 case "(($ac_try" in
17892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_compile") 2>conftest.er1
17898 grep -v '^ *+' conftest.er1 >conftest.err
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } && {
17903 test -z "$ac_c_werror_flag" ||
17904 test ! -s conftest.err
17905 } && test -s conftest.$ac_objext; then
17907 cat >>confdefs.h <<\_ACEOF
17908 #define HAVE_INET_PTON 1
17911 { echo "$as_me:$LINENO: result: yes" >&5
17912 echo "${ECHO_T}yes" >&6; }
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 { echo "$as_me:$LINENO: result: no" >&5
17918 echo "${ECHO_T}no" >&6; }
17922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 # On some systems, setgroups is in unistd.h, on others, in grp.h
17925 { echo "$as_me:$LINENO: checking for setgroups" >&5
17926 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 #include "confdefs.h"
17935 #include <unistd.h>
17943 void* p = setgroups
17948 rm -f conftest.$ac_objext
17949 if { (ac_try="$ac_compile"
17950 case "(($ac_try" in
17951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17952 *) ac_try_echo
=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17957 grep -v '^ *+' conftest.er1
>conftest.err
17959 cat conftest.err
>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.
$ac_objext; then
17966 cat >>confdefs.h
<<\_ACEOF
17967 #define HAVE_SETGROUPS 1
17970 { echo "$as_me:$LINENO: result: yes" >&5
17971 echo "${ECHO_T}yes" >&6; }
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.
$ac_ext >&5
17976 { echo "$as_me:$LINENO: result: no" >&5
17977 echo "${ECHO_T}no" >&6; }
17981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17983 # check for openpty and forkpty
17986 for ac_func
in openpty
17988 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17991 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 cat >conftest.
$ac_ext <<_ACEOF
17997 cat confdefs.h
>>conftest.
$ac_ext
17998 cat >>conftest.
$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18002 #define $ac_func innocuous_$ac_func
18004 /* System header to define __stub macros and hopefully few prototypes,
18005 which can conflict with char $ac_func (); below.
18006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 <limits.h> exists even on freestanding compilers. */
18010 # include <limits.h>
18012 # include <assert.h>
18017 /* Override any GCC internal prototype to avoid an error.
18018 Use char because int might match the return type of a GCC
18019 builtin and then its argument prototype would still apply. */
18024 /* The GNU C library defines this for functions which it implements
18025 to always fail with ENOSYS. Some functions are actually named
18026 something starting with __ and the normal name is an alias. */
18027 #if defined __stub_$ac_func || defined __stub___$ac_func
18034 return $ac_func ();
18039 rm -f conftest.
$ac_objext conftest
$ac_exeext
18040 if { (ac_try
="$ac_link"
18041 case "(($ac_try" in
18042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_link") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest$ac_exeext &&
18056 $as_test_x conftest$ac_exeext; then
18057 eval "$as_ac_var=yes"
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 eval "$as_ac_var=no"
18065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18066 conftest$ac_exeext conftest.$ac_ext
18068 ac_res=`eval echo '${'$as_ac_var'}'`
18069 { echo "$as_me:$LINENO: result: $ac_res" >&5
18070 echo "${ECHO_T}$ac_res" >&6; }
18071 if test `eval echo '${'$as_ac_var'}'` = yes; then
18072 cat >>confdefs.h <<_ACEOF
18073 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18077 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18078 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18079 if test "${ac_cv_lib_util_openpty+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 ac_check_lib_save_LIBS=$LIBS
18083 LIBS="-lutil $LIBS"
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18091 /* Override any GCC internal prototype to avoid an error.
18092 Use char because int might match the return type of a GCC
18093 builtin and then its argument prototype would still apply. */
18106 rm -f conftest.$ac_objext conftest$ac_exeext
18107 if { (ac_try="$ac_link"
18108 case "(($ac_try" in
18109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18110 *) ac_try_echo
=$ac_try;;
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_link") 2>conftest.er1
18115 grep -v '^ *+' conftest.er1
>conftest.err
18117 cat conftest.err
>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && {
18120 test -z "$ac_c_werror_flag" ||
18121 test ! -s conftest.err
18122 } && test -s conftest
$ac_exeext &&
18123 $as_test_x conftest
$ac_exeext; then
18124 ac_cv_lib_util_openpty
=yes
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.
$ac_ext >&5
18129 ac_cv_lib_util_openpty
=no
18132 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18133 conftest
$ac_exeext conftest.
$ac_ext
18134 LIBS
=$ac_check_lib_save_LIBS
18136 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18137 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18138 if test $ac_cv_lib_util_openpty = yes; then
18139 cat >>confdefs.h
<<\_ACEOF
18140 #define HAVE_OPENPTY 1
18142 LIBS
="$LIBS -lutil"
18144 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18145 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18146 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 ac_check_lib_save_LIBS
=$LIBS
18151 cat >conftest.
$ac_ext <<_ACEOF
18154 cat confdefs.h
>>conftest.
$ac_ext
18155 cat >>conftest.
$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18158 /* Override any GCC internal prototype to avoid an error.
18159 Use char because int might match the return type of a GCC
18160 builtin and then its argument prototype would still apply. */
18173 rm -f conftest.
$ac_objext conftest
$ac_exeext
18174 if { (ac_try
="$ac_link"
18175 case "(($ac_try" in
18176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_link") 2>conftest.er1
18182 grep -v '^ *+' conftest.er1 >conftest.err
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } && {
18187 test -z "$ac_c_werror_flag" ||
18188 test ! -s conftest.err
18189 } && test -s conftest$ac_exeext &&
18190 $as_test_x conftest$ac_exeext; then
18191 ac_cv_lib_bsd_openpty=yes
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_cv_lib_bsd_openpty=no
18199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18200 conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18203 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18204 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18205 if test $ac_cv_lib_bsd_openpty = yes; then
18206 cat >>confdefs.h <<\_ACEOF
18207 #define HAVE_OPENPTY 1
18220 for ac_func in forkpty
18222 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18236 #define $ac_func innocuous_$ac_func
18238 /* System header to define __stub macros and hopefully few prototypes,
18239 which can conflict with char $ac_func (); below.
18240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18241 <limits.h> exists even on freestanding compilers. */
18244 # include <limits.h>
18246 # include <assert.h>
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18258 /* The GNU C library defines this for functions which it implements
18259 to always fail with ENOSYS. Some functions are actually named
18260 something starting with __ and the normal name is an alias. */
18261 #if defined __stub_$ac_func || defined __stub___$ac_func
18268 return $ac_func ();
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18277 *) ac_try_echo
=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1
>conftest.err
18284 cat conftest.err
>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest
$ac_exeext &&
18290 $as_test_x conftest
$ac_exeext; then
18291 eval "$as_ac_var=yes"
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.
$ac_ext >&5
18296 eval "$as_ac_var=no"
18299 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18300 conftest
$ac_exeext conftest.
$ac_ext
18302 ac_res
=`eval echo '${'$as_ac_var'}'`
18303 { echo "$as_me:$LINENO: result: $ac_res" >&5
18304 echo "${ECHO_T}$ac_res" >&6; }
18305 if test `eval echo '${'$as_ac_var'}'` = yes; then
18306 cat >>confdefs.h
<<_ACEOF
18307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18311 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18312 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18313 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 ac_check_lib_save_LIBS
=$LIBS
18317 LIBS
="-lutil $LIBS"
18318 cat >conftest.
$ac_ext <<_ACEOF
18321 cat confdefs.h
>>conftest.
$ac_ext
18322 cat >>conftest.
$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18340 rm -f conftest.
$ac_objext conftest
$ac_exeext
18341 if { (ac_try
="$ac_link"
18342 case "(($ac_try" in
18343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
18349 grep -v '^ *+' conftest.er1 >conftest.err
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest$ac_exeext &&
18357 $as_test_x conftest$ac_exeext; then
18358 ac_cv_lib_util_forkpty=yes
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 ac_cv_lib_util_forkpty=no
18366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18367 conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18370 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18371 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18372 if test $ac_cv_lib_util_forkpty = yes; then
18373 cat >>confdefs.h <<\_ACEOF
18374 #define HAVE_FORKPTY 1
18376 LIBS="$LIBS -lutil"
18378 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18379 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18380 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 ac_check_lib_save_LIBS=$LIBS
18385 cat >conftest.$ac_ext <<_ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h. */
18392 /* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18407 rm -f conftest.$ac_objext conftest$ac_exeext
18408 if { (ac_try="$ac_link"
18409 case "(($ac_try" in
18410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18411 *) ac_try_echo
=$ac_try;;
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_link") 2>conftest.er1
18416 grep -v '^ *+' conftest.er1
>conftest.err
18418 cat conftest.err
>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest
$ac_exeext &&
18424 $as_test_x conftest
$ac_exeext; then
18425 ac_cv_lib_bsd_forkpty
=yes
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.
$ac_ext >&5
18430 ac_cv_lib_bsd_forkpty
=no
18433 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18434 conftest
$ac_exeext conftest.
$ac_ext
18435 LIBS
=$ac_check_lib_save_LIBS
18437 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18438 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18439 if test $ac_cv_lib_bsd_forkpty = yes; then
18440 cat >>confdefs.h
<<\_ACEOF
18441 #define HAVE_FORKPTY 1
18456 for ac_func
in memmove
18458 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18461 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18464 cat >conftest.
$ac_ext <<_ACEOF
18467 cat confdefs.h
>>conftest.
$ac_ext
18468 cat >>conftest.
$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18472 #define $ac_func innocuous_$ac_func
18474 /* System header to define __stub macros and hopefully few prototypes,
18475 which can conflict with char $ac_func (); below.
18476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18477 <limits.h> exists even on freestanding compilers. */
18480 # include <limits.h>
18482 # include <assert.h>
18487 /* Override any GCC internal prototype to avoid an error.
18488 Use char because int might match the return type of a GCC
18489 builtin and then its argument prototype would still apply. */
18494 /* The GNU C library defines this for functions which it implements
18495 to always fail with ENOSYS. Some functions are actually named
18496 something starting with __ and the normal name is an alias. */
18497 #if defined __stub_$ac_func || defined __stub___$ac_func
18504 return $ac_func ();
18509 rm -f conftest.
$ac_objext conftest
$ac_exeext
18510 if { (ac_try
="$ac_link"
18511 case "(($ac_try" in
18512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_c_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext &&
18526 $as_test_x conftest$ac_exeext; then
18527 eval "$as_ac_var=yes"
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 eval "$as_ac_var=no"
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536 conftest$ac_exeext conftest.$ac_ext
18538 ac_res=`eval echo '${'$as_ac_var'}'`
18539 { echo "$as_me:$LINENO: result: $ac_res" >&5
18540 echo "${ECHO_T}$ac_res" >&6; }
18541 if test `eval echo '${'$as_ac_var'}'` = yes; then
18542 cat >>confdefs.h <<_ACEOF
18543 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18550 # check for long file support functions
18557 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18559 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18573 #define $ac_func innocuous_$ac_func
18575 /* System header to define __stub macros and hopefully few prototypes,
18576 which can conflict with char $ac_func (); below.
18577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18578 <limits.h> exists even on freestanding compilers. */
18581 # include <limits.h>
18583 # include <assert.h>
18588 /* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply. */
18595 /* The GNU C library defines this for functions which it implements
18596 to always fail with ENOSYS. Some functions are actually named
18597 something starting with __ and the normal name is an alias. */
18598 #if defined __stub_$ac_func || defined __stub___$ac_func
18605 return $ac_func ();
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18614 *) ac_try_echo
=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1
>conftest.err
18621 cat conftest.err
>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest
$ac_exeext &&
18627 $as_test_x conftest
$ac_exeext; then
18628 eval "$as_ac_var=yes"
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.
$ac_ext >&5
18633 eval "$as_ac_var=no"
18636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18637 conftest
$ac_exeext conftest.
$ac_ext
18639 ac_res
=`eval echo '${'$as_ac_var'}'`
18640 { echo "$as_me:$LINENO: result: $ac_res" >&5
18641 echo "${ECHO_T}$ac_res" >&6; }
18642 if test `eval echo '${'$as_ac_var'}'` = yes; then
18643 cat >>confdefs.h
<<_ACEOF
18644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18654 for ac_func
in dup2 getcwd strdup
18656 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18659 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 cat >conftest.
$ac_ext <<_ACEOF
18665 cat confdefs.h
>>conftest.
$ac_ext
18666 cat >>conftest.
$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670 #define $ac_func innocuous_$ac_func
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char $ac_func (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18678 # include <limits.h>
18680 # include <assert.h>
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined __stub_$ac_func || defined __stub___$ac_func
18702 return $ac_func ();
18707 rm -f conftest.
$ac_objext conftest
$ac_exeext
18708 if { (ac_try
="$ac_link"
18709 case "(($ac_try" in
18710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest$ac_exeext &&
18724 $as_test_x conftest$ac_exeext; then
18725 eval "$as_ac_var=yes"
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 eval "$as_ac_var=no"
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734 conftest$ac_exeext conftest.$ac_ext
18736 ac_res=`eval echo '${'$as_ac_var'}'`
18737 { echo "$as_me:$LINENO: result: $ac_res" >&5
18738 echo "${ECHO_T}$ac_res" >&6; }
18739 if test `eval echo '${'$as_ac_var'}'` = yes; then
18740 cat >>confdefs.h <<_ACEOF
18741 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18745 case " $LIBOBJS " in
18746 *" $ac_func.$ac_objext "* ) ;;
18747 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18756 for ac_func in getpgrp
18758 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18772 #define $ac_func innocuous_$ac_func
18774 /* System header to define __stub macros and hopefully few prototypes,
18775 which can conflict with char $ac_func (); below.
18776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18777 <limits.h> exists even on freestanding compilers. */
18780 # include <limits.h>
18782 # include <assert.h>
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18794 /* The GNU C library defines this for functions which it implements
18795 to always fail with ENOSYS. Some functions are actually named
18796 something starting with __ and the normal name is an alias. */
18797 #if defined __stub_$ac_func || defined __stub___$ac_func
18804 return $ac_func ();
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18813 *) ac_try_echo
=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18818 grep -v '^ *+' conftest.er1
>conftest.err
18820 cat conftest.err
>&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest
$ac_exeext &&
18826 $as_test_x conftest
$ac_exeext; then
18827 eval "$as_ac_var=yes"
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.
$ac_ext >&5
18832 eval "$as_ac_var=no"
18835 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18836 conftest
$ac_exeext conftest.
$ac_ext
18838 ac_res
=`eval echo '${'$as_ac_var'}'`
18839 { echo "$as_me:$LINENO: result: $ac_res" >&5
18840 echo "${ECHO_T}$ac_res" >&6; }
18841 if test `eval echo '${'$as_ac_var'}'` = yes; then
18842 cat >>confdefs.h
<<_ACEOF
18843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18845 cat >conftest.
$ac_ext <<_ACEOF
18848 cat confdefs.h
>>conftest.
$ac_ext
18849 cat >>conftest.
$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 #include <unistd.h>
18860 rm -f conftest.
$ac_objext
18861 if { (ac_try
="$ac_compile"
18862 case "(($ac_try" in
18863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_compile") 2>conftest.er1
18869 grep -v '^ *+' conftest.er1 >conftest.err
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } && {
18874 test -z "$ac_c_werror_flag" ||
18875 test ! -s conftest.err
18876 } && test -s conftest.$ac_objext; then
18878 cat >>confdefs.h <<\_ACEOF
18879 #define GETPGRP_HAVE_ARG 1
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896 for ac_func in setpgrp
18898 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 cat >conftest.$ac_ext <<_ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18912 #define $ac_func innocuous_$ac_func
18914 /* System header to define __stub macros and hopefully few prototypes,
18915 which can conflict with char $ac_func (); below.
18916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18917 <limits.h> exists even on freestanding compilers. */
18920 # include <limits.h>
18922 # include <assert.h>
18927 /* Override any GCC internal prototype to avoid an error.
18928 Use char because int might match the return type of a GCC
18929 builtin and then its argument prototype would still apply. */
18934 /* The GNU C library defines this for functions which it implements
18935 to always fail with ENOSYS. Some functions are actually named
18936 something starting with __ and the normal name is an alias. */
18937 #if defined __stub_$ac_func || defined __stub___$ac_func
18944 return $ac_func ();
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18953 *) ac_try_echo
=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1
>conftest.err
18960 cat conftest.err
>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest
$ac_exeext &&
18966 $as_test_x conftest
$ac_exeext; then
18967 eval "$as_ac_var=yes"
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.
$ac_ext >&5
18972 eval "$as_ac_var=no"
18975 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18976 conftest
$ac_exeext conftest.
$ac_ext
18978 ac_res
=`eval echo '${'$as_ac_var'}'`
18979 { echo "$as_me:$LINENO: result: $ac_res" >&5
18980 echo "${ECHO_T}$ac_res" >&6; }
18981 if test `eval echo '${'$as_ac_var'}'` = yes; then
18982 cat >>confdefs.h
<<_ACEOF
18983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18985 cat >conftest.
$ac_ext <<_ACEOF
18988 cat confdefs.h
>>conftest.
$ac_ext
18989 cat >>conftest.
$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 #include <unistd.h>
19000 rm -f conftest.
$ac_objext
19001 if { (ac_try
="$ac_compile"
19002 case "(($ac_try" in
19003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_compile") 2>conftest.er1
19009 grep -v '^ *+' conftest.er1 >conftest.err
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } && {
19014 test -z "$ac_c_werror_flag" ||
19015 test ! -s conftest.err
19016 } && test -s conftest.$ac_objext; then
19018 cat >>confdefs.h <<\_ACEOF
19019 #define SETPGRP_HAVE_ARG 1
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19036 for ac_func in gettimeofday
19038 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19052 #define $ac_func innocuous_$ac_func
19054 /* System header to define __stub macros and hopefully few prototypes,
19055 which can conflict with char $ac_func (); below.
19056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19057 <limits.h> exists even on freestanding compilers. */
19060 # include <limits.h>
19062 # include <assert.h>
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19074 /* The GNU C library defines this for functions which it implements
19075 to always fail with ENOSYS. Some functions are actually named
19076 something starting with __ and the normal name is an alias. */
19077 #if defined __stub_$ac_func || defined __stub___$ac_func
19084 return $ac_func ();
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19093 *) ac_try_echo
=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19098 grep -v '^ *+' conftest.er1
>conftest.err
19100 cat conftest.err
>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } && {
19103 test -z "$ac_c_werror_flag" ||
19104 test ! -s conftest.err
19105 } && test -s conftest
$ac_exeext &&
19106 $as_test_x conftest
$ac_exeext; then
19107 eval "$as_ac_var=yes"
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.
$ac_ext >&5
19112 eval "$as_ac_var=no"
19115 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19116 conftest
$ac_exeext conftest.
$ac_ext
19118 ac_res
=`eval echo '${'$as_ac_var'}'`
19119 { echo "$as_me:$LINENO: result: $ac_res" >&5
19120 echo "${ECHO_T}$ac_res" >&6; }
19121 if test `eval echo '${'$as_ac_var'}'` = yes; then
19122 cat >>confdefs.h
<<_ACEOF
19123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19125 cat >conftest.
$ac_ext <<_ACEOF
19128 cat confdefs.h
>>conftest.
$ac_ext
19129 cat >>conftest.
$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 #include <sys/time.h>
19135 gettimeofday((struct timeval*)0,(struct timezone*)0);
19140 rm -f conftest.
$ac_objext
19141 if { (ac_try
="$ac_compile"
19142 case "(($ac_try" in
19143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19163 cat >>confdefs.h <<\_ACEOF
19164 #define GETTIMEOFDAY_NO_TZ 1
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 { echo "$as_me:$LINENO: checking for major" >&5
19177 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19178 cat >conftest.$ac_ext <<_ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19185 #if defined(MAJOR_IN_MKDEV)
19186 #include <sys/mkdev.h>
19187 #elif defined(MAJOR_IN_SYSMACROS)
19188 #include <sys/sysmacros.h>
19190 #include <sys/types.h>
19197 makedev(major(0),minor(0));
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19207 *) ac_try_echo
=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19212 grep -v '^ *+' conftest.er1
>conftest.err
19214 cat conftest.err
>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest
$ac_exeext &&
19220 $as_test_x conftest
$ac_exeext; then
19223 cat >>confdefs.h
<<\_ACEOF
19224 #define HAVE_DEVICE_MACROS 1
19227 { echo "$as_me:$LINENO: result: yes" >&5
19228 echo "${ECHO_T}yes" >&6; }
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.
$ac_ext >&5
19235 { echo "$as_me:$LINENO: result: no" >&5
19236 echo "${ECHO_T}no" >&6; }
19240 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19241 conftest
$ac_exeext conftest.
$ac_ext
19243 # On OSF/1 V5.1, getaddrinfo is available, but a define
19244 # for [no]getaddrinfo in netdb.h.
19245 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19246 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19247 cat >conftest.
$ac_ext <<_ACEOF
19250 cat confdefs.h
>>conftest.
$ac_ext
19251 cat >>conftest.
$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19254 #include <sys/types.h>
19255 #include <sys/socket.h>
19263 getaddrinfo(NULL, NULL, NULL, NULL);
19269 rm -f conftest.
$ac_objext conftest
$ac_exeext
19270 if { (ac_try
="$ac_link"
19271 case "(($ac_try" in
19272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_link") 2>conftest.er1
19278 grep -v '^ *+' conftest.er1 >conftest.err
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest$ac_exeext &&
19286 $as_test_x conftest$ac_exeext; then
19288 { echo "$as_me:$LINENO: result: yes" >&5
19289 echo "${ECHO_T}yes" >&6; }
19290 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19291 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19292 if test "$cross_compiling" = yes; then
19293 { echo "$as_me:$LINENO: result: buggy" >&5
19294 echo "${ECHO_T}buggy" >&6; }
19295 buggygetaddrinfo=yes
19297 cat >conftest.$ac_ext <<_ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19304 #include <sys/types.h>
19306 #include <string.h>
19307 #include <sys/socket.h>
19308 #include <netinet/in.h>
19312 int passive, gaierr, inet4 = 0, inet6 = 0;
19313 struct addrinfo hints, *ai, *aitop;
19314 char straddr[INET6_ADDRSTRLEN], strport[16];
19316 for (passive = 0; passive <= 1; passive++) {
19317 memset(&hints, 0, sizeof(hints));
19318 hints.ai_family = AF_UNSPEC;
19319 hints.ai_flags = passive ? AI_PASSIVE : 0;
19320 hints.ai_socktype = SOCK_STREAM;
19321 hints.ai_protocol = IPPROTO_TCP;
19322 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19323 (void)gai_strerror(gaierr);
19326 for (ai = aitop; ai; ai = ai->ai_next) {
19327 if (ai->ai_addr == NULL ||
19328 ai->ai_addrlen == 0 ||
19329 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19330 straddr, sizeof(straddr), strport, sizeof(strport),
19331 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19334 switch (ai->ai_family) {
19336 if (strcmp(strport, "54321") != 0) {
19340 if (strcmp(straddr, "0.0.0.0") != 0) {
19344 if (strcmp(straddr, "127.0.0.1") != 0) {
19351 if (strcmp(strport, "54321") != 0) {
19355 if (strcmp(straddr, "::") != 0) {
19359 if (strcmp(straddr, "::1") != 0) {
19369 /* another family support? */
19375 if (!(inet4 == 0 || inet4 == 2))
19377 if (!(inet6 == 0 || inet6 == 2))
19381 freeaddrinfo(aitop);
19386 freeaddrinfo(aitop);
19391 rm -f conftest$ac_exeext
19392 if { (ac_try="$ac_link"
19393 case "(($ac_try" in
19394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19395 *) ac_try_echo
=$ac_try;;
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_link") 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19402 { (case "(($ac_try" in
19403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_try") 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 { echo "$as_me:$LINENO: result: good" >&5
19412 echo "${ECHO_T}good" >&6; }
19413 buggygetaddrinfo=no
19415 echo "$as_me: program exited with status $ac_status" >&5
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ( exit $ac_status )
19420 { echo "$as_me:$LINENO: result: buggy" >&5
19421 echo "${ECHO_T}buggy" >&6; }
19422 buggygetaddrinfo=yes
19424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19433 { echo "$as_me:$LINENO: result: no" >&5
19434 echo "${ECHO_T}no" >&6; }
19435 buggygetaddrinfo=yes
19439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19440 conftest$ac_exeext conftest.$ac_ext
19442 if test "$buggygetaddrinfo" = "yes"; then
19443 if test "$ipv6" = "yes"; then
19444 echo 'Fatal: You must get working getaddrinfo() function.'
19445 echo ' or you can specify "--disable-ipv6"'.
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_GETADDRINFO 1
19456 for ac_func in getnameinfo
19458 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19472 #define $ac_func innocuous_$ac_func
19474 /* System header to define __stub macros and hopefully few prototypes,
19475 which can conflict with char $ac_func (); below.
19476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477 <limits.h> exists even on freestanding compilers. */
19480 # include <limits.h>
19482 # include <assert.h>
19487 /* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19494 /* The GNU C library defines this for functions which it implements
19495 to always fail with ENOSYS. Some functions are actually named
19496 something starting with __ and the normal name is an alias. */
19497 #if defined __stub_$ac_func || defined __stub___$ac_func
19504 return $ac_func ();
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19513 *) ac_try_echo
=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1
>conftest.err
19520 cat conftest.err
>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest
$ac_exeext &&
19526 $as_test_x conftest
$ac_exeext; then
19527 eval "$as_ac_var=yes"
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.
$ac_ext >&5
19532 eval "$as_ac_var=no"
19535 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19536 conftest
$ac_exeext conftest.
$ac_ext
19538 ac_res
=`eval echo '${'$as_ac_var'}'`
19539 { echo "$as_me:$LINENO: result: $ac_res" >&5
19540 echo "${ECHO_T}$ac_res" >&6; }
19541 if test `eval echo '${'$as_ac_var'}'` = yes; then
19542 cat >>confdefs.h
<<_ACEOF
19543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19550 # checks for structures
19551 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19552 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19553 if test "${ac_cv_header_time+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 cat >conftest.
$ac_ext <<_ACEOF
19559 cat confdefs.h
>>conftest.
$ac_ext
19560 cat >>conftest.
$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 #include <sys/types.h>
19563 #include <sys/time.h>
19569 if ((struct tm *) 0)
19575 rm -f conftest.
$ac_objext
19576 if { (ac_try
="$ac_compile"
19577 case "(($ac_try" in
19578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19582 (eval "$ac_compile") 2>conftest.er1
19584 grep -v '^ *+' conftest.er1 >conftest.err
19586 cat conftest.err >&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } && {
19589 test -z "$ac_c_werror_flag" ||
19590 test ! -s conftest.err
19591 } && test -s conftest.$ac_objext; then
19592 ac_cv_header_time=yes
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_header_time=no
19600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19603 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19604 if test $ac_cv_header_time = yes; then
19606 cat >>confdefs.h <<\_ACEOF
19607 #define TIME_WITH_SYS_TIME 1
19612 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19613 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19614 if test "${ac_cv_struct_tm+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 cat >conftest.$ac_ext <<_ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19623 #include <sys/types.h>
19630 int *p = &tm.tm_sec;
19636 rm -f conftest.$ac_objext
19637 if { (ac_try="$ac_compile"
19638 case "(($ac_try" in
19639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19640 *) ac_try_echo
=$ac_try;;
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_compile") 2>conftest.er1
19645 grep -v '^ *+' conftest.er1
>conftest.err
19647 cat conftest.err
>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest.
$ac_objext; then
19653 ac_cv_struct_tm
=time.h
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.
$ac_ext >&5
19658 ac_cv_struct_tm
=sys
/time.h
19661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19663 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19664 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19665 if test $ac_cv_struct_tm = sys
/time.h
; then
19667 cat >>confdefs.h
<<\_ACEOF
19668 #define TM_IN_SYS_TIME 1
19673 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19674 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19675 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 cat >conftest.
$ac_ext <<_ACEOF
19681 cat confdefs.h
>>conftest.
$ac_ext
19682 cat >>conftest.
$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 #include <sys/types.h>
19685 #include <$ac_cv_struct_tm>
19691 static struct tm ac_aggr;
19692 if (ac_aggr.tm_zone)
19698 rm -f conftest.
$ac_objext
19699 if { (ac_try
="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_compile") 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest.$ac_objext; then
19715 ac_cv_member_struct_tm_tm_zone=yes
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 cat >conftest.$ac_ext <<_ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 #include <sys/types.h>
19727 #include <$ac_cv_struct_tm>
19733 static struct tm ac_aggr;
19734 if (sizeof ac_aggr.tm_zone)
19740 rm -f conftest.$ac_objext
19741 if { (ac_try="$ac_compile"
19742 case "(($ac_try" in
19743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19744 *) ac_try_echo
=$ac_try;;
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_compile") 2>conftest.er1
19749 grep -v '^ *+' conftest.er1
>conftest.err
19751 cat conftest.err
>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } && {
19754 test -z "$ac_c_werror_flag" ||
19755 test ! -s conftest.err
19756 } && test -s conftest.
$ac_objext; then
19757 ac_cv_member_struct_tm_tm_zone
=yes
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.
$ac_ext >&5
19762 ac_cv_member_struct_tm_tm_zone
=no
19765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19770 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19771 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19772 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19774 cat >>confdefs.h
<<_ACEOF
19775 #define HAVE_STRUCT_TM_TM_ZONE 1
19781 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19783 cat >>confdefs.h
<<\_ACEOF
19784 #define HAVE_TM_ZONE 1
19788 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19789 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19790 if test "${ac_cv_have_decl_tzname+set}" = set; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 cat >conftest.
$ac_ext <<_ACEOF
19796 cat confdefs.h
>>conftest.
$ac_ext
19797 cat >>conftest.
$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19812 rm -f conftest.
$ac_objext
19813 if { (ac_try
="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19821 grep -v '^ *+' conftest.er1 >conftest.err
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest.$ac_objext; then
19829 ac_cv_have_decl_tzname=yes
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_have_decl_tzname=no
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19840 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19841 if test $ac_cv_have_decl_tzname = yes; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define HAVE_DECL_TZNAME 1
19849 cat >>confdefs.h <<_ACEOF
19850 #define HAVE_DECL_TZNAME 0
19857 { echo "$as_me:$LINENO: checking for tzname" >&5
19858 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19859 if test "${ac_cv_var_tzname+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 cat >conftest.$ac_ext <<_ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19869 #if !HAVE_DECL_TZNAME
19870 extern char *tzname[];
19876 return tzname[0][0];
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19885 *) ac_try_echo
=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1
>conftest.err
19892 cat conftest.err
>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest
$ac_exeext &&
19898 $as_test_x conftest
$ac_exeext; then
19899 ac_cv_var_tzname
=yes
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.
$ac_ext >&5
19904 ac_cv_var_tzname
=no
19907 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19908 conftest
$ac_exeext conftest.
$ac_ext
19910 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19911 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19912 if test $ac_cv_var_tzname = yes; then
19914 cat >>confdefs.h
<<\_ACEOF
19915 #define HAVE_TZNAME 1
19921 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19922 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19923 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 cat >conftest.
$ac_ext <<_ACEOF
19929 cat confdefs.h
>>conftest.
$ac_ext
19930 cat >>conftest.
$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 $ac_includes_default
19936 static struct stat ac_aggr;
19937 if (ac_aggr.st_rdev)
19943 rm -f conftest.
$ac_objext
19944 if { (ac_try
="$ac_compile"
19945 case "(($ac_try" in
19946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_compile") 2>conftest.er1
19952 grep -v '^ *+' conftest.er1 >conftest.err
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest.$ac_objext; then
19960 ac_cv_member_struct_stat_st_rdev=yes
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 $ac_includes_default
19975 static struct stat ac_aggr;
19976 if (sizeof ac_aggr.st_rdev)
19982 rm -f conftest.$ac_objext
19983 if { (ac_try="$ac_compile"
19984 case "(($ac_try" in
19985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19986 *) ac_try_echo
=$ac_try;;
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_compile") 2>conftest.er1
19991 grep -v '^ *+' conftest.er1
>conftest.err
19993 cat conftest.err
>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest.
$ac_objext; then
19999 ac_cv_member_struct_stat_st_rdev
=yes
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.
$ac_ext >&5
20004 ac_cv_member_struct_stat_st_rdev
=no
20007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20012 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20013 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20014 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20016 cat >>confdefs.h
<<_ACEOF
20017 #define HAVE_STRUCT_STAT_ST_RDEV 1
20023 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20024 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20025 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 cat >conftest.
$ac_ext <<_ACEOF
20031 cat confdefs.h
>>conftest.
$ac_ext
20032 cat >>conftest.
$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 $ac_includes_default
20038 static struct stat ac_aggr;
20039 if (ac_aggr.st_blksize)
20045 rm -f conftest.
$ac_objext
20046 if { (ac_try
="$ac_compile"
20047 case "(($ac_try" in
20048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_compile") 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && {
20059 test -z "$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20061 } && test -s conftest.$ac_objext; then
20062 ac_cv_member_struct_stat_st_blksize=yes
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 $ac_includes_default
20077 static struct stat ac_aggr;
20078 if (sizeof ac_aggr.st_blksize)
20084 rm -f conftest.$ac_objext
20085 if { (ac_try="$ac_compile"
20086 case "(($ac_try" in
20087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20088 *) ac_try_echo
=$ac_try;;
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20093 grep -v '^ *+' conftest.er1
>conftest.err
20095 cat conftest.err
>&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.
$ac_objext; then
20101 ac_cv_member_struct_stat_st_blksize
=yes
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.
$ac_ext >&5
20106 ac_cv_member_struct_stat_st_blksize
=no
20109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20116 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20118 cat >>confdefs.h
<<_ACEOF
20119 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20125 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20126 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20127 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 cat >conftest.
$ac_ext <<_ACEOF
20133 cat confdefs.h
>>conftest.
$ac_ext
20134 cat >>conftest.
$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20140 static struct stat ac_aggr;
20141 if (ac_aggr.st_flags)
20147 rm -f conftest.
$ac_objext
20148 if { (ac_try
="$ac_compile"
20149 case "(($ac_try" in
20150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_compile") 2>conftest.er1
20156 grep -v '^ *+' conftest.er1 >conftest.err
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest.$ac_objext; then
20164 ac_cv_member_struct_stat_st_flags=yes
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 cat >conftest.$ac_ext <<_ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 $ac_includes_default
20179 static struct stat ac_aggr;
20180 if (sizeof ac_aggr.st_flags)
20186 rm -f conftest.$ac_objext
20187 if { (ac_try="$ac_compile"
20188 case "(($ac_try" in
20189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20190 *) ac_try_echo
=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_compile") 2>conftest.er1
20195 grep -v '^ *+' conftest.er1
>conftest.err
20197 cat conftest.err
>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && {
20200 test -z "$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 } && test -s conftest.
$ac_objext; then
20203 ac_cv_member_struct_stat_st_flags
=yes
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.
$ac_ext >&5
20208 ac_cv_member_struct_stat_st_flags
=no
20211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20216 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20217 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20218 if test $ac_cv_member_struct_stat_st_flags = yes; then
20220 cat >>confdefs.h
<<_ACEOF
20221 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20227 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20228 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20229 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 cat >conftest.
$ac_ext <<_ACEOF
20235 cat confdefs.h
>>conftest.
$ac_ext
20236 cat >>conftest.
$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238 $ac_includes_default
20242 static struct stat ac_aggr;
20243 if (ac_aggr.st_gen)
20249 rm -f conftest.
$ac_objext
20250 if { (ac_try
="$ac_compile"
20251 case "(($ac_try" in
20252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_compile") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest.$ac_objext; then
20266 ac_cv_member_struct_stat_st_gen=yes
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 cat >conftest.$ac_ext <<_ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 $ac_includes_default
20281 static struct stat ac_aggr;
20282 if (sizeof ac_aggr.st_gen)
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20292 *) ac_try_echo
=$ac_try;;
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20297 grep -v '^ *+' conftest.er1
>conftest.err
20299 cat conftest.err
>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest.
$ac_objext; then
20305 ac_cv_member_struct_stat_st_gen
=yes
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.
$ac_ext >&5
20310 ac_cv_member_struct_stat_st_gen
=no
20313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20320 if test $ac_cv_member_struct_stat_st_gen = yes; then
20322 cat >>confdefs.h
<<_ACEOF
20323 #define HAVE_STRUCT_STAT_ST_GEN 1
20329 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20330 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20331 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 cat >conftest.
$ac_ext <<_ACEOF
20337 cat confdefs.h
>>conftest.
$ac_ext
20338 cat >>conftest.
$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 $ac_includes_default
20344 static struct stat ac_aggr;
20345 if (ac_aggr.st_birthtime)
20351 rm -f conftest.
$ac_objext
20352 if { (ac_try
="$ac_compile"
20353 case "(($ac_try" in
20354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_compile") 2>conftest.er1
20360 grep -v '^ *+' conftest.er1 >conftest.err
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } && {
20365 test -z "$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20367 } && test -s conftest.$ac_objext; then
20368 ac_cv_member_struct_stat_st_birthtime=yes
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 $ac_includes_default
20383 static struct stat ac_aggr;
20384 if (sizeof ac_aggr.st_birthtime)
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20394 *) ac_try_echo
=$ac_try;;
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_compile") 2>conftest.er1
20399 grep -v '^ *+' conftest.er1
>conftest.err
20401 cat conftest.err
>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && {
20404 test -z "$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20406 } && test -s conftest.
$ac_objext; then
20407 ac_cv_member_struct_stat_st_birthtime
=yes
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.
$ac_ext >&5
20412 ac_cv_member_struct_stat_st_birthtime
=no
20415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20420 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20422 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20424 cat >>confdefs.h
<<_ACEOF
20425 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20431 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20432 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20433 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 cat >conftest.
$ac_ext <<_ACEOF
20439 cat confdefs.h
>>conftest.
$ac_ext
20440 cat >>conftest.
$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 $ac_includes_default
20446 static struct stat ac_aggr;
20447 if (ac_aggr.st_blocks)
20453 rm -f conftest.
$ac_objext
20454 if { (ac_try
="$ac_compile"
20455 case "(($ac_try" in
20456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_compile") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest.$ac_objext; then
20470 ac_cv_member_struct_stat_st_blocks=yes
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20485 static struct stat ac_aggr;
20486 if (sizeof ac_aggr.st_blocks)
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20496 *) ac_try_echo
=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_compile") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1
>conftest.err
20503 cat conftest.err
>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest.
$ac_objext; then
20509 ac_cv_member_struct_stat_st_blocks
=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.
$ac_ext >&5
20514 ac_cv_member_struct_stat_st_blocks
=no
20517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20522 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20524 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20526 cat >>confdefs.h
<<_ACEOF
20527 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20531 cat >>confdefs.h
<<\_ACEOF
20532 #define HAVE_ST_BLOCKS 1
20536 case " $LIBOBJS " in
20537 *" fileblocks.$ac_objext "* ) ;;
20538 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
20546 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20547 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20548 if test "${ac_cv_header_time_altzone+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 cat >conftest.
$ac_ext <<_ACEOF
20554 cat confdefs.h
>>conftest.
$ac_ext
20555 cat >>conftest.
$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20566 rm -f conftest.
$ac_objext
20567 if { (ac_try
="$ac_compile"
20568 case "(($ac_try" in
20569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 ac_cv_header_time_altzone=yes
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_header_time_altzone=no
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20595 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20596 if test $ac_cv_header_time_altzone = yes; then
20598 cat >>confdefs.h <<\_ACEOF
20599 #define HAVE_ALTZONE 1
20605 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20606 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20614 #include <sys/types.h>
20615 #include <sys/select.h>
20616 #include <sys/time.h>
20626 rm -f conftest.$ac_objext
20627 if { (ac_try="$ac_compile"
20628 case "(($ac_try" in
20629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20630 *) ac_try_echo
=$ac_try;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compile") 2>conftest.er1
20635 grep -v '^ *+' conftest.er1
>conftest.err
20637 cat conftest.err
>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest.
$ac_objext; then
20645 cat >>confdefs.h
<<\_ACEOF
20646 #define SYS_SELECT_WITH_SYS_TIME 1
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.
$ac_ext >&5
20658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20659 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20660 echo "${ECHO_T}$was_it_defined" >&6; }
20662 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20663 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20664 if test "${ac_cv_struct_addrinfo+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 cat >conftest.
$ac_ext <<_ACEOF
20670 cat confdefs.h
>>conftest.
$ac_ext
20671 cat >>conftest.
$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 # include <netdb.h>
20683 rm -f conftest.
$ac_objext
20684 if { (ac_try
="$ac_compile"
20685 case "(($ac_try" in
20686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_compile") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } && {
20697 test -z "$ac_c_werror_flag" ||
20698 test ! -s conftest.err
20699 } && test -s conftest.$ac_objext; then
20700 ac_cv_struct_addrinfo=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_struct_addrinfo=no
20708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20712 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20713 if test $ac_cv_struct_addrinfo = yes; then
20715 cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_ADDRINFO 1
20721 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20722 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20723 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20733 # include <sys/types.h>
20734 # include <sys/socket.h>
20738 struct sockaddr_storage s
20743 rm -f conftest.$ac_objext
20744 if { (ac_try="$ac_compile"
20745 case "(($ac_try" in
20746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20747 *) ac_try_echo
=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_compile") 2>conftest.er1
20752 grep -v '^ *+' conftest.er1
>conftest.err
20754 cat conftest.err
>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest.
$ac_objext; then
20760 ac_cv_struct_sockaddr_storage
=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.
$ac_ext >&5
20765 ac_cv_struct_sockaddr_storage
=no
20768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20771 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20772 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20773 if test $ac_cv_struct_sockaddr_storage = yes; then
20775 cat >>confdefs.h
<<\_ACEOF
20776 #define HAVE_SOCKADDR_STORAGE 1
20781 # checks for compiler characteristics
20784 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20785 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20786 if test "${ac_cv_c_char_unsigned+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 cat >conftest.
$ac_ext <<_ACEOF
20792 cat confdefs.h
>>conftest.
$ac_ext
20793 cat >>conftest.
$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 $ac_includes_default
20799 static int test_array [1 - 2 * !(((char) -1) < 0)];
20806 rm -f conftest.
$ac_objext
20807 if { (ac_try
="$ac_compile"
20808 case "(($ac_try" in
20809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_compile") 2>conftest.er1
20815 grep -v '^ *+' conftest.er1 >conftest.err
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest.$ac_objext; then
20823 ac_cv_c_char_unsigned=no
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ac_cv_c_char_unsigned=yes
20831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20834 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20835 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define __CHAR_UNSIGNED__ 1
20842 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20843 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20844 if test "${ac_cv_c_const+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20857 /* FIXME: Include the comments suggested by Paul. */
20858 #ifndef __cplusplus
20859 /* Ultrix mips cc rejects this. */
20860 typedef int charset[2];
20862 /* SunOS 4.1.1 cc rejects this. */
20863 char const *const *pcpcc;
20865 /* NEC SVR4.0.2 mips cc rejects this. */
20866 struct point {int x, y;};
20867 static struct point const zero = {0,0};
20868 /* AIX XL C 1.02.0.0 rejects this.
20869 It does not let you subtract one const X* pointer from another in
20870 an arm of an if-expression whose if-part is not a constant
20872 const char *g = "string";
20873 pcpcc = &g + (g ? g-g : 0);
20874 /* HPUX 7.0 cc rejects these. */
20876 ppc = (char**) pcpcc;
20877 pcpcc = (char const *const *) ppc;
20878 { /* SCO 3.2v4 cc rejects this. */
20880 char const *s = 0 ? (char *) 0 : (char const *) 0;
20885 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20886 int x[] = {25, 17};
20887 const int *foo = &x[0];
20890 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20891 typedef const int *iptr;
20895 { /* AIX XL C 1.02.0.0 rejects this saying
20896 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20897 struct s { int j; const int *ap[3]; };
20898 struct s *b; b->j = 5;
20900 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20901 const int foo = 10;
20902 if (!foo) return 0;
20904 return !cs[0] && !zero.x;
20911 rm -f conftest.$ac_objext
20912 if { (ac_try="$ac_compile"
20913 case "(($ac_try" in
20914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20915 *) ac_try_echo
=$ac_try;;
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_compile") 2>conftest.er1
20920 grep -v '^ *+' conftest.er1
>conftest.err
20922 cat conftest.err
>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest.
$ac_objext; then
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.
$ac_ext >&5
20936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20938 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20939 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20940 if test $ac_cv_c_const = no
; then
20942 cat >>confdefs.h
<<\_ACEOF
20950 { echo "$as_me:$LINENO: checking for working volatile" >&5
20951 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20952 cat >conftest.
$ac_ext <<_ACEOF
20955 cat confdefs.h
>>conftest.
$ac_ext
20956 cat >>conftest.
$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20962 volatile int x; x = 0;
20967 rm -f conftest.
$ac_objext
20968 if { (ac_try
="$ac_compile"
20969 case "(($ac_try" in
20970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_compile") 2>conftest.er1
20976 grep -v '^ *+' conftest.er1 >conftest.err
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && {
20981 test -z "$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest.$ac_objext; then
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20990 cat >>confdefs.h <<\_ACEOF
20997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20998 { echo "$as_me:$LINENO: result: $works" >&5
20999 echo "${ECHO_T}$works" >&6; }
21002 { echo "$as_me:$LINENO: checking for working signed char" >&5
21003 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21023 *) ac_try_echo
=$ac_try;;
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_compile") 2>conftest.er1
21028 grep -v '^ *+' conftest.er1
>conftest.err
21030 cat conftest.err
>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && {
21033 test -z "$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 } && test -s conftest.
$ac_objext; then
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.
$ac_ext >&5
21042 cat >>confdefs.h
<<\_ACEOF
21049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21050 { echo "$as_me:$LINENO: result: $works" >&5
21051 echo "${ECHO_T}$works" >&6; }
21054 { echo "$as_me:$LINENO: checking for prototypes" >&5
21055 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21056 cat >conftest.
$ac_ext <<_ACEOF
21059 cat confdefs.h
>>conftest.
$ac_ext
21060 cat >>conftest.
$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 int foo(int x) { return 0; }
21071 rm -f conftest.
$ac_objext
21072 if { (ac_try
="$ac_compile"
21073 case "(($ac_try" in
21074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_compile") 2>conftest.er1
21080 grep -v '^ *+' conftest.er1 >conftest.err
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } && {
21085 test -z "$ac_c_werror_flag" ||
21086 test ! -s conftest.err
21087 } && test -s conftest.$ac_objext; then
21090 cat >>confdefs.h <<\_ACEOF
21091 #define HAVE_PROTOTYPES 1
21094 have_prototypes=yes
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21105 echo "${ECHO_T}$have_prototypes" >&6; }
21108 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21109 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21110 cat >conftest.$ac_ext <<_ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21117 #include <stdarg.h>
21118 int foo(int x, ...) {
21122 va_arg(va, char *);
21123 va_arg(va, double);
21130 return foo(10, "", 3.14);
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21139 *) ac_try_echo
=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_compile") 2>conftest.er1
21144 grep -v '^ *+' conftest.er1
>conftest.err
21146 cat conftest.err
>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest.
$ac_objext; then
21154 cat >>confdefs.h
<<\_ACEOF
21155 #define HAVE_STDARG_PROTOTYPES 1
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.
$ac_ext >&5
21167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21168 { echo "$as_me:$LINENO: result: $works" >&5
21169 echo "${ECHO_T}$works" >&6; }
21171 # check for socketpair
21172 { echo "$as_me:$LINENO: checking for socketpair" >&5
21173 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21174 cat >conftest.
$ac_ext <<_ACEOF
21177 cat confdefs.h
>>conftest.
$ac_ext
21178 cat >>conftest.
$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21181 #include <sys/types.h>
21182 #include <sys/socket.h>
21192 rm -f conftest.
$ac_objext
21193 if { (ac_try
="$ac_compile"
21194 case "(($ac_try" in
21195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199 (eval "$ac_compile") 2>conftest.er1
21201 grep -v '^ *+' conftest.er1 >conftest.err
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } && {
21206 test -z "$ac_c_werror_flag" ||
21207 test ! -s conftest.err
21208 } && test -s conftest.$ac_objext; then
21210 cat >>confdefs.h <<\_ACEOF
21211 #define HAVE_SOCKETPAIR 1
21214 { echo "$as_me:$LINENO: result: yes" >&5
21215 echo "${ECHO_T}yes" >&6; }
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 { echo "$as_me:$LINENO: result: no" >&5
21221 echo "${ECHO_T}no" >&6; }
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 # check if sockaddr has sa_len member
21228 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21229 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <sys/types.h>
21237 #include <sys/socket.h>
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21251 *) ac_try_echo
=$ac_try;;
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21256 grep -v '^ *+' conftest.er1
>conftest.err
21258 cat conftest.err
>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest.
$ac_objext; then
21264 { echo "$as_me:$LINENO: result: yes" >&5
21265 echo "${ECHO_T}yes" >&6; }
21267 cat >>confdefs.h
<<\_ACEOF
21268 #define HAVE_SOCKADDR_SA_LEN 1
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.
$ac_ext >&5
21275 { echo "$as_me:$LINENO: result: no" >&5
21276 echo "${ECHO_T}no" >&6; }
21279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21281 va_list_is_array
=no
21282 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21283 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21284 cat >conftest.
$ac_ext <<_ACEOF
21287 cat confdefs.h
>>conftest.
$ac_ext
21288 cat >>conftest.
$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21291 #ifdef HAVE_STDARG_PROTOTYPES
21292 #include <stdarg.h>
21294 #include <varargs.h>
21300 va_list list1, list2; list1 = list2;
21305 rm -f conftest.
$ac_objext
21306 if { (ac_try
="$ac_compile"
21307 case "(($ac_try" in
21308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_compile") 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest.$ac_objext; then
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21329 cat >>confdefs.h <<\_ACEOF
21330 #define VA_LIST_IS_ARRAY 1
21333 va_list_is_array=yes
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21339 echo "${ECHO_T}$va_list_is_array" >&6; }
21341 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21345 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21346 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21347 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21358 #define gethostbyname_r innocuous_gethostbyname_r
21360 /* System header to define __stub macros and hopefully few prototypes,
21361 which can conflict with char gethostbyname_r (); below.
21362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21363 <limits.h> exists even on freestanding compilers. */
21366 # include <limits.h>
21368 # include <assert.h>
21371 #undef gethostbyname_r
21373 /* Override any GCC internal prototype to avoid an error.
21374 Use char because int might match the return type of a GCC
21375 builtin and then its argument prototype would still apply. */
21379 char gethostbyname_r ();
21380 /* The GNU C library defines this for functions which it implements
21381 to always fail with ENOSYS. Some functions are actually named
21382 something starting with __ and the normal name is an alias. */
21383 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21390 return gethostbyname_r ();
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21399 *) ac_try_echo
=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_link") 2>conftest.er1
21404 grep -v '^ *+' conftest.er1
>conftest.err
21406 cat conftest.err
>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } && {
21409 test -z "$ac_c_werror_flag" ||
21410 test ! -s conftest.err
21411 } && test -s conftest
$ac_exeext &&
21412 $as_test_x conftest
$ac_exeext; then
21413 ac_cv_func_gethostbyname_r
=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.
$ac_ext >&5
21418 ac_cv_func_gethostbyname_r
=no
21421 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21422 conftest
$ac_exeext conftest.
$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21425 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21426 if test $ac_cv_func_gethostbyname_r = yes; then
21428 cat >>confdefs.h
<<\_ACEOF
21429 #define HAVE_GETHOSTBYNAME_R 1
21432 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21433 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21435 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21436 cat >conftest.
$ac_ext <<_ACEOF
21439 cat confdefs.h
>>conftest.
$ac_ext
21440 cat >>conftest.
$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21443 # include <netdb.h>
21450 struct hostent *he, *res;
21455 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21461 rm -f conftest.
$ac_objext
21462 if { (ac_try
="$ac_compile"
21463 case "(($ac_try" in
21464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_compile") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest.$ac_objext; then
21479 cat >>confdefs.h <<\_ACEOF
21480 #define HAVE_GETHOSTBYNAME_R 1
21484 cat >>confdefs.h <<\_ACEOF
21485 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21488 { echo "$as_me:$LINENO: result: yes" >&5
21489 echo "${ECHO_T}yes" >&6; }
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21496 { echo "$as_me:$LINENO: result: no" >&5
21497 echo "${ECHO_T}no" >&6; }
21498 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21499 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21507 # include <netdb.h>
21514 struct hostent *he;
21519 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21529 *) ac_try_echo
=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21534 grep -v '^ *+' conftest.er1
>conftest.err
21536 cat conftest.err
>&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } && {
21539 test -z "$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 } && test -s conftest.
$ac_objext; then
21543 cat >>confdefs.h
<<\_ACEOF
21544 #define HAVE_GETHOSTBYNAME_R 1
21548 cat >>confdefs.h
<<\_ACEOF
21549 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21552 { echo "$as_me:$LINENO: result: yes" >&5
21553 echo "${ECHO_T}yes" >&6; }
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.
$ac_ext >&5
21560 { echo "$as_me:$LINENO: result: no" >&5
21561 echo "${ECHO_T}no" >&6; }
21562 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21563 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21564 cat >conftest.
$ac_ext <<_ACEOF
21567 cat confdefs.h
>>conftest.
$ac_ext
21568 cat >>conftest.
$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21571 # include <netdb.h>
21578 struct hostent *he;
21579 struct hostent_data data;
21581 (void) gethostbyname_r(name, he, &data);
21587 rm -f conftest.
$ac_objext
21588 if { (ac_try
="$ac_compile"
21589 case "(($ac_try" in
21590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594 (eval "$ac_compile") 2>conftest.er1
21596 grep -v '^ *+' conftest.er1 >conftest.err
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_c_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest.$ac_objext; then
21605 cat >>confdefs.h <<\_ACEOF
21606 #define HAVE_GETHOSTBYNAME_R 1
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21614 { echo "$as_me:$LINENO: result: yes" >&5
21615 echo "${ECHO_T}yes" >&6; }
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21622 { echo "$as_me:$LINENO: result: no" >&5
21623 echo "${ECHO_T}no" >&6; }
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641 for ac_func in gethostbyname
21643 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21657 #define $ac_func innocuous_$ac_func
21659 /* System header to define __stub macros and hopefully few prototypes,
21660 which can conflict with char $ac_func (); below.
21661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21662 <limits.h> exists even on freestanding compilers. */
21665 # include <limits.h>
21667 # include <assert.h>
21672 /* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21679 /* The GNU C library defines this for functions which it implements
21680 to always fail with ENOSYS. Some functions are actually named
21681 something starting with __ and the normal name is an alias. */
21682 #if defined __stub_$ac_func || defined __stub___$ac_func
21689 return $ac_func ();
21694 rm -f conftest.$ac_objext conftest$ac_exeext
21695 if { (ac_try="$ac_link"
21696 case "(($ac_try" in
21697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21698 *) ac_try_echo
=$ac_try;;
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_link") 2>conftest.er1
21703 grep -v '^ *+' conftest.er1
>conftest.err
21705 cat conftest.err
>&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest
$ac_exeext &&
21711 $as_test_x conftest
$ac_exeext; then
21712 eval "$as_ac_var=yes"
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.
$ac_ext >&5
21717 eval "$as_ac_var=no"
21720 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21721 conftest
$ac_exeext conftest.
$ac_ext
21723 ac_res
=`eval echo '${'$as_ac_var'}'`
21724 { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21726 if test `eval echo '${'$as_ac_var'}'` = yes; then
21727 cat >>confdefs.h
<<_ACEOF
21728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21743 # checks for system services
21746 # Linux requires this for correct f.p. operations
21747 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21748 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21749 if test "${ac_cv_func___fpu_control+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 cat >conftest.
$ac_ext <<_ACEOF
21755 cat confdefs.h
>>conftest.
$ac_ext
21756 cat >>conftest.
$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21760 #define __fpu_control innocuous___fpu_control
21762 /* System header to define __stub macros and hopefully few prototypes,
21763 which can conflict with char __fpu_control (); below.
21764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21765 <limits.h> exists even on freestanding compilers. */
21768 # include <limits.h>
21770 # include <assert.h>
21773 #undef __fpu_control
21775 /* Override any GCC internal prototype to avoid an error.
21776 Use char because int might match the return type of a GCC
21777 builtin and then its argument prototype would still apply. */
21781 char __fpu_control ();
21782 /* The GNU C library defines this for functions which it implements
21783 to always fail with ENOSYS. Some functions are actually named
21784 something starting with __ and the normal name is an alias. */
21785 #if defined __stub___fpu_control || defined __stub_____fpu_control
21792 return __fpu_control ();
21797 rm -f conftest.
$ac_objext conftest
$ac_exeext
21798 if { (ac_try
="$ac_link"
21799 case "(($ac_try" in
21800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21806 grep -v '^ *+' conftest.er1 >conftest.err
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest$ac_exeext &&
21814 $as_test_x conftest$ac_exeext; then
21815 ac_cv_func___fpu_control=yes
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_cv_func___fpu_control=no
21823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21824 conftest$ac_exeext conftest.$ac_ext
21826 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21827 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21828 if test $ac_cv_func___fpu_control = yes; then
21832 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21833 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21834 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 ac_check_lib_save_LIBS=$LIBS
21838 LIBS="-lieee $LIBS"
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21846 /* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21852 char __fpu_control ();
21856 return __fpu_control ();
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (ac_try="$ac_link"
21863 case "(($ac_try" in
21864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21865 *) ac_try_echo
=$ac_try;;
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_link") 2>conftest.er1
21870 grep -v '^ *+' conftest.er1
>conftest.err
21872 cat conftest.err
>&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && {
21875 test -z "$ac_c_werror_flag" ||
21876 test ! -s conftest.err
21877 } && test -s conftest
$ac_exeext &&
21878 $as_test_x conftest
$ac_exeext; then
21879 ac_cv_lib_ieee___fpu_control
=yes
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.
$ac_ext >&5
21884 ac_cv_lib_ieee___fpu_control
=no
21887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21888 conftest
$ac_exeext conftest.
$ac_ext
21889 LIBS
=$ac_check_lib_save_LIBS
21891 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21892 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21893 if test $ac_cv_lib_ieee___fpu_control = yes; then
21894 cat >>confdefs.h
<<_ACEOF
21895 #define HAVE_LIBIEEE 1
21898 LIBS
="-lieee $LIBS"
21906 # Check for --with-fpectl
21907 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21908 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21910 # Check whether --with-fpectl was given.
21911 if test "${with_fpectl+set}" = set; then
21912 withval
=$with_fpectl;
21913 if test "$withval" != no
21916 cat >>confdefs.h
<<\_ACEOF
21917 #define WANT_SIGFPE_HANDLER 1
21920 { echo "$as_me:$LINENO: result: yes" >&5
21921 echo "${ECHO_T}yes" >&6; }
21922 else { echo "$as_me:$LINENO: result: no" >&5
21923 echo "${ECHO_T}no" >&6; }
21926 { echo "$as_me:$LINENO: result: no" >&5
21927 echo "${ECHO_T}no" >&6; }
21931 # check for --with-libm=...
21933 case $ac_sys_system in
21937 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21938 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21940 # Check whether --with-libm was given.
21941 if test "${with_libm+set}" = set; then
21942 withval
=$with_libm;
21943 if test "$withval" = no
21945 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21946 echo "${ECHO_T}force LIBM empty" >&6; }
21947 elif test "$withval" != yes
21949 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21950 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21951 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21952 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21953 { (exit 1); exit 1; }; }
21956 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21957 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21961 # check for --with-libc=...
21963 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21964 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21966 # Check whether --with-libc was given.
21967 if test "${with_libc+set}" = set; then
21968 withval
=$with_libc;
21969 if test "$withval" = no
21971 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21972 echo "${ECHO_T}force LIBC empty" >&6; }
21973 elif test "$withval" != yes
21975 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21976 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21977 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21978 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21979 { (exit 1); exit 1; }; }
21982 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21983 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21987 # **************************************************
21988 # * Check for various properties of floating point *
21989 # **************************************************
21991 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21992 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21993 if test "${ac_cv_little_endian_double+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 if test "$cross_compiling" = yes; then
21998 ac_cv_little_endian_double
=no
22000 cat >conftest.
$ac_ext <<_ACEOF
22003 cat confdefs.h
>>conftest.
$ac_ext
22004 cat >>conftest.
$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22007 #include <string.h>
22009 double x = 9006104071832581.0;
22010 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22017 rm -f conftest
$ac_exeext
22018 if { (ac_try
="$ac_link"
22019 case "(($ac_try" in
22020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_link") 2>&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22028 { (case "(($ac_try" in
22029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22030 *) ac_try_echo
=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_try") 2>&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 ac_cv_little_endian_double
=yes
22039 echo "$as_me: program exited with status $ac_status" >&5
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.
$ac_ext >&5
22043 ( exit $ac_status )
22044 ac_cv_little_endian_double
=no
22046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22053 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22054 if test "$ac_cv_little_endian_double" = yes
22057 cat >>confdefs.h
<<\_ACEOF
22058 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22063 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22064 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22065 if test "${ac_cv_big_endian_double+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 if test "$cross_compiling" = yes; then
22070 ac_cv_big_endian_double
=no
22072 cat >conftest.
$ac_ext <<_ACEOF
22075 cat confdefs.h
>>conftest.
$ac_ext
22076 cat >>conftest.
$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22079 #include <string.h>
22081 double x = 9006104071832581.0;
22082 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22089 rm -f conftest
$ac_exeext
22090 if { (ac_try
="$ac_link"
22091 case "(($ac_try" in
22092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_link") 2>&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22100 { (case "(($ac_try" in
22101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22102 *) ac_try_echo
=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_try") 2>&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109 ac_cv_big_endian_double
=yes
22111 echo "$as_me: program exited with status $ac_status" >&5
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.
$ac_ext >&5
22115 ( exit $ac_status )
22116 ac_cv_big_endian_double
=no
22118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22124 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22125 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22126 if test "$ac_cv_big_endian_double" = yes
22129 cat >>confdefs.h
<<\_ACEOF
22130 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22135 # Some ARM platforms use a mixed-endian representation for doubles.
22136 # While Python doesn't currently have full support for these platforms
22137 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22138 # conversions work.
22139 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22140 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22141 if test "${ac_cv_mixed_endian_double+set}" = set; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22145 if test "$cross_compiling" = yes; then
22146 ac_cv_mixed_endian_double
=no
22148 cat >conftest.
$ac_ext <<_ACEOF
22151 cat confdefs.h
>>conftest.
$ac_ext
22152 cat >>conftest.
$ac_ext <<_ACEOF
22153 /* end confdefs.h. */
22155 #include <string.h>
22157 double x = 9006104071832581.0;
22158 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22165 rm -f conftest
$ac_exeext
22166 if { (ac_try
="$ac_link"
22167 case "(($ac_try" in
22168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_link") 2>&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22176 { (case "(($ac_try" in
22177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22178 *) ac_try_echo
=$ac_try;;
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_try") 2>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_mixed_endian_double
=yes
22187 echo "$as_me: program exited with status $ac_status" >&5
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.
$ac_ext >&5
22191 ( exit $ac_status )
22192 ac_cv_mixed_endian_double
=no
22194 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22200 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22201 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22202 if test "$ac_cv_mixed_endian_double" = yes
22205 cat >>confdefs.h
<<\_ACEOF
22206 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22211 # The short float repr introduced in Python 3.1 requires the
22212 # correctly-rounded string <-> double conversion functions from
22213 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22214 # rounding; this is a problem on x86, where the x87 FPU has a default
22215 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22216 # using inline assembler to get and set the x87 FPU control word.
22217 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22219 # Check that it's okay to use gcc inline assembler to get and set
22220 # x87 control word. It should be, but you never know...
22221 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22222 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22223 cat >conftest.
$ac_ext <<_ACEOF
22226 cat confdefs.h
>>conftest.
$ac_ext
22227 cat >>conftest.
$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22235 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22236 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22242 rm -f conftest.
$ac_objext
22243 if { (ac_try
="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_compile") 2>conftest.er1
22251 grep -v '^ *+' conftest.er1 >conftest.err
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest.$ac_objext; then
22259 have_gcc_asm_for_x87=yes
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 have_gcc_asm_for_x87=no
22267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22268 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22269 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22270 if test "$have_gcc_asm_for_x87" = yes
22273 cat >>confdefs.h <<\_ACEOF
22274 #define HAVE_GCC_ASM_FOR_X87 1
22280 # Detect whether system arithmetic is subject to x87-style double
22281 # rounding issues. The result of this test has little meaning on non
22282 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22283 # mode is round-to-nearest and double rounding issues are present, and
22284 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22285 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22286 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22287 # $BASECFLAGS may affect the result
22289 CC="$CC $BASECFLAGS"
22290 if test "$cross_compiling" = yes; then
22291 ac_cv_x87_double_rounding=no
22293 cat >conftest.$ac_ext <<_ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22300 #include <stdlib.h>
22303 volatile double x, y, z;
22304 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22305 x = 0.99999999999999989; /* 1-2**-53 */
22309 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22315 /* both tests show evidence of double rounding */
22320 rm -f conftest$ac_exeext
22321 if { (ac_try="$ac_link"
22322 case "(($ac_try" in
22323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22324 *) ac_try_echo
=$ac_try;;
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_link") 2>&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22331 { (case "(($ac_try" in
22332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_try") 2>&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ac_cv_x87_double_rounding=no
22342 echo "$as_me: program exited with status $ac_status" >&5
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ( exit $ac_status )
22347 ac_cv_x87_double_rounding=yes
22349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22354 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22355 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22356 if test "$ac_cv_x87_double_rounding" = yes
22359 cat >>confdefs.h <<\_ACEOF
22360 #define X87_DOUBLE_ROUNDING 1
22365 # ************************************
22366 # * Check for mathematical functions *
22367 # ************************************
22372 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22373 # -0. on some architectures.
22374 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22375 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22376 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22380 if test "$cross_compiling" = yes; then
22381 ac_cv_tanh_preserves_zero_sign=no
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22391 #include <stdlib.h>
22393 /* return 0 if either negative zeros don't exist
22394 on this platform or if negative zeros exist
22395 and tanh(-0.) == -0. */
22396 if (atan2(0., -1.) == atan2(-0., -1.) ||
22397 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22402 rm -f conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22406 *) ac_try_echo
=$ac_try;;
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_link") 2>&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22413 { (case "(($ac_try" in
22414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_try") 2>&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; }; then
22422 ac_cv_tanh_preserves_zero_sign=yes
22424 echo "$as_me: program exited with status $ac_status" >&5
22425 echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22428 ( exit $ac_status )
22429 ac_cv_tanh_preserves_zero_sign=no
22431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22437 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22438 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22439 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22442 cat >>confdefs.h <<\_ACEOF
22443 #define TANH_PRESERVES_ZERO_SIGN 1
22457 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22459 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
22465 cat >conftest.$ac_ext <<_ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h. */
22471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22473 #define $ac_func innocuous_$ac_func
22475 /* System header to define __stub macros and hopefully few prototypes,
22476 which can conflict with char $ac_func (); below.
22477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22478 <limits.h> exists even on freestanding compilers. */
22481 # include <limits.h>
22483 # include <assert.h>
22488 /* Override any GCC internal prototype to avoid an error.
22489 Use char because int might match the return type of a GCC
22490 builtin and then its argument prototype would still apply. */
22495 /* The GNU C library defines this for functions which it implements
22496 to always fail with ENOSYS. Some functions are actually named
22497 something starting with __ and the normal name is an alias. */
22498 #if defined __stub_$ac_func || defined __stub___$ac_func
22505 return $ac_func ();
22510 rm -f conftest.$ac_objext conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22514 *) ac_try_echo
=$ac_try;;
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_link") 2>conftest.er1
22519 grep -v '^ *+' conftest.er1
>conftest.err
22521 cat conftest.err
>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && {
22524 test -z "$ac_c_werror_flag" ||
22525 test ! -s conftest.err
22526 } && test -s conftest
$ac_exeext &&
22527 $as_test_x conftest
$ac_exeext; then
22528 eval "$as_ac_var=yes"
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.
$ac_ext >&5
22533 eval "$as_ac_var=no"
22536 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22537 conftest
$ac_exeext conftest.
$ac_ext
22539 ac_res
=`eval echo '${'$as_ac_var'}'`
22540 { echo "$as_me:$LINENO: result: $ac_res" >&5
22541 echo "${ECHO_T}$ac_res" >&6; }
22542 if test `eval echo '${'$as_ac_var'}'` = yes; then
22543 cat >>confdefs.h
<<_ACEOF
22544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22550 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22551 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22552 if test "${ac_cv_have_decl_isinf+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22555 cat >conftest.
$ac_ext <<_ACEOF
22558 cat confdefs.h
>>conftest.
$ac_ext
22559 cat >>conftest.
$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22574 rm -f conftest.
$ac_objext
22575 if { (ac_try
="$ac_compile"
22576 case "(($ac_try" in
22577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_compile") 2>conftest.er1
22583 grep -v '^ *+' conftest.er1 >conftest.err
22585 cat conftest.err >&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && {
22588 test -z "$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 } && test -s conftest.$ac_objext; then
22591 ac_cv_have_decl_isinf=yes
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_cv_have_decl_isinf=no
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22602 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22603 if test $ac_cv_have_decl_isinf = yes; then
22605 cat >>confdefs.h <<_ACEOF
22606 #define HAVE_DECL_ISINF 1
22611 cat >>confdefs.h <<_ACEOF
22612 #define HAVE_DECL_ISINF 0
22617 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22618 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22619 if test "${ac_cv_have_decl_isnan+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 cat >conftest.$ac_ext <<_ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22641 rm -f conftest.$ac_objext
22642 if { (ac_try="$ac_compile"
22643 case "(($ac_try" in
22644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22645 *) ac_try_echo
=$ac_try;;
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648 (eval "$ac_compile") 2>conftest.er1
22650 grep -v '^ *+' conftest.er1
>conftest.err
22652 cat conftest.err
>&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest.
$ac_objext; then
22658 ac_cv_have_decl_isnan
=yes
22660 echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.
$ac_ext >&5
22663 ac_cv_have_decl_isnan
=no
22666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22668 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22669 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22670 if test $ac_cv_have_decl_isnan = yes; then
22672 cat >>confdefs.h
<<_ACEOF
22673 #define HAVE_DECL_ISNAN 1
22678 cat >>confdefs.h
<<_ACEOF
22679 #define HAVE_DECL_ISNAN 0
22684 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22685 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22686 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22689 cat >conftest.
$ac_ext <<_ACEOF
22692 cat confdefs.h
>>conftest.
$ac_ext
22693 cat >>conftest.
$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22708 rm -f conftest.
$ac_objext
22709 if { (ac_try
="$ac_compile"
22710 case "(($ac_try" in
22711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_compile") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest.$ac_objext; then
22725 ac_cv_have_decl_isfinite=yes
22727 echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_cv_have_decl_isfinite=no
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22736 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22737 if test $ac_cv_have_decl_isfinite = yes; then
22739 cat >>confdefs.h <<_ACEOF
22740 #define HAVE_DECL_ISFINITE 1
22745 cat >>confdefs.h <<_ACEOF
22746 #define HAVE_DECL_ISFINITE 0
22756 # For multiprocessing module, check that sem_open
22757 # actually works. For FreeBSD versions <= 7.2,
22758 # the kernel module that provides POSIX semaphores
22759 # isn't loaded by default, so an attempt to call
22760 # sem_open results in a 'Signal 12' error.
22761 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22762 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22763 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 if test "$cross_compiling" = yes; then
22767 ac_cv_posix_semaphores_enabled=yes
22769 cat >conftest.$ac_ext <<_ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22776 #include <unistd.h>
22779 #include <semaphore.h>
22780 #include <sys/stat.h>
22783 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22784 if (a == SEM_FAILED) {
22785 perror("sem_open");
22789 sem_unlink("/autoconf");
22794 rm -f conftest$ac_exeext
22795 if { (ac_try="$ac_link"
22796 case "(($ac_try" in
22797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22798 *) ac_try_echo
=$ac_try;;
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801 (eval "$ac_link") 2>&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22805 { (case "(($ac_try" in
22806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810 (eval "$ac_try") 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; }; then
22814 ac_cv_posix_semaphores_enabled=yes
22816 echo "$as_me: program exited with status $ac_status" >&5
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 ( exit $ac_status )
22821 ac_cv_posix_semaphores_enabled=no
22823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22830 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22831 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22832 if test $ac_cv_posix_semaphores_enabled = no
22835 cat >>confdefs.h <<\_ACEOF
22836 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22841 # Multiprocessing check for broken sem_getvalue
22842 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22843 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22844 if test "$cross_compiling" = yes; then
22845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22846 See \`config.log
' for more details." >&5
22847 echo "$as_me: error: cannot run test program while cross compiling
22848 See \`config.log' for more details.
" >&2;}
22849 { (exit 1); exit 1; }; }
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22858 #include <unistd.h>
22861 #include <semaphore.h>
22862 #include <sys/stat.h>
22865 sem_t *a = sem_open("/autocftw
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22869 perror("sem_open
");
22873 res = sem_getvalue(a, &count);
22875 sem_unlink("/autocftw
");
22876 return res==-1 ? 1 : 0;
22881 rm -f conftest$ac_exeext
22882 if { (ac_try="$ac_link"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_link") 2>&5
22890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22892 { (case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_try") 2>&5
22899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22900 (exit $ac_status); }; }; then
22901 { echo "$as_me:$LINENO: result
: no
" >&5
22902 echo "${ECHO_T}no
" >&6; }
22904 echo "$as_me: program exited with status
$ac_status" >&5
22905 echo "$as_me: failed program was
:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22908 ( exit $ac_status )
22909 { echo "$as_me:$LINENO: result
: yes" >&5
22910 echo "${ECHO_T}yes" >&6; }
22912 cat >>confdefs.h <<\_ACEOF
22913 #define HAVE_BROKEN_SEM_GETVALUE 1
22918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22923 # determine what size digit to use for Python's longs
22924 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22925 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22926 # Check whether --enable-big-digits was given.
22927 if test "${enable_big_digits+set}" = set; then
22928 enableval=$enable_big_digits; case $enable_big_digits in
22930 enable_big_digits=30 ;;
22932 enable_big_digits=15 ;;
22936 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22937 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22938 { (exit 1); exit 1; }; } ;;
22940 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22941 echo "${ECHO_T}$enable_big_digits" >&6; }
22943 cat >>confdefs.h <<_ACEOF
22944 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22949 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22950 echo "${ECHO_T}no value specified
" >&6; }
22954 # check for wchar.h
22955 if test "${ac_cv_header_wchar_h+set}" = set; then
22956 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22957 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22958 if test "${ac_cv_header_wchar_h+set}" = set; then
22959 echo $ECHO_N "(cached
) $ECHO_C" >&6
22961 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22962 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22964 # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22966 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22995 echo "$as_me: failed program was
:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
23007 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23016 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1 >conftest.err
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23028 (exit $ac_status); } >/dev/null && {
23029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23032 ac_header_preproc=yes
23034 echo "$as_me: failed program was
:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ac_header_preproc=no
23040 rm -f conftest.err conftest.$ac_ext
23041 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23047 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23048 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
23050 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
23051 ac_header_preproc=yes
23054 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
23055 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
23056 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
23057 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
23058 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
23059 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
23060 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23061 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
23063 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
23064 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
23065 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
23067 ## -------------------------------------- ##
23068 ## Report this to http://bugs.python.org/ ##
23069 ## -------------------------------------- ##
23071 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23074 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
23075 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
23076 if test "${ac_cv_header_wchar_h+set}" = set; then
23077 echo $ECHO_N "(cached
) $ECHO_C" >&6
23079 ac_cv_header_wchar_h=$ac_header_preproc
23081 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
23082 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23085 if test $ac_cv_header_wchar_h = yes; then
23088 cat >>confdefs.h <<\_ACEOF
23089 #define HAVE_WCHAR_H 1
23101 # determine wchar_t size
23102 if test "$wchar_h" = yes
23104 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
23105 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
23106 if test "${ac_cv_type_wchar_t+set}" = set; then
23107 echo $ECHO_N "(cached
) $ECHO_C" >&6
23109 cat >conftest.$ac_ext <<_ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23117 typedef wchar_t ac__type_new_;
23121 if ((ac__type_new_ *) 0)
23123 if (sizeof (ac__type_new_))
23129 rm -f conftest.$ac_objext
23130 if { (ac_try="$ac_compile"
23131 case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_compile") 2>conftest.er1
23138 grep -v '^ *+' conftest.er1 >conftest.err
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23142 (exit $ac_status); } && {
23143 test -z "$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 } && test -s conftest.$ac_objext; then
23146 ac_cv_type_wchar_t=yes
23148 echo "$as_me: failed program was
:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151 ac_cv_type_wchar_t=no
23154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
23157 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23159 # The cast to long int works around a bug in the HP C Compiler
23160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23162 # This bug is HP SR number 8606223364.
23163 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
23164 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
23165 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23166 echo $ECHO_N "(cached
) $ECHO_C" >&6
23168 if test "$cross_compiling" = yes; then
23169 # Depending upon the size, compute the lo and hi bounds.
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23178 typedef wchar_t ac__type_sizeof_;
23182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23189 rm -f conftest.$ac_objext
23190 if { (ac_try="$ac_compile"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_compile") 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest.$ac_objext; then
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23216 typedef wchar_t ac__type_sizeof_;
23220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23234 (eval "$ac_compile") 2>conftest.er1
23236 grep -v '^ *+' conftest.er1 >conftest.err
23238 cat conftest.err >&5
23239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23240 (exit $ac_status); } && {
23241 test -z "$ac_c_werror_flag" ||
23242 test ! -s conftest.err
23243 } && test -s conftest.$ac_objext; then
23244 ac_hi=$ac_mid; break
23246 echo "$as_me: failed program was
:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23249 ac_lo=`expr $ac_mid + 1`
23250 if test $ac_lo -le $ac_mid; then
23254 ac_mid=`expr 2 '*' $ac_mid + 1`
23257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260 echo "$as_me: failed program was
:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23263 cat >conftest.$ac_ext <<_ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23271 typedef wchar_t ac__type_sizeof_;
23275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23282 rm -f conftest.$ac_objext
23283 if { (ac_try="$ac_compile"
23284 case "(($ac_try" in
23285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286 *) ac_try_echo=$ac_try;;
23288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23289 (eval "$ac_compile") 2>conftest.er1
23291 grep -v '^ *+' conftest.er1 >conftest.err
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23295 (exit $ac_status); } && {
23296 test -z "$ac_c_werror_flag" ||
23297 test ! -s conftest.err
23298 } && test -s conftest.$ac_objext; then
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23309 typedef wchar_t ac__type_sizeof_;
23313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23337 ac_lo=$ac_mid; break
23339 echo "$as_me: failed program was
:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 ac_hi=`expr '(' $ac_mid ')' - 1`
23343 if test $ac_mid -le $ac_hi; then
23347 ac_mid=`expr 2 '*' $ac_mid`
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 echo "$as_me: failed program was
:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 # Binary search between lo and hi bounds.
23364 while test "x
$ac_lo" != "x
$ac_hi"; do
23365 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23366 cat >conftest.$ac_ext <<_ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23374 typedef wchar_t ac__type_sizeof_;
23378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest.$ac_objext; then
23404 echo "$as_me: failed program was
:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_lo=`expr '(' $ac_mid ')' + 1`
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23414 '') if test "$ac_cv_type_wchar_t" = yes; then
23415 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23416 See \
`config.log' for more details." >&5
23417 echo "$as_me: error: cannot compute sizeof (wchar_t)
23418 See \`config.log
' for more details." >&2;}
23419 { (exit 77); exit 77; }; }
23421 ac_cv_sizeof_wchar_t=0
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23433 typedef wchar_t ac__type_sizeof_;
23434 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23435 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23437 #include <stdlib.h>
23442 FILE *f = fopen ("conftest.val", "w");
23445 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23447 long int i = longval ();
23448 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23450 fprintf (f, "%ld\n", i);
23454 unsigned long int i = ulongval ();
23455 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23457 fprintf (f, "%lu\n", i);
23459 return ferror (f) || fclose (f) != 0;
23465 rm -f conftest$ac_exeext
23466 if { (ac_try="$ac_link"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_link") 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23476 { (case "(($ac_try" in
23477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478 *) ac_try_echo=$ac_try;;
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481 (eval "$ac_try") 2>&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_sizeof_wchar_t=`cat conftest.val`
23487 echo "$as_me: program exited with status $ac_status" >&5
23488 echo "$as_me: failed program was:" >&5
23489 sed 's
/^
/|
/' conftest.$ac_ext >&5
23491 ( exit $ac_status )
23492 if test "$ac_cv_type_wchar_t" = yes; then
23493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23494 See \`config.log' for more details.
" >&5
23495 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23496 See \
`config.log' for more details." >&2;}
23497 { (exit 77); exit 77; }; }
23499 ac_cv_sizeof_wchar_t=0
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23506 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23507 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23511 cat >>confdefs.h <<_ACEOF
23512 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23518 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23519 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23521 cat >conftest.$ac_ext <<_ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23529 #if TCL_UTF_MAX != 6
23530 # error "NOT UCS4_TCL"
23540 rm -f conftest.$ac_objext
23541 if { (ac_try="$ac_compile"
23542 case "(($ac_try" in
23543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23544 *) ac_try_echo
=$ac_try;;
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547 (eval "$ac_compile") 2>conftest.er1
23549 grep -v '^ *+' conftest.er1
>conftest.err
23551 cat conftest.err
>&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } && {
23554 test -z "$ac_c_werror_flag" ||
23555 test ! -s conftest.err
23556 } && test -s conftest.
$ac_objext; then
23559 cat >>confdefs.h
<<\_ACEOF
23560 #define HAVE_UCS4_TCL 1
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.
$ac_ext >&5
23572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23573 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23574 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23576 # check whether wchar_t is signed or not
23577 if test "$wchar_h" = yes
23579 # check whether wchar_t is signed or not
23580 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23581 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23582 if test "${ac_cv_wchar_t_signed+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 if test "$cross_compiling" = yes; then
23587 ac_cv_wchar_t_signed
=yes
23589 cat >conftest.
$ac_ext <<_ACEOF
23592 cat confdefs.h
>>conftest.
$ac_ext
23593 cat >>conftest.
$ac_ext <<_ACEOF
23594 /* end confdefs.h. */
23599 /* Success: exit code 0 */
23600 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23604 rm -f conftest
$ac_exeext
23605 if { (ac_try
="$ac_link"
23606 case "(($ac_try" in
23607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23615 { (case "(($ac_try" in
23616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23617 *) ac_try_echo
=$ac_try;;
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_try") 2>&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_cv_wchar_t_signed
=yes
23626 echo "$as_me: program exited with status $ac_status" >&5
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.
$ac_ext >&5
23630 ( exit $ac_status )
23631 ac_cv_wchar_t_signed
=no
23633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23639 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23640 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23643 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23644 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23646 # Check whether --with-wide-unicode was given.
23647 if test "${with_wide_unicode+set}" = set; then
23648 withval
=$with_wide_unicode;
23649 if test "$withval" != no
23650 then unicode_size
="4"
23651 else unicode_size
="2"
23656 case "$have_ucs4_tcl" in
23657 yes) unicode_size
="4" ;;
23658 *) unicode_size
="2" ;;
23666 case "$unicode_size" in
23667 4) cat >>confdefs.h
<<\_ACEOF
23668 #define Py_UNICODE_SIZE 4
23671 *) cat >>confdefs.h
<<\_ACEOF
23672 #define Py_UNICODE_SIZE 2
23680 # wchar_t is only usable if it maps to an unsigned type
23681 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23682 -a "$ac_cv_wchar_t_signed" = "no"
23684 PY_UNICODE_TYPE
="wchar_t"
23686 cat >>confdefs.h
<<\_ACEOF
23687 #define HAVE_USABLE_WCHAR_T 1
23690 cat >>confdefs.h
<<\_ACEOF
23691 #define PY_UNICODE_TYPE wchar_t
23694 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23696 PY_UNICODE_TYPE
="unsigned short"
23697 cat >>confdefs.h
<<\_ACEOF
23698 #define PY_UNICODE_TYPE unsigned short
23701 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23703 PY_UNICODE_TYPE
="unsigned long"
23704 cat >>confdefs.h
<<\_ACEOF
23705 #define PY_UNICODE_TYPE unsigned long
23709 PY_UNICODE_TYPE
="no type found"
23711 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23712 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23714 # check for endianness
23715 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23716 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23717 if test "${ac_cv_c_bigendian+set}" = set; then
23718 echo $ECHO_N "(cached) $ECHO_C" >&6
23720 # See if sys/param.h defines the BYTE_ORDER macro.
23721 cat >conftest.
$ac_ext <<_ACEOF
23724 cat confdefs.h
>>conftest.
$ac_ext
23725 cat >>conftest.
$ac_ext <<_ACEOF
23726 /* end confdefs.h. */
23727 #include <sys/types.h>
23728 #include <sys/param.h>
23733 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23734 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23735 bogus endian macros
23742 rm -f conftest.
$ac_objext
23743 if { (ac_try
="$ac_compile"
23744 case "(($ac_try" in
23745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23751 grep -v '^ *+' conftest.er1 >conftest.err
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23759 # It does; now see whether it defined to BIG_ENDIAN or not.
23760 cat >conftest.$ac_ext <<_ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 #include <sys/types.h>
23767 #include <sys/param.h>
23772 #if BYTE_ORDER != BIG_ENDIAN
23780 rm -f conftest.$ac_objext
23781 if { (ac_try="$ac_compile"
23782 case "(($ac_try" in
23783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23784 *) ac_try_echo
=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_compile") 2>conftest.er1
23789 grep -v '^ *+' conftest.er1
>conftest.err
23791 cat conftest.err
>&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest.
$ac_objext; then
23797 ac_cv_c_bigendian
=yes
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.
$ac_ext >&5
23802 ac_cv_c_bigendian
=no
23805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.
$ac_ext >&5
23810 # It does not; compile a test program.
23811 if test "$cross_compiling" = yes; then
23812 # try to guess the endianness by grepping values into an object file
23813 ac_cv_c_bigendian
=unknown
23814 cat >conftest.
$ac_ext <<_ACEOF
23817 cat confdefs.h
>>conftest.
$ac_ext
23818 cat >>conftest.
$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23821 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23822 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23823 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23824 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23825 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23829 _ascii (); _ebcdic ();
23834 rm -f conftest.
$ac_objext
23835 if { (ac_try
="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.$ac_objext; then
23851 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23852 ac_cv_c_bigendian=yes
23854 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23855 if test "$ac_cv_c_bigendian" = unknown; then
23856 ac_cv_c_bigendian=no
23858 # finding both strings is unlikely to happen, but who knows?
23859 ac_cv_c_bigendian=unknown
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23871 cat >conftest.$ac_ext <<_ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 $ac_includes_default
23882 /* Are we little or big endian? From Harbison&Steele. */
23886 char c[sizeof (long int)];
23889 return u.c[sizeof (long int) - 1] == 1;
23895 rm -f conftest$ac_exeext
23896 if { (ac_try="$ac_link"
23897 case "(($ac_try" in
23898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23899 *) ac_try_echo
=$ac_try;;
23901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23902 (eval "$ac_link") 2>&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23906 { (case "(($ac_try" in
23907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911 (eval "$ac_try") 2>&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_cv_c_bigendian=no
23917 echo "$as_me: program exited with status $ac_status" >&5
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23921 ( exit $ac_status )
23922 ac_cv_c_bigendian=yes
23924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23932 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23933 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23934 case $ac_cv_c_bigendian in
23937 cat >>confdefs.h <<\_ACEOF
23938 #define WORDS_BIGENDIAN 1
23944 { { echo "$as_me:$LINENO: error: unknown endianness
23945 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23946 echo "$as_me: error: unknown endianness
23947 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23948 { (exit 1); exit 1; }; } ;;
23952 # Check whether right shifting a negative integer extends the sign bit
23953 # or fills with zeros (like the Cray J90, according to Tim Peters).
23954 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23955 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23956 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23960 if test "$cross_compiling" = yes; then
23961 ac_cv_rshift_extends_sign=yes
23963 cat >conftest.$ac_ext <<_ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23972 exit(((-1)>>3 == -1) ? 0 : 1);
23976 rm -f conftest$ac_exeext
23977 if { (ac_try="$ac_link"
23978 case "(($ac_try" in
23979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23980 *) ac_try_echo
=$ac_try;;
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_link") 2>&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23987 { (case "(($ac_try" in
23988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23992 (eval "$ac_try") 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ac_cv_rshift_extends_sign=yes
23998 echo "$as_me: program exited with status $ac_status" >&5
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24002 ( exit $ac_status )
24003 ac_cv_rshift_extends_sign=no
24005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24011 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24012 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24013 if test "$ac_cv_rshift_extends_sign" = no
24016 cat >>confdefs.h <<\_ACEOF
24017 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24022 # check for getc_unlocked and related locking functions
24023 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24024 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24025 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24040 FILE *f = fopen("/dev/null", "r");
24049 rm -f conftest.$ac_objext conftest$ac_exeext
24050 if { (ac_try="$ac_link"
24051 case "(($ac_try" in
24052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24053 *) ac_try_echo
=$ac_try;;
24055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24056 (eval "$ac_link") 2>conftest.er1
24058 grep -v '^ *+' conftest.er1
>conftest.err
24060 cat conftest.err
>&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } && {
24063 test -z "$ac_c_werror_flag" ||
24064 test ! -s conftest.err
24065 } && test -s conftest
$ac_exeext &&
24066 $as_test_x conftest
$ac_exeext; then
24067 ac_cv_have_getc_unlocked
=yes
24069 echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.
$ac_ext >&5
24072 ac_cv_have_getc_unlocked
=no
24075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24076 conftest
$ac_exeext conftest.
$ac_ext
24079 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24080 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24081 if test "$ac_cv_have_getc_unlocked" = yes
24084 cat >>confdefs.h
<<\_ACEOF
24085 #define HAVE_GETC_UNLOCKED 1
24090 # check where readline lives
24091 # save the value of LIBS so we don't actually link Python with readline
24092 LIBS_no_readline
=$LIBS
24094 # On some systems we need to link readline to a termcap compatible
24095 # library. NOTE: Keep the precedence of listed libraries synchronised
24097 py_cv_lib_readline
=no
24098 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24099 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24100 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
24101 if test -z "$py_libtermcap"; then
24102 READLINE_LIBS
="-lreadline"
24104 READLINE_LIBS
="-lreadline -l$py_libtermcap"
24106 LIBS
="$READLINE_LIBS $LIBS_no_readline"
24107 cat >conftest.
$ac_ext <<_ACEOF
24110 cat confdefs.h
>>conftest.
$ac_ext
24111 cat >>conftest.
$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24114 /* Override any GCC internal prototype to avoid an error.
24115 Use char because int might match the return type of a GCC
24116 builtin and then its argument prototype would still apply. */
24124 return readline ();
24129 rm -f conftest.
$ac_objext conftest
$ac_exeext
24130 if { (ac_try
="$ac_link"
24131 case "(($ac_try" in
24132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136 (eval "$ac_link") 2>conftest.er1
24138 grep -v '^ *+' conftest.er1 >conftest.err
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } && {
24143 test -z "$ac_c_werror_flag" ||
24144 test ! -s conftest.err
24145 } && test -s conftest$ac_exeext &&
24146 $as_test_x conftest$ac_exeext; then
24147 py_cv_lib_readline=yes
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156 conftest$ac_exeext conftest.$ac_ext
24157 if test $py_cv_lib_readline = yes; then
24161 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24162 #AC_SUBST([READLINE_LIBS])
24163 if test $py_cv_lib_readline = no; then
24164 { echo "$as_me:$LINENO: result: none" >&5
24165 echo "${ECHO_T}none" >&6; }
24167 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24168 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24170 cat >>confdefs.h <<\_ACEOF
24171 #define HAVE_LIBREADLINE 1
24176 # check for readline 2.1
24177 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24178 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24179 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lreadline $READLINE_LIBS $LIBS"
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24191 /* Override any GCC internal prototype to avoid an error.
24192 Use char because int might match the return type of a GCC
24193 builtin and then its argument prototype would still apply. */
24197 char rl_callback_handler_install ();
24201 return rl_callback_handler_install ();
24206 rm -f conftest.$ac_objext conftest$ac_exeext
24207 if { (ac_try="$ac_link"
24208 case "(($ac_try" in
24209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24210 *) ac_try_echo
=$ac_try;;
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213 (eval "$ac_link") 2>conftest.er1
24215 grep -v '^ *+' conftest.er1
>conftest.err
24217 cat conftest.err
>&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && {
24220 test -z "$ac_c_werror_flag" ||
24221 test ! -s conftest.err
24222 } && test -s conftest
$ac_exeext &&
24223 $as_test_x conftest
$ac_exeext; then
24224 ac_cv_lib_readline_rl_callback_handler_install
=yes
24226 echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.
$ac_ext >&5
24229 ac_cv_lib_readline_rl_callback_handler_install
=no
24232 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24233 conftest
$ac_exeext conftest.
$ac_ext
24234 LIBS
=$ac_check_lib_save_LIBS
24236 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24237 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24238 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24240 cat >>confdefs.h
<<\_ACEOF
24241 #define HAVE_RL_CALLBACK 1
24247 # check for readline 2.2
24248 cat >conftest.
$ac_ext <<_ACEOF
24251 cat confdefs.h
>>conftest.
$ac_ext
24252 cat >>conftest.
$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 #include <readline/readline.h>
24256 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24257 case "(($ac_try" in
24258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24259 *) ac_try_echo=$ac_try;;
24261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24264 grep -v '^ *+' conftest.er1 >conftest.err
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } >/dev/null && {
24269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24270 test ! -s conftest.err
24274 echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24280 rm -f conftest.err conftest.$ac_ext
24281 if test $have_readline = yes
24283 cat >conftest.$ac_ext <<_ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 #include <readline/readline.h>
24292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24293 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24295 cat >>confdefs.h <<\_ACEOF
24296 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 #include <readline/readline.h>
24311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24312 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24314 cat >>confdefs.h <<\_ACEOF
24315 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24323 # check for readline 4.0
24324 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24325 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24326 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24329 ac_check_lib_save_LIBS=$LIBS
24330 LIBS="-lreadline $READLINE_LIBS $LIBS"
24331 cat >conftest.$ac_ext <<_ACEOF
24334 cat confdefs.h >>conftest.$ac_ext
24335 cat >>conftest.$ac_ext <<_ACEOF
24336 /* end confdefs.h. */
24338 /* Override any GCC internal prototype to avoid an error.
24339 Use char because int might match the return type of a GCC
24340 builtin and then its argument prototype would still apply. */
24344 char rl_pre_input_hook ();
24348 return rl_pre_input_hook ();
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (ac_try="$ac_link"
24355 case "(($ac_try" in
24356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24357 *) ac_try_echo
=$ac_try;;
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360 (eval "$ac_link") 2>conftest.er1
24362 grep -v '^ *+' conftest.er1
>conftest.err
24364 cat conftest.err
>&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } && {
24367 test -z "$ac_c_werror_flag" ||
24368 test ! -s conftest.err
24369 } && test -s conftest
$ac_exeext &&
24370 $as_test_x conftest
$ac_exeext; then
24371 ac_cv_lib_readline_rl_pre_input_hook
=yes
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.
$ac_ext >&5
24376 ac_cv_lib_readline_rl_pre_input_hook
=no
24379 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24380 conftest
$ac_exeext conftest.
$ac_ext
24381 LIBS
=$ac_check_lib_save_LIBS
24383 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24384 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24385 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24387 cat >>confdefs.h
<<\_ACEOF
24388 #define HAVE_RL_PRE_INPUT_HOOK 1
24395 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24396 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24397 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24398 echo $ECHO_N "(cached) $ECHO_C" >&6
24400 ac_check_lib_save_LIBS
=$LIBS
24401 LIBS
="-lreadline $READLINE_LIBS $LIBS"
24402 cat >conftest.
$ac_ext <<_ACEOF
24405 cat confdefs.h
>>conftest.
$ac_ext
24406 cat >>conftest.
$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24409 /* Override any GCC internal prototype to avoid an error.
24410 Use char because int might match the return type of a GCC
24411 builtin and then its argument prototype would still apply. */
24415 char rl_completion_display_matches_hook ();
24419 return rl_completion_display_matches_hook ();
24424 rm -f conftest.
$ac_objext conftest
$ac_exeext
24425 if { (ac_try
="$ac_link"
24426 case "(($ac_try" in
24427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_link") 2>conftest.er1
24433 grep -v '^ *+' conftest.er1 >conftest.err
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } && {
24438 test -z "$ac_c_werror_flag" ||
24439 test ! -s conftest.err
24440 } && test -s conftest$ac_exeext &&
24441 $as_test_x conftest$ac_exeext; then
24442 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24447 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24451 conftest$ac_exeext conftest.$ac_ext
24452 LIBS=$ac_check_lib_save_LIBS
24454 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24455 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24456 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24458 cat >>confdefs.h <<\_ACEOF
24459 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24465 # check for readline 4.2
24466 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24467 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24468 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24471 ac_check_lib_save_LIBS=$LIBS
24472 LIBS="-lreadline $READLINE_LIBS $LIBS"
24473 cat >conftest.$ac_ext <<_ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24480 /* Override any GCC internal prototype to avoid an error.
24481 Use char because int might match the return type of a GCC
24482 builtin and then its argument prototype would still apply. */
24486 char rl_completion_matches ();
24490 return rl_completion_matches ();
24495 rm -f conftest.$ac_objext conftest$ac_exeext
24496 if { (ac_try="$ac_link"
24497 case "(($ac_try" in
24498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24499 *) ac_try_echo
=$ac_try;;
24501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24502 (eval "$ac_link") 2>conftest.er1
24504 grep -v '^ *+' conftest.er1
>conftest.err
24506 cat conftest.err
>&5
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); } && {
24509 test -z "$ac_c_werror_flag" ||
24510 test ! -s conftest.err
24511 } && test -s conftest
$ac_exeext &&
24512 $as_test_x conftest
$ac_exeext; then
24513 ac_cv_lib_readline_rl_completion_matches
=yes
24515 echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.
$ac_ext >&5
24518 ac_cv_lib_readline_rl_completion_matches
=no
24521 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24522 conftest
$ac_exeext conftest.
$ac_ext
24523 LIBS
=$ac_check_lib_save_LIBS
24525 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24526 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24527 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24529 cat >>confdefs.h
<<\_ACEOF
24530 #define HAVE_RL_COMPLETION_MATCHES 1
24536 # also in readline 4.2
24537 cat >conftest.
$ac_ext <<_ACEOF
24540 cat confdefs.h
>>conftest.
$ac_ext
24541 cat >>conftest.
$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24543 #include <readline/readline.h>
24545 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24546 case "(($ac_try" in
24547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24553 grep -v '^ *+' conftest.er1 >conftest.err
24555 cat conftest.err >&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } >/dev/null && {
24558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24569 rm -f conftest.err conftest.$ac_ext
24570 if test $have_readline = yes
24572 cat >conftest.$ac_ext <<_ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 #include <readline/readline.h>
24581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24582 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24584 cat >>confdefs.h <<\_ACEOF
24585 #define HAVE_RL_CATCH_SIGNAL 1
24593 # End of readline checks: restore LIBS
24594 LIBS=$LIBS_no_readline
24596 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24597 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24598 if test "${ac_cv_broken_nice+set}" = set; then
24599 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 if test "$cross_compiling" = yes; then
24603 ac_cv_broken_nice=no
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24614 int val1 = nice(1);
24615 if (val1 != -1 && val1 == nice(2))
24621 rm -f conftest$ac_exeext
24622 if { (ac_try="$ac_link"
24623 case "(($ac_try" in
24624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24625 *) ac_try_echo
=$ac_try;;
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_link") 2>&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24632 { (case "(($ac_try" in
24633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_try") 2>&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; }; then
24641 ac_cv_broken_nice=yes
24643 echo "$as_me: program exited with status $ac_status" >&5
24644 echo "$as_me: failed program was:" >&5
24645 sed 's/^/| /' conftest.$ac_ext >&5
24647 ( exit $ac_status )
24648 ac_cv_broken_nice=no
24650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24656 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24657 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24658 if test "$ac_cv_broken_nice" = yes
24661 cat >>confdefs.h <<\_ACEOF
24662 #define HAVE_BROKEN_NICE 1
24667 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24668 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24669 if test "$cross_compiling" = yes; then
24670 ac_cv_broken_poll=no
24672 cat >conftest.$ac_ext <<_ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24683 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24687 int poll_test = poll (&poll_struct, 1, 0);
24693 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24704 rm -f conftest$ac_exeext
24705 if { (ac_try="$ac_link"
24706 case "(($ac_try" in
24707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24708 *) ac_try_echo
=$ac_try;;
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_link") 2>&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24715 { (case "(($ac_try" in
24716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720 (eval "$ac_try") 2>&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; }; then
24724 ac_cv_broken_poll=yes
24726 echo "$as_me: program exited with status $ac_status" >&5
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 ( exit $ac_status )
24731 ac_cv_broken_poll=no
24733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24737 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24738 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24739 if test "$ac_cv_broken_poll" = yes
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_BROKEN_POLL 1
24748 # Before we can test tzset, we need to check if struct tm has a tm_zone
24749 # (which is not required by ISO C or UNIX spec) and/or if we support
24751 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24752 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24753 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 #include <sys/types.h>
24763 #include <$ac_cv_struct_tm>
24769 static struct tm ac_aggr;
24770 if (ac_aggr.tm_zone)
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24780 *) ac_try_echo
=$ac_try;;
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783 (eval "$ac_compile") 2>conftest.er1
24785 grep -v '^ *+' conftest.er1
>conftest.err
24787 cat conftest.err
>&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } && {
24790 test -z "$ac_c_werror_flag" ||
24791 test ! -s conftest.err
24792 } && test -s conftest.
$ac_objext; then
24793 ac_cv_member_struct_tm_tm_zone
=yes
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.
$ac_ext >&5
24798 cat >conftest.
$ac_ext <<_ACEOF
24801 cat confdefs.h
>>conftest.
$ac_ext
24802 cat >>conftest.
$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24804 #include <sys/types.h>
24805 #include <$ac_cv_struct_tm>
24811 static struct tm ac_aggr;
24812 if (sizeof ac_aggr.tm_zone)
24818 rm -f conftest.
$ac_objext
24819 if { (ac_try
="$ac_compile"
24820 case "(($ac_try" in
24821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_compile") 2>conftest.er1
24827 grep -v '^ *+' conftest.er1 >conftest.err
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest.$ac_objext; then
24835 ac_cv_member_struct_tm_tm_zone=yes
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24840 ac_cv_member_struct_tm_tm_zone=no
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24849 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24850 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24852 cat >>confdefs.h <<_ACEOF
24853 #define HAVE_STRUCT_TM_TM_ZONE 1
24859 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24861 cat >>confdefs.h <<\_ACEOF
24862 #define HAVE_TM_ZONE 1
24866 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24867 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24868 if test "${ac_cv_have_decl_tzname+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24871 cat >conftest.$ac_ext <<_ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h. */
24890 rm -f conftest.$ac_objext
24891 if { (ac_try="$ac_compile"
24892 case "(($ac_try" in
24893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24894 *) ac_try_echo
=$ac_try;;
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897 (eval "$ac_compile") 2>conftest.er1
24899 grep -v '^ *+' conftest.er1
>conftest.err
24901 cat conftest.err
>&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } && {
24904 test -z "$ac_c_werror_flag" ||
24905 test ! -s conftest.err
24906 } && test -s conftest.
$ac_objext; then
24907 ac_cv_have_decl_tzname
=yes
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.
$ac_ext >&5
24912 ac_cv_have_decl_tzname
=no
24915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24917 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24918 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24919 if test $ac_cv_have_decl_tzname = yes; then
24921 cat >>confdefs.h
<<_ACEOF
24922 #define HAVE_DECL_TZNAME 1
24927 cat >>confdefs.h
<<_ACEOF
24928 #define HAVE_DECL_TZNAME 0
24935 { echo "$as_me:$LINENO: checking for tzname" >&5
24936 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24937 if test "${ac_cv_var_tzname+set}" = set; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
24940 cat >conftest.
$ac_ext <<_ACEOF
24943 cat confdefs.h
>>conftest.
$ac_ext
24944 cat >>conftest.
$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24947 #if !HAVE_DECL_TZNAME
24948 extern char *tzname[];
24954 return tzname[0][0];
24959 rm -f conftest.
$ac_objext conftest
$ac_exeext
24960 if { (ac_try
="$ac_link"
24961 case "(($ac_try" in
24962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966 (eval "$ac_link") 2>conftest.er1
24968 grep -v '^ *+' conftest.er1 >conftest.err
24970 cat conftest.err >&5
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } && {
24973 test -z "$ac_c_werror_flag" ||
24974 test ! -s conftest.err
24975 } && test -s conftest$ac_exeext &&
24976 $as_test_x conftest$ac_exeext; then
24977 ac_cv_var_tzname=yes
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ac_cv_var_tzname=no
24985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24986 conftest$ac_exeext conftest.$ac_ext
24988 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24989 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24990 if test $ac_cv_var_tzname = yes; then
24992 cat >>confdefs.h <<\_ACEOF
24993 #define HAVE_TZNAME 1
25000 # check tzset(3) exists and works like we expect it to
25001 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25002 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25003 if test "${ac_cv_working_tzset+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 if test "$cross_compiling" = yes; then
25008 ac_cv_working_tzset=no
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25017 #include <stdlib.h>
25019 #include <string.h>
25022 extern char *tzname[];
25027 /* Note that we need to ensure that not only does tzset(3)
25028 do 'something' with localtime, but it works as documented
25029 in the library reference and as expected by the test suite.
25030 This includes making sure that tzname is set properly if
25031 tm->tm_zone does not exist since it is the alternative way
25032 of getting timezone info.
25034 Red Hat 6.2 doesn't understand the southern hemisphere
25035 after New Year's Day.
25038 time_t groundhogday = 1044144000; /* GMT-based */
25039 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25041 putenv("TZ=UTC+0");
25043 if (localtime(&groundhogday)->tm_hour != 0)
25046 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25047 if (strcmp(tzname[0], "UTC") ||
25048 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25052 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25054 if (localtime(&groundhogday)->tm_hour != 19)
25057 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25061 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25063 if (localtime(&groundhogday)->tm_hour != 11)
25066 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25070 #if HAVE_STRUCT_TM_TM_ZONE
25071 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25073 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25081 rm -f conftest$ac_exeext
25082 if { (ac_try="$ac_link"
25083 case "(($ac_try" in
25084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25085 *) ac_try_echo
=$ac_try;;
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_link") 2>&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25092 { (case "(($ac_try" in
25093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25097 (eval "$ac_try") 2>&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
25101 ac_cv_working_tzset=yes
25103 echo "$as_me: program exited with status $ac_status" >&5
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25107 ( exit $ac_status )
25108 ac_cv_working_tzset=no
25110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25116 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25117 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25118 if test "$ac_cv_working_tzset" = yes
25121 cat >>confdefs.h <<\_ACEOF
25122 #define HAVE_WORKING_TZSET 1
25127 # Look for subsecond timestamps in struct stat
25128 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25129 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25130 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25133 cat >conftest.$ac_ext <<_ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h. */
25139 #include <sys/stat.h>
25145 st.st_mtim.tv_nsec = 1;
25151 rm -f conftest.$ac_objext
25152 if { (ac_try="$ac_compile"
25153 case "(($ac_try" in
25154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25155 *) ac_try_echo
=$ac_try;;
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25160 grep -v '^ *+' conftest.er1
>conftest.err
25162 cat conftest.err
>&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.
$ac_objext; then
25168 ac_cv_stat_tv_nsec
=yes
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.
$ac_ext >&5
25173 ac_cv_stat_tv_nsec
=no
25176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25179 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25180 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25181 if test "$ac_cv_stat_tv_nsec" = yes
25184 cat >>confdefs.h
<<\_ACEOF
25185 #define HAVE_STAT_TV_NSEC 1
25190 # Look for BSD style subsecond timestamps in struct stat
25191 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25192 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25193 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25194 echo $ECHO_N "(cached) $ECHO_C" >&6
25196 cat >conftest.
$ac_ext <<_ACEOF
25199 cat confdefs.h
>>conftest.
$ac_ext
25200 cat >>conftest.
$ac_ext <<_ACEOF
25201 /* end confdefs.h. */
25202 #include <sys/stat.h>
25208 st.st_mtimespec.tv_nsec = 1;
25214 rm -f conftest.
$ac_objext
25215 if { (ac_try
="$ac_compile"
25216 case "(($ac_try" in
25217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221 (eval "$ac_compile") 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } && {
25228 test -z "$ac_c_werror_flag" ||
25229 test ! -s conftest.err
25230 } && test -s conftest.$ac_objext; then
25231 ac_cv_stat_tv_nsec2=yes
25233 echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25236 ac_cv_stat_tv_nsec2=no
25239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25243 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25244 if test "$ac_cv_stat_tv_nsec2" = yes
25247 cat >>confdefs.h <<\_ACEOF
25248 #define HAVE_STAT_TV_NSEC2 1
25253 # On HP/UX 11.0, mvwdelch is a block with a return statement
25254 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25255 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25256 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25257 echo $ECHO_N "(cached) $ECHO_C" >&6
25259 cat >conftest.$ac_ext <<_ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h. */
25265 #include <curses.h>
25271 rtn = mvwdelch(0,0,0);
25277 rm -f conftest.$ac_objext
25278 if { (ac_try="$ac_compile"
25279 case "(($ac_try" in
25280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25281 *) ac_try_echo
=$ac_try;;
25283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25284 (eval "$ac_compile") 2>conftest.er1
25286 grep -v '^ *+' conftest.er1
>conftest.err
25288 cat conftest.err
>&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } && {
25291 test -z "$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 } && test -s conftest.
$ac_objext; then
25294 ac_cv_mvwdelch_is_expression
=yes
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.
$ac_ext >&5
25299 ac_cv_mvwdelch_is_expression
=no
25302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25305 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25306 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25308 if test "$ac_cv_mvwdelch_is_expression" = yes
25311 cat >>confdefs.h
<<\_ACEOF
25312 #define MVWDELCH_IS_EXPRESSION 1
25317 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25318 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25319 if test "${ac_cv_window_has_flags+set}" = set; then
25320 echo $ECHO_N "(cached) $ECHO_C" >&6
25322 cat >conftest.
$ac_ext <<_ACEOF
25325 cat confdefs.h
>>conftest.
$ac_ext
25326 cat >>conftest.
$ac_ext <<_ACEOF
25327 /* end confdefs.h. */
25328 #include <curses.h>
25340 rm -f conftest.
$ac_objext
25341 if { (ac_try
="$ac_compile"
25342 case "(($ac_try" in
25343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_compile") 2>conftest.er1
25349 grep -v '^ *+' conftest.er1 >conftest.err
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } && {
25354 test -z "$ac_c_werror_flag" ||
25355 test ! -s conftest.err
25356 } && test -s conftest.$ac_objext; then
25357 ac_cv_window_has_flags=yes
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_cv_window_has_flags=no
25365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25369 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25372 if test "$ac_cv_window_has_flags" = yes
25375 cat >>confdefs.h <<\_ACEOF
25376 #define WINDOW_HAS_FLAGS 1
25381 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25382 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25383 cat >conftest.$ac_ext <<_ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h. */
25389 #include <curses.h>
25393 void *x=is_term_resized
25398 rm -f conftest.$ac_objext
25399 if { (ac_try="$ac_compile"
25400 case "(($ac_try" in
25401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25402 *) ac_try_echo
=$ac_try;;
25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405 (eval "$ac_compile") 2>conftest.er1
25407 grep -v '^ *+' conftest.er1
>conftest.err
25409 cat conftest.err
>&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } && {
25412 test -z "$ac_c_werror_flag" ||
25413 test ! -s conftest.err
25414 } && test -s conftest.
$ac_objext; then
25416 cat >>confdefs.h
<<\_ACEOF
25417 #define HAVE_CURSES_IS_TERM_RESIZED 1
25420 { echo "$as_me:$LINENO: result: yes" >&5
25421 echo "${ECHO_T}yes" >&6; }
25423 echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.
$ac_ext >&5
25426 { echo "$as_me:$LINENO: result: no" >&5
25427 echo "${ECHO_T}no" >&6; }
25431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25433 { echo "$as_me:$LINENO: checking for resize_term" >&5
25434 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25435 cat >conftest.
$ac_ext <<_ACEOF
25438 cat confdefs.h
>>conftest.
$ac_ext
25439 cat >>conftest.
$ac_ext <<_ACEOF
25440 /* end confdefs.h. */
25441 #include <curses.h>
25445 void *x=resize_term
25450 rm -f conftest.
$ac_objext
25451 if { (ac_try
="$ac_compile"
25452 case "(($ac_try" in
25453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25454 *) ac_try_echo=$ac_try;;
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457 (eval "$ac_compile") 2>conftest.er1
25459 grep -v '^ *+' conftest.er1 >conftest.err
25461 cat conftest.err >&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } && {
25464 test -z "$ac_c_werror_flag" ||
25465 test ! -s conftest.err
25466 } && test -s conftest.$ac_objext; then
25468 cat >>confdefs.h <<\_ACEOF
25469 #define HAVE_CURSES_RESIZE_TERM 1
25472 { echo "$as_me:$LINENO: result: yes" >&5
25473 echo "${ECHO_T}yes" >&6; }
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 { echo "$as_me:$LINENO: result: no" >&5
25479 echo "${ECHO_T}no" >&6; }
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25486 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25487 cat >conftest.$ac_ext <<_ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h. */
25493 #include <curses.h>
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25506 *) ac_try_echo
=$ac_try;;
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509 (eval "$ac_compile") 2>conftest.er1
25511 grep -v '^ *+' conftest.er1
>conftest.err
25513 cat conftest.err
>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } && {
25516 test -z "$ac_c_werror_flag" ||
25517 test ! -s conftest.err
25518 } && test -s conftest.
$ac_objext; then
25520 cat >>confdefs.h
<<\_ACEOF
25521 #define HAVE_CURSES_RESIZETERM 1
25524 { echo "$as_me:$LINENO: result: yes" >&5
25525 echo "${ECHO_T}yes" >&6; }
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.
$ac_ext >&5
25530 { echo "$as_me:$LINENO: result: no" >&5
25531 echo "${ECHO_T}no" >&6; }
25535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25537 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25538 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25540 if test -r /dev
/ptmx
25542 { echo "$as_me:$LINENO: result: yes" >&5
25543 echo "${ECHO_T}yes" >&6; }
25545 cat >>confdefs.h
<<\_ACEOF
25546 #define HAVE_DEV_PTMX 1
25550 { echo "$as_me:$LINENO: result: no" >&5
25551 echo "${ECHO_T}no" >&6; }
25554 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25555 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25557 if test -r /dev
/ptc
25559 { echo "$as_me:$LINENO: result: yes" >&5
25560 echo "${ECHO_T}yes" >&6; }
25562 cat >>confdefs.h
<<\_ACEOF
25563 #define HAVE_DEV_PTC 1
25567 { echo "$as_me:$LINENO: result: no" >&5
25568 echo "${ECHO_T}no" >&6; }
25571 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25572 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25573 if test "$cross_compiling" = yes; then
25574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25575 See \`config.log' for more details." >&5
25576 echo "$as_me: error: cannot run test program while cross compiling
25577 See \`config.log' for more details." >&2;}
25578 { (exit 1); exit 1; }; }
25580 cat >conftest.
$ac_ext <<_ACEOF
25583 cat confdefs.h
>>conftest.
$ac_ext
25584 cat >>conftest.
$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25587 #include <stddef.h>
25588 #include <string.h>
25590 #ifdef HAVE_SYS_TYPES_H
25591 #include <sys/types.h>
25594 #ifdef HAVE_SSIZE_T
25595 typedef ssize_t Py_ssize_t;
25596 #elif SIZEOF_VOID_P == SIZEOF_LONG
25597 typedef long Py_ssize_t;
25599 typedef int Py_ssize_t;
25606 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25609 if (strcmp(buffer, "123"))
25612 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25615 if (strcmp(buffer, "-123"))
25621 rm -f conftest
$ac_exeext
25622 if { (ac_try
="$ac_link"
25623 case "(($ac_try" in
25624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_link") 2>&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25632 { (case "(($ac_try" in
25633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25634 *) ac_try_echo
=$ac_try;;
25636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25637 (eval "$ac_try") 2>&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); }; }; then
25641 { echo "$as_me:$LINENO: result: yes" >&5
25642 echo "${ECHO_T}yes" >&6; }
25644 cat >>confdefs.h
<<\_ACEOF
25645 #define PY_FORMAT_SIZE_T "z"
25649 echo "$as_me: program exited with status $ac_status" >&5
25650 echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.
$ac_ext >&5
25653 ( exit $ac_status )
25654 { echo "$as_me:$LINENO: result: no" >&5
25655 echo "${ECHO_T}no" >&6; }
25657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25662 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25663 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25664 if test "${ac_cv_type_socklen_t+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25667 cat >conftest.
$ac_ext <<_ACEOF
25670 cat confdefs.h
>>conftest.
$ac_ext
25671 cat >>conftest.
$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25674 #ifdef HAVE_SYS_TYPES_H
25675 #include <sys/types.h>
25677 #ifdef HAVE_SYS_SOCKET_H
25678 #include <sys/socket.h>
25682 typedef socklen_t ac__type_new_;
25686 if ((ac__type_new_ *) 0)
25688 if (sizeof (ac__type_new_))
25694 rm -f conftest.
$ac_objext
25695 if { (ac_try
="$ac_compile"
25696 case "(($ac_try" in
25697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25703 grep -v '^ *+' conftest.er1 >conftest.err
25705 cat conftest.err >&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 ac_cv_type_socklen_t=yes
25713 echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25716 ac_cv_type_socklen_t=no
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25721 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25722 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25723 if test $ac_cv_type_socklen_t = yes; then
25727 cat >>confdefs.h <<\_ACEOF
25728 #define socklen_t int
25734 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25735 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25736 if test "$cross_compiling" = yes; then
25737 ac_cv_broken_mbstowcs=no
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25749 const char *str = "text";
25750 len = mbstowcs(NULL, str, 0);
25755 rm -f conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25759 *) ac_try_echo
=$ac_try;;
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_link") 2>&5
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25766 { (case "(($ac_try" in
25767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25768 *) ac_try_echo=$ac_try;;
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771 (eval "$ac_try") 2>&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; }; then
25775 ac_cv_broken_mbstowcs=no
25777 echo "$as_me: program exited with status $ac_status" >&5
25778 echo "$as_me: failed program was:" >&5
25779 sed 's/^/| /' conftest.$ac_ext >&5
25781 ( exit $ac_status )
25782 ac_cv_broken_mbstowcs=yes
25784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25788 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25789 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25790 if test "$ac_cv_broken_mbstowcs" = yes
25793 cat >>confdefs.h <<\_ACEOF
25794 #define HAVE_BROKEN_MBSTOWCS 1
25799 # Check for --with-computed-gotos
25800 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25801 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25803 # Check whether --with-computed-gotos was given.
25804 if test "${with_computed_gotos+set}" = set; then
25805 withval=$with_computed_gotos;
25806 if test "$withval" != no
25809 cat >>confdefs.h <<\_ACEOF
25810 #define USE_COMPUTED_GOTOS 1
25813 { echo "$as_me:$LINENO: result: yes" >&5
25814 echo "${ECHO_T}yes" >&6; }
25815 else { echo "$as_me:$LINENO: result: no" >&5
25816 echo "${ECHO_T}no" >&6; }
25819 { echo "$as_me:$LINENO: result: no" >&5
25820 echo "${ECHO_T}no" >&6; }
25824 if test $ac_sys_system = Darwin
25826 LIBS="$LIBS -framework CoreFoundation"
25833 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25835 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25839 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25840 { echo "$as_me:$LINENO: checking for build directories" >&5
25841 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25842 for dir in $SRCDIRS; do
25843 if test ! -d $dir; then
25847 { echo "$as_me:$LINENO: result: done" >&5
25848 echo "${ECHO_T}done" >&6; }
25850 # generate output files
25851 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25853 cat >confcache <<\_ACEOF
25854 # This file is a shell script that caches the results of configure
25855 # tests run on this system so they can be shared between configure
25856 # scripts and configure runs, see configure's option --config-cache.
25857 # It is not useful on other systems. If it contains results you don't
25858 # want to keep, you may remove or edit it.
25860 # config.status only pays attention to the cache file if you give it
25861 # the --recheck option to rerun configure.
25863 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25865 # following values.
25869 # The following way of writing the cache mishandles newlines in values,
25870 # but we know of no workaround that is simple, portable, and efficient.
25871 # So, we kill variables containing newlines.
25872 # Ultrix sh set writes to stderr and can't be redirected directly,
25873 # and sets the high bit in the cache file unless we assign to the vars.
25875 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25876 eval ac_val
=\$
$ac_var
25880 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25881 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25884 _ | IFS | as_nl
) ;; #(
25885 *) $as_unset $ac_var ;;
25891 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25892 *${as_nl}ac_space
=\
*)
25893 # `set' does not quote correctly, so add quotes (double-quote
25894 # substitution turns \\\\ into \\, and sed turns \\ into \).
25897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25900 # `set' quotes correctly as required by POSIX, so do not add quotes.
25901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25914 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25915 if test -w "$cache_file"; then
25916 test "x$cache_file" != "x/dev/null" &&
25917 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25918 echo "$as_me: updating cache $cache_file" >&6;}
25919 cat confcache
>$cache_file
25921 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25922 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25927 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25928 # Let make expand exec_prefix.
25929 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25931 DEFS
=-DHAVE_CONFIG_H
25935 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25936 # 1. Remove the extension, and $U if already installed.
25937 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25938 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25940 # will be set to the directory where LIBOBJS objects are built.
25941 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25942 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25944 LIBOBJS
=$ac_libobjs
25946 LTLIBOBJS
=$ac_ltlibobjs
25950 : ${CONFIG_STATUS=./config.status}
25951 ac_clean_files_save
=$ac_clean_files
25952 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25953 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25954 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25955 cat >$CONFIG_STATUS <<_ACEOF
25957 # Generated by $as_me.
25958 # Run this file to recreate the current configuration.
25959 # Compiler output produced by configure, useful for debugging
25960 # configure, is in config.log if it exists.
25963 ac_cs_recheck=false
25965 SHELL=\${CONFIG_SHELL-$SHELL}
25968 cat >>$CONFIG_STATUS <<\_ACEOF
25969 ## --------------------- ##
25970 ## M4sh Initialization. ##
25971 ## --------------------- ##
25973 # Be more Bourne compatible
25974 DUALCASE
=1; export DUALCASE
# for MKS sh
25975 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25978 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25979 # is contrary to our usage. Disable this feature.
25980 alias -g '${1+"$@"}'='"$@"'
25981 setopt NO_GLOB_SUBST
25983 case `(set -o) 2>/dev/null` in
25984 *posix
*) set -o posix
;;
25993 # Avoid depending upon Character Ranges.
25994 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25995 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25996 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25997 as_cr_digits
='0123456789'
25998 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26000 # The user is always right.
26001 if test "${PATH_SEPARATOR+set}" != set; then
26002 echo "#! /bin/sh" >conf$$.sh
26003 echo "exit 0" >>conf$$.sh
26005 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26013 # Support unset when possible.
26014 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26022 # We need space, tab and new line, in precisely that order. Quoting is
26023 # there to prevent editors from complaining about space-tab.
26024 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26025 # splitting by setting IFS to empty value.)
26030 # Find who we are. Look in the path if we contain no directory separator.
26032 *[\\/]* ) as_myself
=$0 ;;
26033 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26034 for as_dir
in $PATH
26037 test -z "$as_dir" && as_dir
=.
26038 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26044 # We did not find ourselves, most probably we were run as `sh COMMAND'
26045 # in which case we are not to be found in the path.
26046 if test "x$as_myself" = x
; then
26049 if test ! -f "$as_myself"; then
26050 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26051 { (exit 1); exit 1; }
26054 # Work around bugs in pre-3.0 UWIN ksh.
26055 for as_var
in ENV MAIL MAILPATH
26056 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26064 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26065 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26066 LC_TELEPHONE LC_TIME
26068 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26069 eval $as_var=C
; export $as_var
26071 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26075 # Required to use basename.
26076 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26077 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26083 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26084 as_basename
=basename
26090 # Name of the executable.
26091 as_me
=`$as_basename -- "$0" ||
26092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26093 X"$0" : 'X\(//\)$' \| \
26094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26096 sed '/^.*\/\([^/][^/]*\)\/*$/{
26115 as_lineno_1
=$LINENO
26116 as_lineno_2
=$LINENO
26117 test "x$as_lineno_1" != "x$as_lineno_2" &&
26118 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26120 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26121 # uniformly replaced by the line number. The first 'sed' inserts a
26122 # line-number line after each line using $LINENO; the second 'sed'
26123 # does the real work. The second script uses 'N' to pair each
26124 # line-number line with the line containing $LINENO, and appends
26125 # trailing '-' during substitution so that $LINENO is not a special
26126 # case at line end.
26127 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26128 # scripts with optimization help from Paolo Bonzini. Blame Lee
26129 # E. McMahon (1931-1989) for sed's syntax. :-)
26141 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26144 ' >$as_me.lineno
&&
26145 chmod +x
"$as_me.lineno" ||
26146 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26147 { (exit 1); exit 1; }; }
26149 # Don't try to exec as it changes $[0], causing all sort of problems
26150 # (the dirname of $[0] is not the place where we might find the
26151 # original and so on. Autoconf is especially sensitive to this).
26152 .
"./$as_me.lineno"
26153 # Exit status is that of the last command.
26158 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26164 ECHO_C
= ECHO_N
= ECHO_T
=
26165 case `echo -n x` in
26167 case `echo 'x\c'` in
26168 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26175 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26176 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26182 rm -f conf$$ conf$$.exe conf$$.
file
26183 if test -d conf$$.dir
; then
26184 rm -f conf$$.dir
/conf$$.
file
26190 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26192 # ... but there are two gotchas:
26193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26195 # In both cases, we have to default to `cp -p'.
26196 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26198 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26203 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26204 rmdir conf$$.dir
2>/dev
/null
26206 if mkdir
-p .
2>/dev
/null
; then
26209 test -d .
/-p && rmdir .
/-p
26213 if test -x / >/dev
/null
2>&1; then
26214 as_test_x
='test -x'
26216 if ls -dL / >/dev
/null
2>&1; then
26223 if test -d "$1"; then
26229 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26230 ???[sx]*):;;*)false;;esac;fi
26234 as_executable_p
=$as_test_x
26236 # Sed expression to map a string onto a valid CPP name.
26237 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26239 # Sed expression to map a string onto a valid variable name.
26240 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26245 # Save the log message, to keep $[0] and so on meaningful, and to
26246 # report actual input values of CONFIG_FILES etc. instead of their
26247 # values after options handling.
26249 This file was extended by python $as_me 3.1, which was
26250 generated by GNU Autoconf 2.61. Invocation command line was
26252 CONFIG_FILES = $CONFIG_FILES
26253 CONFIG_HEADERS = $CONFIG_HEADERS
26254 CONFIG_LINKS = $CONFIG_LINKS
26255 CONFIG_COMMANDS = $CONFIG_COMMANDS
26258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26263 cat >>$CONFIG_STATUS <<_ACEOF
26264 # Files that config.status was made for.
26265 config_files="$ac_config_files"
26266 config_headers="$ac_config_headers"
26270 cat >>$CONFIG_STATUS <<\_ACEOF
26272 \`$as_me' instantiates files from templates according to the
26273 current configuration.
26275 Usage: $0 [OPTIONS] [FILE]...
26277 -h, --help print this help, then exit
26278 -V, --version print version number and configuration settings, then exit
26279 -q, --quiet do not print progress messages
26280 -d, --debug don't remove temporary files
26281 --recheck update $as_me by reconfiguring in the same conditions
26282 --file=FILE[:TEMPLATE]
26283 instantiate the configuration file FILE
26284 --header=FILE[:TEMPLATE]
26285 instantiate the configuration header FILE
26287 Configuration files:
26290 Configuration headers:
26293 Report bugs to <bug-autoconf@gnu.org>."
26296 cat >>$CONFIG_STATUS <<_ACEOF
26298 python config.status 3.1
26299 configured by $0, generated by GNU Autoconf 2.61,
26300 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26302 Copyright (C) 2006 Free Software Foundation, Inc.
26303 This config.status script is free software; the Free Software Foundation
26304 gives unlimited permission to copy, distribute and modify it."
26311 cat >>$CONFIG_STATUS <<\_ACEOF
26312 # If no file are specified by the user, then we need to provide default
26313 # value. By we need to know if files were specified by the user.
26319 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26320 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26331 # Handling of the options.
26332 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26334 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26335 echo "$ac_cs_version"; exit ;;
26336 --debug |
--debu |
--deb |
--de |
--d |
-d )
26338 --file |
--fil |
--fi |
--f )
26340 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26341 ac_need_defaults
=false
;;
26342 --header |
--heade |
--head |
--hea )
26344 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26345 ac_need_defaults
=false
;;
26347 # Conflict between --help and --header
26348 { echo "$as_me: error: ambiguous option: $1
26349 Try \`$0 --help' for more information." >&2
26350 { (exit 1); exit 1; }; };;
26351 --help |
--hel |
-h )
26352 echo "$ac_cs_usage"; exit ;;
26353 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26354 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26357 # This is an error.
26358 -*) { echo "$as_me: error: unrecognized option: $1
26359 Try \`$0 --help' for more information." >&2
26360 { (exit 1); exit 1; }; } ;;
26362 *) ac_config_targets
="$ac_config_targets $1"
26363 ac_need_defaults
=false
;;
26369 ac_configure_extra_args
=
26371 if $ac_cs_silent; then
26373 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26377 cat >>$CONFIG_STATUS <<_ACEOF
26378 if \$ac_cs_recheck; then
26379 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26380 CONFIG_SHELL=$SHELL
26381 export CONFIG_SHELL
26382 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26386 cat >>$CONFIG_STATUS <<\_ACEOF
26390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26391 ## Running $as_me. ##
26397 cat >>$CONFIG_STATUS <<_ACEOF
26400 cat >>$CONFIG_STATUS <<\_ACEOF
26402 # Handling of arguments.
26403 for ac_config_target
in $ac_config_targets
26405 case $ac_config_target in
26406 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
26407 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
26408 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26409 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26410 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26411 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
26412 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
26413 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
26415 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26416 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26417 { (exit 1); exit 1; }; };;
26422 # If the user did not use the arguments to specify the items to instantiate,
26423 # then the envvar interface is used. Set only those that are not.
26424 # We use the long form for the default assignment because of an extremely
26425 # bizarre bug on SunOS 4.1.3.
26426 if $ac_need_defaults; then
26427 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26428 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26431 # Have a temporary directory for convenience. Make it in the build tree
26432 # simply because there is no reason against having it here, and in addition,
26433 # creating and moving files from /tmp can sometimes cause problems.
26434 # Hook for its removal unless debugging.
26435 # Note that there is a small window in which the directory will not be cleaned:
26436 # after its creation but before its name has been assigned to `$tmp'.
26440 trap 'exit_status=$?
26441 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26443 trap '{ (exit 1); exit 1; }' 1 2 13 15
26445 # Create a (secure) tmp directory for tmp files.
26448 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26449 test -n "$tmp" && test -d "$tmp"
26452 tmp
=.
/conf$$
-$RANDOM
26453 (umask 077 && mkdir
"$tmp")
26456 echo "$me: cannot create a temporary directory in ." >&2
26457 { (exit 1); exit 1; }
26461 # Set up the sed scripts for CONFIG_FILES section.
26464 # No need to generate the scripts if there are no CONFIG_FILES.
26465 # This happens for instance when ./config.status config.h
26466 if test -n "$CONFIG_FILES"; then
26473 for ac_last_try
in false false false false false
:; do
26474 cat >conf$
$subs.
sed <<_ACEOF
26475 SHELL!$SHELL$ac_delim
26476 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26477 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26478 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26479 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26480 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26481 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26482 exec_prefix!$exec_prefix$ac_delim
26483 prefix!$prefix$ac_delim
26484 program_transform_name!$program_transform_name$ac_delim
26485 bindir!$bindir$ac_delim
26486 sbindir!$sbindir$ac_delim
26487 libexecdir!$libexecdir$ac_delim
26488 datarootdir!$datarootdir$ac_delim
26489 datadir!$datadir$ac_delim
26490 sysconfdir!$sysconfdir$ac_delim
26491 sharedstatedir!$sharedstatedir$ac_delim
26492 localstatedir!$localstatedir$ac_delim
26493 includedir!$includedir$ac_delim
26494 oldincludedir!$oldincludedir$ac_delim
26495 docdir!$docdir$ac_delim
26496 infodir!$infodir$ac_delim
26497 htmldir!$htmldir$ac_delim
26498 dvidir!$dvidir$ac_delim
26499 pdfdir!$pdfdir$ac_delim
26500 psdir!$psdir$ac_delim
26501 libdir!$libdir$ac_delim
26502 localedir!$localedir$ac_delim
26503 mandir!$mandir$ac_delim
26504 DEFS!$DEFS$ac_delim
26505 ECHO_C!$ECHO_C$ac_delim
26506 ECHO_N!$ECHO_N$ac_delim
26507 ECHO_T!$ECHO_T$ac_delim
26508 LIBS!$LIBS$ac_delim
26509 build_alias!$build_alias$ac_delim
26510 host_alias!$host_alias$ac_delim
26511 target_alias!$target_alias$ac_delim
26512 VERSION!$VERSION$ac_delim
26513 SOVERSION!$SOVERSION$ac_delim
26514 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26515 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26516 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26517 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26518 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26519 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26520 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26521 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26522 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26523 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26524 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26525 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26526 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26527 MACHDEP!$MACHDEP$ac_delim
26528 SGI_ABI!$SGI_ABI$ac_delim
26529 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26530 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26532 CFLAGS!$CFLAGS$ac_delim
26533 LDFLAGS!$LDFLAGS$ac_delim
26534 CPPFLAGS!$CPPFLAGS$ac_delim
26535 ac_ct_CC!$ac_ct_CC$ac_delim
26536 EXEEXT!$EXEEXT$ac_delim
26537 OBJEXT!$OBJEXT$ac_delim
26539 MAINCC!$MAINCC$ac_delim
26541 GREP!$GREP$ac_delim
26542 EGREP!$EGREP$ac_delim
26543 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26544 LIBRARY!$LIBRARY$ac_delim
26545 LDLIBRARY!$LDLIBRARY$ac_delim
26546 DLLLIBRARY!$DLLLIBRARY$ac_delim
26547 BLDLIBRARY!$BLDLIBRARY$ac_delim
26548 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26549 INSTSONAME!$INSTSONAME$ac_delim
26550 RUNSHARED!$RUNSHARED$ac_delim
26551 LINKCC!$LINKCC$ac_delim
26552 GNULD!$GNULD$ac_delim
26553 RANLIB!$RANLIB$ac_delim
26555 ARFLAGS!$ARFLAGS$ac_delim
26556 SVNVERSION!$SVNVERSION$ac_delim
26557 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26558 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26559 INSTALL_DATA!$INSTALL_DATA$ac_delim
26562 BASECFLAGS!$BASECFLAGS$ac_delim
26563 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26564 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26565 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26567 LDSHARED!$LDSHARED$ac_delim
26568 BLDSHARED!$BLDSHARED$ac_delim
26569 CCSHARED!$CCSHARED$ac_delim
26570 LINKFORSHARED!$LINKFORSHARED$ac_delim
26571 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26574 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26576 elif $ac_last_try; then
26577 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26578 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26579 { (exit 1); exit 1; }; }
26581 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26585 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26586 if test -n "$ac_eof"; then
26587 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26588 ac_eof
=`expr $ac_eof + 1`
26591 cat >>$CONFIG_STATUS <<_ACEOF
26592 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26596 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26597 s/^/s,@/; s/!/@,|#_!!_#|/
26600 s/'"$ac_delim"'$/,g/; t
26602 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26603 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26604 rm -f conf$
$subs.
sed
26605 cat >>$CONFIG_STATUS <<_ACEOF
26611 for ac_last_try
in false false false false false
:; do
26612 cat >conf$
$subs.
sed <<_ACEOF
26613 SHLIBS!$SHLIBS$ac_delim
26614 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26615 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26616 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26617 LDLAST!$LDLAST$ac_delim
26618 THREADOBJ!$THREADOBJ$ac_delim
26619 DLINCLDIR!$DLINCLDIR$ac_delim
26620 DYNLOADFILE!$DYNLOADFILE$ac_delim
26621 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26622 TRUE!$TRUE$ac_delim
26623 LIBOBJS!$LIBOBJS$ac_delim
26624 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26625 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26626 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26627 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26628 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26629 LIBM!$LIBM$ac_delim
26630 LIBC!$LIBC$ac_delim
26631 THREADHEADERS!$THREADHEADERS$ac_delim
26632 SRCDIRS!$SRCDIRS$ac_delim
26633 LTLIBOBJS!$LTLIBOBJS$ac_delim
26636 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26638 elif $ac_last_try; then
26639 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26640 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26641 { (exit 1); exit 1; }; }
26643 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26647 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26648 if test -n "$ac_eof"; then
26649 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26650 ac_eof
=`expr $ac_eof + 1`
26653 cat >>$CONFIG_STATUS <<_ACEOF
26654 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26658 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26659 s/^/s,@/; s/!/@,|#_!!_#|/
26662 s/'"$ac_delim"'$/,g/; t
26664 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26665 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26666 rm -f conf$
$subs.
sed
26667 cat >>$CONFIG_STATUS <<_ACEOF
26674 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26675 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26676 # trailing colons and then remove the whole line if VPATH becomes empty
26677 # (actually we leave an empty line to preserve line numbers).
26678 if test "x$srcdir" = x.
; then
26679 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26680 s/:*\$(srcdir):*/:/
26681 s/:*\${srcdir}:*/:/
26683 s/^\([^=]*=[ ]*\):*/\1/
26689 cat >>$CONFIG_STATUS <<\_ACEOF
26690 fi # test -n "$CONFIG_FILES"
26693 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26696 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26698 case $ac_mode$ac_tag in
26700 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26701 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26702 { (exit 1); exit 1; }; };;
26703 :[FH
]-) ac_tag
=-:-;;
26704 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26721 -) ac_f
="$tmp/stdin";;
26722 *) # Look for the file first in the build tree, then in the source tree
26723 # (if the path is not absolute). The absolute path cannot be DOS-style,
26724 # because $ac_f cannot contain `:'.
26728 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26730 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26731 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26732 { (exit 1); exit 1; }; };;
26734 ac_file_inputs
="$ac_file_inputs $ac_f"
26737 # Let's still pretend it is `configure' which instantiates (i.e., don't
26738 # use $as_me), people would be surprised to read:
26739 # /* config.h. Generated by config.status. */
26740 configure_input
="Generated from "`IFS=:
26741 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26742 if test x
"$ac_file" != x-
; then
26743 configure_input
="$ac_file. $configure_input"
26744 { echo "$as_me:$LINENO: creating $ac_file" >&5
26745 echo "$as_me: creating $ac_file" >&6;}
26749 *:-:* |
*:-) cat >"$tmp/stdin";;
26754 ac_dir
=`$as_dirname -- "$ac_file" ||
26755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26756 X"$ac_file" : 'X\(//\)[^/]' \| \
26757 X"$ac_file" : 'X\(//\)$' \| \
26758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26764 /^X\(\/\/\)[^/].*/{
26779 -*) as_dir
=.
/$as_dir;;
26781 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26785 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26786 *) as_qdir
=$as_dir;;
26788 as_dirs
="'$as_qdir' $as_dirs"
26789 as_dir
=`$as_dirname -- "$as_dir" ||
26790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26791 X"$as_dir" : 'X\(//\)[^/]' \| \
26792 X"$as_dir" : 'X\(//\)$' \| \
26793 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26799 /^X\(\/\/\)[^/].*/{
26812 test -d "$as_dir" && break
26814 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26815 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26816 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26817 { (exit 1); exit 1; }; }; }
26821 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26823 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26824 # A ".." for each directory in $ac_dir_suffix.
26825 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26826 case $ac_top_builddir_sub in
26827 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26828 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26831 ac_abs_top_builddir
=$ac_pwd
26832 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26833 # for backward compatibility:
26834 ac_top_builddir
=$ac_top_build_prefix
26837 .
) # We are building in place.
26839 ac_top_srcdir
=$ac_top_builddir_sub
26840 ac_abs_top_srcdir
=$ac_pwd ;;
26841 [\\/]* | ?
:[\\/]* ) # Absolute name.
26842 ac_srcdir
=$srcdir$ac_dir_suffix;
26843 ac_top_srcdir
=$srcdir
26844 ac_abs_top_srcdir
=$srcdir ;;
26845 *) # Relative name.
26846 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26847 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26848 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26850 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26860 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26861 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26865 cat >>$CONFIG_STATUS <<\_ACEOF
26866 # If the template does not know about datarootdir, expand it.
26867 # FIXME: This hack should be removed a few years after 2.60.
26868 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26870 case `sed -n '/datarootdir/ {
26879 ' $ac_file_inputs` in
26880 *datarootdir
*) ac_datarootdir_seen
=yes;;
26881 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26882 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26883 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26885 cat >>$CONFIG_STATUS <<_ACEOF
26886 ac_datarootdir_hack='
26887 s&@datadir@&$datadir&g
26888 s&@docdir@&$docdir&g
26889 s&@infodir@&$infodir&g
26890 s&@localedir@&$localedir&g
26891 s&@mandir@&$mandir&g
26892 s&\\\${datarootdir}&$datarootdir&g' ;;
26896 # Neutralize VPATH when `$srcdir' = `.'.
26897 # Shell code in configure.ac might set extrasub.
26898 # FIXME: do we really want to maintain this feature?
26899 cat >>$CONFIG_STATUS <<_ACEOF
26903 cat >>$CONFIG_STATUS <<\_ACEOF
26905 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26906 s
&@configure_input@
&$configure_input&;t t
26907 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26908 s
&@srcdir@
&$ac_srcdir&;t t
26909 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26910 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26911 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26912 s
&@builddir@
&$ac_builddir&;t t
26913 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26914 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26915 s
&@INSTALL@
&$ac_INSTALL&;t t
26916 $ac_datarootdir_hack
26917 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26922 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26923 which seems to be undefined. Please make sure it is defined." >&5
26924 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26925 which seems to be undefined. Please make sure it is defined." >&2;}
26929 -) cat "$tmp/out"; rm -f "$tmp/out";;
26930 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26939 # Transform confdefs.h into a sed script `conftest.defines', that
26940 # substitutes the proper values into config.h.in to produce config.h.
26941 rm -f conftest.defines conftest.
tail
26942 # First, append a space to every undef/define line, to ease matching.
26943 echo 's/$/ /' >conftest.defines
26944 # Then, protect against being on the right side of a sed subst, or in
26945 # an unquoted here document, in config.status. If some macros were
26946 # called several times there might be several #defines for the same
26947 # symbol, which is useless. But do not sort them, since the last
26948 # AC_DEFINE must be honored.
26949 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26950 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26951 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26952 # PARAMS is the parameter list in the macro definition--in most cases, it's
26953 # just an empty string.
26954 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26955 ac_dB
='\\)[ (].*,\\1define\\2'
26963 s/^[ ]*#[ ]*define[ ][ ]*//
26968 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26969 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26970 ' >>conftest.defines
26972 # Remove the space that was appended to ease matching.
26973 # Then replace #undef with comments. This is necessary, for
26974 # example, in the case of _POSIX_SOURCE, which is predefined and required
26975 # on some systems where configure will not decide to define it.
26976 # (The regexp can be short, since the line contains either #define or #undef.)
26978 s,^[ #]*u.*,/* & */,' >>conftest.defines
26980 # Break up conftest.defines:
26981 ac_max_sed_lines
=50
26983 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26984 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26985 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26987 ac_in
='$ac_file_inputs'
26988 ac_out
='"$tmp/out1"'
26989 ac_nxt
='"$tmp/out2"'
26993 # Write a here document:
26994 cat >>$CONFIG_STATUS <<_ACEOF
26995 # First, check the format of the line:
26996 cat >"\$tmp/defines.sed" <<\\CEOF
26997 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26998 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27002 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27004 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27005 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27006 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27007 grep . conftest.
tail >/dev
/null ||
break
27008 rm -f conftest.defines
27009 mv conftest.
tail conftest.defines
27011 rm -f conftest.defines conftest.
tail
27013 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27014 cat >>$CONFIG_STATUS <<\_ACEOF
27015 if test x
"$ac_file" != x-
; then
27016 echo "/* $configure_input */" >"$tmp/config.h"
27017 cat "$ac_result" >>"$tmp/config.h"
27018 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27019 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27020 echo "$as_me: $ac_file is unchanged" >&6;}
27023 mv "$tmp/config.h" $ac_file
27026 echo "/* $configure_input */"
27038 { (exit 0); exit 0; }
27040 chmod +x
$CONFIG_STATUS
27041 ac_clean_files
=$ac_clean_files_save
27044 # configure is writing to config.log, and then calls config.status.
27045 # config.status does its own redirection, appending to config.log.
27046 # Unfortunately, on DOS this fails, as config.log is still kept open
27047 # by configure, so config.status won't be able to write to it; its
27048 # output is simply discarded. So we exec the FD to /dev/null,
27049 # effectively closing config.log, so it can be properly (re)opened and
27050 # appended to by config.status. When coming back to configure, we
27051 # need to make the FD available again.
27052 if test "$no_create" != yes; then
27054 ac_config_status_args
=
27055 test "$silent" = yes &&
27056 ac_config_status_args
="$ac_config_status_args --quiet"
27058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27061 # would make configure fail if this is the last instruction.
27062 $ac_cs_success ||
{ (exit 1); exit 1; }
27066 echo "creating Modules/Setup"
27067 if test ! -f Modules
/Setup
27069 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27072 echo "creating Modules/Setup.local"
27073 if test ! -f Modules
/Setup.
local
27075 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27078 echo "creating Makefile"
27079 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27080 -s Modules Modules
/Setup.config \
27081 Modules
/Setup.
local Modules
/Setup
27082 mv config.c Modules