2 # From configure.in Revision: 65652 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.6'
579 PACKAGE_STRING
='python 2.6'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
739 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
762 program_transform_name
=s
,x
,x
,
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir
='${exec_prefix}/bin'
777 sbindir
='${exec_prefix}/sbin'
778 libexecdir
='${exec_prefix}/libexec'
779 datarootdir
='${prefix}/share'
780 datadir
='${datarootdir}'
781 sysconfdir
='${prefix}/etc'
782 sharedstatedir
='${prefix}/com'
783 localstatedir
='${prefix}/var'
784 includedir
='${prefix}/include'
785 oldincludedir
='/usr/include'
786 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir
='${datarootdir}/info'
792 libdir
='${exec_prefix}/lib'
793 localedir
='${datarootdir}/locale'
794 mandir
='${datarootdir}/man'
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\
$ac_option
808 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
818 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
820 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
823 -build |
--build |
--buil |
--bui |
--bu)
824 ac_prev
=build_alias
;;
825 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
826 build_alias
=$ac_optarg ;;
828 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
829 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
830 ac_prev
=cache_file
;;
831 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
832 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
833 cache_file
=$ac_optarg ;;
836 cache_file
=config.cache
;;
838 -datadir |
--datadir |
--datadi |
--datad)
840 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
841 datadir
=$ac_optarg ;;
843 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
844 |
--dataroo |
--dataro |
--datar)
845 ac_prev
=datarootdir
;;
846 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
847 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
848 datarootdir
=$ac_optarg ;;
850 -disable-* |
--disable-*)
851 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_
$ac_feature=no
;;
859 -docdir |
--docdir |
--docdi |
--doc |
--do)
861 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
864 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
866 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
869 -enable-* |
--enable-*)
870 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_
$ac_feature=\
$ac_optarg ;;
878 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
879 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
880 |
--exec |
--exe |
--ex)
881 ac_prev
=exec_prefix
;;
882 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
883 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
884 |
--exec=* |
--exe=* |
--ex=*)
885 exec_prefix
=$ac_optarg ;;
887 -gas |
--gas |
--ga |
--g)
888 # Obsolete; use --with-gas.
891 -help |
--help |
--hel |
--he |
-h)
893 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
894 ac_init_help
=recursive
;;
895 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
896 ac_init_help
=short
;;
898 -host |
--host |
--hos |
--ho)
899 ac_prev
=host_alias
;;
900 -host=* |
--host=* |
--hos=* |
--ho=*)
901 host_alias
=$ac_optarg ;;
903 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
905 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
907 htmldir
=$ac_optarg ;;
909 -includedir |
--includedir |
--includedi |
--included |
--include \
910 |
--includ |
--inclu |
--incl |
--inc)
911 ac_prev
=includedir
;;
912 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
913 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
914 includedir
=$ac_optarg ;;
916 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
918 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
919 infodir
=$ac_optarg ;;
921 -libdir |
--libdir |
--libdi |
--libd)
923 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
926 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
927 |
--libexe |
--libex |
--libe)
928 ac_prev
=libexecdir
;;
929 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
930 |
--libexe=* |
--libex=* |
--libe=*)
931 libexecdir
=$ac_optarg ;;
933 -localedir |
--localedir |
--localedi |
--localed |
--locale)
935 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
936 localedir
=$ac_optarg ;;
938 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
939 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
940 ac_prev
=localstatedir
;;
941 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
942 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
943 localstatedir
=$ac_optarg ;;
945 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
947 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
951 # Obsolete; use --without-fp.
954 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
955 |
--no-cr |
--no-c |
-n)
958 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
959 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
962 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
963 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
964 |
--oldin |
--oldi |
--old |
--ol |
--o)
965 ac_prev
=oldincludedir
;;
966 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
967 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
968 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
969 oldincludedir
=$ac_optarg ;;
971 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
973 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
976 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
977 |
--program-pre |
--program-pr |
--program-p)
978 ac_prev
=program_prefix
;;
979 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
980 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
981 program_prefix
=$ac_optarg ;;
983 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
984 |
--program-suf |
--program-su |
--program-s)
985 ac_prev
=program_suffix
;;
986 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
987 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
988 program_suffix
=$ac_optarg ;;
990 -program-transform-name |
--program-transform-name \
991 |
--program-transform-nam |
--program-transform-na \
992 |
--program-transform-n |
--program-transform- \
993 |
--program-transform |
--program-transfor \
994 |
--program-transfo |
--program-transf \
995 |
--program-trans |
--program-tran \
996 |
--progr-tra |
--program-tr |
--program-t)
997 ac_prev
=program_transform_name
;;
998 -program-transform-name=* |
--program-transform-name=* \
999 |
--program-transform-nam=* |
--program-transform-na=* \
1000 |
--program-transform-n=* |
--program-transform-=* \
1001 |
--program-transform=* |
--program-transfor=* \
1002 |
--program-transfo=* |
--program-transf=* \
1003 |
--program-trans=* |
--program-tran=* \
1004 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1005 program_transform_name
=$ac_optarg ;;
1007 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1009 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1010 pdfdir
=$ac_optarg ;;
1012 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1014 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1017 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1018 |
-silent |
--silent |
--silen |
--sile |
--sil)
1021 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1023 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1025 sbindir
=$ac_optarg ;;
1027 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1028 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1029 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1031 ac_prev
=sharedstatedir
;;
1032 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1033 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1034 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1036 sharedstatedir
=$ac_optarg ;;
1038 -site |
--site |
--sit)
1040 -site=* |
--site=* |
--sit=*)
1043 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1045 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1046 srcdir
=$ac_optarg ;;
1048 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1049 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1050 ac_prev
=sysconfdir
;;
1051 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1052 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1053 sysconfdir
=$ac_optarg ;;
1055 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1056 ac_prev
=target_alias
;;
1057 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1058 target_alias
=$ac_optarg ;;
1060 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1063 -version |
--version |
--versio |
--versi |
--vers |
-V)
1064 ac_init_version
=: ;;
1067 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=\
$ac_optarg ;;
1075 -without-* |
--without-*)
1076 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=no
;;
1085 # Obsolete; use --with-x.
1088 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1089 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1090 ac_prev
=x_includes
;;
1091 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1092 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1093 x_includes
=$ac_optarg ;;
1095 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1096 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1097 ac_prev
=x_libraries
;;
1098 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1099 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1100 x_libraries
=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1108 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\
$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val
=\$
$ac_var
1141 [\\/$
]* | ?
:[\\/]* ) continue;;
1142 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1153 target
=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x
; then
1157 if test "x$build_alias" = x
; then
1158 cross_compiling
=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1167 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1169 test "$silent" = yes && exec 6>/dev
/null
1172 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di
=`ls -di .` &&
1174 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted
=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir
=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1214 ac_srcdir_defaulted
=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1234 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 for ac_var
in $ac_precious_vars; do
1237 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1239 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1250 \`configure' configures python 2.6 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive
) echo "Configuration of python 2.6:";;
1316 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1317 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1318 --enable-universalsdk[=SDKDIR
]
1319 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1320 --enable-framework[=INSTALLDIR
]
1321 Build
(MacOSX|Darwin
) framework
1322 --enable-shared disable
/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1325 --enable-ipv6 Enable ipv6
(with ipv4
) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-unicode[=ucs
[24]]
1328 Enable Unicode
strings (default is
yes)
1331 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1332 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1333 --with-universal-archs=ARCH
1334 select architectures
for universal build
("32-bit",
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with
--enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler
>
1341 compile main
() and link python executable with C
++
1343 --with-suffix=.exe
set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-signal-module disable
/enable signal module
1348 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1349 --with(out
)-threads[=DIRECTORY
]
1350 disable
/enable thread support
1351 --with(out
)-thread[=DIRECTORY
]
1352 deprecated
; use
--with(out
)-threads
1353 --with-pth use GNU pth threading libraries
1354 --with(out
)-doc-strings disable
/enable documentation
strings
1355 --with(out
)-tsc enable
/disable timestamp counter profile
1356 --with(out
)-pymalloc disable
/enable specialized mallocs
1357 --with-wctype-functions use wctype.h functions
1358 --with-fpectl enable SIGFPE catching
1359 --with-libm=STRING math library
1360 --with-libc=STRING C library
1362 Some influential environment variables
:
1363 CC C compiler
command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1366 nonstandard directory
<lib dir
>
1367 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1368 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1369 you have headers
in a nonstandard directory
<include dir
>
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1375 Report bugs to <http://www.python.org/python-bugs>.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1403 .) # We are building in place.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1436 python configure 2.6
1437 generated by GNU Autoconf 2.61
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1450 It was created by python $as_me 2.6, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1463 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1464 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1465 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1466 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1467 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1469 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1470 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1472 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1473 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1474 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1476 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1478 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1511 ac_must_keep_next=false
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1522 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 -* ) ac_must_keep_next=true ;;
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1567 # The following way of writing the cache mishandles newlines in values,
1569 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1570 eval ac_val=\$$ac_var
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1584 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1604 for ac_var in $ac_subst_vars
1606 eval ac_val=\$$ac_var
1608 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 echo "$ac_var='\''$ac_val'\''"
1614 if test -n "$ac_subst_files"; then
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1632 if test -s confdefs.h; then
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1658 # Predefined preprocessor variables.
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1723 # Check that the precious variables saved in the cache have kept the same
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1734 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1738 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1745 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1746 echo "$as_me: former value
: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1748 echo "$as_me: current value
: $ac_new_val" >&2;}
1749 ac_cache_corrupted=:
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1766 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1767 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 ac_config_headers="$ac_config_headers pyconfig.h"
1812 # We don't use PACKAGE_ variables, and they cause conflicts
1813 # with other autoconf-based packages that include Python.h
1814 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1816 mv confdefs.h.new confdefs.h
1824 # The later defininition of _XOPEN_SOURCE disables certain features
1825 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _GNU_SOURCE 1
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1836 cat >>confdefs.h <<\_ACEOF
1837 #define _NETBSD_SOURCE 1
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1845 cat >>confdefs.h <<\_ACEOF
1846 #define __BSD_VISIBLE 1
1850 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1851 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1853 cat >>confdefs.h <<\_ACEOF
1854 #define _BSD_TYPES 1
1858 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1859 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1862 cat >>confdefs.h <<\_ACEOF
1863 #define _DARWIN_C_SOURCE 1
1868 define_xopen_source=yes
1870 # Arguments passed to configure.
1872 CONFIG_ARGS="$ac_configure_args"
1874 # Check whether --enable-universalsdk was given.
1875 if test "${enable_universalsdk+set}" = set; then
1876 enableval=$enable_universalsdk;
1879 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1885 enable_universalsdk=
1888 UNIVERSALSDK=$enableval
1895 enable_universalsdk=
1904 UNIVERSAL_ARCHS="32-bit"
1905 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1906 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1908 # Check whether --with-universal-archs was given.
1909 if test "${with_universal_archs+set}" = set; then
1910 withval=$with_universal_archs;
1911 { echo "$as_me:$LINENO: result: $withval" >&5
1912 echo "${ECHO_T}$withval" >&6; }
1913 UNIVERSAL_ARCHS="$withval"
1917 { echo "$as_me:$LINENO: result: 32-bit" >&5
1918 echo "${ECHO_T}32-bit" >&6; }
1926 # Check whether --with-framework-name was given.
1927 if test "${with_framework_name+set}" = set; then
1928 withval=$with_framework_name;
1929 PYTHONFRAMEWORK=${withval}
1930 PYTHONFRAMEWORKDIR=${withval}.framework
1931 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1935 PYTHONFRAMEWORK=Python
1936 PYTHONFRAMEWORKDIR=Python.framework
1937 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1941 # Check whether --enable-framework was given.
1942 if test "${enable_framework+set}" = set; then
1943 enableval=$enable_framework;
1946 enableval=/Library/Frameworks
1951 PYTHONFRAMEWORKDIR=no-framework
1952 PYTHONFRAMEWORKPREFIX=
1953 PYTHONFRAMEWORKINSTALLDIR=
1954 FRAMEWORKINSTALLFIRST=
1955 FRAMEWORKINSTALLLAST=
1956 FRAMEWORKALTINSTALLFIRST=
1957 FRAMEWORKALTINSTALLLAST=
1958 if test "x${prefix}" = "xNONE"; then
1959 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1961 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1966 PYTHONFRAMEWORKPREFIX=$enableval
1967 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1968 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1969 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1970 if test "$UNIVERSAL_ARCHS" = "all"
1972 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1974 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1977 if test "x${prefix}" = "xNONE" ; then
1978 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1980 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1982 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1984 # Add files for Mac specific code to the list of output
1986 ac_config_files="$ac_config_files Mac/Makefile"
1988 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1990 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1992 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1994 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2001 PYTHONFRAMEWORKDIR=no-framework
2002 PYTHONFRAMEWORKPREFIX=
2003 PYTHONFRAMEWORKINSTALLDIR=
2004 FRAMEWORKINSTALLFIRST=
2005 FRAMEWORKINSTALLLAST=
2006 FRAMEWORKALTINSTALLFIRST=
2007 FRAMEWORKALTINSTALLLAST=
2008 if test "x${prefix}" = "xNONE" ; then
2009 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2011 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2015 if test "$UNIVERSAL_ARCHS" = "all"
2017 FRAMEWORKINSTALLLAST=update4wayuniversal
2018 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2035 ## AC_HELP_STRING(--with-dyld,
2036 ## Use (OpenStep|Rhapsody) dynamic linker))
2038 # Set name for machine-dependent library files
2040 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2041 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2042 if test -z "$MACHDEP"
2044 ac_sys_system=`uname
-s`
2045 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2046 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2047 ac_sys_release=`uname
-v`
2049 ac_sys_release=`uname
-r`
2051 ac_md_system=`echo $ac_sys_system |
2052 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2053 ac_md_release=`echo $ac_sys_release |
2054 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2055 MACHDEP="$ac_md_system$ac_md_release"
2058 cygwin*) MACHDEP="cygwin";;
2059 darwin*) MACHDEP="darwin";;
2060 atheos*) MACHDEP="atheos";;
2061 irix646) MACHDEP="irix6";;
2062 '') MACHDEP="unknown";;
2066 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2067 # disable features if it is defined, without any means to access these
2068 # features as extensions. For these systems, we skip the definition of
2069 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2070 # some feature, make sure there is no alternative way to access this
2071 # feature. Also, when using wildcards, make sure you have verified the
2072 # need for not defining _XOPEN_SOURCE on all systems matching the
2073 # wildcard, and that the wildcard does not include future systems
2074 # (which may remove their limitations).
2075 case $ac_sys_system/$ac_sys_release in
2076 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2077 # even though select is a POSIX function. Reported by J. Ribbens.
2078 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2080 define_xopen_source=no
2081 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2082 # also defined. This can be overridden by defining _BSD_SOURCE
2083 # As this has a different meaning on Linux, only define it on OpenBSD
2085 cat >>confdefs.h <<\_ACEOF
2086 #define _BSD_SOURCE 1
2089 # OpenBSD's readline library needs the libcurses
2090 READLINE_LIBS="-lcurses"
2092 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2093 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2095 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2096 define_xopen_source=no;;
2097 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2098 # of union __?sigval. Reported by Stuart Bishop.
2100 define_xopen_source=no;;
2101 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2102 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2103 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2104 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2105 define_xopen_source=no;;
2106 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2107 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2109 define_xopen_source=no;;
2110 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2111 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2112 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2113 # This should hopefully be fixed in FreeBSD 4.9
2114 FreeBSD/4.8* | Darwin/6* )
2115 define_xopen_source=no;;
2116 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2117 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2118 # or has another value. By not (re)defining it, the defaults come in place.
2120 define_xopen_source=no;;
2122 if test `uname
-r` -eq 1; then
2123 define_xopen_source=no
2126 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2127 # disables platform specific features beyond repair.
2128 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2129 # has no effect, don't bother defining them
2131 define_xopen_source=no
2133 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2134 # defining NI_NUMERICHOST.
2136 define_xopen_source=no
2141 if test $define_xopen_source = yes
2143 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2144 # defined precisely as g++ defines it
2145 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2147 case $ac_sys_system/$ac_sys_release in
2148 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2150 cat >>confdefs.h <<\_ACEOF
2151 #define _XOPEN_SOURCE 500
2157 cat >>confdefs.h <<\_ACEOF
2158 #define _XOPEN_SOURCE 600
2164 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2165 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2166 # several APIs are not declared. Since this is also needed in some
2167 # cases for HP-UX, we define it globally.
2168 # except for Solaris 10, where it must not be defined,
2169 # as it implies XPG4.2
2170 case $ac_sys_system/$ac_sys_release in
2175 cat >>confdefs.h <<\_ACEOF
2176 #define _XOPEN_SOURCE_EXTENDED 1
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _POSIX_C_SOURCE 200112L
2191 # SGI compilers allow the specification of the both the ABI and the
2192 # ISA on the command line. Depending on the values of these switches,
2193 # different and often incompatable code will be generated.
2195 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2196 # thus supply support for various ABI/ISA combinations. The MACHDEP
2197 # variable is also adjusted.
2200 if test ! -z "$SGI_ABI"
2203 LDFLAGS="$SGI_ABI $LDFLAGS"
2204 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2206 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2207 echo "${ECHO_T}$MACHDEP" >&6; }
2209 # And add extra plat-mac for darwin
2212 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2213 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2214 if test -z "$EXTRAPLATDIR"
2218 EXTRAPLATDIR="\$(PLATMACDIRS)"
2219 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2227 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2228 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2230 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2231 # it may influence the way we can build extensions, so distutils
2235 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2236 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2238 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2239 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2240 ac_sys_machine=`uname
-m`
2241 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2242 echo "${ECHO_T}$ac_sys_machine" >&6; }
2244 # checks for alternative programs
2246 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2247 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2248 # just to get things to compile and link. Users are free to override OPT
2249 # when running configure or make. The build should not break if they do.
2250 # BASECFLAGS should generally not be messed with, however.
2252 # XXX shouldn't some/most/all of this code be merged with the stuff later
2253 # on that fiddles with OPT and BASECFLAGS?
2254 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2255 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2257 # Check whether --with-gcc was given.
2258 if test "${with_gcc+set}" = set; then
2266 without_gcc=$withval;;
2270 case $ac_sys_system in
2274 case $BE_HOST_CPU in
2278 BASECFLAGS="$BASECFLAGS -export pragma"
2280 LDFLAGS="$LDFLAGS -nodup"
2288 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2289 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2290 { (exit 1); exit 1; }; }
2293 AR="\$(srcdir)/Modules/ar_beos"
2303 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2304 echo "${ECHO_T}$without_gcc" >&6; }
2306 # If the user switches compilers, we can't believe the cache
2307 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2309 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&5
2311 echo "$as_me: error: cached CC is different -- throw away $cache_file
2312 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2313 { (exit 1); exit 1; }; }
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2360 if test -z "$ac_cv_prog_CC"; then
2362 # Extract the first word of "gcc", so it can be a program name with args.
2363 set dummy gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_CC="gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2398 if test "x$ac_ct_CC" = x; then
2401 case $cross_compiling:$ac_tool_warned in
2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2417 if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_CC="${ac_tool_prefix}cc"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 if test -n "$CC"; then
2448 { echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6; }
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2458 if test -z "$CC"; then
2459 # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478 ac_prog_rejected=yes
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test $ac_prog_rejected = yes; then
2490 # We found a bogon in the path, so make sure we never use it.
2491 set dummy $ac_cv_prog_CC
2493 if test $# != 0; then
2494 # We chose a different compiler from the bogus one.
2495 # However, it has the same basename, so the bogon will be chosen
2496 # first if we set CC to just the basename; use the full file name.
2498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 for ac_prog in cl.exe
2518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2555 test -n "$CC" && break
2558 if test -z "$CC"; then
2560 for ac_prog in cl.exe
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2599 test -n "$ac_ct_CC" && break
2602 if test "x$ac_ct_CC" = x; then
2605 case $cross_compiling:$ac_tool_warned in
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623 See \`config.log
' for more details." >&5
2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details.
" >&2;}
2626 { (exit 1); exit 1; }; }
2628 # Provide some information about the compiler.
2629 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2630 ac_compiler=`set X $ac_compile; echo $2`
2631 { (ac_try="$ac_compiler --version >&5"
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compiler --version >&5") 2>&5
2639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2640 (exit $ac_status); }
2641 { (ac_try="$ac_compiler -v >&5"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compiler -v >&5") 2>&5
2649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2650 (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compiler -V >&5") 2>&5
2659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2660 (exit $ac_status); }
2662 cat >conftest.$ac_ext <<_ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2677 ac_clean_files_save=$ac_clean_files
2678 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2679 # Try to create an executable without -o first, disregard a.out.
2680 # It will help us diagnose broken compilers, and finding out an intuition
2682 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2683 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686 # List of possible output files, starting from the most likely.
2687 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2688 # only as a last resort. b.out is created by i960 compilers.
2689 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2691 # The IRIX 6 linker writes into existing files which may not be
2692 # executable, retaining their permissions. Remove them first so a
2693 # subsequent execution test works.
2695 for ac_file in $ac_files
2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2704 if { (ac_try="$ac_link_default"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_link_default") 2>&5
2712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2713 (exit $ac_status); }; then
2714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2719 for ac_file in $ac_files ''
2721 test -f "$ac_file" || continue
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2726 # We found the default executable, but exeext='' is most
2730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734 # We set ac_cv_exeext here because the later test for it is not
2735 # safe: cross compilers may not add the suffix if given an `-o'
2736 # argument, so we may need to know it at that point already.
2737 # Even if this section looks crufty: it has the advantage of
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2750 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2751 echo "${ECHO_T}$ac_file" >&6; }
2752 if test -z "$ac_file"; then
2753 echo "$as_me: failed program was
:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2757 See \
`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log
' for more details." >&2;}
2760 { (exit 77); exit 77; }; }
2763 ac_exeext=$ac_cv_exeext
2765 # Check that the compiler produces executables we can run. If not, either
2766 # the compiler is broken, or we cross compile.
2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772 if { ac_try='.
/$ac_file'
2773 { (case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_try") 2>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2784 if test "$cross_compiling" = maybe; then
2787 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \
`config.log' for more details." >&5
2790 echo "$as_me: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details.
" >&2;}
2793 { (exit 1); exit 1; }; }
2797 { echo "$as_me:$LINENO: result
: yes" >&5
2798 echo "${ECHO_T}yes" >&6; }
2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801 ac_clean_files=$ac_clean_files_save
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2805 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2806 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2807 echo "${ECHO_T}$cross_compiling" >&6; }
2809 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2810 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2811 if { (ac_try="$ac_link"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link") 2>&5
2819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2825 for ac_file in conftest.exe conftest conftest.*; do
2826 test -f "$ac_file" || continue
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2835 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2836 See \
`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log
' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 rm -f conftest$ac_cv_exeext
2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851 if test "${ac_cv_objext+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2869 rm -f conftest.o conftest.obj
2870 if { (ac_try="$ac_compile"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 for ac_file in conftest.o conftest.obj conftest.*; do
2881 test -f "$ac_file" || continue;
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2889 echo "$as_me: failed program was:" >&5
2890 sed 's
/^
/|
/' conftest.$ac_ext >&5
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details.
" >&5
2894 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2895 See \
`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2932 *) ac_try_echo
=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2937 grep -v '^ *+' conftest.er1
>conftest.err
2939 cat conftest.err
>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.
$ac_objext; then
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.
$ac_ext >&5
2953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2954 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2957 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2959 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2960 ac_test_CFLAGS
=${CFLAGS+set}
2961 ac_save_CFLAGS
=$CFLAGS
2962 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_cc_g+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 ac_save_c_werror_flag
=$ac_c_werror_flag
2968 ac_c_werror_flag
=yes
2971 cat >conftest.
$ac_ext <<_ACEOF
2974 cat confdefs.h
>>conftest.
$ac_ext
2975 cat >>conftest.
$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 rm -f conftest.
$ac_objext
2987 if { (ac_try
="$ac_compile"
2989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3028 *) ac_try_echo
=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.
$ac_objext; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 ac_c_werror_flag
=$ac_save_c_werror_flag
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.
$ac_objext
3064 if { (ac_try
="$ac_compile"
3066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100 CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102 if test "$GCC" = yes; then
3108 if test "$GCC" = yes; then
3114 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3115 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_c89+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 ac_cv_prog_cc_c89=no
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3145 s = g (p, va_arg (v,int));
3150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3151 function prototypes and stuff, but not '\xHH' hex character constants.
3152 These don't provoke an error unfortunately, instead are silently treated
3153 as 'x'. The following induces an error, until -std is added to get
3154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3155 array size at least. It's necessary to write '\x00'==0 to get something
3156 that's true only with -std. */
3157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3160 inside strings and character constants. */
3162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3164 int test (int i, double x);
3165 struct s1 {int (*f) (int a);};
3166 struct s2 {int (*f) (double a);};
3167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181 CC="$ac_save_CC $ac_arg"
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3186 *) ac_try_echo
=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3191 grep -v '^ *+' conftest.er1
>conftest.err
3193 cat conftest.err
>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.
$ac_objext; then
3199 ac_cv_prog_cc_c89
=$ac_arg
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.
$ac_ext >&5
3207 rm -f core conftest.err conftest.
$ac_objext
3208 test "x$ac_cv_prog_cc_c89" != "xno" && break
3210 rm -f conftest.
$ac_ext
3215 case "x$ac_cv_prog_cc_c89" in
3217 { echo "$as_me:$LINENO: result: none needed" >&5
3218 echo "${ECHO_T}none needed" >&6; } ;;
3220 { echo "$as_me:$LINENO: result: unsupported" >&5
3221 echo "${ECHO_T}unsupported" >&6; } ;;
3223 CC
="$CC $ac_cv_prog_cc_c89"
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3230 ac_cpp
='$CPP $CPPFLAGS'
3231 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3239 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3241 # Check whether --with-cxx_main was given.
3242 if test "${with_cxx_main+set}" = set; then
3243 withval
=$with_cxx_main;
3246 no
) with_cxx_main
=no
3248 yes) with_cxx_main
=yes
3250 *) with_cxx_main
=yes
3264 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3265 echo "${ECHO_T}$with_cxx_main" >&6; }
3271 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3272 set dummy g
++; ac_word
=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_path_CXX+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3284 for as_dir
in notfound
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3303 if test -n "$CXX"; then
3304 { echo "$as_me:$LINENO: result: $CXX" >&5
3305 echo "${ECHO_T}$CXX" >&6; }
3307 { echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6; }
3312 cc
) # Extract the first word of "c++", so it can be a program name with args.
3313 set dummy c
++; ac_word
=$2
3314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3316 if test "${ac_cv_path_CXX+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3325 for as_dir
in notfound
3328 test -z "$as_dir" && as_dir
=.
3329 for ac_exec_ext
in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3354 if test "$CXX" = "notfound"
3361 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy
$ac_prog; ac_word
=$2
3365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_CXX+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if test -n "$CXX"; then
3371 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir
=.
3378 for ac_exec_ext
in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CXX
="$ac_prog"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test -n "$CXX"; then
3392 { echo "$as_me:$LINENO: result: $CXX" >&5
3393 echo "${ECHO_T}$CXX" >&6; }
3395 { echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6; }
3400 test -n "$CXX" && break
3402 test -n "$CXX" || CXX
="notfound"
3404 if test "$CXX" = "notfound"
3409 if test "$preset_cxx" != "$CXX"
3411 { echo "$as_me:$LINENO: 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.
3416 echo "$as_me: WARNING:
3418 By default, distutils will build C++ extension modules with \"$CXX\".
3419 If this is not intended, then set CXX on the configure command line.
3424 # checks for UNIX variants that set C preprocessor variables
3427 ac_cpp
='$CPP $CPPFLAGS'
3428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3437 if test -z "$CPP"; then
3438 if test "${ac_cv_prog_CPP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 # Double quotes because CPP needs to be expanded
3442 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445 for ac_c_preproc_warn_flag
in '' yes
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
3453 cat >conftest.
$ac_ext <<_ACEOF
3456 cat confdefs.h
>>conftest.
$ac_ext
3457 cat >>conftest.
$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3460 # include <limits.h>
3462 # include <assert.h>
3466 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null && {
3479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 # Broken: fails on valid input.
3491 rm -f conftest.err conftest.$ac_ext
3493 # OK, works on sane cases. Now check whether nonexistent headers
3494 # can be detected and how.
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <ac_nonexistent.h>
3503 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3506 *) ac_try_echo
=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev
/null
&& {
3516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3519 # Broken: success on invalid input.
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3525 # Passes both tests.
3530 rm -f conftest.err conftest.
$ac_ext
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.
$ac_ext
3535 if $ac_preproc_ok; then
3547 { echo "$as_me:$LINENO: result: $CPP" >&5
3548 echo "${ECHO_T}$CPP" >&6; }
3550 for ac_c_preproc_warn_flag
in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.
$ac_ext <<_ACEOF
3561 cat confdefs.h
>>conftest.
$ac_ext
3562 cat >>conftest.
$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3565 # include <limits.h>
3567 # include <assert.h>
3571 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 grep -v '^ *+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null && {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3611 *) ac_try_echo
=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev
/null
&& {
3621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3624 # Broken: success on invalid input.
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3630 # Passes both tests.
3635 rm -f conftest.err conftest.
$ac_ext
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.
$ac_ext
3640 if $ac_preproc_ok; then
3643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }
3651 ac_cpp
='$CPP $CPPFLAGS'
3652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3657 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 # Extract the first word of "grep ggrep" to use in msg output
3663 if test -z "$GREP"; then
3664 set dummy
grep ggrep
; ac_prog_name
=$2
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_path_GREP_found
=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3671 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3674 test -z "$as_dir" && as_dir
=.
3675 for ac_prog
in grep ggrep
; do
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3679 # Check for GNU ac_path_GREP and select it if it is found.
3680 # Check for GNU $ac_path_GREP
3681 case `"$ac_path_GREP" --version 2>&1` in
3683 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'GREP' >> "conftest.nl"
3693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3694 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3695 ac_count
=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_GREP
="$ac_path_GREP"
3699 ac_path_GREP_max
=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3704 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3708 $ac_path_GREP_found && break 3
3718 GREP
="$ac_cv_path_GREP"
3719 if test -z "$GREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3726 ac_cv_path_GREP
=$GREP
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3733 GREP
="$ac_cv_path_GREP"
3736 { echo "$as_me:$LINENO: checking for egrep" >&5
3737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3742 then ac_cv_path_EGREP
="$GREP -E"
3744 # Extract the first word of "egrep" to use in msg output
3745 if test -z "$EGREP"; then
3746 set dummy
egrep; ac_prog_name
=$2
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 ac_path_EGREP_found
=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3756 test -z "$as_dir" && as_dir
=.
3757 for ac_prog
in egrep; do
3758 for ac_exec_ext
in '' $ac_executable_extensions; do
3759 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3760 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3761 # Check for GNU ac_path_EGREP and select it if it is found.
3762 # Check for GNU $ac_path_EGREP
3763 case `"$ac_path_EGREP" --version 2>&1` in
3765 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3768 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 cat "conftest.in" "conftest.in" >"conftest.tmp"
3772 mv "conftest.tmp" "conftest.in"
3773 cp "conftest.in" "conftest.nl"
3774 echo 'EGREP' >> "conftest.nl"
3775 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3776 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3777 ac_count
=`expr $ac_count + 1`
3778 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3779 # Best one so far, save it but keep looking for a better one
3780 ac_cv_path_EGREP
="$ac_path_EGREP"
3781 ac_path_EGREP_max
=$ac_count
3783 # 10*(2^10) chars as input seems more than enough
3784 test $ac_count -gt 10 && break
3786 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3790 $ac_path_EGREP_found && break 3
3800 EGREP
="$ac_cv_path_EGREP"
3801 if test -z "$EGREP"; then
3802 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3803 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3804 { (exit 1); exit 1; }; }
3808 ac_cv_path_EGREP
=$EGREP
3814 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3815 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3816 EGREP
="$ac_cv_path_EGREP"
3820 { echo "$as_me:$LINENO: checking for AIX" >&5
3821 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3822 cat >conftest.
$ac_ext <<_ACEOF
3825 cat confdefs.h
>>conftest.
$ac_ext
3826 cat >>conftest.
$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "yes" >/dev
/null
2>&1; then
3835 { echo "$as_me:$LINENO: result: yes" >&5
3836 echo "${ECHO_T}yes" >&6; }
3837 cat >>confdefs.h
<<\_ACEOF
3838 #define _ALL_SOURCE 1
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3849 # Check for unsupported systems
3850 case $ac_sys_system/$ac_sys_release in
3852 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3853 echo See README
for details.
3858 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3859 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3861 # Check whether --with-suffix was given.
3862 if test "${with_suffix+set}" = set; then
3863 withval
=$with_suffix;
3867 *) EXEEXT
=$withval;;
3871 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3872 echo "${ECHO_T}$EXEEXT" >&6; }
3874 # Test whether we're running on a non-case-sensitive system, in which
3875 # case we give a warning if no ext is given
3877 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3878 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3879 if test ! -d CaseSensitiveTestDir
; then
3880 mkdir CaseSensitiveTestDir
3883 if test -d casesensitivetestdir
3885 { echo "$as_me:$LINENO: result: yes" >&5
3886 echo "${ECHO_T}yes" >&6; }
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3893 rmdir CaseSensitiveTestDir
3898 gcc
) CC
="$CC -D_HAVE_BSDI";;
3902 case $ac_sys_system in
3905 cc|
*/cc
) CC
="$CC -Ae";;
3909 cc
) CC
="$CC -Wl,-Bexport";;
3912 # Some functions have a prototype only with that define, e.g. confstr
3914 cat >>confdefs.h
<<\_ACEOF
3915 #define __EXTENSIONS__ 1
3923 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3924 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3925 if test -z "$LIBRARY"
3927 LIBRARY
='libpython$(VERSION).a'
3929 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3930 echo "${ECHO_T}$LIBRARY" >&6; }
3932 # LDLIBRARY is the name of the library to link against (as opposed to the
3933 # name of the library into which to insert object files). BLDLIBRARY is also
3934 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3935 # is blank as the main program is not linked directly against LDLIBRARY.
3936 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3937 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3938 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3939 # DLLLIBRARY is the shared (i.e., DLL) library.
3941 # RUNSHARED is used to run shared python without installed libraries
3943 # INSTSONAME is the name of the shared library that will be use to install
3944 # on the system - some systems like version suffix, others don't
3951 LDLIBRARY
="$LIBRARY"
3952 BLDLIBRARY
='$(LDLIBRARY)'
3953 INSTSONAME
='$(LDLIBRARY)'
3958 # LINKCC is the command that links the python executable -- default is $(CC).
3959 # If CXX is set, and if it is needed to link a main function that was
3960 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3961 # python might then depend on the C++ runtime
3962 # This is altered for AIX in order to build the export list before
3965 { echo "$as_me:$LINENO: checking LINKCC" >&5
3966 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3967 if test -z "$LINKCC"
3969 LINKCC
='$(PURIFY) $(MAINCC)'
3970 case $ac_sys_system in
3973 if test $ac_sys_release -ge 5 -o \
3974 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3977 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3979 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3981 # qcc must be used because the other compilers do not
3986 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3987 echo "${ECHO_T}$LINKCC" >&6; }
3989 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3990 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3991 # Check whether --enable-shared was given.
3992 if test "${enable_shared+set}" = set; then
3993 enableval
=$enable_shared;
3997 if test -z "$enable_shared"
3999 case $ac_sys_system in
4001 enable_shared
="yes";;
4003 enable_shared
="no";;
4006 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4007 echo "${ECHO_T}$enable_shared" >&6; }
4009 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4010 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4011 # Check whether --enable-profiling was given.
4012 if test "${enable_profiling+set}" = set; then
4013 enableval
=$enable_profiling; ac_save_cc
="$CC"
4015 if test "$cross_compiling" = yes; then
4016 ac_enable_profiling
="no"
4018 cat >conftest.
$ac_ext <<_ACEOF
4021 cat confdefs.h
>>conftest.
$ac_ext
4022 cat >>conftest.
$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 int main() { return 0; }
4026 rm -f conftest
$ac_exeext
4027 if { (ac_try
="$ac_link"
4029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_link") 2>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4039 *) ac_try_echo
=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_enable_profiling
="yes"
4048 echo "$as_me: program exited with status $ac_status" >&5
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.
$ac_ext >&5
4053 ac_enable_profiling
="no"
4055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4062 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4063 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4065 case "$ac_enable_profiling" in
4067 BASECFLAGS
="-pg $BASECFLAGS"
4068 LDFLAGS
="-pg $LDFLAGS"
4072 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4073 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4075 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4076 # library that we build, but we do not want to link against it (we
4077 # will find it with a -framework option). For this reason there is an
4078 # extra variable BLDLIBRARY against which Python and the extension
4079 # modules are linked, BLDLIBRARY. This is normally the same as
4080 # LDLIBRARY, but empty for MacOSX framework builds.
4081 if test "$enable_framework"
4083 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4084 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4087 BLDLIBRARY
='$(LDLIBRARY)'
4090 # Other platforms follow
4091 if test $enable_shared = "yes"; then
4093 cat >>confdefs.h
<<\_ACEOF
4094 #define Py_ENABLE_SHARED 1
4097 case $ac_sys_system in
4099 LDLIBRARY
='libpython$(VERSION).so'
4102 LDLIBRARY
='libpython$(VERSION).dll.a'
4103 DLLLIBRARY
='libpython$(VERSION).dll'
4106 LDLIBRARY
='libpython$(VERSION).so'
4107 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4108 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4109 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4111 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4112 LDLIBRARY
='libpython$(VERSION).so'
4113 BLDLIBRARY
='-L. -lpython$(VERSION)'
4114 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4115 case $ac_sys_system in
4117 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4120 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4125 LDLIBRARY
='libpython$(VERSION).so'
4128 LDLIBRARY
='libpython$(VERSION).sl'
4131 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4132 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4135 LDLIBRARY
='libpython$(VERSION).so'
4136 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4137 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4140 LDLIBRARY
='libpython$(VERSION).so'
4141 BLDLIBRARY
='-L. -lpython$(VERSION)'
4142 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4145 else # shared is disabled
4146 case $ac_sys_system in
4148 BLDLIBRARY
='$(LIBRARY)'
4149 LDLIBRARY
='libpython$(VERSION).dll.a'
4154 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4155 echo "${ECHO_T}$LDLIBRARY" >&6; }
4157 if test -n "$ac_tool_prefix"; then
4158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4159 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4162 if test "${ac_cv_prog_RANLIB+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 if test -n "$RANLIB"; then
4166 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir
=.
4173 for ac_exec_ext
in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 RANLIB
=$ac_cv_prog_RANLIB
4186 if test -n "$RANLIB"; then
4187 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4188 echo "${ECHO_T}$RANLIB" >&6; }
4190 { echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6; }
4196 if test -z "$ac_cv_prog_RANLIB"; then
4197 ac_ct_RANLIB
=$RANLIB
4198 # Extract the first word of "ranlib", so it can be a program name with args.
4199 set dummy ranlib
; ac_word
=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$ac_ct_RANLIB"; then
4206 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4226 if test -n "$ac_ct_RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4228 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4234 if test "x$ac_ct_RANLIB" = x
; then
4237 case $cross_compiling:$ac_tool_warned in
4239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4240 whose name does not start with the host triplet. If you think this
4241 configuration is useful to you, please write to autoconf@gnu.org." >&5
4242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4243 whose name does not start with the host triplet. If you think this
4244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4245 ac_tool_warned
=yes ;;
4247 RANLIB
=$ac_ct_RANLIB
4250 RANLIB
="$ac_cv_prog_RANLIB"
4254 for ac_prog
in ar aal
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy
$ac_prog; ac_word
=$2
4258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4260 if test "${ac_cv_prog_AR+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$AR"; then
4264 ac_cv_prog_AR
="$AR" # Let the user override the test.
4266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir
=.
4271 for ac_exec_ext
in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_AR
="$ac_prog"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 if test -n "$AR"; then
4285 { echo "$as_me:$LINENO: result: $AR" >&5
4286 echo "${ECHO_T}$AR" >&6; }
4288 { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4293 test -n "$AR" && break
4295 test -n "$AR" || AR
="ar"
4299 # Extract the first word of "svnversion", so it can be a program name with args.
4300 set dummy svnversion
; ac_word
=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$SVNVERSION"; then
4307 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir
=.
4314 for ac_exec_ext
in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_SVNVERSION
="found"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4327 SVNVERSION
=$ac_cv_prog_SVNVERSION
4328 if test -n "$SVNVERSION"; then
4329 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4330 echo "${ECHO_T}$SVNVERSION" >&6; }
4332 { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4337 if test $SVNVERSION = found
4339 SVNVERSION
="svnversion \$(srcdir)"
4341 SVNVERSION
="echo exported"
4346 # install -d does not work on BSDI or HP-UX
4347 if test -z "$INSTALL"
4349 INSTALL
="${srcdir}/install-sh -c"
4353 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4354 if test -f "$ac_dir/install-sh"; then
4356 ac_install_sh
="$ac_aux_dir/install-sh -c"
4358 elif test -f "$ac_dir/install.sh"; then
4360 ac_install_sh
="$ac_aux_dir/install.sh -c"
4362 elif test -f "$ac_dir/shtool"; then
4364 ac_install_sh
="$ac_aux_dir/shtool install -c"
4368 if test -z "$ac_aux_dir"; then
4369 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4370 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4371 { (exit 1); exit 1; }; }
4374 # These three variables are undocumented and unsupported,
4375 # and are intended to be withdrawn in a future Autoconf release.
4376 # They can cause serious problems if a builder's source tree is in a directory
4377 # whose full name contains unusual characters.
4378 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4379 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4380 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4383 # Find a good install program. We prefer a C program (faster),
4384 # so one script is as good as another. But avoid the broken or
4385 # incompatible versions:
4386 # SysV /etc/install, /usr/sbin/install
4387 # SunOS /usr/etc/install
4388 # IRIX /sbin/install
4390 # AmigaOS /C/install, which installs bootblocks on floppy discs
4391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4394 # OS/2's system install, which has a completely different semantic
4395 # ./install, which can be erroneously created by make from ./install.sh.
4396 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4397 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4398 if test -z "$INSTALL"; then
4399 if test "${ac_cv_path_install+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir
=.
4407 # Account for people who put trailing slashes in PATH elements.
4409 .
/ | .
// |
/cC
/* | \
4410 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4411 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4414 # OSF1 and SCO ODT 3.0 have their own names for install.
4415 # Don't use installbsd from OSF since it installs stuff as root
4417 for ac_prog
in ginstall scoinst
install; do
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4420 if test $ac_prog = install &&
4421 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4422 # AIX install. It has an incompatible calling convention.
4424 elif test $ac_prog = install &&
4425 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4426 # program-specific install script used by HP pwplus--don't use.
4429 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4442 if test "${ac_cv_path_install+set}" = set; then
4443 INSTALL
=$ac_cv_path_install
4445 # As a last resort, use the slow shell script. Don't cache a
4446 # value for INSTALL within a source directory, because that will
4447 # break other packages using the cache if that directory is
4448 # removed, or if the value is a relative name.
4449 INSTALL
=$ac_install_sh
4452 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4453 echo "${ECHO_T}$INSTALL" >&6; }
4455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4456 # It thinks the first close brace ends the variable substitution.
4457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4461 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4464 # Not every filesystem supports hard links
4466 if test -z "$LN" ; then
4467 case $ac_sys_system in
4469 CYGWIN
*) LN
="ln -s";;
4470 atheos
*) LN
="ln -s";;
4475 # Check for --with-pydebug
4476 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4477 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4479 # Check whether --with-pydebug was given.
4480 if test "${with_pydebug+set}" = set; then
4481 withval
=$with_pydebug;
4482 if test "$withval" != no
4485 cat >>confdefs.h
<<\_ACEOF
4489 { echo "$as_me:$LINENO: result: yes" >&5
4490 echo "${ECHO_T}yes" >&6; };
4492 else { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4496 { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4501 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4502 # merged with this chunk of code?
4504 # Optimizer/debugger flags
4505 # ------------------------
4506 # (The following bit of code is complicated enough - please keep things
4507 # indented properly. Just pretend you're editing Python code. ;-)
4509 # There are two parallel sets of case statements below, one that checks to
4510 # see if OPT was set and one that does BASECFLAGS setting based upon
4511 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4514 # tweak OPT based on compiler and platform, only if the user didn't set
4515 # it on the command line
4521 if test "$CC" != 'g++' ; then
4522 STRICT_PROTO
="-Wstrict-prototypes"
4524 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4525 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4528 case $ac_cv_prog_cc_g in
4530 if test "$Py_DEBUG" = 'true' ; then
4531 # Optimization messes up debuggers, so turn it off for
4533 OPT
="-g -Wall $STRICT_PROTO"
4535 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4539 OPT
="-O3 -Wall $STRICT_PROTO"
4542 case $ac_sys_system in
4543 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4553 # The current (beta) Monterey compiler dies with optimizations
4554 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4555 case $ac_sys_system in
4565 # The -arch flags for universal builds on OSX
4566 UNIVERSAL_ARCH_FLAGS
=
4569 # tweak BASECFLAGS based on compiler and platform
4572 # Python violates C99 rules, by casting between incompatible
4573 # pointer types. GCC may generate bad code as a result of that,
4574 # so use -fno-strict-aliasing if supported.
4575 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4576 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4578 CC
="$CC -fno-strict-aliasing"
4579 if test "$cross_compiling" = yes; then
4580 ac_cv_no_strict_aliasing_ok
=no
4582 cat >conftest.
$ac_ext <<_ACEOF
4585 cat confdefs.h
>>conftest.
$ac_ext
4586 cat >>conftest.
$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 int main() { return 0; }
4590 rm -f conftest
$ac_exeext
4591 if { (ac_try
="$ac_link"
4593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_link") 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4603 *) ac_try_echo
=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_try") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_no_strict_aliasing_ok
=yes
4612 echo "$as_me: program exited with status $ac_status" >&5
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.
$ac_ext >&5
4617 ac_cv_no_strict_aliasing_ok
=no
4619 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4624 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4625 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4626 if test $ac_cv_no_strict_aliasing_ok = yes
4628 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4631 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4632 # support. Without this, treatment of subnormals doesn't follow
4634 case $ac_sys_machine in
4636 BASECFLAGS
="$BASECFLAGS -mieee"
4640 case $ac_sys_system in
4642 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4644 # is there any other compiler on Darwin besides gcc?
4646 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4647 # used to be here, but non-Apple gcc doesn't accept them.
4650 if test "${enable_universalsdk}"; then
4651 UNIVERSAL_ARCH_FLAGS
=""
4652 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4653 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4656 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4657 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4659 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4660 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4661 ARCH_RUN_32BIT
="arch -i386 -ppc"
4664 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4665 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4666 { (exit 1); exit 1; }; }
4671 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4672 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4673 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4674 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4678 # Calculate the right deployment target for this build.
4680 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4681 if test ${cur_target} '>' 10.2; then
4684 if test "${UNIVERSAL_ARCHS}" = "all"; then
4685 # Ensure that the default platform for a 4-way
4686 # universal build is OSX 10.5, that's the first
4687 # OS release where 4-way builds make sense.
4690 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4692 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4693 # environment with a value that is the same as what we'll use
4694 # in the Makefile to ensure that we'll get the same compiler
4695 # environment during configure and build time.
4696 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4697 export MACOSX_DEPLOYMENT_TARGET
4698 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4702 BASECFLAGS
="$BASECFLAGS -mieee"
4708 case $ac_sys_system in
4709 OpenUNIX
*|UnixWare
*)
4710 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4713 BASECFLAGS
="$BASECFLAGS -ieee -std"
4716 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4722 if test "$Py_DEBUG" = 'true'; then
4728 if test "$ac_arch_flags"
4730 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4733 # disable check for icc since it seems to pass, but generates a warning
4736 ac_cv_opt_olimit_ok
=no
4739 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4740 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4741 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 CC
="$CC -OPT:Olimit=0"
4746 if test "$cross_compiling" = yes; then
4747 ac_cv_opt_olimit_ok
=no
4749 cat >conftest.
$ac_ext <<_ACEOF
4752 cat confdefs.h
>>conftest.
$ac_ext
4753 cat >>conftest.
$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 int main() { return 0; }
4757 rm -f conftest
$ac_exeext
4758 if { (ac_try
="$ac_link"
4760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_link") 2>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4768 { (case "(($ac_try" in
4769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4770 *) ac_try_echo
=$ac_try;;
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773 (eval "$ac_try") 2>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_cv_opt_olimit_ok
=yes
4779 echo "$as_me: program exited with status $ac_status" >&5
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.
$ac_ext >&5
4784 ac_cv_opt_olimit_ok
=no
4786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4793 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4794 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4795 if test $ac_cv_opt_olimit_ok = yes; then
4796 case $ac_sys_system in
4797 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4798 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4803 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4807 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4808 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4809 if test "${ac_cv_olimit_ok+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 CC
="$CC -Olimit 1500"
4814 if test "$cross_compiling" = yes; then
4817 cat >conftest.
$ac_ext <<_ACEOF
4820 cat confdefs.h
>>conftest.
$ac_ext
4821 cat >>conftest.
$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 int main() { return 0; }
4825 rm -f conftest
$ac_exeext
4826 if { (ac_try
="$ac_link"
4828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4836 { (case "(($ac_try" in
4837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4838 *) ac_try_echo
=$ac_try;;
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_try") 2>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4847 echo "$as_me: program exited with status $ac_status" >&5
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.
$ac_ext >&5
4854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4861 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4862 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4863 if test $ac_cv_olimit_ok = yes; then
4864 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4868 # Check whether GCC supports PyArg_ParseTuple format
4869 if test "$GCC" = "yes"
4871 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4872 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4874 CFLAGS
="$CFLAGS -Werror"
4875 cat >conftest.
$ac_ext <<_ACEOF
4878 cat confdefs.h
>>conftest.
$ac_ext
4879 cat >>conftest.
$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4882 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4892 rm -f conftest.
$ac_objext
4893 if { (ac_try
="$ac_compile"
4895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4910 cat >>confdefs.h <<\_ACEOF
4911 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4914 { echo "$as_me:$LINENO: result: yes" >&5
4915 echo "${ECHO_T}yes" >&6; }
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 # On some compilers, pthreads are available without further options
4930 # (e.g. MacOS X). On some of these systems, the compiler will not
4931 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4932 # So we have to see first whether pthreads are available without
4933 # options before we can check whether -Kpthread improves anything.
4934 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4935 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4936 if test "${ac_cv_pthread_is_default+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 if test "$cross_compiling" = yes; then
4940 ac_cv_pthread_is_default=no
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 #include <pthread.h>
4951 void* routine(void* p){return NULL;}
4955 if(pthread_create(&p,NULL,routine,NULL)!=0)
4957 (void)pthread_detach(p);
4962 rm -f conftest$ac_exeext
4963 if { (ac_try="$ac_link"
4965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4966 *) ac_try_echo
=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_link") 2>&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4973 { (case "(($ac_try" in
4974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_try") 2>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4983 ac_cv_pthread_is_default=yes
4988 echo "$as_me: program exited with status $ac_status" >&5
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_cv_pthread_is_default=no
4995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5002 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5003 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5006 if test $ac_cv_pthread_is_default = yes
5010 # -Kpthread, if available, provides the right #defines
5011 # and linker options to make pthread_create available
5012 # Some compilers won't report that they do not support -Kpthread,
5013 # so we need to run a program to see whether it really made the
5014 # function available.
5015 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5016 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5017 if test "${ac_cv_kpthread+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if test "$cross_compiling" = yes; then
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 #include <pthread.h>
5034 void* routine(void* p){return NULL;}
5038 if(pthread_create(&p,NULL,routine,NULL)!=0)
5040 (void)pthread_detach(p);
5045 rm -f conftest$ac_exeext
5046 if { (ac_try="$ac_link"
5048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5049 *) ac_try_echo
=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_link") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5056 { (case "(($ac_try" in
5057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_try") 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5082 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5085 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5087 # -Kthread, if available, provides the right #defines
5088 # and linker options to make pthread_create available
5089 # Some compilers won't report that they do not support -Kthread,
5090 # so we need to run a program to see whether it really made the
5091 # function available.
5092 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5093 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5094 if test "${ac_cv_kthread+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 if test "$cross_compiling" = yes; then
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5109 #include <pthread.h>
5111 void* routine(void* p){return NULL;}
5115 if(pthread_create(&p,NULL,routine,NULL)!=0)
5117 (void)pthread_detach(p);
5122 rm -f conftest$ac_exeext
5123 if { (ac_try="$ac_link"
5125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5126 *) ac_try_echo
=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_link") 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5133 { (case "(($ac_try" in
5134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_try") 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5144 echo "$as_me: program exited with status $ac_status" >&5
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5158 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5159 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5162 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5164 # -pthread, if available, provides the right #defines
5165 # and linker options to make pthread_create available
5166 # Some compilers won't report that they do not support -pthread,
5167 # so we need to run a program to see whether it really made the
5168 # function available.
5169 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5170 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5171 if test "${ac_cv_thread+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test "$cross_compiling" = yes; then
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5186 #include <pthread.h>
5188 void* routine(void* p){return NULL;}
5192 if(pthread_create(&p,NULL,routine,NULL)!=0)
5194 (void)pthread_detach(p);
5199 rm -f conftest$ac_exeext
5200 if { (ac_try="$ac_link"
5202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5203 *) ac_try_echo
=$ac_try;;
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_link") 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5210 { (case "(($ac_try" in
5211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_try") 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5221 echo "$as_me: program exited with status $ac_status" >&5
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5235 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5236 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5239 # If we have set a CC compiler flag for thread support then
5240 # check if it works for CXX, too.
5244 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5245 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5248 if test "$ac_cv_kpthread" = "yes"
5250 CXX="$CXX -Kpthread"
5251 ac_cv_cxx_thread=yes
5252 elif test "$ac_cv_kthread" = "yes"
5255 ac_cv_cxx_thread=yes
5256 elif test "$ac_cv_pthread" = "yes"
5259 ac_cv_cxx_thread=yes
5262 if test $ac_cv_cxx_thread = yes
5264 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5265 $CXX -c conftest.$ac_ext 2>&5
5266 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5267 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5269 ac_cv_cxx_thread=yes
5275 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5276 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5281 # checks for header files
5282 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5284 if test "${ac_cv_header_stdc+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5310 *) ac_try_echo
=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compile") 2>conftest.er1
5315 grep -v '^ *+' conftest.er1
>conftest.err
5317 cat conftest.err
>&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest.
$ac_objext; then
5323 ac_cv_header_stdc
=yes
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.
$ac_ext >&5
5328 ac_cv_header_stdc
=no
5331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5333 if test $ac_cv_header_stdc = yes; then
5334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5335 cat >conftest.
$ac_ext <<_ACEOF
5338 cat confdefs.h
>>conftest.
$ac_ext
5339 cat >>conftest.
$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5345 $EGREP "memchr" >/dev
/null
2>&1; then
5348 ac_cv_header_stdc
=no
5354 if test $ac_cv_header_stdc = yes; then
5355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5356 cat >conftest.
$ac_ext <<_ACEOF
5359 cat confdefs.h
>>conftest.
$ac_ext
5360 cat >>conftest.
$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "free" >/dev
/null
2>&1; then
5369 ac_cv_header_stdc
=no
5375 if test $ac_cv_header_stdc = yes; then
5376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5377 if test "$cross_compiling" = yes; then
5380 cat >conftest.
$ac_ext <<_ACEOF
5383 cat confdefs.h
>>conftest.
$ac_ext
5384 cat >>conftest.
$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5388 #if ((' ' & 0x0FF) == 0x020)
5389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5392 # define ISLOWER(c) \
5393 (('a' <= (c) && (c) <= 'i') \
5394 || ('j' <= (c) && (c) <= 'r') \
5395 || ('s' <= (c) && (c) <= 'z'))
5396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5404 for (i = 0; i < 256; i++)
5405 if (XOR (islower (i), ISLOWER (i))
5406 || toupper (i) != TOUPPER (i))
5411 rm -f conftest
$ac_exeext
5412 if { (ac_try
="$ac_link"
5414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_link") 2>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5422 { (case "(($ac_try" in
5423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5424 *) ac_try_echo
=$ac_try;;
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_try") 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5433 echo "$as_me: program exited with status $ac_status" >&5
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.
$ac_ext >&5
5438 ac_cv_header_stdc
=no
5440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5446 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5447 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5448 if test $ac_cv_header_stdc = yes; then
5450 cat >>confdefs.h
<<\_ACEOF
5451 #define STDC_HEADERS 1
5456 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5466 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5467 inttypes.h stdint.h unistd.h
5469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 cat >conftest.
$ac_ext <<_ACEOF
5478 cat confdefs.h
>>conftest.
$ac_ext
5479 cat >>conftest.
$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5483 #include <$ac_header>
5485 rm -f conftest.
$ac_objext
5486 if { (ac_try
="$ac_compile"
5488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 eval "$as_ac_Header=yes"
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 eval "$as_ac_Header=no"
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 ac_res=`eval echo '${'$as_ac_Header'}'`
5513 { echo "$as_me:$LINENO: result: $ac_res" >&5
5514 echo "${ECHO_T}$ac_res" >&6; }
5515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5516 cat >>confdefs.h <<_ACEOF
5517 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5579 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5581 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5582 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5584 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5585 sys/lock.h sys/mkdev.h sys/modem.h \
5586 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5587 sys/termio.h sys/time.h \
5588 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5589 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5590 bluetooth/bluetooth.h linux/tipc.h
5592 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 ac_res=`eval echo '${'$as_ac_Header'}'`
5600 { echo "$as_me:$LINENO: result: $ac_res" >&5
5601 echo "${ECHO_T}$ac_res" >&6; }
5603 # Is the header compilable?
5604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 $ac_includes_default
5613 #include <$ac_header>
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5619 *) ac_try_echo
=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5624 grep -v '^ *+' conftest.er1
>conftest.err
5626 cat conftest.err
>&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.
$ac_objext; then
5632 ac_header_compiler
=yes
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.
$ac_ext >&5
5637 ac_header_compiler
=no
5640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5642 echo "${ECHO_T}$ac_header_compiler" >&6; }
5644 # Is the header present?
5645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5647 cat >conftest.
$ac_ext <<_ACEOF
5650 cat confdefs.h
>>conftest.
$ac_ext
5651 cat >>conftest.
$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <$ac_header>
5655 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null && {
5668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5671 ac_header_preproc=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_header_preproc=no
5679 rm -f conftest.err conftest.$ac_ext
5680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681 echo "${ECHO_T}$ac_header_preproc" >&6; }
5683 # So? What about this header?
5684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5690 ac_header_preproc=yes
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5706 ## ------------------------------------------------ ##
5707 ## Report this to http://www.python.org/python-bugs ##
5708 ## ------------------------------------------------ ##
5710 ) | sed "s/^/$as_me: WARNING: /" >&2
5713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 eval "$as_ac_Header=\$ac_header_preproc"
5720 ac_res=`eval echo '${'$as_ac_Header'}'`
5721 { echo "$as_me:$LINENO: result: $ac_res" >&5
5722 echo "${ECHO_T}$ac_res" >&6; }
5725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5726 cat >>confdefs.h <<_ACEOF
5727 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5740 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5741 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5742 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5743 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5765 rm -f conftest.$ac_objext
5766 if { (ac_try="$ac_compile"
5768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5769 *) ac_try_echo
=$ac_try;;
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_compile") 2>conftest.er1
5774 grep -v '^ *+' conftest.er1
>conftest.err
5776 cat conftest.err
>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && {
5779 test -z "$ac_c_werror_flag" ||
5780 test ! -s conftest.err
5781 } && test -s conftest.
$ac_objext; then
5782 eval "$as_ac_Header=yes"
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.
$ac_ext >&5
5787 eval "$as_ac_Header=no"
5790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5792 ac_res
=`eval echo '${'$as_ac_Header'}'`
5793 { echo "$as_me:$LINENO: result: $ac_res" >&5
5794 echo "${ECHO_T}$ac_res" >&6; }
5795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5796 cat >>confdefs.h
<<_ACEOF
5797 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5800 ac_header_dirent
=$ac_hdr; break
5804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5805 if test $ac_header_dirent = dirent.h
; then
5806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5808 if test "${ac_cv_search_opendir+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_func_search_save_LIBS
=$LIBS
5812 cat >conftest.
$ac_ext <<_ACEOF
5815 cat confdefs.h
>>conftest.
$ac_ext
5816 cat >>conftest.
$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply. */
5834 for ac_lib
in '' dir
; do
5835 if test -z "$ac_lib"; then
5836 ac_res
="none required"
5839 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5841 rm -f conftest.
$ac_objext conftest
$ac_exeext
5842 if { (ac_try
="$ac_link"
5844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_link") 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } && {
5855 test -z "$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5857 } && test -s conftest$ac_exeext &&
5858 $as_test_x conftest$ac_exeext; then
5859 ac_cv_search_opendir=$ac_res
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5869 if test "${ac_cv_search_opendir+set}" = set; then
5873 if test "${ac_cv_search_opendir+set}" = set; then
5876 ac_cv_search_opendir=no
5879 LIBS=$ac_func_search_save_LIBS
5881 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5882 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5883 ac_res=$ac_cv_search_opendir
5884 if test "$ac_res" != no; then
5885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5890 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5891 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5892 if test "${ac_cv_search_opendir+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 ac_func_search_save_LIBS=$LIBS
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5918 for ac_lib in '' x; do
5919 if test -z "$ac_lib"; then
5920 ac_res="none required"
5923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5929 *) ac_try_echo
=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1
>conftest.err
5936 cat conftest.err
>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest
$ac_exeext &&
5942 $as_test_x conftest
$ac_exeext; then
5943 ac_cv_search_opendir
=$ac_res
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5951 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5953 if test "${ac_cv_search_opendir+set}" = set; then
5957 if test "${ac_cv_search_opendir+set}" = set; then
5960 ac_cv_search_opendir
=no
5963 LIBS
=$ac_func_search_save_LIBS
5965 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5966 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5967 ac_res
=$ac_cv_search_opendir
5968 if test "$ac_res" != no
; then
5969 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5975 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5976 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5977 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 cat >conftest.
$ac_ext <<_ACEOF
5983 cat confdefs.h
>>conftest.
$ac_ext
5984 cat >>conftest.
$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <sys/types.h>
5990 return makedev(0, 0);
5995 rm -f conftest.
$ac_objext conftest
$ac_exeext
5996 if { (ac_try
="$ac_link"
5998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_link") 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest$ac_exeext &&
6012 $as_test_x conftest$ac_exeext; then
6013 ac_cv_header_sys_types_h_makedev=yes
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_cv_header_sys_types_h_makedev=no
6021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6022 conftest$ac_exeext conftest.$ac_ext
6025 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6026 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6028 if test $ac_cv_header_sys_types_h_makedev = no; then
6029 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6030 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6031 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6032 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6036 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6038 # Is the header compilable?
6039 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6040 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 #include <sys/mkdev.h>
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6054 *) ac_try_echo
=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1
>conftest.err
6061 cat conftest.err
>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.
$ac_objext; then
6067 ac_header_compiler
=yes
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.
$ac_ext >&5
6072 ac_header_compiler
=no
6075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6077 echo "${ECHO_T}$ac_header_compiler" >&6; }
6079 # Is the header present?
6080 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6081 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6082 cat >conftest.
$ac_ext <<_ACEOF
6085 cat confdefs.h
>>conftest.
$ac_ext
6086 cat >>conftest.
$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <sys/mkdev.h>
6090 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev/null && {
6103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6106 ac_header_preproc=yes
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_header_preproc=no
6114 rm -f conftest.err conftest.$ac_ext
6115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6116 echo "${ECHO_T}$ac_header_preproc" >&6; }
6118 # So? What about this header?
6119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6121 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6122 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6124 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6125 ac_header_preproc=yes
6128 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6129 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6131 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6141 ## ------------------------------------------------ ##
6142 ## Report this to http://www.python.org/python-bugs ##
6143 ## ------------------------------------------------ ##
6145 ) | sed "s/^/$as_me: WARNING: /" >&2
6148 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6156 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6159 if test $ac_cv_header_sys_mkdev_h = yes; then
6161 cat >>confdefs.h <<\_ACEOF
6162 #define MAJOR_IN_MKDEV 1
6169 if test $ac_cv_header_sys_mkdev_h = no; then
6170 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6171 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6172 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6173 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6177 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6179 # Is the header compilable?
6180 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6181 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 $ac_includes_default
6189 #include <sys/sysmacros.h>
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6195 *) ac_try_echo
=$ac_try;;
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6200 grep -v '^ *+' conftest.er1
>conftest.err
6202 cat conftest.err
>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.
$ac_objext; then
6208 ac_header_compiler
=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.
$ac_ext >&5
6213 ac_header_compiler
=no
6216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6218 echo "${ECHO_T}$ac_header_compiler" >&6; }
6220 # Is the header present?
6221 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6222 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6223 cat >conftest.
$ac_ext <<_ACEOF
6226 cat confdefs.h
>>conftest.
$ac_ext
6227 cat >>conftest.
$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <sys/sysmacros.h>
6231 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } >/dev/null && {
6244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6247 ac_header_preproc=yes
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 ac_header_preproc=no
6255 rm -f conftest.err conftest.$ac_ext
6256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6257 echo "${ECHO_T}$ac_header_preproc" >&6; }
6259 # So? What about this header?
6260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6262 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6263 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6265 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6266 ac_header_preproc=yes
6269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6270 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6272 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6282 ## ------------------------------------------------ ##
6283 ## Report this to http://www.python.org/python-bugs ##
6284 ## ------------------------------------------------ ##
6286 ) | sed "s/^/$as_me: WARNING: /" >&2
6289 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6290 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6291 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6296 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6297 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6300 if test $ac_cv_header_sys_sysmacros_h = yes; then
6302 cat >>confdefs.h <<\_ACEOF
6303 #define MAJOR_IN_SYSMACROS 1
6313 # On Solaris, term.h requires curses.h
6315 for ac_header in term.h
6317 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6330 #ifdef HAVE_CURSES_H
6335 #include <$ac_header>
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6341 *) ac_try_echo
=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compile") 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.
$ac_objext; then
6354 eval "$as_ac_Header=yes"
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.
$ac_ext >&5
6359 eval "$as_ac_Header=no"
6362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6364 ac_res
=`eval echo '${'$as_ac_Header'}'`
6365 { echo "$as_me:$LINENO: result: $ac_res" >&5
6366 echo "${ECHO_T}$ac_res" >&6; }
6367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6368 cat >>confdefs.h
<<_ACEOF
6369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6377 # On Linux, netlink.h requires asm/types.h
6379 for ac_header
in linux
/netlink.h
6381 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6384 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 cat >conftest.
$ac_ext <<_ACEOF
6390 cat confdefs.h
>>conftest.
$ac_ext
6391 cat >>conftest.
$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6394 #ifdef HAVE_ASM_TYPES_H
6395 #include <asm/types.h>
6397 #ifdef HAVE_SYS_SOCKET_H
6398 #include <sys/socket.h>
6402 #include <$ac_header>
6404 rm -f conftest.
$ac_objext
6405 if { (ac_try
="$ac_compile"
6407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 eval "$as_ac_Header=yes"
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 eval "$as_ac_Header=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_res=`eval echo '${'$as_ac_Header'}'`
6432 { echo "$as_me:$LINENO: result: $ac_res" >&5
6433 echo "${ECHO_T}$ac_res" >&6; }
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6444 # checks for typedefs
6446 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6447 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458 $EGREP "clock_t" >/dev/null 2>&1; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define clock_t long
6471 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6472 echo "${ECHO_T}$was_it_defined" >&6; }
6474 # Check whether using makedev requires defining _OSF_SOURCE
6475 { echo "$as_me:$LINENO: checking for makedev" >&5
6476 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <sys/types.h>
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (ac_try="$ac_link"
6495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6496 *) ac_try_echo
=$ac_try;;
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_link") 2>conftest.er1
6501 grep -v '^ *+' conftest.er1
>conftest.err
6503 cat conftest.err
>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest
$ac_exeext &&
6509 $as_test_x conftest
$ac_exeext; then
6510 ac_cv_has_makedev
=yes
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.
$ac_ext >&5
6515 ac_cv_has_makedev
=no
6518 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6519 conftest
$ac_exeext conftest.
$ac_ext
6520 if test "$ac_cv_has_makedev" = "no"; then
6521 # we didn't link, try if _OSF_SOURCE will allow us to link
6522 cat >conftest.
$ac_ext <<_ACEOF
6525 cat confdefs.h
>>conftest.
$ac_ext
6526 cat >>conftest.
$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6529 #define _OSF_SOURCE 1
6530 #include <sys/types.h>
6540 rm -f conftest.
$ac_objext conftest
$ac_exeext
6541 if { (ac_try
="$ac_link"
6543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_link") 2>conftest.er1
6549 grep -v '^ *+' conftest.er1 >conftest.err
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest$ac_exeext &&
6557 $as_test_x conftest$ac_exeext; then
6558 ac_cv_has_makedev=yes
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cv_has_makedev=no
6566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6567 conftest$ac_exeext conftest.$ac_ext
6568 if test "$ac_cv_has_makedev" = "yes"; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define _OSF_SOURCE 1
6576 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6577 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6578 if test "$ac_cv_has_makedev" = "yes"; then
6580 cat >>confdefs.h <<\_ACEOF
6581 #define HAVE_MAKEDEV 1
6586 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6587 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6588 # defined, but the compiler does not support pragma redefine_extname,
6589 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6590 # structures (such as rlimit64) without declaring them. As a
6591 # work-around, disable LFS on such configurations
6594 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6595 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6596 cat >conftest.$ac_ext <<_ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6603 #define _LARGEFILE_SOURCE 1
6604 #define _FILE_OFFSET_BITS 64
6605 #include <sys/resource.h>
6615 rm -f conftest.$ac_objext
6616 if { (ac_try="$ac_compile"
6618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6619 *) ac_try_echo
=$ac_try;;
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_compile") 2>conftest.er1
6624 grep -v '^ *+' conftest.er1
>conftest.err
6626 cat conftest.err
>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.
$ac_objext; then
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.
$ac_ext >&5
6640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6641 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6642 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6643 if test "$sol_lfs_bug" = "yes"; then
6647 if test "$use_lfs" = "yes"; then
6648 # Two defines needed to enable largefile support on various platforms
6649 # These may affect some typedefs
6651 cat >>confdefs.h
<<\_ACEOF
6652 #define _LARGEFILE_SOURCE 1
6656 cat >>confdefs.h
<<\_ACEOF
6657 #define _FILE_OFFSET_BITS 64
6662 # Add some code to confdefs.h so that the test for off_t works on SCO
6663 cat >> confdefs.h
<<\EOF
6669 # Type availability checks
6670 { echo "$as_me:$LINENO: checking for mode_t" >&5
6671 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6672 if test "${ac_cv_type_mode_t+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.
$ac_ext <<_ACEOF
6678 cat confdefs.h
>>conftest.
$ac_ext
6679 cat >>conftest.
$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6682 typedef mode_t ac__type_new_;
6686 if ((ac__type_new_ *) 0)
6688 if (sizeof (ac__type_new_))
6694 rm -f conftest.
$ac_objext
6695 if { (ac_try
="$ac_compile"
6697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6703 grep -v '^ *+' conftest.er1 >conftest.err
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && {
6708 test -z "$ac_c_werror_flag" ||
6709 test ! -s conftest.err
6710 } && test -s conftest.$ac_objext; then
6711 ac_cv_type_mode_t=yes
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_cv_type_mode_t=no
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6722 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6723 if test $ac_cv_type_mode_t = yes; then
6727 cat >>confdefs.h <<_ACEOF
6733 { echo "$as_me:$LINENO: checking for off_t" >&5
6734 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6735 if test "${ac_cv_type_off_t+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 typedef off_t ac__type_new_;
6749 if ((ac__type_new_ *) 0)
6751 if (sizeof (ac__type_new_))
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6761 *) ac_try_echo
=$ac_try;;
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6766 grep -v '^ *+' conftest.er1
>conftest.err
6768 cat conftest.err
>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.
$ac_objext; then
6774 ac_cv_type_off_t
=yes
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.
$ac_ext >&5
6782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6784 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6785 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6786 if test $ac_cv_type_off_t = yes; then
6790 cat >>confdefs.h
<<_ACEOF
6791 #define off_t long int
6796 { echo "$as_me:$LINENO: checking for pid_t" >&5
6797 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6798 if test "${ac_cv_type_pid_t+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 cat >conftest.
$ac_ext <<_ACEOF
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 typedef pid_t ac__type_new_;
6812 if ((ac__type_new_ *) 0)
6814 if (sizeof (ac__type_new_))
6820 rm -f conftest.
$ac_objext
6821 if { (ac_try
="$ac_compile"
6823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827 (eval "$ac_compile") 2>conftest.er1
6829 grep -v '^ *+' conftest.er1 >conftest.err
6831 cat conftest.err >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } && {
6834 test -z "$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 } && test -s conftest.$ac_objext; then
6837 ac_cv_type_pid_t=yes
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6848 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6849 if test $ac_cv_type_pid_t = yes; then
6853 cat >>confdefs.h <<_ACEOF
6859 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6860 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_signal+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <sys/types.h>
6876 return *(signal (0, 0)) (0) == 1;
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6885 *) ac_try_echo
=$ac_try;;
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6890 grep -v '^ *+' conftest.er1
>conftest.err
6892 cat conftest.err
>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.
$ac_objext; then
6898 ac_cv_type_signal
=int
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.
$ac_ext >&5
6903 ac_cv_type_signal
=void
6906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6909 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6911 cat >>confdefs.h
<<_ACEOF
6912 #define RETSIGTYPE $ac_cv_type_signal
6916 { echo "$as_me:$LINENO: checking for size_t" >&5
6917 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6918 if test "${ac_cv_type_size_t+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.
$ac_ext <<_ACEOF
6924 cat confdefs.h
>>conftest.
$ac_ext
6925 cat >>conftest.
$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6928 typedef size_t ac__type_new_;
6932 if ((ac__type_new_ *) 0)
6934 if (sizeof (ac__type_new_))
6940 rm -f conftest.
$ac_objext
6941 if { (ac_try
="$ac_compile"
6943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
6957 ac_cv_type_size_t=yes
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_cv_type_size_t=no
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6968 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6969 if test $ac_cv_type_size_t = yes; then
6973 cat >>confdefs.h <<_ACEOF
6974 #define size_t unsigned int
6979 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6980 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6981 if test "${ac_cv_type_uid_t+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 #include <sys/types.h>
6993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6994 $EGREP "uid_t" >/dev/null 2>&1; then
6995 ac_cv_type_uid_t=yes
7002 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7003 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7004 if test $ac_cv_type_uid_t = no; then
7006 cat >>confdefs.h <<\_ACEOF
7011 cat >>confdefs.h <<\_ACEOF
7017 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7018 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7019 if test "${ac_cv_type_ssize_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 $ac_includes_default
7029 typedef ssize_t ac__type_new_;
7033 if ((ac__type_new_ *) 0)
7035 if (sizeof (ac__type_new_))
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7045 *) ac_try_echo
=$ac_try;;
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1
>conftest.err
7052 cat conftest.err
>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.
$ac_objext; then
7058 ac_cv_type_ssize_t
=yes
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.
$ac_ext >&5
7063 ac_cv_type_ssize_t
=no
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7069 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7070 if test $ac_cv_type_ssize_t = yes; then
7072 cat >>confdefs.h
<<\_ACEOF
7073 #define HAVE_SSIZE_T 1
7079 # Sizes of various common basic types
7080 # ANSI C requires sizeof(char) == 1, so no need to check it
7081 { echo "$as_me:$LINENO: checking for int" >&5
7082 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7083 if test "${ac_cv_type_int+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 cat >conftest.
$ac_ext <<_ACEOF
7089 cat confdefs.h
>>conftest.
$ac_ext
7090 cat >>conftest.
$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7093 typedef int ac__type_new_;
7097 if ((ac__type_new_ *) 0)
7099 if (sizeof (ac__type_new_))
7105 rm -f conftest.
$ac_objext
7106 if { (ac_try
="$ac_compile"
7108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112 (eval "$ac_compile") 2>conftest.er1
7114 grep -v '^ *+' conftest.er1 >conftest.err
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && {
7119 test -z "$ac_c_werror_flag" ||
7120 test ! -s conftest.err
7121 } && test -s conftest.$ac_objext; then
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7133 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7135 # The cast to long int works around a bug in the HP C Compiler
7136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7137 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7138 # This bug is HP SR number 8606223364.
7139 { echo "$as_me:$LINENO: checking size of int" >&5
7140 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7141 if test "${ac_cv_sizeof_int+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 if test "$cross_compiling" = yes; then
7145 # Depending upon the size, compute the lo and hi bounds.
7146 cat >conftest.$ac_ext <<_ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 $ac_includes_default
7153 typedef int ac__type_sizeof_;
7157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7173 grep -v '^
*+' conftest.er1 >conftest.err
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7183 cat >conftest.$ac_ext <<_ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 $ac_includes_default
7190 typedef int ac__type_sizeof_;
7194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7210 grep -v '^
*+' conftest.er1 >conftest.err
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
7218 ac_hi=$ac_mid; break
7220 echo "$as_me: failed program was:" >&5
7221 sed 's
/^
/|
/' conftest.$ac_ext >&5
7223 ac_lo=`expr $ac_mid + 1`
7224 if test $ac_lo -le $ac_mid; then
7228 ac_mid=`expr 2 '*' $ac_mid + 1`
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 echo "$as_me: failed program was:" >&5
7235 sed 's
/^
/|
/' conftest.$ac_ext >&5
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7244 typedef int ac__type_sizeof_;
7248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7255 rm -f conftest.$ac_objext
7256 if { (ac_try="$ac_compile"
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262 (eval "$ac_compile") 2>conftest.er1
7264 grep -v '^
*+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest.$ac_objext; then
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7281 typedef int ac__type_sizeof_;
7285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7301 grep -v '^
*+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 ac_lo=$ac_mid; break
7311 echo "$as_me: failed program was:" >&5
7312 sed 's
/^
/|
/' conftest.$ac_ext >&5
7314 ac_hi=`expr '(' $ac_mid ')' - 1`
7315 if test $ac_mid -le $ac_hi; then
7319 ac_mid=`expr 2 '*' $ac_mid`
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 echo "$as_me: failed program was:" >&5
7326 sed 's
/^
/|
/' conftest.$ac_ext >&5
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 # Binary search between lo and hi bounds.
7336 while test "x$ac_lo" != "x$ac_hi"; do
7337 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7345 typedef int ac__type_sizeof_;
7349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7365 grep -v '^
*+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7375 echo "$as_me: failed program was:" >&5
7376 sed 's
/^
/|
/' conftest.$ac_ext >&5
7378 ac_lo=`expr '(' $ac_mid ')' + 1`
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 ?*) ac_cv_sizeof_int=$ac_lo;;
7385 '') if test "$ac_cv_type_int" = yes; then
7386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7387 See \`config.log' for more details.
" >&5
7388 echo "$as_me: error
: cannot compute sizeof
(int
)
7389 See \
`config.log' for more details." >&2;}
7390 { (exit 77); exit 77; }; }
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 typedef int ac__type_sizeof_;
7404 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7405 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7412 FILE *f = fopen ("conftest.val", "w");
7415 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7417 long int i = longval ();
7418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7420 fprintf (f, "%ld\n", i);
7424 unsigned long int i = ulongval ();
7425 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7427 fprintf (f, "%lu\n", i);
7429 return ferror (f) || fclose (f) != 0;
7435 rm -f conftest$ac_exeext
7436 if { (ac_try="$ac_link"
7438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7439 *) ac_try_echo
=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_link") 2>&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7446 { (case "(($ac_try" in
7447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_try") 2>&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_cv_sizeof_int=`cat conftest.val
`
7457 echo "$as_me: program exited with status $ac_status" >&5
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7462 if test "$ac_cv_type_int" = yes; then
7463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7464 See \`config.log
' for more details." >&5
7465 echo "$as_me: error: cannot compute sizeof (int)
7466 See \`config.log' for more details.
" >&2;}
7467 { (exit 77); exit 77; }; }
7472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7476 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7477 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7481 cat >>confdefs.h <<_ACEOF
7482 #define SIZEOF_INT $ac_cv_sizeof_int
7486 { echo "$as_me:$LINENO: checking
for long
" >&5
7487 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7488 if test "${ac_cv_type_long+set}" = set; then
7489 echo $ECHO_N "(cached
) $ECHO_C" >&6
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 typedef long ac__type_new_;
7502 if ((ac__type_new_ *) 0)
7504 if (sizeof (ac__type_new_))
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7519 grep -v '^ *+' conftest.er1 >conftest.err
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7529 echo "$as_me: failed program was
:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7538 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7540 # The cast to long int works around a bug in the HP C Compiler
7541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7543 # This bug is HP SR number 8606223364.
7544 { echo "$as_me:$LINENO: checking size of long
" >&5
7545 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7546 if test "${ac_cv_sizeof_long+set}" = set; then
7547 echo $ECHO_N "(cached
) $ECHO_C" >&6
7549 if test "$cross_compiling" = yes; then
7550 # Depending upon the size, compute the lo and hi bounds.
7551 cat >conftest.$ac_ext <<_ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 $ac_includes_default
7558 typedef long ac__type_sizeof_;
7562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7578 grep -v '^ *+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7595 typedef long ac__type_sizeof_;
7599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_compile") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest.$ac_objext; then
7623 ac_hi=$ac_mid; break
7625 echo "$as_me: failed program was
:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_lo=`expr $ac_mid + 1`
7629 if test $ac_lo -le $ac_mid; then
7633 ac_mid=`expr 2 '*' $ac_mid + 1`
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639 echo "$as_me: failed program was
:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 cat >conftest.$ac_ext <<_ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 $ac_includes_default
7649 typedef long ac__type_sizeof_;
7653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 $ac_includes_default
7686 typedef long ac__type_sizeof_;
7690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7697 rm -f conftest.$ac_objext
7698 if { (ac_try="$ac_compile"
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_compile") 2>conftest.er1
7706 grep -v '^ *+' conftest.er1 >conftest.err
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest.$ac_objext; then
7714 ac_lo=$ac_mid; break
7716 echo "$as_me: failed program was
:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_hi=`expr '(' $ac_mid ')' - 1`
7720 if test $ac_mid -le $ac_hi; then
7724 ac_mid=`expr 2 '*' $ac_mid`
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 echo "$as_me: failed program was
:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 # Binary search between lo and hi bounds.
7741 while test "x
$ac_lo" != "x
$ac_hi"; do
7742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7743 cat >conftest.$ac_ext <<_ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 $ac_includes_default
7750 typedef long ac__type_sizeof_;
7754 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7761 rm -f conftest.$ac_objext
7762 if { (ac_try="$ac_compile"
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7780 echo "$as_me: failed program was
:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_lo=`expr '(' $ac_mid ')' + 1`
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 ?*) ac_cv_sizeof_long=$ac_lo;;
7790 '') if test "$ac_cv_type_long" = yes; then
7791 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7792 See \
`config.log' for more details." >&5
7793 echo "$as_me: error: cannot compute sizeof (long)
7794 See \`config.log
' for more details." >&2;}
7795 { (exit 77); exit 77; }; }
7801 cat >conftest.$ac_ext <<_ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 $ac_includes_default
7808 typedef long ac__type_sizeof_;
7809 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7810 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7817 FILE *f = fopen ("conftest.val", "w");
7820 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7822 long int i = longval ();
7823 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7825 fprintf (f, "%ld\n", i);
7829 unsigned long int i = ulongval ();
7830 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7832 fprintf (f, "%lu\n", i);
7834 return ferror (f) || fclose (f) != 0;
7840 rm -f conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_sizeof_long=`cat conftest.val`
7862 echo "$as_me: program exited with status $ac_status" >&5
7863 echo "$as_me: failed program was:" >&5
7864 sed 's
/^
/|
/' conftest.$ac_ext >&5
7867 if test "$ac_cv_type_long" = yes; then
7868 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7869 See \`config.log' for more details.
" >&5
7870 echo "$as_me: error
: cannot compute sizeof
(long
)
7871 See \
`config.log' for more details." >&2;}
7872 { (exit 77); exit 77; }; }
7877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7881 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7882 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7886 cat >>confdefs.h <<_ACEOF
7887 #define SIZEOF_LONG $ac_cv_sizeof_long
7891 { echo "$as_me:$LINENO: checking for void *" >&5
7892 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7893 if test "${ac_cv_type_void_p+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 typedef void * ac__type_new_;
7907 if ((ac__type_new_ *) 0)
7909 if (sizeof (ac__type_new_))
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7919 *) ac_try_echo
=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1
>conftest.err
7926 cat conftest.err
>&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.
$ac_objext; then
7932 ac_cv_type_void_p
=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.
$ac_ext >&5
7937 ac_cv_type_void_p
=no
7940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7942 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7943 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7945 # The cast to long int works around a bug in the HP C Compiler
7946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7948 # This bug is HP SR number 8606223364.
7949 { echo "$as_me:$LINENO: checking size of void *" >&5
7950 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7951 if test "${ac_cv_sizeof_void_p+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 if test "$cross_compiling" = yes; then
7955 # Depending upon the size, compute the lo and hi bounds.
7956 cat >conftest.
$ac_ext <<_ACEOF
7959 cat confdefs.h
>>conftest.
$ac_ext
7960 cat >>conftest.
$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 $ac_includes_default
7963 typedef void * ac__type_sizeof_;
7967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7974 rm -f conftest.
$ac_objext
7975 if { (ac_try
="$ac_compile"
7977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8000 typedef void * ac__type_sizeof_;
8004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8011 rm -f conftest.$ac_objext
8012 if { (ac_try="$ac_compile"
8014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8015 *) ac_try_echo
=$ac_try;;
8017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8018 (eval "$ac_compile") 2>conftest.er1
8020 grep -v '^ *+' conftest.er1
>conftest.err
8022 cat conftest.err
>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest.
$ac_objext; then
8028 ac_hi
=$ac_mid; break
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.
$ac_ext >&5
8033 ac_lo
=`expr $ac_mid + 1`
8034 if test $ac_lo -le $ac_mid; then
8038 ac_mid
=`expr 2 '*' $ac_mid + 1`
8041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.
$ac_ext >&5
8047 cat >conftest.
$ac_ext <<_ACEOF
8050 cat confdefs.h
>>conftest.
$ac_ext
8051 cat >>conftest.
$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 $ac_includes_default
8054 typedef void * ac__type_sizeof_;
8058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8065 rm -f conftest.
$ac_objext
8066 if { (ac_try
="$ac_compile"
8068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 $ac_includes_default
8091 typedef void * ac__type_sizeof_;
8095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8106 *) ac_try_echo
=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8111 grep -v '^ *+' conftest.er1
>conftest.err
8113 cat conftest.err
>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest.
$ac_objext; then
8119 ac_lo
=$ac_mid; break
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8124 ac_hi
=`expr '(' $ac_mid ')' - 1`
8125 if test $ac_mid -le $ac_hi; then
8129 ac_mid
=`expr 2 '*' $ac_mid`
8132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.
$ac_ext >&5
8141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 # Binary search between lo and hi bounds.
8146 while test "x$ac_lo" != "x$ac_hi"; do
8147 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8148 cat >conftest.
$ac_ext <<_ACEOF
8151 cat confdefs.h
>>conftest.
$ac_ext
8152 cat >>conftest.
$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 typedef void * ac__type_sizeof_;
8159 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8166 rm -f conftest.
$ac_objext
8167 if { (ac_try
="$ac_compile"
8169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest.$ac_objext; then
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_lo=`expr '(' $ac_mid ')' + 1`
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8195 '') if test "$ac_cv_type_void_p" = yes; then
8196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8197 See \`config.log
' for more details." >&5
8198 echo "$as_me: error: cannot compute sizeof (void *)
8199 See \`config.log' for more details.
" >&2;}
8200 { (exit 77); exit 77; }; }
8202 ac_cv_sizeof_void_p=0
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8213 typedef void * ac__type_sizeof_;
8214 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8215 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8222 FILE *f = fopen ("conftest.val
", "w
");
8225 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8227 long int i = longval ();
8228 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8230 fprintf (f, "%ld
\n", i);
8234 unsigned long int i = ulongval ();
8235 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8237 fprintf (f, "%lu
\n", i);
8239 return ferror (f) || fclose (f) != 0;
8245 rm -f conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>&5
8254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_sizeof_void_p=`cat conftest.val`
8267 echo "$as_me: program exited with status
$ac_status" >&5
8268 echo "$as_me: failed program was
:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8272 if test "$ac_cv_type_void_p" = yes; then
8273 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8274 See \
`config.log' for more details." >&5
8275 echo "$as_me: error: cannot compute sizeof (void *)
8276 See \`config.log
' for more details." >&2;}
8277 { (exit 77); exit 77; }; }
8279 ac_cv_sizeof_void_p=0
8282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8286 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8287 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8291 cat >>confdefs.h <<_ACEOF
8292 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8296 { echo "$as_me:$LINENO: checking for short" >&5
8297 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8298 if test "${ac_cv_type_short+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 $ac_includes_default
8308 typedef short ac__type_new_;
8312 if ((ac__type_new_ *) 0)
8314 if (sizeof (ac__type_new_))
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8329 grep -v '^
*+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.$ac_objext; then
8337 ac_cv_type_short=yes
8339 echo "$as_me: failed program was:" >&5
8340 sed 's
/^
/|
/' conftest.$ac_ext >&5
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8348 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8350 # The cast to long int works around a bug in the HP C Compiler
8351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8353 # This bug is HP SR number 8606223364.
8354 { echo "$as_me:$LINENO: checking size of short" >&5
8355 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8356 if test "${ac_cv_sizeof_short+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 if test "$cross_compiling" = yes; then
8360 # Depending upon the size, compute the lo and hi bounds.
8361 cat >conftest.
$ac_ext <<_ACEOF
8364 cat confdefs.h
>>conftest.
$ac_ext
8365 cat >>conftest.
$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 $ac_includes_default
8368 typedef short ac__type_sizeof_;
8372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8379 rm -f conftest.
$ac_objext
8380 if { (ac_try
="$ac_compile"
8382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 $ac_includes_default
8405 typedef short ac__type_sizeof_;
8409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8416 rm -f conftest.$ac_objext
8417 if { (ac_try="$ac_compile"
8419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8420 *) ac_try_echo
=$ac_try;;
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8425 grep -v '^ *+' conftest.er1
>conftest.err
8427 cat conftest.err
>&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.
$ac_objext; then
8433 ac_hi
=$ac_mid; break
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.
$ac_ext >&5
8438 ac_lo
=`expr $ac_mid + 1`
8439 if test $ac_lo -le $ac_mid; then
8443 ac_mid
=`expr 2 '*' $ac_mid + 1`
8446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8452 cat >conftest.
$ac_ext <<_ACEOF
8455 cat confdefs.h
>>conftest.
$ac_ext
8456 cat >>conftest.
$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 typedef short ac__type_sizeof_;
8463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8470 rm -f conftest.
$ac_objext
8471 if { (ac_try
="$ac_compile"
8473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && {
8484 test -z "$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 typedef short ac__type_sizeof_;
8500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8511 *) ac_try_echo
=$ac_try;;
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1
>conftest.err
8518 cat conftest.err
>&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.
$ac_objext; then
8524 ac_lo
=$ac_mid; break
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.
$ac_ext >&5
8529 ac_hi
=`expr '(' $ac_mid ')' - 1`
8530 if test $ac_mid -le $ac_hi; then
8534 ac_mid
=`expr 2 '*' $ac_mid`
8537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.
$ac_ext >&5
8546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8550 # Binary search between lo and hi bounds.
8551 while test "x$ac_lo" != "x$ac_hi"; do
8552 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8553 cat >conftest.
$ac_ext <<_ACEOF
8556 cat confdefs.h
>>conftest.
$ac_ext
8557 cat >>conftest.
$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 typedef short ac__type_sizeof_;
8564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8571 rm -f conftest.
$ac_objext
8572 if { (ac_try
="$ac_compile"
8574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_lo=`expr '(' $ac_mid ')' + 1`
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 ?*) ac_cv_sizeof_short=$ac_lo;;
8600 '') if test "$ac_cv_type_short" = yes; then
8601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8602 See \`config.log
' for more details." >&5
8603 echo "$as_me: error: cannot compute sizeof (short)
8604 See \`config.log' for more details.
" >&2;}
8605 { (exit 77); exit 77; }; }
8607 ac_cv_sizeof_short=0
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 typedef short ac__type_sizeof_;
8619 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8620 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8627 FILE *f = fopen ("conftest.val
", "w
");
8630 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8632 long int i = longval ();
8633 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8635 fprintf (f, "%ld
\n", i);
8639 unsigned long int i = ulongval ();
8640 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8642 fprintf (f, "%lu
\n", i);
8644 return ferror (f) || fclose (f) != 0;
8650 rm -f conftest$ac_exeext
8651 if { (ac_try="$ac_link"
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_link") 2>&5
8659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8661 { (case "(($ac_try" in
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8666 (eval "$ac_try") 2>&5
8668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_sizeof_short=`cat conftest.val`
8672 echo "$as_me: program exited with status
$ac_status" >&5
8673 echo "$as_me: failed program was
:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8677 if test "$ac_cv_type_short" = yes; then
8678 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8679 See \
`config.log' for more details." >&5
8680 echo "$as_me: error: cannot compute sizeof (short)
8681 See \`config.log
' for more details." >&2;}
8682 { (exit 77); exit 77; }; }
8684 ac_cv_sizeof_short=0
8687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8691 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8692 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8696 cat >>confdefs.h <<_ACEOF
8697 #define SIZEOF_SHORT $ac_cv_sizeof_short
8701 { echo "$as_me:$LINENO: checking for float" >&5
8702 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8703 if test "${ac_cv_type_float+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8713 typedef float ac__type_new_;
8717 if ((ac__type_new_ *) 0)
8719 if (sizeof (ac__type_new_))
8725 rm -f conftest.$ac_objext
8726 if { (ac_try="$ac_compile"
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8734 grep -v '^
*+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 ac_cv_type_float=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's
/^
/|
/' conftest.$ac_ext >&5
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8753 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8755 # The cast to long int works around a bug in the HP C Compiler
8756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8758 # This bug is HP SR number 8606223364.
8759 { echo "$as_me:$LINENO: checking size of float" >&5
8760 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8761 if test "${ac_cv_sizeof_float+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 if test "$cross_compiling" = yes; then
8765 # Depending upon the size, compute the lo and hi bounds.
8766 cat >conftest.
$ac_ext <<_ACEOF
8769 cat confdefs.h
>>conftest.
$ac_ext
8770 cat >>conftest.
$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8773 typedef float ac__type_sizeof_;
8777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8784 rm -f conftest.
$ac_objext
8785 if { (ac_try
="$ac_compile"
8787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
8793 grep -v '^ *+' conftest.er1 >conftest.err
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } && {
8798 test -z "$ac_c_werror_flag" ||
8799 test ! -s conftest.err
8800 } && test -s conftest.$ac_objext; then
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8810 typedef float ac__type_sizeof_;
8814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8825 *) ac_try_echo
=$ac_try;;
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_compile") 2>conftest.er1
8830 grep -v '^ *+' conftest.er1
>conftest.err
8832 cat conftest.err
>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest.
$ac_objext; then
8838 ac_hi
=$ac_mid; break
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.
$ac_ext >&5
8843 ac_lo
=`expr $ac_mid + 1`
8844 if test $ac_lo -le $ac_mid; then
8848 ac_mid
=`expr 2 '*' $ac_mid + 1`
8851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.
$ac_ext >&5
8857 cat >conftest.
$ac_ext <<_ACEOF
8860 cat confdefs.h
>>conftest.
$ac_ext
8861 cat >>conftest.
$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 $ac_includes_default
8864 typedef float ac__type_sizeof_;
8868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8875 rm -f conftest.
$ac_objext
8876 if { (ac_try
="$ac_compile"
8878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 $ac_includes_default
8901 typedef float ac__type_sizeof_;
8905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8916 *) ac_try_echo
=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_compile") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1
>conftest.err
8923 cat conftest.err
>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest.
$ac_objext; then
8929 ac_lo
=$ac_mid; break
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.
$ac_ext >&5
8934 ac_hi
=`expr '(' $ac_mid ')' - 1`
8935 if test $ac_mid -le $ac_hi; then
8939 ac_mid
=`expr 2 '*' $ac_mid`
8942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.
$ac_ext >&5
8951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8955 # Binary search between lo and hi bounds.
8956 while test "x$ac_lo" != "x$ac_hi"; do
8957 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8958 cat >conftest.
$ac_ext <<_ACEOF
8961 cat confdefs.h
>>conftest.
$ac_ext
8962 cat >>conftest.
$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 $ac_includes_default
8965 typedef float ac__type_sizeof_;
8969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8976 rm -f conftest.
$ac_objext
8977 if { (ac_try
="$ac_compile"
8979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_compile") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest.$ac_objext; then
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_lo=`expr '(' $ac_mid ')' + 1`
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 ?*) ac_cv_sizeof_float=$ac_lo;;
9005 '') if test "$ac_cv_type_float" = yes; then
9006 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9007 See \`config.log
' for more details." >&5
9008 echo "$as_me: error: cannot compute sizeof (float)
9009 See \`config.log' for more details.
" >&2;}
9010 { (exit 77); exit 77; }; }
9012 ac_cv_sizeof_float=0
9016 cat >conftest.$ac_ext <<_ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 $ac_includes_default
9023 typedef float ac__type_sizeof_;
9024 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9025 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9032 FILE *f = fopen ("conftest.val
", "w
");
9035 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9037 long int i = longval ();
9038 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9040 fprintf (f, "%ld
\n", i);
9044 unsigned long int i = ulongval ();
9045 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9047 fprintf (f, "%lu
\n", i);
9049 return ferror (f) || fclose (f) != 0;
9055 rm -f conftest$ac_exeext
9056 if { (ac_try="$ac_link"
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_link") 2>&5
9064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9066 { (case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_try") 2>&5
9073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_sizeof_float=`cat conftest.val`
9077 echo "$as_me: program exited with status
$ac_status" >&5
9078 echo "$as_me: failed program was
:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9082 if test "$ac_cv_type_float" = yes; then
9083 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9084 See \
`config.log' for more details." >&5
9085 echo "$as_me: error: cannot compute sizeof (float)
9086 See \`config.log
' for more details." >&2;}
9087 { (exit 77); exit 77; }; }
9089 ac_cv_sizeof_float=0
9092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9096 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9097 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9101 cat >>confdefs.h <<_ACEOF
9102 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9106 { echo "$as_me:$LINENO: checking for double" >&5
9107 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9108 if test "${ac_cv_type_double+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 typedef double ac__type_new_;
9122 if ((ac__type_new_ *) 0)
9124 if (sizeof (ac__type_new_))
9130 rm -f conftest.$ac_objext
9131 if { (ac_try="$ac_compile"
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9139 grep -v '^
*+' conftest.er1 >conftest.err
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 ac_cv_type_double=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's
/^
/|
/' conftest.$ac_ext >&5
9152 ac_cv_type_double=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9158 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9160 # The cast to long int works around a bug in the HP C Compiler
9161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9163 # This bug is HP SR number 8606223364.
9164 { echo "$as_me:$LINENO: checking size of double" >&5
9165 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9166 if test "${ac_cv_sizeof_double+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 if test "$cross_compiling" = yes; then
9170 # Depending upon the size, compute the lo and hi bounds.
9171 cat >conftest.
$ac_ext <<_ACEOF
9174 cat confdefs.h
>>conftest.
$ac_ext
9175 cat >>conftest.
$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 $ac_includes_default
9178 typedef double ac__type_sizeof_;
9182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9189 rm -f conftest.
$ac_objext
9190 if { (ac_try
="$ac_compile"
9192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_compile") 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && {
9203 test -z "$ac_c_werror_flag" ||
9204 test ! -s conftest.err
9205 } && test -s conftest.$ac_objext; then
9208 cat >conftest.$ac_ext <<_ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 $ac_includes_default
9215 typedef double ac__type_sizeof_;
9219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9230 *) ac_try_echo
=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1
>conftest.err
9237 cat conftest.err
>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest.
$ac_objext; then
9243 ac_hi
=$ac_mid; break
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9248 ac_lo
=`expr $ac_mid + 1`
9249 if test $ac_lo -le $ac_mid; then
9253 ac_mid
=`expr 2 '*' $ac_mid + 1`
9256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.
$ac_ext >&5
9262 cat >conftest.
$ac_ext <<_ACEOF
9265 cat confdefs.h
>>conftest.
$ac_ext
9266 cat >>conftest.
$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 $ac_includes_default
9269 typedef double ac__type_sizeof_;
9273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9280 rm -f conftest.
$ac_objext
9281 if { (ac_try
="$ac_compile"
9283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_compile") 2>conftest.er1
9289 grep -v '^ *+' conftest.er1 >conftest.err
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest.$ac_objext; then
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 $ac_includes_default
9306 typedef double ac__type_sizeof_;
9310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9317 rm -f conftest.$ac_objext
9318 if { (ac_try="$ac_compile"
9320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9321 *) ac_try_echo
=$ac_try;;
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_compile") 2>conftest.er1
9326 grep -v '^ *+' conftest.er1
>conftest.err
9328 cat conftest.err
>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && {
9331 test -z "$ac_c_werror_flag" ||
9332 test ! -s conftest.err
9333 } && test -s conftest.
$ac_objext; then
9334 ac_lo
=$ac_mid; break
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.
$ac_ext >&5
9339 ac_hi
=`expr '(' $ac_mid ')' - 1`
9340 if test $ac_mid -le $ac_hi; then
9344 ac_mid
=`expr 2 '*' $ac_mid`
9347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.
$ac_ext >&5
9356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9360 # Binary search between lo and hi bounds.
9361 while test "x$ac_lo" != "x$ac_hi"; do
9362 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9363 cat >conftest.
$ac_ext <<_ACEOF
9366 cat confdefs.h
>>conftest.
$ac_ext
9367 cat >>conftest.
$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 $ac_includes_default
9370 typedef double ac__type_sizeof_;
9374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9381 rm -f conftest.
$ac_objext
9382 if { (ac_try
="$ac_compile"
9384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9390 grep -v '^ *+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_lo=`expr '(' $ac_mid ')' + 1`
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 ?*) ac_cv_sizeof_double=$ac_lo;;
9410 '') if test "$ac_cv_type_double" = yes; then
9411 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9412 See \`config.log
' for more details." >&5
9413 echo "$as_me: error: cannot compute sizeof (double)
9414 See \`config.log' for more details.
" >&2;}
9415 { (exit 77); exit 77; }; }
9417 ac_cv_sizeof_double=0
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 typedef double ac__type_sizeof_;
9429 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9430 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9437 FILE *f = fopen ("conftest.val
", "w
");
9440 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9442 long int i = longval ();
9443 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9445 fprintf (f, "%ld
\n", i);
9449 unsigned long int i = ulongval ();
9450 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9452 fprintf (f, "%lu
\n", i);
9454 return ferror (f) || fclose (f) != 0;
9460 rm -f conftest$ac_exeext
9461 if { (ac_try="$ac_link"
9463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464 *) ac_try_echo=$ac_try;;
9466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9467 (eval "$ac_link") 2>&5
9469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_try") 2>&5
9478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_sizeof_double=`cat conftest.val`
9482 echo "$as_me: program exited with status
$ac_status" >&5
9483 echo "$as_me: failed program was
:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9487 if test "$ac_cv_type_double" = yes; then
9488 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9489 See \
`config.log' for more details." >&5
9490 echo "$as_me: error: cannot compute sizeof (double)
9491 See \`config.log
' for more details." >&2;}
9492 { (exit 77); exit 77; }; }
9494 ac_cv_sizeof_double=0
9497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9501 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9502 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9506 cat >>confdefs.h <<_ACEOF
9507 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9511 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9512 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9513 if test "${ac_cv_type_fpos_t+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 $ac_includes_default
9523 typedef fpos_t ac__type_new_;
9527 if ((ac__type_new_ *) 0)
9529 if (sizeof (ac__type_new_))
9535 rm -f conftest.$ac_objext
9536 if { (ac_try="$ac_compile"
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_compile") 2>conftest.er1
9544 grep -v '^
*+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest.$ac_objext; then
9552 ac_cv_type_fpos_t=yes
9554 echo "$as_me: failed program was:" >&5
9555 sed 's
/^
/|
/' conftest.$ac_ext >&5
9557 ac_cv_type_fpos_t=no
9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9563 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9565 # The cast to long int works around a bug in the HP C Compiler
9566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9568 # This bug is HP SR number 8606223364.
9569 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9570 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9571 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 if test "$cross_compiling" = yes; then
9575 # Depending upon the size, compute the lo and hi bounds.
9576 cat >conftest.
$ac_ext <<_ACEOF
9579 cat confdefs.h
>>conftest.
$ac_ext
9580 cat >>conftest.
$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 $ac_includes_default
9583 typedef fpos_t ac__type_sizeof_;
9587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9594 rm -f conftest.
$ac_objext
9595 if { (ac_try
="$ac_compile"
9597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_compile") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9620 typedef fpos_t ac__type_sizeof_;
9624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9631 rm -f conftest.$ac_objext
9632 if { (ac_try="$ac_compile"
9634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9635 *) ac_try_echo
=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_compile") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1
>conftest.err
9642 cat conftest.err
>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest.
$ac_objext; then
9648 ac_hi
=$ac_mid; break
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.
$ac_ext >&5
9653 ac_lo
=`expr $ac_mid + 1`
9654 if test $ac_lo -le $ac_mid; then
9658 ac_mid
=`expr 2 '*' $ac_mid + 1`
9661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.
$ac_ext >&5
9667 cat >conftest.
$ac_ext <<_ACEOF
9670 cat confdefs.h
>>conftest.
$ac_ext
9671 cat >>conftest.
$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 $ac_includes_default
9674 typedef fpos_t ac__type_sizeof_;
9678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9685 rm -f conftest.
$ac_objext
9686 if { (ac_try
="$ac_compile"
9688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_compile") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest.$ac_objext; then
9704 cat >conftest.$ac_ext <<_ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 $ac_includes_default
9711 typedef fpos_t ac__type_sizeof_;
9715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9722 rm -f conftest.$ac_objext
9723 if { (ac_try="$ac_compile"
9725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9726 *) ac_try_echo
=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_compile") 2>conftest.er1
9731 grep -v '^ *+' conftest.er1
>conftest.err
9733 cat conftest.err
>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest.
$ac_objext; then
9739 ac_lo
=$ac_mid; break
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.
$ac_ext >&5
9744 ac_hi
=`expr '(' $ac_mid ')' - 1`
9745 if test $ac_mid -le $ac_hi; then
9749 ac_mid
=`expr 2 '*' $ac_mid`
9752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.
$ac_ext >&5
9761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9765 # Binary search between lo and hi bounds.
9766 while test "x$ac_lo" != "x$ac_hi"; do
9767 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9768 cat >conftest.
$ac_ext <<_ACEOF
9771 cat confdefs.h
>>conftest.
$ac_ext
9772 cat >>conftest.
$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 $ac_includes_default
9775 typedef fpos_t ac__type_sizeof_;
9779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9786 rm -f conftest.
$ac_objext
9787 if { (ac_try
="$ac_compile"
9789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_compile") 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest.$ac_objext; then
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_lo=`expr '(' $ac_mid ')' + 1`
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9815 '') if test "$ac_cv_type_fpos_t" = yes; then
9816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9817 See \`config.log
' for more details." >&5
9818 echo "$as_me: error: cannot compute sizeof (fpos_t)
9819 See \`config.log' for more details.
" >&2;}
9820 { (exit 77); exit 77; }; }
9822 ac_cv_sizeof_fpos_t=0
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 typedef fpos_t ac__type_sizeof_;
9834 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9835 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9842 FILE *f = fopen ("conftest.val
", "w
");
9845 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9847 long int i = longval ();
9848 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9850 fprintf (f, "%ld
\n", i);
9854 unsigned long int i = ulongval ();
9855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9857 fprintf (f, "%lu
\n", i);
9859 return ferror (f) || fclose (f) != 0;
9865 rm -f conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>&5
9874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_sizeof_fpos_t=`cat conftest.val`
9887 echo "$as_me: program exited with status
$ac_status" >&5
9888 echo "$as_me: failed program was
:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9892 if test "$ac_cv_type_fpos_t" = yes; then
9893 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9894 See \
`config.log' for more details." >&5
9895 echo "$as_me: error: cannot compute sizeof (fpos_t)
9896 See \`config.log
' for more details." >&2;}
9897 { (exit 77); exit 77; }; }
9899 ac_cv_sizeof_fpos_t=0
9902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9906 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9907 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9911 cat >>confdefs.h <<_ACEOF
9912 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9916 { echo "$as_me:$LINENO: checking for size_t" >&5
9917 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9918 if test "${ac_cv_type_size_t+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 $ac_includes_default
9928 typedef size_t ac__type_new_;
9932 if ((ac__type_new_ *) 0)
9934 if (sizeof (ac__type_new_))
9940 rm -f conftest.$ac_objext
9941 if { (ac_try="$ac_compile"
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_compile") 2>conftest.er1
9949 grep -v '^
*+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest.$ac_objext; then
9957 ac_cv_type_size_t=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's
/^
/|
/' conftest.$ac_ext >&5
9962 ac_cv_type_size_t=no
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9968 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9970 # The cast to long int works around a bug in the HP C Compiler
9971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9973 # This bug is HP SR number 8606223364.
9974 { echo "$as_me:$LINENO: checking size of size_t" >&5
9975 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9976 if test "${ac_cv_sizeof_size_t+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 if test "$cross_compiling" = yes; then
9980 # Depending upon the size, compute the lo and hi bounds.
9981 cat >conftest.
$ac_ext <<_ACEOF
9984 cat confdefs.h
>>conftest.
$ac_ext
9985 cat >>conftest.
$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 $ac_includes_default
9988 typedef size_t ac__type_sizeof_;
9992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9999 rm -f conftest.
$ac_objext
10000 if { (ac_try
="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && {
10013 test -z "$ac_c_werror_flag" ||
10014 test ! -s conftest.err
10015 } && test -s conftest.$ac_objext; then
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10025 typedef size_t ac__type_sizeof_;
10029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10036 rm -f conftest.$ac_objext
10037 if { (ac_try="$ac_compile"
10038 case "(($ac_try" in
10039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10040 *) ac_try_echo
=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_compile") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1
>conftest.err
10047 cat conftest.err
>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest.
$ac_objext; then
10053 ac_hi
=$ac_mid; break
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10058 ac_lo
=`expr $ac_mid + 1`
10059 if test $ac_lo -le $ac_mid; then
10063 ac_mid
=`expr 2 '*' $ac_mid + 1`
10066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 cat >conftest.
$ac_ext <<_ACEOF
10075 cat confdefs.h
>>conftest.
$ac_ext
10076 cat >>conftest.
$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 $ac_includes_default
10079 typedef size_t ac__type_sizeof_;
10083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10090 rm -f conftest.
$ac_objext
10091 if { (ac_try
="$ac_compile"
10092 case "(($ac_try" in
10093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_compile") 2>conftest.er1
10099 grep -v '^ *+' conftest.er1 >conftest.err
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest.$ac_objext; then
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 $ac_includes_default
10116 typedef size_t ac__type_sizeof_;
10120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10131 *) ac_try_echo
=$ac_try;;
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10136 grep -v '^ *+' conftest.er1
>conftest.err
10138 cat conftest.err
>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.
$ac_objext; then
10144 ac_lo
=$ac_mid; break
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.
$ac_ext >&5
10149 ac_hi
=`expr '(' $ac_mid ')' - 1`
10150 if test $ac_mid -le $ac_hi; then
10154 ac_mid
=`expr 2 '*' $ac_mid`
10157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.
$ac_ext >&5
10166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10170 # Binary search between lo and hi bounds.
10171 while test "x$ac_lo" != "x$ac_hi"; do
10172 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10173 cat >conftest.
$ac_ext <<_ACEOF
10176 cat confdefs.h
>>conftest.
$ac_ext
10177 cat >>conftest.
$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 $ac_includes_default
10180 typedef size_t ac__type_sizeof_;
10184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10191 rm -f conftest.
$ac_objext
10192 if { (ac_try
="$ac_compile"
10193 case "(($ac_try" in
10194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest.$ac_objext; then
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_lo=`expr '(' $ac_mid ')' + 1`
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10220 '') if test "$ac_cv_type_size_t" = yes; then
10221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10222 See \`config.log
' for more details." >&5
10223 echo "$as_me: error: cannot compute sizeof (size_t)
10224 See \`config.log' for more details.
" >&2;}
10225 { (exit 77); exit 77; }; }
10227 ac_cv_sizeof_size_t=0
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 $ac_includes_default
10238 typedef size_t ac__type_sizeof_;
10239 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10240 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10242 #include <stdlib.h>
10247 FILE *f = fopen ("conftest.val
", "w
");
10250 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10252 long int i = longval ();
10253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10255 fprintf (f, "%ld
\n", i);
10259 unsigned long int i = ulongval ();
10260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10262 fprintf (f, "%lu
\n", i);
10264 return ferror (f) || fclose (f) != 0;
10270 rm -f conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>&5
10279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 ac_cv_sizeof_size_t=`cat conftest.val`
10292 echo "$as_me: program exited with status
$ac_status" >&5
10293 echo "$as_me: failed program was
:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ( exit $ac_status )
10297 if test "$ac_cv_type_size_t" = yes; then
10298 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10299 See \
`config.log' for more details." >&5
10300 echo "$as_me: error: cannot compute sizeof (size_t)
10301 See \`config.log
' for more details." >&2;}
10302 { (exit 77); exit 77; }; }
10304 ac_cv_sizeof_size_t=0
10307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10312 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10316 cat >>confdefs.h <<_ACEOF
10317 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10321 { echo "$as_me:$LINENO: checking for pid_t" >&5
10322 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10323 if test "${ac_cv_type_pid_t+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 $ac_includes_default
10333 typedef pid_t ac__type_new_;
10337 if ((ac__type_new_ *) 0)
10339 if (sizeof (ac__type_new_))
10345 rm -f conftest.$ac_objext
10346 if { (ac_try="$ac_compile"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_compile") 2>conftest.er1
10354 grep -v '^
*+' conftest.er1 >conftest.err
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest.$ac_objext; then
10362 ac_cv_type_pid_t=yes
10364 echo "$as_me: failed program was:" >&5
10365 sed 's
/^
/|
/' conftest.$ac_ext >&5
10367 ac_cv_type_pid_t=no
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10373 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10375 # The cast to long int works around a bug in the HP C Compiler
10376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10378 # This bug is HP SR number 8606223364.
10379 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10380 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10381 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 if test "$cross_compiling" = yes; then
10385 # Depending upon the size, compute the lo and hi bounds.
10386 cat >conftest.
$ac_ext <<_ACEOF
10389 cat confdefs.h
>>conftest.
$ac_ext
10390 cat >>conftest.
$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 $ac_includes_default
10393 typedef pid_t ac__type_sizeof_;
10397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10404 rm -f conftest.
$ac_objext
10405 if { (ac_try
="$ac_compile"
10406 case "(($ac_try" in
10407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_compile") 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest.$ac_objext; then
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 $ac_includes_default
10430 typedef pid_t ac__type_sizeof_;
10434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10441 rm -f conftest.$ac_objext
10442 if { (ac_try="$ac_compile"
10443 case "(($ac_try" in
10444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10445 *) ac_try_echo
=$ac_try;;
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_compile") 2>conftest.er1
10450 grep -v '^ *+' conftest.er1
>conftest.err
10452 cat conftest.err
>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest.
$ac_objext; then
10458 ac_hi
=$ac_mid; break
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.
$ac_ext >&5
10463 ac_lo
=`expr $ac_mid + 1`
10464 if test $ac_lo -le $ac_mid; then
10468 ac_mid
=`expr 2 '*' $ac_mid + 1`
10471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.
$ac_ext >&5
10477 cat >conftest.
$ac_ext <<_ACEOF
10480 cat confdefs.h
>>conftest.
$ac_ext
10481 cat >>conftest.
$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10484 typedef pid_t ac__type_sizeof_;
10488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10495 rm -f conftest.
$ac_objext
10496 if { (ac_try
="$ac_compile"
10497 case "(($ac_try" in
10498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_compile") 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest.$ac_objext; then
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 typedef pid_t ac__type_sizeof_;
10525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10532 rm -f conftest.$ac_objext
10533 if { (ac_try="$ac_compile"
10534 case "(($ac_try" in
10535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10536 *) ac_try_echo
=$ac_try;;
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10541 grep -v '^ *+' conftest.er1
>conftest.err
10543 cat conftest.err
>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest.
$ac_objext; then
10549 ac_lo
=$ac_mid; break
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.
$ac_ext >&5
10554 ac_hi
=`expr '(' $ac_mid ')' - 1`
10555 if test $ac_mid -le $ac_hi; then
10559 ac_mid
=`expr 2 '*' $ac_mid`
10562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.
$ac_ext >&5
10571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10575 # Binary search between lo and hi bounds.
10576 while test "x$ac_lo" != "x$ac_hi"; do
10577 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10578 cat >conftest.
$ac_ext <<_ACEOF
10581 cat confdefs.h
>>conftest.
$ac_ext
10582 cat >>conftest.
$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 $ac_includes_default
10585 typedef pid_t ac__type_sizeof_;
10589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10596 rm -f conftest.
$ac_objext
10597 if { (ac_try
="$ac_compile"
10598 case "(($ac_try" in
10599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_compile") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1 >conftest.err
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest.$ac_objext; then
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_lo=`expr '(' $ac_mid ')' + 1`
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10625 '') if test "$ac_cv_type_pid_t" = yes; then
10626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10627 See \`config.log
' for more details." >&5
10628 echo "$as_me: error: cannot compute sizeof (pid_t)
10629 See \`config.log' for more details.
" >&2;}
10630 { (exit 77); exit 77; }; }
10632 ac_cv_sizeof_pid_t=0
10636 cat >conftest.$ac_ext <<_ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 $ac_includes_default
10643 typedef pid_t ac__type_sizeof_;
10644 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10645 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10647 #include <stdlib.h>
10652 FILE *f = fopen ("conftest.val
", "w
");
10655 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10657 long int i = longval ();
10658 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10660 fprintf (f, "%ld
\n", i);
10664 unsigned long int i = ulongval ();
10665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10667 fprintf (f, "%lu
\n", i);
10669 return ferror (f) || fclose (f) != 0;
10675 rm -f conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>&5
10684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_sizeof_pid_t=`cat conftest.val`
10697 echo "$as_me: program exited with status
$ac_status" >&5
10698 echo "$as_me: failed program was
:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ( exit $ac_status )
10702 if test "$ac_cv_type_pid_t" = yes; then
10703 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10704 See \
`config.log' for more details." >&5
10705 echo "$as_me: error: cannot compute sizeof (pid_t)
10706 See \`config.log
' for more details." >&2;}
10707 { (exit 77); exit 77; }; }
10709 ac_cv_sizeof_pid_t=0
10712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10716 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10717 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10721 cat >>confdefs.h <<_ACEOF
10722 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10727 { echo "$as_me:$LINENO: checking for long long support" >&5
10728 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10730 cat >conftest.$ac_ext <<_ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10740 long long x; x = (long long)0;
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10754 grep -v '^
*+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest.$ac_objext; then
10764 cat >>confdefs.h <<\_ACEOF
10765 #define HAVE_LONG_LONG 1
10771 echo "$as_me: failed program was:" >&5
10772 sed 's
/^
/|
/' conftest.$ac_ext >&5
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10779 echo "${ECHO_T}$have_long_long" >&6; }
10780 if test "$have_long_long" = yes ; then
10781 { echo "$as_me:$LINENO: checking for long long" >&5
10782 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10783 if test "${ac_cv_type_long_long+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 cat >conftest.$ac_ext <<_ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 $ac_includes_default
10793 typedef long long ac__type_new_;
10797 if ((ac__type_new_ *) 0)
10799 if (sizeof (ac__type_new_))
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10814 grep -v '^
*+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.$ac_objext; then
10822 ac_cv_type_long_long=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's
/^
/|
/' conftest.$ac_ext >&5
10827 ac_cv_type_long_long=no
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10833 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10835 # The cast to long int works around a bug in the HP C Compiler
10836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10838 # This bug is HP SR number 8606223364.
10839 { echo "$as_me:$LINENO: checking size of long long" >&5
10840 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10841 if test "${ac_cv_sizeof_long_long+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 if test "$cross_compiling" = yes; then
10845 # Depending upon the size, compute the lo and hi bounds.
10846 cat >conftest.
$ac_ext <<_ACEOF
10849 cat confdefs.h
>>conftest.
$ac_ext
10850 cat >>conftest.
$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 $ac_includes_default
10853 typedef long long ac__type_sizeof_;
10857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10864 rm -f conftest.
$ac_objext
10865 if { (ac_try
="$ac_compile"
10866 case "(($ac_try" in
10867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest.$ac_objext; then
10883 cat >conftest.$ac_ext <<_ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 $ac_includes_default
10890 typedef long long ac__type_sizeof_;
10894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10905 *) ac_try_echo
=$ac_try;;
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_compile") 2>conftest.er1
10910 grep -v '^ *+' conftest.er1
>conftest.err
10912 cat conftest.err
>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } && {
10915 test -z "$ac_c_werror_flag" ||
10916 test ! -s conftest.err
10917 } && test -s conftest.
$ac_objext; then
10918 ac_hi
=$ac_mid; break
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.
$ac_ext >&5
10923 ac_lo
=`expr $ac_mid + 1`
10924 if test $ac_lo -le $ac_mid; then
10928 ac_mid
=`expr 2 '*' $ac_mid + 1`
10931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.
$ac_ext >&5
10937 cat >conftest.
$ac_ext <<_ACEOF
10940 cat confdefs.h
>>conftest.
$ac_ext
10941 cat >>conftest.
$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 $ac_includes_default
10944 typedef long long ac__type_sizeof_;
10948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10955 rm -f conftest.
$ac_objext
10956 if { (ac_try
="$ac_compile"
10957 case "(($ac_try" in
10958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_compile") 2>conftest.er1
10964 grep -v '^ *+' conftest.er1 >conftest.err
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } && {
10969 test -z "$ac_c_werror_flag" ||
10970 test ! -s conftest.err
10971 } && test -s conftest.$ac_objext; then
10974 cat >conftest.$ac_ext <<_ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 $ac_includes_default
10981 typedef long long ac__type_sizeof_;
10985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10996 *) ac_try_echo
=$ac_try;;
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_compile") 2>conftest.er1
11001 grep -v '^ *+' conftest.er1
>conftest.err
11003 cat conftest.err
>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest.
$ac_objext; then
11009 ac_lo
=$ac_mid; break
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.
$ac_ext >&5
11014 ac_hi
=`expr '(' $ac_mid ')' - 1`
11015 if test $ac_mid -le $ac_hi; then
11019 ac_mid
=`expr 2 '*' $ac_mid`
11022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.
$ac_ext >&5
11031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11035 # Binary search between lo and hi bounds.
11036 while test "x$ac_lo" != "x$ac_hi"; do
11037 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11038 cat >conftest.
$ac_ext <<_ACEOF
11041 cat confdefs.h
>>conftest.
$ac_ext
11042 cat >>conftest.
$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 $ac_includes_default
11045 typedef long long ac__type_sizeof_;
11049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11056 rm -f conftest.
$ac_objext
11057 if { (ac_try
="$ac_compile"
11058 case "(($ac_try" in
11059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_compile") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1 >conftest.err
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest.$ac_objext; then
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_lo=`expr '(' $ac_mid ')' + 1`
11081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11085 '') if test "$ac_cv_type_long_long" = yes; then
11086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11087 See \`config.log
' for more details." >&5
11088 echo "$as_me: error: cannot compute sizeof (long long)
11089 See \`config.log' for more details.
" >&2;}
11090 { (exit 77); exit 77; }; }
11092 ac_cv_sizeof_long_long=0
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 $ac_includes_default
11103 typedef long long ac__type_sizeof_;
11104 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11105 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11107 #include <stdlib.h>
11112 FILE *f = fopen ("conftest.val
", "w
");
11115 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11117 long int i = longval ();
11118 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11120 fprintf (f, "%ld
\n", i);
11124 unsigned long int i = ulongval ();
11125 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11127 fprintf (f, "%lu
\n", i);
11129 return ferror (f) || fclose (f) != 0;
11135 rm -f conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>&5
11144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_sizeof_long_long=`cat conftest.val`
11157 echo "$as_me: program exited with status
$ac_status" >&5
11158 echo "$as_me: failed program was
:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 ( exit $ac_status )
11162 if test "$ac_cv_type_long_long" = yes; then
11163 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11164 See \
`config.log' for more details." >&5
11165 echo "$as_me: error: cannot compute sizeof (long long)
11166 See \`config.log
' for more details." >&2;}
11167 { (exit 77); exit 77; }; }
11169 ac_cv_sizeof_long_long=0
11172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11176 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11177 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11181 cat >>confdefs.h <<_ACEOF
11182 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11188 { echo "$as_me:$LINENO: checking for long double support" >&5
11189 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11190 have_long_double=no
11191 cat >conftest.$ac_ext <<_ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11201 long double x; x = (long double)0.;
11206 rm -f conftest.$ac_objext
11207 if { (ac_try="$ac_compile"
11208 case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_compile") 2>conftest.er1
11215 grep -v '^
*+' conftest.er1 >conftest.err
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } && {
11220 test -z "$ac_c_werror_flag" ||
11221 test ! -s conftest.err
11222 } && test -s conftest.$ac_objext; then
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_LONG_DOUBLE 1
11229 have_long_double=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's
/^
/|
/' conftest.$ac_ext >&5
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11240 echo "${ECHO_T}$have_long_double" >&6; }
11241 if test "$have_long_double" = yes ; then
11242 { echo "$as_me:$LINENO: checking for long double" >&5
11243 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11244 if test "${ac_cv_type_long_double+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 cat >conftest.$ac_ext <<_ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 $ac_includes_default
11254 typedef long double ac__type_new_;
11258 if ((ac__type_new_ *) 0)
11260 if (sizeof (ac__type_new_))
11266 rm -f conftest.$ac_objext
11267 if { (ac_try="$ac_compile"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
11275 grep -v '^
*+' conftest.er1 >conftest.err
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest.$ac_objext; then
11283 ac_cv_type_long_double=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's
/^
/|
/' conftest.$ac_ext >&5
11288 ac_cv_type_long_double=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11294 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11296 # The cast to long int works around a bug in the HP C Compiler
11297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11299 # This bug is HP SR number 8606223364.
11300 { echo "$as_me:$LINENO: checking size of long double" >&5
11301 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11302 if test "${ac_cv_sizeof_long_double+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 if test "$cross_compiling" = yes; then
11306 # Depending upon the size, compute the lo and hi bounds.
11307 cat >conftest.
$ac_ext <<_ACEOF
11310 cat confdefs.h
>>conftest.
$ac_ext
11311 cat >>conftest.
$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 $ac_includes_default
11314 typedef long double ac__type_sizeof_;
11318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11325 rm -f conftest.
$ac_objext
11326 if { (ac_try
="$ac_compile"
11327 case "(($ac_try" in
11328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_compile") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest.$ac_objext; then
11344 cat >conftest.$ac_ext <<_ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 $ac_includes_default
11351 typedef long double ac__type_sizeof_;
11355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11366 *) ac_try_echo
=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1
>conftest.err
11373 cat conftest.err
>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest.
$ac_objext; then
11379 ac_hi
=$ac_mid; break
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.
$ac_ext >&5
11384 ac_lo
=`expr $ac_mid + 1`
11385 if test $ac_lo -le $ac_mid; then
11389 ac_mid
=`expr 2 '*' $ac_mid + 1`
11392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11395 echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.
$ac_ext >&5
11398 cat >conftest.
$ac_ext <<_ACEOF
11401 cat confdefs.h
>>conftest.
$ac_ext
11402 cat >>conftest.
$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 $ac_includes_default
11405 typedef long double ac__type_sizeof_;
11409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11416 rm -f conftest.
$ac_objext
11417 if { (ac_try
="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest.$ac_objext; then
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 $ac_includes_default
11442 typedef long double ac__type_sizeof_;
11446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11453 rm -f conftest.$ac_objext
11454 if { (ac_try="$ac_compile"
11455 case "(($ac_try" in
11456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11457 *) ac_try_echo
=$ac_try;;
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11462 grep -v '^ *+' conftest.er1
>conftest.err
11464 cat conftest.err
>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.
$ac_objext; then
11470 ac_lo
=$ac_mid; break
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.
$ac_ext >&5
11475 ac_hi
=`expr '(' $ac_mid ')' - 1`
11476 if test $ac_mid -le $ac_hi; then
11480 ac_mid
=`expr 2 '*' $ac_mid`
11483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.
$ac_ext >&5
11492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11496 # Binary search between lo and hi bounds.
11497 while test "x$ac_lo" != "x$ac_hi"; do
11498 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11499 cat >conftest.
$ac_ext <<_ACEOF
11502 cat confdefs.h
>>conftest.
$ac_ext
11503 cat >>conftest.
$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 typedef long double ac__type_sizeof_;
11510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11517 rm -f conftest.
$ac_objext
11518 if { (ac_try
="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_compile") 2>conftest.er1
11526 grep -v '^ *+' conftest.er1 >conftest.err
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } && {
11531 test -z "$ac_c_werror_flag" ||
11532 test ! -s conftest.err
11533 } && test -s conftest.$ac_objext; then
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_lo=`expr '(' $ac_mid ')' + 1`
11542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11546 '') if test "$ac_cv_type_long_double" = yes; then
11547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11548 See \`config.log
' for more details." >&5
11549 echo "$as_me: error: cannot compute sizeof (long double)
11550 See \`config.log' for more details.
" >&2;}
11551 { (exit 77); exit 77; }; }
11553 ac_cv_sizeof_long_double=0
11557 cat >conftest.$ac_ext <<_ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563 $ac_includes_default
11564 typedef long double ac__type_sizeof_;
11565 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11566 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11568 #include <stdlib.h>
11573 FILE *f = fopen ("conftest.val
", "w
");
11576 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11578 long int i = longval ();
11579 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11581 fprintf (f, "%ld
\n", i);
11585 unsigned long int i = ulongval ();
11586 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11588 fprintf (f, "%lu
\n", i);
11590 return ferror (f) || fclose (f) != 0;
11596 rm -f conftest$ac_exeext
11597 if { (ac_try="$ac_link"
11598 case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_link") 2>&5
11605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_sizeof_long_double=`cat conftest.val`
11618 echo "$as_me: program exited with status
$ac_status" >&5
11619 echo "$as_me: failed program was
:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 ( exit $ac_status )
11623 if test "$ac_cv_type_long_double" = yes; then
11624 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
11625 See \
`config.log' for more details." >&5
11626 echo "$as_me: error: cannot compute sizeof (long double)
11627 See \`config.log
' for more details." >&2;}
11628 { (exit 77); exit 77; }; }
11630 ac_cv_sizeof_long_double=0
11633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11637 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11638 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11642 cat >>confdefs.h <<_ACEOF
11643 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11649 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11650 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11662 _Bool x; x = (_Bool)0;
11667 rm -f conftest.$ac_objext
11668 if { (ac_try="$ac_compile"
11669 case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_compile") 2>conftest.er1
11676 grep -v '^
*+' conftest.er1 >conftest.err
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } && {
11681 test -z "$ac_c_werror_flag" ||
11682 test ! -s conftest.err
11683 } && test -s conftest.$ac_objext; then
11686 cat >>confdefs.h <<\_ACEOF
11687 #define HAVE_C99_BOOL 1
11693 echo "$as_me: failed program was:" >&5
11694 sed 's
/^
/|
/' conftest.$ac_ext >&5
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11701 echo "${ECHO_T}$have_c99_bool" >&6; }
11702 if test "$have_c99_bool" = yes ; then
11703 { echo "$as_me:$LINENO: checking for _Bool" >&5
11704 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11705 if test "${ac_cv_type__Bool+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11715 typedef _Bool ac__type_new_;
11719 if ((ac__type_new_ *) 0)
11721 if (sizeof (ac__type_new_))
11727 rm -f conftest.$ac_objext
11728 if { (ac_try="$ac_compile"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11736 grep -v '^
*+' conftest.er1 >conftest.err
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
11744 ac_cv_type__Bool=yes
11746 echo "$as_me: failed program was:" >&5
11747 sed 's
/^
/|
/' conftest.$ac_ext >&5
11749 ac_cv_type__Bool=no
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11755 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11757 # The cast to long int works around a bug in the HP C Compiler
11758 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11759 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11760 # This bug is HP SR number 8606223364.
11761 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11762 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11763 if test "${ac_cv_sizeof__Bool+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 if test "$cross_compiling" = yes; then
11767 # Depending upon the size, compute the lo and hi bounds.
11768 cat >conftest.
$ac_ext <<_ACEOF
11771 cat confdefs.h
>>conftest.
$ac_ext
11772 cat >>conftest.
$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11775 typedef _Bool ac__type_sizeof_;
11779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11786 rm -f conftest.
$ac_objext
11787 if { (ac_try
="$ac_compile"
11788 case "(($ac_try" in
11789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.$ac_objext; then
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 typedef _Bool ac__type_sizeof_;
11816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11827 *) ac_try_echo
=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1
>conftest.err
11834 cat conftest.err
>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest.
$ac_objext; then
11840 ac_hi
=$ac_mid; break
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.
$ac_ext >&5
11845 ac_lo
=`expr $ac_mid + 1`
11846 if test $ac_lo -le $ac_mid; then
11850 ac_mid
=`expr 2 '*' $ac_mid + 1`
11853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.
$ac_ext >&5
11859 cat >conftest.
$ac_ext <<_ACEOF
11862 cat confdefs.h
>>conftest.
$ac_ext
11863 cat >>conftest.
$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 typedef _Bool ac__type_sizeof_;
11870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11877 rm -f conftest.
$ac_objext
11878 if { (ac_try
="$ac_compile"
11879 case "(($ac_try" in
11880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_compile") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.$ac_objext; then
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 typedef _Bool ac__type_sizeof_;
11907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11918 *) ac_try_echo
=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1
>conftest.err
11925 cat conftest.err
>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.
$ac_objext; then
11931 ac_lo
=$ac_mid; break
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.
$ac_ext >&5
11936 ac_hi
=`expr '(' $ac_mid ')' - 1`
11937 if test $ac_mid -le $ac_hi; then
11941 ac_mid
=`expr 2 '*' $ac_mid`
11944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.
$ac_ext >&5
11953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11957 # Binary search between lo and hi bounds.
11958 while test "x$ac_lo" != "x$ac_hi"; do
11959 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11960 cat >conftest.
$ac_ext <<_ACEOF
11963 cat confdefs.h
>>conftest.
$ac_ext
11964 cat >>conftest.
$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11967 typedef _Bool ac__type_sizeof_;
11971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11978 rm -f conftest.
$ac_objext
11979 if { (ac_try
="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_lo=`expr '(' $ac_mid ')' + 1`
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12007 '') if test "$ac_cv_type__Bool" = yes; then
12008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12009 See \`config.log
' for more details." >&5
12010 echo "$as_me: error: cannot compute sizeof (_Bool)
12011 See \`config.log' for more details.
" >&2;}
12012 { (exit 77); exit 77; }; }
12014 ac_cv_sizeof__Bool=0
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 typedef _Bool ac__type_sizeof_;
12026 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12027 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12029 #include <stdlib.h>
12034 FILE *f = fopen ("conftest.val
", "w
");
12037 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12039 long int i = longval ();
12040 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12042 fprintf (f, "%ld
\n", i);
12046 unsigned long int i = ulongval ();
12047 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12049 fprintf (f, "%lu
\n", i);
12051 return ferror (f) || fclose (f) != 0;
12057 rm -f conftest$ac_exeext
12058 if { (ac_try="$ac_link"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_link") 2>&5
12066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_cv_sizeof__Bool=`cat conftest.val`
12079 echo "$as_me: program exited with status
$ac_status" >&5
12080 echo "$as_me: failed program was
:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ( exit $ac_status )
12084 if test "$ac_cv_type__Bool" = yes; then
12085 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12086 See \
`config.log' for more details." >&5
12087 echo "$as_me: error: cannot compute sizeof (_Bool)
12088 See \`config.log
' for more details." >&2;}
12089 { (exit 77); exit 77; }; }
12091 ac_cv_sizeof__Bool=0
12094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12098 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12099 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12103 cat >>confdefs.h <<_ACEOF
12104 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12110 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12111 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12112 if test "${ac_cv_type_uintptr_t+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 cat >conftest.$ac_ext <<_ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #ifdef HAVE_STDINT_H
12122 #include <stdint.h>
12125 typedef uintptr_t ac__type_new_;
12129 if ((ac__type_new_ *) 0)
12131 if (sizeof (ac__type_new_))
12137 rm -f conftest.$ac_objext
12138 if { (ac_try="$ac_compile"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_compile") 2>conftest.er1
12146 grep -v '^
*+' conftest.er1 >conftest.err
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest.$ac_objext; then
12154 ac_cv_type_uintptr_t=yes
12156 echo "$as_me: failed program was:" >&5
12157 sed 's
/^
/|
/' conftest.$ac_ext >&5
12159 ac_cv_type_uintptr_t=no
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12165 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12166 if test $ac_cv_type_uintptr_t = yes; then
12168 cat >>confdefs.h <<_ACEOF
12169 #define HAVE_UINTPTR_T 1
12172 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12173 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12174 if test "${ac_cv_type_uintptr_t+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 typedef uintptr_t ac__type_new_;
12188 if ((ac__type_new_ *) 0)
12190 if (sizeof (ac__type_new_))
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_compile") 2>conftest.er1
12205 grep -v '^
*+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_c_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest.$ac_objext; then
12213 ac_cv_type_uintptr_t=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's
/^
/|
/' conftest.$ac_ext >&5
12218 ac_cv_type_uintptr_t=no
12221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12224 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12226 # The cast to long int works around a bug in the HP C Compiler
12227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12229 # This bug is HP SR number 8606223364.
12230 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12231 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12232 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 if test "$cross_compiling" = yes; then
12236 # Depending upon the size, compute the lo and hi bounds.
12237 cat >conftest.
$ac_ext <<_ACEOF
12240 cat confdefs.h
>>conftest.
$ac_ext
12241 cat >>conftest.
$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 typedef uintptr_t ac__type_sizeof_;
12248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12255 rm -f conftest.
$ac_objext
12256 if { (ac_try
="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1 >conftest.err
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.$ac_objext; then
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12281 typedef uintptr_t ac__type_sizeof_;
12285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
12294 case "(($ac_try" in
12295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12296 *) ac_try_echo
=$ac_try;;
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_compile") 2>conftest.er1
12301 grep -v '^ *+' conftest.er1
>conftest.err
12303 cat conftest.err
>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest.
$ac_objext; then
12309 ac_hi
=$ac_mid; break
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 ac_lo
=`expr $ac_mid + 1`
12315 if test $ac_lo -le $ac_mid; then
12319 ac_mid
=`expr 2 '*' $ac_mid + 1`
12322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.
$ac_ext >&5
12328 cat >conftest.
$ac_ext <<_ACEOF
12331 cat confdefs.h
>>conftest.
$ac_ext
12332 cat >>conftest.
$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 $ac_includes_default
12335 typedef uintptr_t ac__type_sizeof_;
12339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12346 rm -f conftest.
$ac_objext
12347 if { (ac_try
="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.$ac_objext; then
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 $ac_includes_default
12372 typedef uintptr_t ac__type_sizeof_;
12376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12383 rm -f conftest.$ac_objext
12384 if { (ac_try="$ac_compile"
12385 case "(($ac_try" in
12386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12387 *) ac_try_echo
=$ac_try;;
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_compile") 2>conftest.er1
12392 grep -v '^ *+' conftest.er1
>conftest.err
12394 cat conftest.err
>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } && {
12397 test -z "$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest.
$ac_objext; then
12400 ac_lo
=$ac_mid; break
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.
$ac_ext >&5
12405 ac_hi
=`expr '(' $ac_mid ')' - 1`
12406 if test $ac_mid -le $ac_hi; then
12410 ac_mid
=`expr 2 '*' $ac_mid`
12413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.
$ac_ext >&5
12422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12426 # Binary search between lo and hi bounds.
12427 while test "x$ac_lo" != "x$ac_hi"; do
12428 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12429 cat >conftest.
$ac_ext <<_ACEOF
12432 cat confdefs.h
>>conftest.
$ac_ext
12433 cat >>conftest.
$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435 $ac_includes_default
12436 typedef uintptr_t ac__type_sizeof_;
12440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12447 rm -f conftest.
$ac_objext
12448 if { (ac_try
="$ac_compile"
12449 case "(($ac_try" in
12450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_compile") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest.$ac_objext; then
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_lo=`expr '(' $ac_mid ')' + 1`
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12476 '') if test "$ac_cv_type_uintptr_t" = yes; then
12477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12478 See \`config.log
' for more details." >&5
12479 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12480 See \`config.log' for more details.
" >&2;}
12481 { (exit 77); exit 77; }; }
12483 ac_cv_sizeof_uintptr_t=0
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 $ac_includes_default
12494 typedef uintptr_t ac__type_sizeof_;
12495 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12496 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12498 #include <stdlib.h>
12503 FILE *f = fopen ("conftest.val
", "w
");
12506 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12508 long int i = longval ();
12509 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12511 fprintf (f, "%ld
\n", i);
12515 unsigned long int i = ulongval ();
12516 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12518 fprintf (f, "%lu
\n", i);
12520 return ferror (f) || fclose (f) != 0;
12526 rm -f conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>&5
12535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12548 echo "$as_me: program exited with status
$ac_status" >&5
12549 echo "$as_me: failed program was
:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ( exit $ac_status )
12553 if test "$ac_cv_type_uintptr_t" = yes; then
12554 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12555 See \
`config.log' for more details." >&5
12556 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12557 See \`config.log
' for more details." >&2;}
12558 { (exit 77); exit 77; }; }
12560 ac_cv_sizeof_uintptr_t=0
12563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12567 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12568 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12572 cat >>confdefs.h <<_ACEOF
12573 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12581 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12582 { echo "$as_me:$LINENO: checking size of off_t" >&5
12583 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12584 if test "${ac_cv_sizeof_off_t+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 if test "$cross_compiling" = yes; then
12588 ac_cv_sizeof_off_t
=4
12590 cat >conftest.
$ac_ext <<_ACEOF
12593 cat confdefs.h
>>conftest.
$ac_ext
12594 cat >>conftest.
$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12597 #include <sys/types.h>
12600 FILE *f=fopen("conftestval", "w");
12602 fprintf(f, "%d\n", sizeof(off_t));
12606 rm -f conftest
$ac_exeext
12607 if { (ac_try
="$ac_link"
12608 case "(($ac_try" in
12609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_sizeof_off_t
=`cat conftestval`
12628 echo "$as_me: program exited with status $ac_status" >&5
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.
$ac_ext >&5
12632 ( exit $ac_status )
12633 ac_cv_sizeof_off_t
=0
12635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12642 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12643 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12645 cat >>confdefs.h
<<_ACEOF
12646 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12650 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12651 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12652 if test "$have_long_long" = yes -a \
12653 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12654 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12656 cat >>confdefs.h
<<\_ACEOF
12657 #define HAVE_LARGEFILE_SUPPORT 1
12660 { echo "$as_me:$LINENO: result: yes" >&5
12661 echo "${ECHO_T}yes" >&6; }
12663 { echo "$as_me:$LINENO: result: no" >&5
12664 echo "${ECHO_T}no" >&6; }
12667 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12668 { echo "$as_me:$LINENO: checking size of time_t" >&5
12669 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12670 if test "${ac_cv_sizeof_time_t+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 if test "$cross_compiling" = yes; then
12674 ac_cv_sizeof_time_t
=4
12676 cat >conftest.
$ac_ext <<_ACEOF
12679 cat confdefs.h
>>conftest.
$ac_ext
12680 cat >>conftest.
$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12686 FILE *f=fopen("conftestval", "w");
12688 fprintf(f, "%d\n", sizeof(time_t));
12692 rm -f conftest
$ac_exeext
12693 if { (ac_try
="$ac_link"
12694 case "(($ac_try" in
12695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_link") 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12705 *) ac_try_echo
=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_cv_sizeof_time_t
=`cat conftestval`
12714 echo "$as_me: program exited with status $ac_status" >&5
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.
$ac_ext >&5
12718 ( exit $ac_status )
12719 ac_cv_sizeof_time_t
=0
12721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12729 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12731 cat >>confdefs.h
<<_ACEOF
12732 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12737 # if have pthread_t then define SIZEOF_PTHREAD_T
12739 if test "$ac_cv_kpthread" = "yes"
12740 then CC
="$CC -Kpthread"
12741 elif test "$ac_cv_kthread" = "yes"
12742 then CC
="$CC -Kthread"
12743 elif test "$ac_cv_pthread" = "yes"
12744 then CC
="$CC -pthread"
12746 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12747 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12749 cat >conftest.
$ac_ext <<_ACEOF
12752 cat confdefs.h
>>conftest.
$ac_ext
12753 cat >>conftest.
$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 #include <pthread.h>
12759 pthread_t x; x = *(pthread_t*)0;
12764 rm -f conftest.
$ac_objext
12765 if { (ac_try
="$ac_compile"
12766 case "(($ac_try" in
12767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_compile") 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest.$ac_objext; then
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12790 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12791 echo "${ECHO_T}$have_pthread_t" >&6; }
12792 if test "$have_pthread_t" = yes ; then
12793 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12794 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12795 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12796 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 if test "$cross_compiling" = yes; then
12800 ac_cv_sizeof_pthread_t=4
12802 cat >conftest.$ac_ext <<_ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12809 #include <pthread.h>
12812 FILE *f=fopen("conftestval", "w");
12814 fprintf(f, "%d\n", sizeof(pthread_t));
12818 rm -f conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12822 *) ac_try_echo
=$ac_try;;
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12829 { (case "(($ac_try" in
12830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_try") 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_cv_sizeof_pthread_t=`cat conftestval
`
12840 echo "$as_me: program exited with status $ac_status" >&5
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ( exit $ac_status )
12845 ac_cv_sizeof_pthread_t=0
12847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12854 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12855 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12857 cat >>confdefs.h <<_ACEOF
12858 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12864 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12865 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12866 # Check whether --enable-toolbox-glue was given.
12867 if test "${enable_toolbox_glue+set}" = set; then
12868 enableval=$enable_toolbox_glue;
12872 if test -z "$enable_toolbox_glue"
12874 case $ac_sys_system/$ac_sys_release in
12876 enable_toolbox_glue="yes";;
12878 enable_toolbox_glue="no";;
12881 case "$enable_toolbox_glue" in
12883 extra_machdep_objs="Python/mactoolboxglue.o"
12884 extra_undefs="-u _PyMac_Error"
12886 cat >>confdefs.h <<\_ACEOF
12887 #define USE_TOOLBOX_OBJECT_GLUE 1
12892 extra_machdep_objs=""
12896 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12897 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12901 case $ac_sys_system/$ac_sys_release in
12902 Darwin/[01567]\..*)
12903 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12906 OTHER_LIBTOOL_OPT=""
12911 case $ac_sys_system/$ac_sys_release in
12912 Darwin/[01567]\..*)
12913 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12914 if test "${enable_universalsdk}"; then
12917 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12919 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12920 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12922 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12923 if test ${gcc_version} '<' 4.0
12925 LIBTOOL_CRUFT="-lcc_dynamic"
12929 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12930 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12931 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12934 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12935 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12936 if test "$enable_framework"
12938 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12939 # -F. is needed to allow linking to the framework while
12940 # in the build location.
12942 cat >>confdefs.h <<\_ACEOF
12943 #define WITH_NEXT_FRAMEWORK 1
12946 { echo "$as_me:$LINENO: result: yes" >&5
12947 echo "${ECHO_T}yes" >&6; }
12949 { echo "$as_me:$LINENO: result: no" >&5
12950 echo "${ECHO_T}no" >&6; }
12953 { echo "$as_me:$LINENO: checking for dyld" >&5
12954 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12955 case $ac_sys_system/$ac_sys_release in
12958 cat >>confdefs.h <<\_ACEOF
12959 #define WITH_DYLD 1
12962 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12963 echo "${ECHO_T}always on for Darwin" >&6; }
12966 { echo "$as_me:$LINENO: result: no" >&5
12967 echo "${ECHO_T}no" >&6; }
12971 # Set info about shared libraries.
12977 # SO is the extension of shared libraries `(including the dot
!)
12978 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12979 { echo "$as_me:$LINENO: checking SO" >&5
12980 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12983 case $ac_sys_system in
12994 # this might also be a termcap variable, see #610332
12996 echo '====================================================================='
12998 echo '+ WARNING: You have set SO in your environment. +'
12999 echo '+ Do you really mean to change the extension for shared libraries? +'
13000 echo '+ Continuing in 10 seconds to let you to ponder. +'
13002 echo '====================================================================='
13005 { echo "$as_me:$LINENO: result: $SO" >&5
13006 echo "${ECHO_T}$SO" >&6; }
13008 cat >>confdefs.h
<<_ACEOF
13009 #define SHLIB_EXT "$SO"
13012 # LDSHARED is the ld *command* used to create shared library
13013 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13014 # (Shared libraries in this instance are shared modules to be loaded into
13015 # Python, as opposed to building Python itself as a shared library.)
13016 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13017 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13018 if test -z "$LDSHARED"
13020 case $ac_sys_system/$ac_sys_release in
13022 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13023 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13026 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13027 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13029 IRIX
/5*) LDSHARED
="ld -shared";;
13030 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13032 if test "$GCC" = "yes"
13033 then LDSHARED
='$(CC) -shared'
13034 else LDSHARED
='$(CC) -G';
13037 if test "$GCC" = "yes"
13038 then LDSHARED
='$(CC) -shared'
13039 else LDSHARED
='ld -b';
13041 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13043 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13044 if test "$enable_framework" ; then
13045 # Link against the framework. All externals should be defined.
13046 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13047 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13049 # No framework. Ignore undefined symbols, assuming they come from Python
13050 LDSHARED
="$LDSHARED -undefined suppress"
13052 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13053 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13054 if test "$enable_framework" ; then
13055 # Link against the framework. All externals should be defined.
13056 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13057 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13059 # No framework, use the Python app as bundle-loader
13060 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13061 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13064 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13065 # This allows an extension to be used in any Python
13067 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13069 if test "${enable_universalsdk}"; then
13070 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13072 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13073 BLDSHARED
="$LDSHARED"
13075 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13076 if test "$enable_framework" ; then
13077 # Link against the framework. All externals should be defined.
13078 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13079 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13081 # No framework, use the Python app as bundle-loader
13082 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13083 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13087 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13088 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13090 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13092 LDSHARED
="$CC -shared ${LDFLAGS}"
13094 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13097 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13099 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13102 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13103 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13106 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13110 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13111 OpenUNIX
*|UnixWare
*)
13112 if test "$GCC" = "yes"
13113 then LDSHARED
='$(CC) -shared'
13114 else LDSHARED
='$(CC) -G'
13116 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13117 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13118 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13119 atheos
*) LDSHARED
="gcc -shared";;
13123 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13124 echo "${ECHO_T}$LDSHARED" >&6; }
13125 BLDSHARED
=${BLDSHARED-$LDSHARED}
13126 # CCSHARED are the C *flags* used to create objects to go into a shared
13127 # library (module) -- this is only needed for a few systems
13128 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13129 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13130 if test -z "$CCSHARED"
13132 case $ac_sys_system/$ac_sys_release in
13133 SunOS
*) if test "$GCC" = yes;
13134 then CCSHARED
="-fPIC";
13135 elif test `uname -p` = sparc
;
13136 then CCSHARED
="-xcode=pic32";
13137 else CCSHARED
="-Kpic";
13139 hp
*|HP
*) if test "$GCC" = yes;
13140 then CCSHARED
="-fPIC";
13141 else CCSHARED
="+z";
13143 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13144 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13145 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13146 OpenUNIX
*|UnixWare
*)
13147 if test "$GCC" = "yes"
13148 then CCSHARED
="-fPIC"
13149 else CCSHARED
="-KPIC"
13152 if test "$GCC" = "yes"
13153 then CCSHARED
="-fPIC"
13154 else CCSHARED
="-Kpic -belf"
13156 Monterey
*) CCSHARED
="-G";;
13157 IRIX
*/6*) case $CC in
13158 *gcc
*) CCSHARED
="-shared";;
13161 atheos
*) CCSHARED
="-fPIC";;
13164 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13165 echo "${ECHO_T}$CCSHARED" >&6; }
13166 # LINKFORSHARED are the flags passed to the $(CC) command that links
13167 # the python executable -- this is only needed for a few systems
13168 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13169 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13170 if test -z "$LINKFORSHARED"
13172 case $ac_sys_system/$ac_sys_release in
13173 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13175 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13176 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13177 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13178 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13179 # -u libsys_s pulls in all symbols in libsys
13181 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13183 # not used by the core itself but which needs to be in the core so
13184 # that dynamically loaded extension modules have access to it.
13185 # -prebind is no longer used, because it actually seems to give a
13186 # slowdown in stead of a speedup, maybe due to the large number of
13187 # dynamic loads Python does.
13189 LINKFORSHARED
="$extra_undefs"
13190 if test "$enable_framework"
13192 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13194 LINKFORSHARED
="$LINKFORSHARED";;
13195 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13196 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13197 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13198 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13199 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13201 LINKFORSHARED
="-Wl,--export-dynamic"
13203 SunOS
/5*) case $CC in
13205 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13207 LINKFORSHARED
="-Xlinker --export-dynamic"
13211 if test $enable_shared = "no"
13213 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13216 # -Wl,-E causes the symbols to be added to the dynamic
13217 # symbol table so that they can be found when a module
13218 # is loaded. -N 2048K causes the stack size to be set
13219 # to 2048 kilobytes so that the stack doesn't overflow
13220 # when running test_compile.py.
13221 LINKFORSHARED
='-Wl,-E -N 2048K';;
13224 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13225 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13229 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13230 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13231 if test ! "$LIBRARY" = "$LDLIBRARY"
13233 case $ac_sys_system in
13235 # Cygwin needs CCSHARED when building extension DLLs
13236 # but not when building the interpreter DLL.
13237 CFLAGSFORSHARED
='';;
13239 CFLAGSFORSHARED
='$(CCSHARED)'
13242 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13243 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13245 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13246 # library (with --enable-shared).
13247 # For platforms on which shared libraries are not allowed to have unresolved
13248 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13249 # if it is not required, since it creates a dependency of the shared library
13250 # to LIBS. This, in turn, means that applications linking the shared libpython
13251 # don't need to link LIBS explicitly. The default should be only changed
13252 # on systems where this approach causes problems.
13254 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13255 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13256 case "$ac_sys_system" in
13260 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13261 echo "${ECHO_T}$SHLIBS" >&6; }
13264 # checks for libraries
13266 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13267 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 ac_check_lib_save_LIBS
=$LIBS
13273 cat >conftest.
$ac_ext <<_ACEOF
13276 cat confdefs.h
>>conftest.
$ac_ext
13277 cat >>conftest.
$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13295 rm -f conftest.
$ac_objext conftest
$ac_exeext
13296 if { (ac_try
="$ac_link"
13297 case "(($ac_try" in
13298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_link") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } && {
13309 test -z "$ac_c_werror_flag" ||
13310 test ! -s conftest.err
13311 } && test -s conftest$ac_exeext &&
13312 $as_test_x conftest$ac_exeext; then
13313 ac_cv_lib_dl_dlopen=yes
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_cv_lib_dl_dlopen=no
13321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13322 conftest$ac_exeext conftest.$ac_ext
13323 LIBS=$ac_check_lib_save_LIBS
13325 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13326 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13327 if test $ac_cv_lib_dl_dlopen = yes; then
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_LIBDL 1
13335 # Dynamic linking for SunOS/Solaris and SYSV
13337 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 ac_check_lib_save_LIBS=$LIBS
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13361 return shl_load ();
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13370 *) ac_try_echo
=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1
>conftest.err
13377 cat conftest.err
>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest
$ac_exeext &&
13383 $as_test_x conftest
$ac_exeext; then
13384 ac_cv_lib_dld_shl_load
=yes
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.
$ac_ext >&5
13389 ac_cv_lib_dld_shl_load
=no
13392 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13393 conftest
$ac_exeext conftest.
$ac_ext
13394 LIBS
=$ac_check_lib_save_LIBS
13396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13397 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13398 if test $ac_cv_lib_dld_shl_load = yes; then
13399 cat >>confdefs.h
<<_ACEOF
13400 #define HAVE_LIBDLD 1
13406 # Dynamic linking for HP-UX
13408 # only check for sem_ini if thread support is requested
13409 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13410 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13411 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13412 if test "${ac_cv_search_sem_init+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 ac_func_search_save_LIBS
=$LIBS
13416 cat >conftest.
$ac_ext <<_ACEOF
13419 cat confdefs.h
>>conftest.
$ac_ext
13420 cat >>conftest.
$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13433 return sem_init ();
13438 for ac_lib
in '' pthread rt posix4
; do
13439 if test -z "$ac_lib"; then
13440 ac_res
="none required"
13443 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13445 rm -f conftest.
$ac_objext conftest
$ac_exeext
13446 if { (ac_try
="$ac_link"
13447 case "(($ac_try" in
13448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_link") 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest$ac_exeext &&
13462 $as_test_x conftest$ac_exeext; then
13463 ac_cv_search_sem_init=$ac_res
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13473 if test "${ac_cv_search_sem_init+set}" = set; then
13477 if test "${ac_cv_search_sem_init+set}" = set; then
13480 ac_cv_search_sem_init=no
13482 rm conftest.$ac_ext
13483 LIBS=$ac_func_search_save_LIBS
13485 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13486 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13487 ac_res=$ac_cv_search_sem_init
13488 if test "$ac_res" != no; then
13489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13492 # 'Real Time' functions on Solaris
13493 # posix4 on Solaris 2.6
13494 # pthread (first!) on Linux
13497 # check if we need libintl for locale functions
13498 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13499 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13500 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 ac_check_lib_save_LIBS=$LIBS
13504 LIBS="-lintl $LIBS"
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13512 /* Override any GCC internal prototype to avoid an error.
13513 Use char because int might match the return type of a GCC
13514 builtin and then its argument prototype would still apply. */
13518 char textdomain ();
13522 return textdomain ();
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13531 *) ac_try_echo
=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_link") 2>conftest.er1
13536 grep -v '^ *+' conftest.er1
>conftest.err
13538 cat conftest.err
>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } && {
13541 test -z "$ac_c_werror_flag" ||
13542 test ! -s conftest.err
13543 } && test -s conftest
$ac_exeext &&
13544 $as_test_x conftest
$ac_exeext; then
13545 ac_cv_lib_intl_textdomain
=yes
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.
$ac_ext >&5
13550 ac_cv_lib_intl_textdomain
=no
13553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13554 conftest
$ac_exeext conftest.
$ac_ext
13555 LIBS
=$ac_check_lib_save_LIBS
13557 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13558 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13559 if test $ac_cv_lib_intl_textdomain = yes; then
13561 cat >>confdefs.h
<<\_ACEOF
13562 #define WITH_LIBINTL 1
13568 # checks for system dependent C++ extensions support
13569 case "$ac_sys_system" in
13570 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13571 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13572 cat >conftest.
$ac_ext <<_ACEOF
13575 cat confdefs.h
>>conftest.
$ac_ext
13576 cat >>conftest.
$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 #include "/usr/lpp/xlC/include/load.h"
13582 loadAndInit("", 0, "")
13587 rm -f conftest.
$ac_objext conftest
$ac_exeext
13588 if { (ac_try
="$ac_link"
13589 case "(($ac_try" in
13590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && {
13601 test -z "$ac_c_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest$ac_exeext &&
13604 $as_test_x conftest$ac_exeext; then
13606 cat >>confdefs.h <<\_ACEOF
13607 #define AIX_GENUINE_CPLUSPLUS 1
13610 { echo "$as_me:$LINENO: result: yes" >&5
13611 echo "${ECHO_T}yes" >&6; }
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 { echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6; }
13620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13621 conftest$ac_exeext conftest.$ac_ext;;
13625 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13626 # BeOS' sockets are stashed in libnet.
13627 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13628 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13629 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 ac_check_lib_save_LIBS=$LIBS
13634 cat >conftest.$ac_ext <<_ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13641 /* Override any GCC internal prototype to avoid an error.
13642 Use char because int might match the return type of a GCC
13643 builtin and then its argument prototype would still apply. */
13656 rm -f conftest.$ac_objext conftest$ac_exeext
13657 if { (ac_try="$ac_link"
13658 case "(($ac_try" in
13659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13660 *) ac_try_echo
=$ac_try;;
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_link") 2>conftest.er1
13665 grep -v '^ *+' conftest.er1
>conftest.err
13667 cat conftest.err
>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } && {
13670 test -z "$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 } && test -s conftest
$ac_exeext &&
13673 $as_test_x conftest
$ac_exeext; then
13674 ac_cv_lib_nsl_t_open
=yes
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.
$ac_ext >&5
13679 ac_cv_lib_nsl_t_open
=no
13682 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13683 conftest
$ac_exeext conftest.
$ac_ext
13684 LIBS
=$ac_check_lib_save_LIBS
13686 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13687 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13688 if test $ac_cv_lib_nsl_t_open = yes; then
13692 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13693 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13694 if test "${ac_cv_lib_socket_socket+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 ac_check_lib_save_LIBS
=$LIBS
13698 LIBS
="-lsocket $LIBS $LIBS"
13699 cat >conftest.
$ac_ext <<_ACEOF
13702 cat confdefs.h
>>conftest.
$ac_ext
13703 cat >>conftest.
$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13721 rm -f conftest.
$ac_objext conftest
$ac_exeext
13722 if { (ac_try
="$ac_link"
13723 case "(($ac_try" in
13724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_link") 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && {
13735 test -z "$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 } && test -s conftest$ac_exeext &&
13738 $as_test_x conftest$ac_exeext; then
13739 ac_cv_lib_socket_socket=yes
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_cv_lib_socket_socket=no
13747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13751 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13752 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13753 if test $ac_cv_lib_socket_socket = yes; then
13754 LIBS="-lsocket $LIBS"
13758 case "$ac_sys_system" in
13760 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13761 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13762 if test "${ac_cv_lib_net_socket+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 ac_check_lib_save_LIBS=$LIBS
13766 LIBS="-lnet $LIBS $LIBS"
13767 cat >conftest.$ac_ext <<_ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13793 *) ac_try_echo
=$ac_try;;
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_link") 2>conftest.er1
13798 grep -v '^ *+' conftest.er1
>conftest.err
13800 cat conftest.err
>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest
$ac_exeext &&
13806 $as_test_x conftest
$ac_exeext; then
13807 ac_cv_lib_net_socket
=yes
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.
$ac_ext >&5
13812 ac_cv_lib_net_socket
=no
13815 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13816 conftest
$ac_exeext conftest.
$ac_ext
13817 LIBS
=$ac_check_lib_save_LIBS
13819 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13820 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13821 if test $ac_cv_lib_net_socket = yes; then
13828 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13829 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13831 # Check whether --with-libs was given.
13832 if test "${with_libs+set}" = set; then
13833 withval
=$with_libs;
13834 { echo "$as_me:$LINENO: result: $withval" >&5
13835 echo "${ECHO_T}$withval" >&6; }
13836 LIBS
="$withval $LIBS"
13839 { echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6; }
13844 # Check for use of the system libffi library
13845 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13846 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13848 # Check whether --with-system_ffi was given.
13849 if test "${with_system_ffi+set}" = set; then
13850 withval
=$with_system_ffi;
13854 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13855 echo "${ECHO_T}$with_system_ffi" >&6; }
13857 # Determine if signalmodule should be used.
13860 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13861 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13863 # Check whether --with-signal-module was given.
13864 if test "${with_signal_module+set}" = set; then
13865 withval
=$with_signal_module;
13869 if test -z "$with_signal_module"
13870 then with_signal_module
="yes"
13872 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13873 echo "${ECHO_T}$with_signal_module" >&6; }
13875 if test "${with_signal_module}" = "yes"; then
13876 USE_SIGNAL_MODULE
=""
13879 USE_SIGNAL_MODULE
="#"
13880 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13883 # This is used to generate Setup.config
13885 USE_THREAD_MODULE
=""
13887 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13888 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13891 # Check whether --with-dec-threads was given.
13892 if test "${with_dec_threads+set}" = set; then
13893 withval
=$with_dec_threads;
13894 { echo "$as_me:$LINENO: result: $withval" >&5
13895 echo "${ECHO_T}$withval" >&6; }
13897 if test "${with_thread+set}" != set; then
13898 with_thread
="$withval";
13901 { echo "$as_me:$LINENO: result: no" >&5
13902 echo "${ECHO_T}no" >&6; }
13906 # Templates for things AC_DEFINEd more than once.
13907 # For a single AC_DEFINE, no template is needed.
13915 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13916 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13918 # Check whether --with-threads was given.
13919 if test "${with_threads+set}" = set; then
13920 withval
=$with_threads;
13924 # --with-thread is deprecated, but check for it anyway
13926 # Check whether --with-thread was given.
13927 if test "${with_thread+set}" = set; then
13928 withval
=$with_thread; with_threads
=$with_thread
13932 if test -z "$with_threads"
13933 then with_threads
="yes"
13935 { echo "$as_me:$LINENO: result: $with_threads" >&5
13936 echo "${ECHO_T}$with_threads" >&6; }
13939 if test "$with_threads" = "no"
13941 USE_THREAD_MODULE
="#"
13942 elif test "$ac_cv_pthread_is_default" = yes
13944 cat >>confdefs.h
<<\_ACEOF
13945 #define WITH_THREAD 1
13948 # Defining _REENTRANT on system with POSIX threads should not hurt.
13949 cat >>confdefs.h
<<\_ACEOF
13950 #define _REENTRANT 1
13954 THREADOBJ
="Python/thread.o"
13955 elif test "$ac_cv_kpthread" = "yes"
13958 if test "$ac_cv_cxx_thread" = "yes"; then
13959 CXX
="$CXX -Kpthread"
13961 cat >>confdefs.h
<<\_ACEOF
13962 #define WITH_THREAD 1
13966 THREADOBJ
="Python/thread.o"
13967 elif test "$ac_cv_kthread" = "yes"
13970 if test "$ac_cv_cxx_thread" = "yes"; then
13971 CXX
="$CXX -Kthread"
13973 cat >>confdefs.h
<<\_ACEOF
13974 #define WITH_THREAD 1
13978 THREADOBJ
="Python/thread.o"
13979 elif test "$ac_cv_pthread" = "yes"
13982 if test "$ac_cv_cxx_thread" = "yes"; then
13983 CXX
="$CXX -pthread"
13985 cat >>confdefs.h
<<\_ACEOF
13986 #define WITH_THREAD 1
13990 THREADOBJ
="Python/thread.o"
13992 if test ! -z "$with_threads" -a -d "$with_threads"
13993 then LDFLAGS
="$LDFLAGS -L$with_threads"
13995 if test ! -z "$withval" -a -d "$withval"
13996 then LDFLAGS
="$LDFLAGS -L$withval"
13999 # According to the POSIX spec, a pthreads implementation must
14000 # define _POSIX_THREADS in unistd.h. Some apparently don't
14001 # (e.g. gnu pth with pthread emulation)
14002 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14003 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14004 cat >conftest.
$ac_ext <<_ACEOF
14007 cat confdefs.h
>>conftest.
$ac_ext
14008 cat >>conftest.
$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 #include <unistd.h>
14012 #ifdef _POSIX_THREADS
14017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14018 $EGREP "yes" >/dev
/null
2>&1; then
14019 unistd_defines_pthreads
=yes
14021 unistd_defines_pthreads
=no
14025 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14026 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14028 cat >>confdefs.h
<<\_ACEOF
14029 #define _REENTRANT 1
14032 if test "${ac_cv_header_cthreads_h+set}" = set; then
14033 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14034 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14035 if test "${ac_cv_header_cthreads_h+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14039 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14041 # Is the header compilable?
14042 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14043 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14044 cat >conftest.
$ac_ext <<_ACEOF
14047 cat confdefs.h
>>conftest.
$ac_ext
14048 cat >>conftest.
$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 #include <cthreads.h>
14053 rm -f conftest.
$ac_objext
14054 if { (ac_try
="$ac_compile"
14055 case "(($ac_try" in
14056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_compile") 2>conftest.er1
14062 grep -v '^ *+' conftest.er1 >conftest.err
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest.$ac_objext; then
14070 ac_header_compiler=yes
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_header_compiler=no
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14080 echo "${ECHO_T}$ac_header_compiler" >&6; }
14082 # Is the header present?
14083 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14084 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14085 cat >conftest.$ac_ext <<_ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 #include <cthreads.h>
14093 if { (ac_try="$ac_cpp conftest.$ac_ext"
14094 case "(($ac_try" in
14095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14096 *) ac_try_echo
=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1
>conftest.err
14103 cat conftest.err
>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } >/dev
/null
&& {
14106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14109 ac_header_preproc
=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.
$ac_ext >&5
14114 ac_header_preproc
=no
14117 rm -f conftest.err conftest.
$ac_ext
14118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14119 echo "${ECHO_T}$ac_header_preproc" >&6; }
14121 # So? What about this header?
14122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14124 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14125 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14127 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14128 ac_header_preproc
=yes
14131 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14132 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14134 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14136 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14138 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14140 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14142 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14144 ## ------------------------------------------------ ##
14145 ## Report this to http://www.python.org/python-bugs ##
14146 ## ------------------------------------------------ ##
14148 ) |
sed "s/^/$as_me: WARNING: /" >&2
14151 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14152 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14153 if test "${ac_cv_header_cthreads_h+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 ac_cv_header_cthreads_h
=$ac_header_preproc
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14159 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14162 if test $ac_cv_header_cthreads_h = yes; then
14163 cat >>confdefs.h
<<\_ACEOF
14164 #define WITH_THREAD 1
14167 cat >>confdefs.h
<<\_ACEOF
14168 #define C_THREADS 1
14172 cat >>confdefs.h
<<\_ACEOF
14173 #define HURD_C_THREADS 1
14176 LIBS
="$LIBS -lthreads"
14177 THREADOBJ
="Python/thread.o"
14180 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14181 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14182 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14183 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14187 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14189 # Is the header compilable?
14190 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14191 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14192 cat >conftest.
$ac_ext <<_ACEOF
14195 cat confdefs.h
>>conftest.
$ac_ext
14196 cat >>conftest.
$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 $ac_includes_default
14199 #include <mach/cthreads.h>
14201 rm -f conftest.
$ac_objext
14202 if { (ac_try
="$ac_compile"
14203 case "(($ac_try" in
14204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_compile") 2>conftest.er1
14210 grep -v '^ *+' conftest.er1 >conftest.err
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } && {
14215 test -z "$ac_c_werror_flag" ||
14216 test ! -s conftest.err
14217 } && test -s conftest.$ac_objext; then
14218 ac_header_compiler=yes
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 ac_header_compiler=no
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14228 echo "${ECHO_T}$ac_header_compiler" >&6; }
14230 # Is the header present?
14231 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14232 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #include <mach/cthreads.h>
14241 if { (ac_try="$ac_cpp conftest.$ac_ext"
14242 case "(($ac_try" in
14243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14244 *) ac_try_echo
=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14249 grep -v '^ *+' conftest.er1
>conftest.err
14251 cat conftest.err
>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } >/dev
/null
&& {
14254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14257 ac_header_preproc
=yes
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.
$ac_ext >&5
14262 ac_header_preproc
=no
14265 rm -f conftest.err conftest.
$ac_ext
14266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14267 echo "${ECHO_T}$ac_header_preproc" >&6; }
14269 # So? What about this header?
14270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14272 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14273 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14274 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14275 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14276 ac_header_preproc
=yes
14279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14280 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14282 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14284 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14286 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14288 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14290 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14292 ## ------------------------------------------------ ##
14293 ## Report this to http://www.python.org/python-bugs ##
14294 ## ------------------------------------------------ ##
14296 ) |
sed "s/^/$as_me: WARNING: /" >&2
14299 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14300 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14301 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14306 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14307 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14310 if test $ac_cv_header_mach_cthreads_h = yes; then
14311 cat >>confdefs.h
<<\_ACEOF
14312 #define WITH_THREAD 1
14315 cat >>confdefs.h
<<\_ACEOF
14316 #define C_THREADS 1
14320 cat >>confdefs.h
<<\_ACEOF
14321 #define MACH_C_THREADS 1
14324 THREADOBJ
="Python/thread.o"
14327 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14328 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14330 # Check whether --with-pth was given.
14331 if test "${with_pth+set}" = set; then
14332 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14333 echo "${ECHO_T}$withval" >&6; }
14334 cat >>confdefs.h
<<\_ACEOF
14335 #define WITH_THREAD 1
14339 cat >>confdefs.h
<<\_ACEOF
14344 THREADOBJ
="Python/thread.o"
14346 { echo "$as_me:$LINENO: result: no" >&5
14347 echo "${ECHO_T}no" >&6; }
14349 # Just looking for pthread_create in libpthread is not enough:
14350 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14351 # So we really have to include pthread.h, and then link.
14353 LIBS
="$LIBS -lpthread"
14354 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14355 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14356 cat >conftest.
$ac_ext <<_ACEOF
14359 cat confdefs.h
>>conftest.
$ac_ext
14360 cat >>conftest.
$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 #include <pthread.h>
14364 void * start_routine (void *arg) { exit (0); }
14369 pthread_create (NULL, NULL, start_routine, NULL)
14374 rm -f conftest.
$ac_objext conftest
$ac_exeext
14375 if { (ac_try
="$ac_link"
14376 case "(($ac_try" in
14377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_link") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest$ac_exeext &&
14391 $as_test_x conftest$ac_exeext; then
14393 { echo "$as_me:$LINENO: result: yes" >&5
14394 echo "${ECHO_T}yes" >&6; }
14395 cat >>confdefs.h <<\_ACEOF
14396 #define WITH_THREAD 1
14400 THREADOBJ="Python/thread.o"
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14407 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14408 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14409 if test "${ac_cv_func_pthread_detach+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14420 #define pthread_detach innocuous_pthread_detach
14422 /* System header to define __stub macros and hopefully few prototypes,
14423 which can conflict with char pthread_detach (); below.
14424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14425 <limits.h> exists even on freestanding compilers. */
14428 # include <limits.h>
14430 # include <assert.h>
14433 #undef pthread_detach
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14441 char pthread_detach ();
14442 /* The GNU C library defines this for functions which it implements
14443 to always fail with ENOSYS. Some functions are actually named
14444 something starting with __ and the normal name is an alias. */
14445 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14452 return pthread_detach ();
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (ac_try="$ac_link"
14459 case "(($ac_try" in
14460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14461 *) ac_try_echo
=$ac_try;;
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_link") 2>conftest.er1
14466 grep -v '^ *+' conftest.er1
>conftest.err
14468 cat conftest.err
>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && {
14471 test -z "$ac_c_werror_flag" ||
14472 test ! -s conftest.err
14473 } && test -s conftest
$ac_exeext &&
14474 $as_test_x conftest
$ac_exeext; then
14475 ac_cv_func_pthread_detach
=yes
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.
$ac_ext >&5
14480 ac_cv_func_pthread_detach
=no
14483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14484 conftest
$ac_exeext conftest.
$ac_ext
14486 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14487 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14488 if test $ac_cv_func_pthread_detach = yes; then
14489 cat >>confdefs.h
<<\_ACEOF
14490 #define WITH_THREAD 1
14494 THREADOBJ
="Python/thread.o"
14497 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14498 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14499 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14500 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14504 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14506 # Is the header compilable?
14507 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14508 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14509 cat >conftest.
$ac_ext <<_ACEOF
14512 cat confdefs.h
>>conftest.
$ac_ext
14513 cat >>conftest.
$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 $ac_includes_default
14516 #include <atheos/threads.h>
14518 rm -f conftest.
$ac_objext
14519 if { (ac_try
="$ac_compile"
14520 case "(($ac_try" in
14521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_compile") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && {
14532 test -z "$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest.$ac_objext; then
14535 ac_header_compiler=yes
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_header_compiler=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14545 echo "${ECHO_T}$ac_header_compiler" >&6; }
14547 # Is the header present?
14548 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14549 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 #include <atheos/threads.h>
14558 if { (ac_try="$ac_cpp conftest.$ac_ext"
14559 case "(($ac_try" in
14560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14561 *) ac_try_echo
=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14566 grep -v '^ *+' conftest.er1
>conftest.err
14568 cat conftest.err
>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } >/dev
/null
&& {
14571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14572 test ! -s conftest.err
14574 ac_header_preproc
=yes
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.
$ac_ext >&5
14579 ac_header_preproc
=no
14582 rm -f conftest.err conftest.
$ac_ext
14583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14584 echo "${ECHO_T}$ac_header_preproc" >&6; }
14586 # So? What about this header?
14587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14589 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14590 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14592 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14593 ac_header_preproc
=yes
14596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14597 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14599 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14601 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14603 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14605 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14607 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14609 ## ------------------------------------------------ ##
14610 ## Report this to http://www.python.org/python-bugs ##
14611 ## ------------------------------------------------ ##
14613 ) |
sed "s/^/$as_me: WARNING: /" >&2
14616 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14617 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14618 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14623 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14624 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14627 if test $ac_cv_header_atheos_threads_h = yes; then
14628 cat >>confdefs.h
<<\_ACEOF
14629 #define WITH_THREAD 1
14633 cat >>confdefs.h
<<\_ACEOF
14634 #define ATHEOS_THREADS 1
14637 THREADOBJ
="Python/thread.o"
14640 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14641 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14642 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14643 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14647 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14649 # Is the header compilable?
14650 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14651 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14652 cat >conftest.
$ac_ext <<_ACEOF
14655 cat confdefs.h
>>conftest.
$ac_ext
14656 cat >>conftest.
$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 $ac_includes_default
14659 #include <kernel/OS.h>
14661 rm -f conftest.
$ac_objext
14662 if { (ac_try
="$ac_compile"
14663 case "(($ac_try" in
14664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_compile") 2>conftest.er1
14670 grep -v '^ *+' conftest.er1 >conftest.err
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } && {
14675 test -z "$ac_c_werror_flag" ||
14676 test ! -s conftest.err
14677 } && test -s conftest.$ac_objext; then
14678 ac_header_compiler=yes
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_header_compiler=no
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14688 echo "${ECHO_T}$ac_header_compiler" >&6; }
14690 # Is the header present?
14691 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14692 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 #include <kernel/OS.h>
14701 if { (ac_try="$ac_cpp conftest.$ac_ext"
14702 case "(($ac_try" in
14703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14704 *) ac_try_echo
=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1
>conftest.err
14711 cat conftest.err
>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } >/dev
/null
&& {
14714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14717 ac_header_preproc
=yes
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.
$ac_ext >&5
14722 ac_header_preproc
=no
14725 rm -f conftest.err conftest.
$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14727 echo "${ECHO_T}$ac_header_preproc" >&6; }
14729 # So? What about this header?
14730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14732 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14733 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14735 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14736 ac_header_preproc
=yes
14739 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14740 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14742 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14744 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14746 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14748 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14750 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14752 ## ------------------------------------------------ ##
14753 ## Report this to http://www.python.org/python-bugs ##
14754 ## ------------------------------------------------ ##
14756 ) |
sed "s/^/$as_me: WARNING: /" >&2
14759 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14760 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14761 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14770 if test $ac_cv_header_kernel_OS_h = yes; then
14771 cat >>confdefs.h
<<\_ACEOF
14772 #define WITH_THREAD 1
14776 cat >>confdefs.h
<<\_ACEOF
14777 #define BEOS_THREADS 1
14780 THREADOBJ
="Python/thread.o"
14783 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14784 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14785 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 ac_check_lib_save_LIBS
=$LIBS
14789 LIBS
="-lpthreads $LIBS"
14790 cat >conftest.
$ac_ext <<_ACEOF
14793 cat confdefs.h
>>conftest.
$ac_ext
14794 cat >>conftest.
$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14797 /* Override any GCC internal prototype to avoid an error.
14798 Use char because int might match the return type of a GCC
14799 builtin and then its argument prototype would still apply. */
14803 char pthread_create ();
14807 return pthread_create ();
14812 rm -f conftest.
$ac_objext conftest
$ac_exeext
14813 if { (ac_try
="$ac_link"
14814 case "(($ac_try" in
14815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_link") 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest$ac_exeext &&
14829 $as_test_x conftest$ac_exeext; then
14830 ac_cv_lib_pthreads_pthread_create=yes
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_cv_lib_pthreads_pthread_create=no
14838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14839 conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14842 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14843 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14844 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14845 cat >>confdefs.h <<\_ACEOF
14846 #define WITH_THREAD 1
14850 LIBS="$LIBS -lpthreads"
14851 THREADOBJ="Python/thread.o"
14854 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14855 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14856 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 ac_check_lib_save_LIBS=$LIBS
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14868 /* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
14874 char pthread_create ();
14878 return pthread_create ();
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (ac_try="$ac_link"
14885 case "(($ac_try" in
14886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14887 *) ac_try_echo
=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_link") 2>conftest.er1
14892 grep -v '^ *+' conftest.er1
>conftest.err
14894 cat conftest.err
>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest
$ac_exeext &&
14900 $as_test_x conftest
$ac_exeext; then
14901 ac_cv_lib_c_r_pthread_create
=yes
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.
$ac_ext >&5
14906 ac_cv_lib_c_r_pthread_create
=no
14909 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14910 conftest
$ac_exeext conftest.
$ac_ext
14911 LIBS
=$ac_check_lib_save_LIBS
14913 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14914 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14915 if test $ac_cv_lib_c_r_pthread_create = yes; then
14916 cat >>confdefs.h
<<\_ACEOF
14917 #define WITH_THREAD 1
14922 THREADOBJ
="Python/thread.o"
14925 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14926 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14927 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 ac_check_lib_save_LIBS
=$LIBS
14931 LIBS
="-lpthread $LIBS"
14932 cat >conftest.
$ac_ext <<_ACEOF
14935 cat confdefs.h
>>conftest.
$ac_ext
14936 cat >>conftest.
$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14939 /* Override any GCC internal prototype to avoid an error.
14940 Use char because int might match the return type of a GCC
14941 builtin and then its argument prototype would still apply. */
14945 char __pthread_create_system ();
14949 return __pthread_create_system ();
14954 rm -f conftest.
$ac_objext conftest
$ac_exeext
14955 if { (ac_try
="$ac_link"
14956 case "(($ac_try" in
14957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_link") 2>conftest.er1
14963 grep -v '^ *+' conftest.er1 >conftest.err
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } && {
14968 test -z "$ac_c_werror_flag" ||
14969 test ! -s conftest.err
14970 } && test -s conftest$ac_exeext &&
14971 $as_test_x conftest$ac_exeext; then
14972 ac_cv_lib_pthread___pthread_create_system=yes
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_cv_lib_pthread___pthread_create_system=no
14980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14981 conftest$ac_exeext conftest.$ac_ext
14982 LIBS=$ac_check_lib_save_LIBS
14984 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14985 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14986 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14987 cat >>confdefs.h <<\_ACEOF
14988 #define WITH_THREAD 1
14992 LIBS="$LIBS -lpthread"
14993 THREADOBJ="Python/thread.o"
14996 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14997 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14998 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 ac_check_lib_save_LIBS=$LIBS
15003 cat >conftest.$ac_ext <<_ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15010 /* Override any GCC internal prototype to avoid an error.
15011 Use char because int might match the return type of a GCC
15012 builtin and then its argument prototype would still apply. */
15016 char pthread_create ();
15020 return pthread_create ();
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (ac_try="$ac_link"
15027 case "(($ac_try" in
15028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15029 *) ac_try_echo
=$ac_try;;
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_link") 2>conftest.er1
15034 grep -v '^ *+' conftest.er1
>conftest.err
15036 cat conftest.err
>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest
$ac_exeext &&
15042 $as_test_x conftest
$ac_exeext; then
15043 ac_cv_lib_cma_pthread_create
=yes
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.
$ac_ext >&5
15048 ac_cv_lib_cma_pthread_create
=no
15051 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15052 conftest
$ac_exeext conftest.
$ac_ext
15053 LIBS
=$ac_check_lib_save_LIBS
15055 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15056 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15057 if test $ac_cv_lib_cma_pthread_create = yes; then
15058 cat >>confdefs.h
<<\_ACEOF
15059 #define WITH_THREAD 1
15064 THREADOBJ
="Python/thread.o"
15067 USE_THREAD_MODULE
="#"
15087 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15088 conftest
$ac_exeext conftest.
$ac_ext
15098 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15099 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15100 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 ac_check_lib_save_LIBS
=$LIBS
15105 cat >conftest.
$ac_ext <<_ACEOF
15108 cat confdefs.h
>>conftest.
$ac_ext
15109 cat >>conftest.
$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15122 return usconfig ();
15127 rm -f conftest.
$ac_objext conftest
$ac_exeext
15128 if { (ac_try
="$ac_link"
15129 case "(($ac_try" in
15130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext &&
15144 $as_test_x conftest$ac_exeext; then
15145 ac_cv_lib_mpc_usconfig=yes
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_cv_lib_mpc_usconfig=no
15153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154 conftest$ac_exeext conftest.$ac_ext
15155 LIBS=$ac_check_lib_save_LIBS
15157 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15158 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15159 if test $ac_cv_lib_mpc_usconfig = yes; then
15160 cat >>confdefs.h <<\_ACEOF
15161 #define WITH_THREAD 1
15165 THREADOBJ="Python/thread.o"
15166 USE_THREAD_MODULE=""
15170 if test "$posix_threads" != "yes"; then
15171 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15172 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15173 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 ac_check_lib_save_LIBS=$LIBS
15177 LIBS="-lthread $LIBS"
15178 cat >conftest.$ac_ext <<_ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15185 /* Override any GCC internal prototype to avoid an error.
15186 Use char because int might match the return type of a GCC
15187 builtin and then its argument prototype would still apply. */
15191 char thr_create ();
15195 return thr_create ();
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15204 *) ac_try_echo
=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_link") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1
>conftest.err
15211 cat conftest.err
>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest
$ac_exeext &&
15217 $as_test_x conftest
$ac_exeext; then
15218 ac_cv_lib_thread_thr_create
=yes
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.
$ac_ext >&5
15223 ac_cv_lib_thread_thr_create
=no
15226 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15227 conftest
$ac_exeext conftest.
$ac_ext
15228 LIBS
=$ac_check_lib_save_LIBS
15230 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15231 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15232 if test $ac_cv_lib_thread_thr_create = yes; then
15233 cat >>confdefs.h
<<\_ACEOF
15234 #define WITH_THREAD 1
15237 LIBS
="$LIBS -lthread"
15238 THREADOBJ
="Python/thread.o"
15239 USE_THREAD_MODULE
=""
15244 if test "$USE_THREAD_MODULE" != "#"
15246 # If the above checks didn't disable threads, (at least) OSF1
15247 # needs this '-threads' argument during linking.
15248 case $ac_sys_system in
15249 OSF1
) LDLAST
=-threads;;
15254 if test "$posix_threads" = "yes"; then
15255 if test "$unistd_defines_pthreads" = "no"; then
15257 cat >>confdefs.h
<<\_ACEOF
15258 #define _POSIX_THREADS 1
15263 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15264 case $ac_sys_system/$ac_sys_release in
15266 cat >>confdefs.h
<<\_ACEOF
15267 #define HAVE_PTHREAD_DESTRUCTOR 1
15272 cat >>confdefs.h
<<\_ACEOF
15273 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15278 cat >>confdefs.h
<<\_ACEOF
15279 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15285 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15286 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15287 if test "${ac_cv_pthread_system_supported+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 if test "$cross_compiling" = yes; then
15291 ac_cv_pthread_system_supported
=no
15293 cat >conftest.
$ac_ext <<_ACEOF
15296 cat confdefs.h
>>conftest.
$ac_ext
15297 cat >>conftest.
$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 #include <pthread.h>
15300 void *foo(void *parm) {
15304 pthread_attr_t attr;
15306 if (pthread_attr_init(&attr)) exit(-1);
15307 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15308 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15312 rm -f conftest
$ac_exeext
15313 if { (ac_try
="$ac_link"
15314 case "(($ac_try" in
15315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_link") 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15325 *) ac_try_echo
=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_cv_pthread_system_supported
=yes
15334 echo "$as_me: program exited with status $ac_status" >&5
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.
$ac_ext >&5
15338 ( exit $ac_status )
15339 ac_cv_pthread_system_supported
=no
15341 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15348 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15349 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15350 if test "$ac_cv_pthread_system_supported" = "yes"; then
15352 cat >>confdefs.h
<<\_ACEOF
15353 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15358 for ac_func
in pthread_sigmask
15360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15363 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 cat >conftest.
$ac_ext <<_ACEOF
15369 cat confdefs.h
>>conftest.
$ac_ext
15370 cat >>conftest.
$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15374 #define $ac_func innocuous_$ac_func
15376 /* System header to define __stub macros and hopefully few prototypes,
15377 which can conflict with char $ac_func (); below.
15378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15379 <limits.h> exists even on freestanding compilers. */
15382 # include <limits.h>
15384 # include <assert.h>
15389 /* Override any GCC internal prototype to avoid an error.
15390 Use char because int might match the return type of a GCC
15391 builtin and then its argument prototype would still apply. */
15396 /* The GNU C library defines this for functions which it implements
15397 to always fail with ENOSYS. Some functions are actually named
15398 something starting with __ and the normal name is an alias. */
15399 #if defined __stub_$ac_func || defined __stub___$ac_func
15406 return $ac_func ();
15411 rm -f conftest.
$ac_objext conftest
$ac_exeext
15412 if { (ac_try
="$ac_link"
15413 case "(($ac_try" in
15414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_link") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } && {
15425 test -z "$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 } && test -s conftest$ac_exeext &&
15428 $as_test_x conftest$ac_exeext; then
15429 eval "$as_ac_var=yes"
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 eval "$as_ac_var=no"
15437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15438 conftest$ac_exeext conftest.$ac_ext
15440 ac_res=`eval echo '${'$as_ac_var'}'`
15441 { echo "$as_me:$LINENO: result: $ac_res" >&5
15442 echo "${ECHO_T}$ac_res" >&6; }
15443 if test `eval echo '${'$as_ac_var'}'` = yes; then
15444 cat >>confdefs.h <<_ACEOF
15445 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15447 case $ac_sys_system in
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15462 # Check for enable-ipv6
15465 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15466 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15467 # Check whether --enable-ipv6 was given.
15468 if test "${enable_ipv6+set}" = set; then
15469 enableval=$enable_ipv6; case "$enableval" in
15471 { echo "$as_me:$LINENO: result: no" >&5
15472 echo "${ECHO_T}no" >&6; }
15475 *) { echo "$as_me:$LINENO: result: yes" >&5
15476 echo "${ECHO_T}yes" >&6; }
15477 cat >>confdefs.h <<\_ACEOF
15478 #define ENABLE_IPV6 1
15486 if test "$cross_compiling" = yes; then
15487 { echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6; }
15492 cat >conftest.$ac_ext <<_ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 /* AF_INET6 available check */
15499 #include <sys/types.h>
15500 #include <sys/socket.h>
15503 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15510 rm -f conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15514 *) ac_try_echo
=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_link") 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15521 { (case "(($ac_try" in
15522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_try") 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 { echo "$as_me:$LINENO: result: yes" >&5
15531 echo "${ECHO_T}yes" >&6; }
15534 echo "$as_me: program exited with status $ac_status" >&5
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ( exit $ac_status )
15539 { echo "$as_me:$LINENO: result: no" >&5
15540 echo "${ECHO_T}no" >&6; }
15543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15548 if test "$ipv6" = "yes"; then
15549 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15550 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include <sys/types.h>
15558 #include <netinet/in.h>
15562 struct sockaddr_in6 x;
15568 rm -f conftest.$ac_objext
15569 if { (ac_try="$ac_compile"
15570 case "(($ac_try" in
15571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15572 *) ac_try_echo
=$ac_try;;
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15577 grep -v '^ *+' conftest.er1
>conftest.err
15579 cat conftest.err
>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest.
$ac_objext; then
15585 { echo "$as_me:$LINENO: result: yes" >&5
15586 echo "${ECHO_T}yes" >&6; }
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.
$ac_ext >&5
15592 { echo "$as_me:$LINENO: result: no" >&5
15593 echo "${ECHO_T}no" >&6; }
15597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15600 if test "$ipv6" = "yes"; then
15601 cat >>confdefs.h
<<\_ACEOF
15602 #define ENABLE_IPV6 1
15614 if test "$ipv6" = "yes"; then
15615 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15616 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15617 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15628 #include <netinet/in.h>
15629 #ifdef IPV6_INRIA_VERSION
15633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15634 $EGREP "yes" >/dev
/null
2>&1; then
15641 cat >conftest.
$ac_ext <<_ACEOF
15644 cat confdefs.h
>>conftest.
$ac_ext
15645 cat >>conftest.
$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15648 #include <netinet/in.h>
15653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15654 $EGREP "yes" >/dev
/null
2>&1; then
15657 ipv6libdir
=/usr
/local
/v
6/lib
15664 cat >conftest.
$ac_ext <<_ACEOF
15667 cat confdefs.h
>>conftest.
$ac_ext
15668 cat >>conftest.
$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15671 #include <features.h>
15672 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15677 $EGREP "yes" >/dev
/null
2>&1; then
15685 if test -d /usr
/inet6
; then
15688 ipv6libdir
=/usr
/inet
6/lib
15689 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15693 if test -f /etc
/netconfig
; then
15694 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15701 cat >conftest.
$ac_ext <<_ACEOF
15704 cat confdefs.h
>>conftest.
$ac_ext
15705 cat >>conftest.
$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15708 #include <sys/param.h>
15709 #ifdef _TOSHIBA_INET6
15713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15714 $EGREP "yes" >/dev
/null
2>&1; then
15717 ipv6libdir
=/usr
/local
/v
6/lib
15723 cat >conftest.
$ac_ext <<_ACEOF
15726 cat confdefs.h
>>conftest.
$ac_ext
15727 cat >>conftest.
$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 #include </usr/local/v6/include/sys/v6config.h>
15735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15736 $EGREP "yes" >/dev
/null
2>&1; then
15739 ipv6libdir
=/usr
/local
/v
6/lib
;
15740 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15746 cat >conftest.
$ac_ext <<_ACEOF
15749 cat confdefs.h
>>conftest.
$ac_ext
15750 cat >>conftest.
$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15753 #include <sys/param.h>
15754 #ifdef _ZETA_MINAMI_INET6
15758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15759 $EGREP "yes" >/dev
/null
2>&1; then
15762 ipv6libdir
=/usr
/local
/v
6/lib
15768 if test "$ipv6type" != "unknown"; then
15772 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15773 echo "${ECHO_T}$ipv6type" >&6; }
15776 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15777 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15778 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15779 echo "using lib$ipv6lib"
15781 if test $ipv6trylibc = "yes"; then
15784 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15785 echo "You need to fetch lib$ipv6lib.a from appropriate"
15786 echo 'ipv6 kit and compile beforehand.'
15792 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15793 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15794 cat >conftest.
$ac_ext <<_ACEOF
15797 cat confdefs.h
>>conftest.
$ac_ext
15798 cat >>conftest.
$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <Carbon/Carbon.h>
15804 FSIORefNum fRef = 0
15809 rm -f conftest.
$ac_objext
15810 if { (ac_try
="$ac_compile"
15811 case "(($ac_try" in
15812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15813 *) ac_try_echo=$ac_try;;
15815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816 (eval "$ac_compile") 2>conftest.er1
15818 grep -v '^ *+' conftest.er1 >conftest.err
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } && {
15823 test -z "$ac_c_werror_flag" ||
15824 test ! -s conftest.err
15825 } && test -s conftest.$ac_objext; then
15827 cat >>confdefs.h <<\_ACEOF
15828 #define HAVE_OSX105_SDK 1
15831 { echo "$as_me:$LINENO: result: yes" >&5
15832 echo "${ECHO_T}yes" >&6; }
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 { echo "$as_me:$LINENO: result: no" >&5
15838 echo "${ECHO_T}no" >&6; }
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 # Check for --with-doc-strings
15845 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15846 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15848 # Check whether --with-doc-strings was given.
15849 if test "${with_doc_strings+set}" = set; then
15850 withval=$with_doc_strings;
15854 if test -z "$with_doc_strings"
15855 then with_doc_strings="yes"
15857 if test "$with_doc_strings" != "no"
15860 cat >>confdefs.h <<\_ACEOF
15861 #define WITH_DOC_STRINGS 1
15865 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15866 echo "${ECHO_T}$with_doc_strings" >&6; }
15868 # Check for Python-specific malloc support
15869 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15870 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15872 # Check whether --with-tsc was given.
15873 if test "${with_tsc+set}" = set; then
15875 if test "$withval" != no
15878 cat >>confdefs.h <<\_ACEOF
15882 { echo "$as_me:$LINENO: result: yes" >&5
15883 echo "${ECHO_T}yes" >&6; }
15884 else { echo "$as_me:$LINENO: result: no" >&5
15885 echo "${ECHO_T}no" >&6; }
15888 { echo "$as_me:$LINENO: result: no" >&5
15889 echo "${ECHO_T}no" >&6; }
15893 # Check for Python-specific malloc support
15894 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15895 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15897 # Check whether --with-pymalloc was given.
15898 if test "${with_pymalloc+set}" = set; then
15899 withval=$with_pymalloc;
15903 if test -z "$with_pymalloc"
15904 then with_pymalloc="yes"
15906 if test "$with_pymalloc" != "no"
15909 cat >>confdefs.h <<\_ACEOF
15910 #define WITH_PYMALLOC 1
15914 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15915 echo "${ECHO_T}$with_pymalloc" >&6; }
15917 # Check for --with-wctype-functions
15918 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15919 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15921 # Check whether --with-wctype-functions was given.
15922 if test "${with_wctype_functions+set}" = set; then
15923 withval=$with_wctype_functions;
15924 if test "$withval" != no
15927 cat >>confdefs.h <<\_ACEOF
15928 #define WANT_WCTYPE_FUNCTIONS 1
15931 { echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6; }
15933 else { echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6; }
15937 { echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6; }
15942 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15946 # the dlopen() function means we might want to use dynload_shlib.o. some
15947 # platforms, such as AIX, have dlopen(), but don't want to use it.
15949 for ac_func in dlopen
15951 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 cat >conftest.$ac_ext <<_ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15965 #define $ac_func innocuous_$ac_func
15967 /* System header to define __stub macros and hopefully few prototypes,
15968 which can conflict with char $ac_func (); below.
15969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15970 <limits.h> exists even on freestanding compilers. */
15973 # include <limits.h>
15975 # include <assert.h>
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15987 /* The GNU C library defines this for functions which it implements
15988 to always fail with ENOSYS. Some functions are actually named
15989 something starting with __ and the normal name is an alias. */
15990 #if defined __stub_$ac_func || defined __stub___$ac_func
15997 return $ac_func ();
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (ac_try="$ac_link"
16004 case "(($ac_try" in
16005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16006 *) ac_try_echo
=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_link") 2>conftest.er1
16011 grep -v '^ *+' conftest.er1
>conftest.err
16013 cat conftest.err
>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } && {
16016 test -z "$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 } && test -s conftest
$ac_exeext &&
16019 $as_test_x conftest
$ac_exeext; then
16020 eval "$as_ac_var=yes"
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.
$ac_ext >&5
16025 eval "$as_ac_var=no"
16028 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16029 conftest
$ac_exeext conftest.
$ac_ext
16031 ac_res
=`eval echo '${'$as_ac_var'}'`
16032 { echo "$as_me:$LINENO: result: $ac_res" >&5
16033 echo "${ECHO_T}$ac_res" >&6; }
16034 if test `eval echo '${'$as_ac_var'}'` = yes; then
16035 cat >>confdefs.h
<<_ACEOF
16036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16043 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16044 # loading of modules.
16046 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16047 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16048 if test -z "$DYNLOADFILE"
16050 case $ac_sys_system/$ac_sys_release in
16051 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16052 if test "$ac_cv_func_dlopen" = yes
16053 then DYNLOADFILE
="dynload_shlib.o"
16054 else DYNLOADFILE
="dynload_aix.o"
16057 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16058 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16059 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16060 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16061 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16063 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16064 # out any dynamic loading
16065 if test "$ac_cv_func_dlopen" = yes
16066 then DYNLOADFILE
="dynload_shlib.o"
16067 else DYNLOADFILE
="dynload_stub.o"
16072 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16073 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16074 if test "$DYNLOADFILE" != "dynload_stub.o"
16077 cat >>confdefs.h
<<\_ACEOF
16078 #define HAVE_DYNAMIC_LOADING 1
16083 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16086 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16087 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16088 if test -z "$MACHDEP_OBJS"
16090 MACHDEP_OBJS
=$extra_machdep_objs
16092 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16094 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16095 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16097 # checks for library functions
16179 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16180 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16181 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16182 getpriority getpwent getspnam getspent getsid getwd \
16183 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16184 mremap nice pathconf pause plock poll pthread_init \
16185 putenv readlink realpath \
16186 select setegid seteuid setgid \
16187 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16188 sigaction siginterrupt sigrelse strftime \
16189 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16190 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16192 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16195 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16198 cat >conftest.
$ac_ext <<_ACEOF
16201 cat confdefs.h
>>conftest.
$ac_ext
16202 cat >>conftest.
$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16206 #define $ac_func innocuous_$ac_func
16208 /* System header to define __stub macros and hopefully few prototypes,
16209 which can conflict with char $ac_func (); below.
16210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16211 <limits.h> exists even on freestanding compilers. */
16214 # include <limits.h>
16216 # include <assert.h>
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined __stub_$ac_func || defined __stub___$ac_func
16238 return $ac_func ();
16243 rm -f conftest.
$ac_objext conftest
$ac_exeext
16244 if { (ac_try
="$ac_link"
16245 case "(($ac_try" in
16246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_link") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1 >conftest.err
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest$ac_exeext &&
16260 $as_test_x conftest$ac_exeext; then
16261 eval "$as_ac_var=yes"
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 eval "$as_ac_var=no"
16269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16270 conftest$ac_exeext conftest.$ac_ext
16272 ac_res=`eval echo '${'$as_ac_var'}'`
16273 { echo "$as_me:$LINENO: result: $ac_res" >&5
16274 echo "${ECHO_T}$ac_res" >&6; }
16275 if test `eval echo '${'$as_ac_var'}'` = yes; then
16276 cat >>confdefs.h <<_ACEOF
16277 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16284 # For some functions, having a definition is not sufficient, since
16285 # we want to take their address.
16286 { echo "$as_me:$LINENO: checking for chroot" >&5
16287 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 #include <unistd.h>
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16307 *) ac_try_echo
=$ac_try;;
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16312 grep -v '^ *+' conftest.er1
>conftest.err
16314 cat conftest.err
>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.
$ac_objext; then
16321 cat >>confdefs.h
<<\_ACEOF
16322 #define HAVE_CHROOT 1
16325 { echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6; }
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.
$ac_ext >&5
16331 { echo "$as_me:$LINENO: result: no" >&5
16332 echo "${ECHO_T}no" >&6; }
16336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16337 { echo "$as_me:$LINENO: checking for link" >&5
16338 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16339 cat >conftest.
$ac_ext <<_ACEOF
16342 cat confdefs.h
>>conftest.
$ac_ext
16343 cat >>conftest.
$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <unistd.h>
16354 rm -f conftest.
$ac_objext
16355 if { (ac_try
="$ac_compile"
16356 case "(($ac_try" in
16357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_compile") 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } && {
16368 test -z "$ac_c_werror_flag" ||
16369 test ! -s conftest.err
16370 } && test -s conftest.$ac_objext; then
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_LINK 1
16376 { echo "$as_me:$LINENO: result: yes" >&5
16377 echo "${ECHO_T}yes" >&6; }
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 { echo "$as_me:$LINENO: result: no" >&5
16383 echo "${ECHO_T}no" >&6; }
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 { echo "$as_me:$LINENO: checking for symlink" >&5
16389 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 #include <unistd.h>
16405 rm -f conftest.$ac_objext
16406 if { (ac_try="$ac_compile"
16407 case "(($ac_try" in
16408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16409 *) ac_try_echo
=$ac_try;;
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_compile") 2>conftest.er1
16414 grep -v '^ *+' conftest.er1
>conftest.err
16416 cat conftest.err
>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } && {
16419 test -z "$ac_c_werror_flag" ||
16420 test ! -s conftest.err
16421 } && test -s conftest.
$ac_objext; then
16423 cat >>confdefs.h
<<\_ACEOF
16424 #define HAVE_SYMLINK 1
16427 { echo "$as_me:$LINENO: result: yes" >&5
16428 echo "${ECHO_T}yes" >&6; }
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.
$ac_ext >&5
16433 { echo "$as_me:$LINENO: result: no" >&5
16434 echo "${ECHO_T}no" >&6; }
16438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16439 { echo "$as_me:$LINENO: checking for fchdir" >&5
16440 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16441 cat >conftest.
$ac_ext <<_ACEOF
16444 cat confdefs.h
>>conftest.
$ac_ext
16445 cat >>conftest.
$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16447 #include <unistd.h>
16456 rm -f conftest.
$ac_objext
16457 if { (ac_try
="$ac_compile"
16458 case "(($ac_try" in
16459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest.$ac_objext; then
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE_FCHDIR 1
16478 { echo "$as_me:$LINENO: result: yes" >&5
16479 echo "${ECHO_T}yes" >&6; }
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484 { echo "$as_me:$LINENO: result: no" >&5
16485 echo "${ECHO_T}no" >&6; }
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 { echo "$as_me:$LINENO: checking for fsync" >&5
16491 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <unistd.h>
16507 rm -f conftest.$ac_objext
16508 if { (ac_try="$ac_compile"
16509 case "(($ac_try" in
16510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16511 *) ac_try_echo
=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_compile") 2>conftest.er1
16516 grep -v '^ *+' conftest.er1
>conftest.err
16518 cat conftest.err
>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } && {
16521 test -z "$ac_c_werror_flag" ||
16522 test ! -s conftest.err
16523 } && test -s conftest.
$ac_objext; then
16525 cat >>confdefs.h
<<\_ACEOF
16526 #define HAVE_FSYNC 1
16529 { echo "$as_me:$LINENO: result: yes" >&5
16530 echo "${ECHO_T}yes" >&6; }
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.
$ac_ext >&5
16535 { echo "$as_me:$LINENO: result: no" >&5
16536 echo "${ECHO_T}no" >&6; }
16540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16541 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16542 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16543 cat >conftest.
$ac_ext <<_ACEOF
16546 cat confdefs.h
>>conftest.
$ac_ext
16547 cat >>conftest.
$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #include <unistd.h>
16558 rm -f conftest.
$ac_objext
16559 if { (ac_try
="$ac_compile"
16560 case "(($ac_try" in
16561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_compile") 2>conftest.er1
16567 grep -v '^ *+' conftest.er1 >conftest.err
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest.$ac_objext; then
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_FDATASYNC 1
16580 { echo "$as_me:$LINENO: result: yes" >&5
16581 echo "${ECHO_T}yes" >&6; }
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 { echo "$as_me:$LINENO: result: no" >&5
16587 echo "${ECHO_T}no" >&6; }
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592 { echo "$as_me:$LINENO: checking for epoll" >&5
16593 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <sys/epoll.h>
16604 void *x=epoll_create
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16613 *) ac_try_echo
=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16618 grep -v '^ *+' conftest.er1
>conftest.err
16620 cat conftest.err
>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest.
$ac_objext; then
16627 cat >>confdefs.h
<<\_ACEOF
16628 #define HAVE_EPOLL 1
16631 { echo "$as_me:$LINENO: result: yes" >&5
16632 echo "${ECHO_T}yes" >&6; }
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.
$ac_ext >&5
16637 { echo "$as_me:$LINENO: result: no" >&5
16638 echo "${ECHO_T}no" >&6; }
16642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16643 { echo "$as_me:$LINENO: checking for kqueue" >&5
16644 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16645 cat >conftest.
$ac_ext <<_ACEOF
16648 cat confdefs.h
>>conftest.
$ac_ext
16649 cat >>conftest.
$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 #include <sys/types.h>
16653 #include <sys/event.h>
16663 rm -f conftest.
$ac_objext
16664 if { (ac_try
="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_compile") 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest.$ac_objext; then
16681 cat >>confdefs.h <<\_ACEOF
16682 #define HAVE_KQUEUE 1
16685 { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 { echo "$as_me:$LINENO: result: no" >&5
16692 echo "${ECHO_T}no" >&6; }
16696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697 # On some systems (eg. FreeBSD 5), we would find a definition of the
16698 # functions ctermid_r, setgroups in the library, but no prototype
16699 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16700 # address to avoid compiler warnings and potential miscompilations
16701 # because of the missing prototypes.
16703 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16704 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16705 cat >conftest.$ac_ext <<_ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16712 #include "confdefs.h"
16718 void* p = ctermid_r
16723 rm -f conftest.$ac_objext
16724 if { (ac_try="$ac_compile"
16725 case "(($ac_try" in
16726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16727 *) ac_try_echo
=$ac_try;;
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_compile") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1
>conftest.err
16734 cat conftest.err
>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest.
$ac_objext; then
16741 cat >>confdefs.h
<<\_ACEOF
16742 #define HAVE_CTERMID_R 1
16745 { echo "$as_me:$LINENO: result: yes" >&5
16746 echo "${ECHO_T}yes" >&6; }
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.
$ac_ext >&5
16751 { echo "$as_me:$LINENO: result: no" >&5
16752 echo "${ECHO_T}no" >&6; }
16756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16758 { echo "$as_me:$LINENO: checking for flock" >&5
16759 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16760 cat >conftest.
$ac_ext <<_ACEOF
16763 cat confdefs.h
>>conftest.
$ac_ext
16764 cat >>conftest.
$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16767 #include "confdefs.h"
16768 #include <sys/file.h>
16778 rm -f conftest.
$ac_objext
16779 if { (ac_try
="$ac_compile"
16780 case "(($ac_try" in
16781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16787 grep -v '^ *+' conftest.er1 >conftest.err
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest.$ac_objext; then
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_FLOCK 1
16800 { echo "$as_me:$LINENO: result: yes" >&5
16801 echo "${ECHO_T}yes" >&6; }
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 { echo "$as_me:$LINENO: result: no" >&5
16807 echo "${ECHO_T}no" >&6; }
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16814 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16815 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16822 #include "confdefs.h"
16823 #include <unistd.h>
16828 void* p = getpagesize
16833 rm -f conftest.$ac_objext
16834 if { (ac_try="$ac_compile"
16835 case "(($ac_try" in
16836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16837 *) ac_try_echo
=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_compile") 2>conftest.er1
16842 grep -v '^ *+' conftest.er1
>conftest.err
16844 cat conftest.err
>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } && {
16847 test -z "$ac_c_werror_flag" ||
16848 test ! -s conftest.err
16849 } && test -s conftest.
$ac_objext; then
16851 cat >>confdefs.h
<<\_ACEOF
16852 #define HAVE_GETPAGESIZE 1
16855 { echo "$as_me:$LINENO: result: yes" >&5
16856 echo "${ECHO_T}yes" >&6; }
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.
$ac_ext >&5
16861 { echo "$as_me:$LINENO: result: no" >&5
16862 echo "${ECHO_T}no" >&6; }
16866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16868 for ac_prog
in true
16870 # Extract the first word of "$ac_prog", so it can be a program name with args.
16871 set dummy
$ac_prog; ac_word
=$2
16872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16874 if test "${ac_cv_prog_TRUE+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 if test -n "$TRUE"; then
16878 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
16880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16881 for as_dir
in $PATH
16884 test -z "$as_dir" && as_dir
=.
16885 for ac_exec_ext
in '' $ac_executable_extensions; do
16886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16887 ac_cv_prog_TRUE
="$ac_prog"
16888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16897 TRUE
=$ac_cv_prog_TRUE
16898 if test -n "$TRUE"; then
16899 { echo "$as_me:$LINENO: result: $TRUE" >&5
16900 echo "${ECHO_T}$TRUE" >&6; }
16902 { echo "$as_me:$LINENO: result: no" >&5
16903 echo "${ECHO_T}no" >&6; }
16907 test -n "$TRUE" && break
16909 test -n "$TRUE" || TRUE
="/bin/true"
16912 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16913 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16914 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 ac_check_lib_save_LIBS
=$LIBS
16919 cat >conftest.
$ac_ext <<_ACEOF
16922 cat confdefs.h
>>conftest.
$ac_ext
16923 cat >>conftest.
$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16936 return inet_aton ();
16941 rm -f conftest.
$ac_objext conftest
$ac_exeext
16942 if { (ac_try
="$ac_link"
16943 case "(($ac_try" in
16944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_link") 2>conftest.er1
16950 grep -v '^ *+' conftest.er1 >conftest.err
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } && {
16955 test -z "$ac_c_werror_flag" ||
16956 test ! -s conftest.err
16957 } && test -s conftest$ac_exeext &&
16958 $as_test_x conftest$ac_exeext; then
16959 ac_cv_lib_c_inet_aton=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_cv_lib_c_inet_aton=no
16967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16968 conftest$ac_exeext conftest.$ac_ext
16969 LIBS=$ac_check_lib_save_LIBS
16971 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16972 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16973 if test $ac_cv_lib_c_inet_aton = yes; then
16977 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16978 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16979 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-lresolv $LIBS"
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 /* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
17001 return inet_aton ();
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17010 *) ac_try_echo
=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_link") 2>conftest.er1
17015 grep -v '^ *+' conftest.er1
>conftest.err
17017 cat conftest.err
>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest
$ac_exeext &&
17023 $as_test_x conftest
$ac_exeext; then
17024 ac_cv_lib_resolv_inet_aton
=yes
17026 echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.
$ac_ext >&5
17029 ac_cv_lib_resolv_inet_aton
=no
17032 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17033 conftest
$ac_exeext conftest.
$ac_ext
17034 LIBS
=$ac_check_lib_save_LIBS
17036 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17037 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17038 if test $ac_cv_lib_resolv_inet_aton = yes; then
17039 cat >>confdefs.h
<<_ACEOF
17040 #define HAVE_LIBRESOLV 1
17043 LIBS
="-lresolv $LIBS"
17051 # On Tru64, chflags seems to be present, but calling it will
17053 { echo "$as_me:$LINENO: checking for chflags" >&5
17054 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17055 if test "$cross_compiling" = yes; then
17056 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17057 See \`config.log' for more details." >&5
17058 echo "$as_me: error: cannot run test program while cross compiling
17059 See \`config.log' for more details." >&2;}
17060 { (exit 1); exit 1; }; }
17062 cat >conftest.
$ac_ext <<_ACEOF
17065 cat confdefs.h
>>conftest.
$ac_ext
17066 cat >>conftest.
$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17069 #include <sys/stat.h>
17070 #include <unistd.h>
17071 int main(int argc, char*argv[])
17073 if(chflags(argv[0], 0) != 0)
17079 rm -f conftest
$ac_exeext
17080 if { (ac_try
="$ac_link"
17081 case "(($ac_try" in
17082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17092 *) ac_try_echo
=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17100 cat >>confdefs.h
<<\_ACEOF
17101 #define HAVE_CHFLAGS 1
17104 { echo "$as_me:$LINENO: result: yes" >&5
17105 echo "${ECHO_T}yes" >&6; }
17107 echo "$as_me: program exited with status $ac_status" >&5
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.
$ac_ext >&5
17111 ( exit $ac_status )
17112 { echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6; }
17116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17121 { echo "$as_me:$LINENO: checking for lchflags" >&5
17122 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17123 if test "$cross_compiling" = yes; then
17124 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17125 See \`config.log' for more details." >&5
17126 echo "$as_me: error: cannot run test program while cross compiling
17127 See \`config.log' for more details." >&2;}
17128 { (exit 1); exit 1; }; }
17130 cat >conftest.
$ac_ext <<_ACEOF
17133 cat confdefs.h
>>conftest.
$ac_ext
17134 cat >>conftest.
$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17137 #include <sys/stat.h>
17138 #include <unistd.h>
17139 int main(int argc, char*argv[])
17141 if(lchflags(argv[0], 0) != 0)
17147 rm -f conftest
$ac_exeext
17148 if { (ac_try
="$ac_link"
17149 case "(($ac_try" in
17150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17160 *) ac_try_echo
=$ac_try;;
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17168 cat >>confdefs.h
<<\_ACEOF
17169 #define HAVE_LCHFLAGS 1
17172 { echo "$as_me:$LINENO: result: yes" >&5
17173 echo "${ECHO_T}yes" >&6; }
17175 echo "$as_me: program exited with status $ac_status" >&5
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.
$ac_ext >&5
17179 ( exit $ac_status )
17180 { echo "$as_me:$LINENO: result: no" >&5
17181 echo "${ECHO_T}no" >&6; }
17184 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17189 case $ac_sys_system/$ac_sys_release in
17191 _CUR_CFLAGS
="${CFLAGS}"
17192 _CUR_LDFLAGS
="${LDFLAGS}"
17193 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17194 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17198 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17199 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17200 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 ac_check_lib_save_LIBS
=$LIBS
17205 cat >conftest.
$ac_ext <<_ACEOF
17208 cat confdefs.h
>>conftest.
$ac_ext
17209 cat >>conftest.
$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17218 char inflateCopy ();
17222 return inflateCopy ();
17227 rm -f conftest.
$ac_objext conftest
$ac_exeext
17228 if { (ac_try
="$ac_link"
17229 case "(($ac_try" in
17230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest$ac_exeext &&
17244 $as_test_x conftest$ac_exeext; then
17245 ac_cv_lib_z_inflateCopy=yes
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ac_cv_lib_z_inflateCopy=no
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS
17257 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17258 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17259 if test $ac_cv_lib_z_inflateCopy = yes; then
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_ZLIB_COPY 1
17268 case $ac_sys_system/$ac_sys_release in
17270 CFLAGS="${_CUR_CFLAGS}"
17271 LDFLAGS="${_CUR_LDFLAGS}"
17275 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17276 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17277 cat >conftest.$ac_ext <<_ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17284 #include "confdefs.h"
17290 void* p = hstrerror; hstrerror(0)
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (ac_try="$ac_link"
17297 case "(($ac_try" in
17298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17299 *) ac_try_echo
=$ac_try;;
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_link") 2>conftest.er1
17304 grep -v '^ *+' conftest.er1
>conftest.err
17306 cat conftest.err
>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } && {
17309 test -z "$ac_c_werror_flag" ||
17310 test ! -s conftest.err
17311 } && test -s conftest
$ac_exeext &&
17312 $as_test_x conftest
$ac_exeext; then
17314 cat >>confdefs.h
<<\_ACEOF
17315 #define HAVE_HSTRERROR 1
17318 { echo "$as_me:$LINENO: result: yes" >&5
17319 echo "${ECHO_T}yes" >&6; }
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.
$ac_ext >&5
17324 { echo "$as_me:$LINENO: result: no" >&5
17325 echo "${ECHO_T}no" >&6; }
17329 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17330 conftest
$ac_exeext conftest.
$ac_ext
17332 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17333 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17334 cat >conftest.
$ac_ext <<_ACEOF
17337 cat confdefs.h
>>conftest.
$ac_ext
17338 cat >>conftest.
$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 #include "confdefs.h"
17342 #include <sys/types.h>
17343 #include <sys/socket.h>
17344 #include <netinet/in.h>
17345 #include <arpa/inet.h>
17350 void* p = inet_aton;inet_aton(0,0)
17355 rm -f conftest.
$ac_objext conftest
$ac_exeext
17356 if { (ac_try
="$ac_link"
17357 case "(($ac_try" in
17358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17374 cat >>confdefs.h <<\_ACEOF
17375 #define HAVE_INET_ATON 1
17378 { echo "$as_me:$LINENO: result: yes" >&5
17379 echo "${ECHO_T}yes" >&6; }
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 { echo "$as_me:$LINENO: result: no" >&5
17385 echo "${ECHO_T}no" >&6; }
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390 conftest$ac_exeext conftest.$ac_ext
17392 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17393 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17401 #include "confdefs.h"
17402 #include <sys/types.h>
17403 #include <sys/socket.h>
17404 #include <netinet/in.h>
17405 #include <arpa/inet.h>
17410 void* p = inet_pton
17415 rm -f conftest.$ac_objext
17416 if { (ac_try="$ac_compile"
17417 case "(($ac_try" in
17418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17419 *) ac_try_echo
=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_compile") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1
>conftest.err
17426 cat conftest.err
>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest.
$ac_objext; then
17433 cat >>confdefs.h
<<\_ACEOF
17434 #define HAVE_INET_PTON 1
17437 { echo "$as_me:$LINENO: result: yes" >&5
17438 echo "${ECHO_T}yes" >&6; }
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.
$ac_ext >&5
17443 { echo "$as_me:$LINENO: result: no" >&5
17444 echo "${ECHO_T}no" >&6; }
17448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17450 # On some systems, setgroups is in unistd.h, on others, in grp.h
17451 { echo "$as_me:$LINENO: checking for setgroups" >&5
17452 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17453 cat >conftest.
$ac_ext <<_ACEOF
17456 cat confdefs.h
>>conftest.
$ac_ext
17457 cat >>conftest.
$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17460 #include "confdefs.h"
17461 #include <unistd.h>
17469 void* p = setgroups
17474 rm -f conftest.
$ac_objext
17475 if { (ac_try
="$ac_compile"
17476 case "(($ac_try" in
17477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_compile") 2>conftest.er1
17483 grep -v '^ *+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && {
17488 test -z "$ac_c_werror_flag" ||
17489 test ! -s conftest.err
17490 } && test -s conftest.$ac_objext; then
17492 cat >>confdefs.h <<\_ACEOF
17493 #define HAVE_SETGROUPS 1
17496 { echo "$as_me:$LINENO: result: yes" >&5
17497 echo "${ECHO_T}yes" >&6; }
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 { echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6; }
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 # check for openpty and forkpty
17512 for ac_func in openpty
17514 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 cat >conftest.$ac_ext <<_ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17528 #define $ac_func innocuous_$ac_func
17530 /* System header to define __stub macros and hopefully few prototypes,
17531 which can conflict with char $ac_func (); below.
17532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17533 <limits.h> exists even on freestanding compilers. */
17536 # include <limits.h>
17538 # include <assert.h>
17543 /* Override any GCC internal prototype to avoid an error.
17544 Use char because int might match the return type of a GCC
17545 builtin and then its argument prototype would still apply. */
17550 /* The GNU C library defines this for functions which it implements
17551 to always fail with ENOSYS. Some functions are actually named
17552 something starting with __ and the normal name is an alias. */
17553 #if defined __stub_$ac_func || defined __stub___$ac_func
17560 return $ac_func ();
17565 rm -f conftest.$ac_objext conftest$ac_exeext
17566 if { (ac_try="$ac_link"
17567 case "(($ac_try" in
17568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17569 *) ac_try_echo
=$ac_try;;
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_link") 2>conftest.er1
17574 grep -v '^ *+' conftest.er1
>conftest.err
17576 cat conftest.err
>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && {
17579 test -z "$ac_c_werror_flag" ||
17580 test ! -s conftest.err
17581 } && test -s conftest
$ac_exeext &&
17582 $as_test_x conftest
$ac_exeext; then
17583 eval "$as_ac_var=yes"
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.
$ac_ext >&5
17588 eval "$as_ac_var=no"
17591 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17592 conftest
$ac_exeext conftest.
$ac_ext
17594 ac_res
=`eval echo '${'$as_ac_var'}'`
17595 { echo "$as_me:$LINENO: result: $ac_res" >&5
17596 echo "${ECHO_T}$ac_res" >&6; }
17597 if test `eval echo '${'$as_ac_var'}'` = yes; then
17598 cat >>confdefs.h
<<_ACEOF
17599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17603 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17604 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17605 if test "${ac_cv_lib_util_openpty+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 ac_check_lib_save_LIBS
=$LIBS
17609 LIBS
="-lutil $LIBS"
17610 cat >conftest.
$ac_ext <<_ACEOF
17613 cat confdefs.h
>>conftest.
$ac_ext
17614 cat >>conftest.
$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17632 rm -f conftest.
$ac_objext conftest
$ac_exeext
17633 if { (ac_try
="$ac_link"
17634 case "(($ac_try" in
17635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_link") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest$ac_exeext &&
17649 $as_test_x conftest$ac_exeext; then
17650 ac_cv_lib_util_openpty=yes
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17655 ac_cv_lib_util_openpty=no
17658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17659 conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17662 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17663 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17664 if test $ac_cv_lib_util_openpty = yes; then
17665 cat >>confdefs.h <<\_ACEOF
17666 #define HAVE_OPENPTY 1
17668 LIBS="$LIBS -lutil"
17670 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17671 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17672 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 ac_check_lib_save_LIBS=$LIBS
17677 cat >conftest.$ac_ext <<_ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17684 /* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17703 *) ac_try_echo
=$ac_try;;
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17708 grep -v '^ *+' conftest.er1
>conftest.err
17710 cat conftest.err
>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest
$ac_exeext &&
17716 $as_test_x conftest
$ac_exeext; then
17717 ac_cv_lib_bsd_openpty
=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.
$ac_ext >&5
17722 ac_cv_lib_bsd_openpty
=no
17725 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17726 conftest
$ac_exeext conftest.
$ac_ext
17727 LIBS
=$ac_check_lib_save_LIBS
17729 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17730 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17731 if test $ac_cv_lib_bsd_openpty = yes; then
17732 cat >>confdefs.h
<<\_ACEOF
17733 #define HAVE_OPENPTY 1
17746 for ac_func
in forkpty
17748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17751 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 cat >conftest.
$ac_ext <<_ACEOF
17757 cat confdefs.h
>>conftest.
$ac_ext
17758 cat >>conftest.
$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762 #define $ac_func innocuous_$ac_func
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17770 # include <limits.h>
17772 # include <assert.h>
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17784 /* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined __stub_$ac_func || defined __stub___$ac_func
17794 return $ac_func ();
17799 rm -f conftest.
$ac_objext conftest
$ac_exeext
17800 if { (ac_try
="$ac_link"
17801 case "(($ac_try" in
17802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_link") 2>conftest.er1
17808 grep -v '^ *+' conftest.er1 >conftest.err
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && {
17813 test -z "$ac_c_werror_flag" ||
17814 test ! -s conftest.err
17815 } && test -s conftest$ac_exeext &&
17816 $as_test_x conftest$ac_exeext; then
17817 eval "$as_ac_var=yes"
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 eval "$as_ac_var=no"
17825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17826 conftest$ac_exeext conftest.$ac_ext
17828 ac_res=`eval echo '${'$as_ac_var'}'`
17829 { echo "$as_me:$LINENO: result: $ac_res" >&5
17830 echo "${ECHO_T}$ac_res" >&6; }
17831 if test `eval echo '${'$as_ac_var'}'` = yes; then
17832 cat >>confdefs.h <<_ACEOF
17833 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17837 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17838 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17839 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-lutil $LIBS"
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (ac_try="$ac_link"
17868 case "(($ac_try" in
17869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17870 *) ac_try_echo
=$ac_try;;
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_link") 2>conftest.er1
17875 grep -v '^ *+' conftest.er1
>conftest.err
17877 cat conftest.err
>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest
$ac_exeext &&
17883 $as_test_x conftest
$ac_exeext; then
17884 ac_cv_lib_util_forkpty
=yes
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.
$ac_ext >&5
17889 ac_cv_lib_util_forkpty
=no
17892 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17893 conftest
$ac_exeext conftest.
$ac_ext
17894 LIBS
=$ac_check_lib_save_LIBS
17896 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17897 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17898 if test $ac_cv_lib_util_forkpty = yes; then
17899 cat >>confdefs.h
<<\_ACEOF
17900 #define HAVE_FORKPTY 1
17902 LIBS
="$LIBS -lutil"
17904 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17905 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17906 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 ac_check_lib_save_LIBS
=$LIBS
17911 cat >conftest.
$ac_ext <<_ACEOF
17914 cat confdefs.h
>>conftest.
$ac_ext
17915 cat >>conftest.
$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17933 rm -f conftest.
$ac_objext conftest
$ac_exeext
17934 if { (ac_try
="$ac_link"
17935 case "(($ac_try" in
17936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_link") 2>conftest.er1
17942 grep -v '^ *+' conftest.er1 >conftest.err
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest$ac_exeext &&
17950 $as_test_x conftest$ac_exeext; then
17951 ac_cv_lib_bsd_forkpty=yes
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 ac_cv_lib_bsd_forkpty=no
17959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17964 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17965 if test $ac_cv_lib_bsd_forkpty = yes; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_FORKPTY 1
17982 for ac_func in memmove
17984 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17998 #define $ac_func innocuous_$ac_func
18000 /* System header to define __stub macros and hopefully few prototypes,
18001 which can conflict with char $ac_func (); below.
18002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18003 <limits.h> exists even on freestanding compilers. */
18006 # include <limits.h>
18008 # include <assert.h>
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18020 /* The GNU C library defines this for functions which it implements
18021 to always fail with ENOSYS. Some functions are actually named
18022 something starting with __ and the normal name is an alias. */
18023 #if defined __stub_$ac_func || defined __stub___$ac_func
18030 return $ac_func ();
18035 rm -f conftest.$ac_objext conftest$ac_exeext
18036 if { (ac_try="$ac_link"
18037 case "(($ac_try" in
18038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18039 *) ac_try_echo
=$ac_try;;
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_link") 2>conftest.er1
18044 grep -v '^ *+' conftest.er1
>conftest.err
18046 cat conftest.err
>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && {
18049 test -z "$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 } && test -s conftest
$ac_exeext &&
18052 $as_test_x conftest
$ac_exeext; then
18053 eval "$as_ac_var=yes"
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.
$ac_ext >&5
18058 eval "$as_ac_var=no"
18061 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18062 conftest
$ac_exeext conftest.
$ac_ext
18064 ac_res
=`eval echo '${'$as_ac_var'}'`
18065 { echo "$as_me:$LINENO: result: $ac_res" >&5
18066 echo "${ECHO_T}$ac_res" >&6; }
18067 if test `eval echo '${'$as_ac_var'}'` = yes; then
18068 cat >>confdefs.h
<<_ACEOF
18069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18076 # check for long file support functions
18083 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18085 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18088 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 cat >conftest.
$ac_ext <<_ACEOF
18094 cat confdefs.h
>>conftest.
$ac_ext
18095 cat >>conftest.
$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18099 #define $ac_func innocuous_$ac_func
18101 /* System header to define __stub macros and hopefully few prototypes,
18102 which can conflict with char $ac_func (); below.
18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 <limits.h> exists even on freestanding compilers. */
18107 # include <limits.h>
18109 # include <assert.h>
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18121 /* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined __stub_$ac_func || defined __stub___$ac_func
18131 return $ac_func ();
18136 rm -f conftest.
$ac_objext conftest
$ac_exeext
18137 if { (ac_try
="$ac_link"
18138 case "(($ac_try" in
18139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext &&
18153 $as_test_x conftest$ac_exeext; then
18154 eval "$as_ac_var=yes"
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 eval "$as_ac_var=no"
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163 conftest$ac_exeext conftest.$ac_ext
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166 { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18180 for ac_func in dup2 getcwd strdup
18182 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18196 #define $ac_func innocuous_$ac_func
18198 /* System header to define __stub macros and hopefully few prototypes,
18199 which can conflict with char $ac_func (); below.
18200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18201 <limits.h> exists even on freestanding compilers. */
18204 # include <limits.h>
18206 # include <assert.h>
18211 /* Override any GCC internal prototype to avoid an error.
18212 Use char because int might match the return type of a GCC
18213 builtin and then its argument prototype would still apply. */
18218 /* The GNU C library defines this for functions which it implements
18219 to always fail with ENOSYS. Some functions are actually named
18220 something starting with __ and the normal name is an alias. */
18221 #if defined __stub_$ac_func || defined __stub___$ac_func
18228 return $ac_func ();
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18237 *) ac_try_echo
=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18242 grep -v '^ *+' conftest.er1
>conftest.err
18244 cat conftest.err
>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } && {
18247 test -z "$ac_c_werror_flag" ||
18248 test ! -s conftest.err
18249 } && test -s conftest
$ac_exeext &&
18250 $as_test_x conftest
$ac_exeext; then
18251 eval "$as_ac_var=yes"
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.
$ac_ext >&5
18256 eval "$as_ac_var=no"
18259 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18260 conftest
$ac_exeext conftest.
$ac_ext
18262 ac_res
=`eval echo '${'$as_ac_var'}'`
18263 { echo "$as_me:$LINENO: result: $ac_res" >&5
18264 echo "${ECHO_T}$ac_res" >&6; }
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266 cat >>confdefs.h
<<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18271 case " $LIBOBJS " in
18272 *" $ac_func.$ac_objext "* ) ;;
18273 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18282 for ac_func
in getpgrp
18284 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18287 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 cat >conftest.
$ac_ext <<_ACEOF
18293 cat confdefs.h
>>conftest.
$ac_ext
18294 cat >>conftest.
$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18298 #define $ac_func innocuous_$ac_func
18300 /* System header to define __stub macros and hopefully few prototypes,
18301 which can conflict with char $ac_func (); below.
18302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18303 <limits.h> exists even on freestanding compilers. */
18306 # include <limits.h>
18308 # include <assert.h>
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18320 /* The GNU C library defines this for functions which it implements
18321 to always fail with ENOSYS. Some functions are actually named
18322 something starting with __ and the normal name is an alias. */
18323 #if defined __stub_$ac_func || defined __stub___$ac_func
18330 return $ac_func ();
18335 rm -f conftest.
$ac_objext conftest
$ac_exeext
18336 if { (ac_try
="$ac_link"
18337 case "(($ac_try" in
18338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1 >conftest.err
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest$ac_exeext &&
18352 $as_test_x conftest$ac_exeext; then
18353 eval "$as_ac_var=yes"
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 eval "$as_ac_var=no"
18361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18362 conftest$ac_exeext conftest.$ac_ext
18364 ac_res=`eval echo '${'$as_ac_var'}'`
18365 { echo "$as_me:$LINENO: result: $ac_res" >&5
18366 echo "${ECHO_T}$ac_res" >&6; }
18367 if test `eval echo '${'$as_ac_var'}'` = yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 #include <unistd.h>
18386 rm -f conftest.$ac_objext
18387 if { (ac_try="$ac_compile"
18388 case "(($ac_try" in
18389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18390 *) ac_try_echo
=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_compile") 2>conftest.er1
18395 grep -v '^ *+' conftest.er1
>conftest.err
18397 cat conftest.err
>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } && {
18400 test -z "$ac_c_werror_flag" ||
18401 test ! -s conftest.err
18402 } && test -s conftest.
$ac_objext; then
18404 cat >>confdefs.h
<<\_ACEOF
18405 #define GETPGRP_HAVE_ARG 1
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.
$ac_ext >&5
18416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18422 for ac_func
in setpgrp
18424 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18427 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 cat >conftest.
$ac_ext <<_ACEOF
18433 cat confdefs.h
>>conftest.
$ac_ext
18434 cat >>conftest.
$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18438 #define $ac_func innocuous_$ac_func
18440 /* System header to define __stub macros and hopefully few prototypes,
18441 which can conflict with char $ac_func (); below.
18442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18443 <limits.h> exists even on freestanding compilers. */
18446 # include <limits.h>
18448 # include <assert.h>
18453 /* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */
18460 /* The GNU C library defines this for functions which it implements
18461 to always fail with ENOSYS. Some functions are actually named
18462 something starting with __ and the normal name is an alias. */
18463 #if defined __stub_$ac_func || defined __stub___$ac_func
18470 return $ac_func ();
18475 rm -f conftest.
$ac_objext conftest
$ac_exeext
18476 if { (ac_try
="$ac_link"
18477 case "(($ac_try" in
18478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_link") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext &&
18492 $as_test_x conftest$ac_exeext; then
18493 eval "$as_ac_var=yes"
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 eval "$as_ac_var=no"
18501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18502 conftest$ac_exeext conftest.$ac_ext
18504 ac_res=`eval echo '${'$as_ac_var'}'`
18505 { echo "$as_me:$LINENO: result: $ac_res" >&5
18506 echo "${ECHO_T}$ac_res" >&6; }
18507 if test `eval echo '${'$as_ac_var'}'` = yes; then
18508 cat >>confdefs.h <<_ACEOF
18509 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18511 cat >conftest.$ac_ext <<_ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #include <unistd.h>
18526 rm -f conftest.$ac_objext
18527 if { (ac_try="$ac_compile"
18528 case "(($ac_try" in
18529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18530 *) ac_try_echo
=$ac_try;;
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1
>conftest.err
18537 cat conftest.err
>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.
$ac_objext; then
18544 cat >>confdefs.h
<<\_ACEOF
18545 #define SETPGRP_HAVE_ARG 1
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.
$ac_ext >&5
18556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18562 for ac_func
in gettimeofday
18564 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18567 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 cat >conftest.
$ac_ext <<_ACEOF
18573 cat confdefs.h
>>conftest.
$ac_ext
18574 cat >>conftest.
$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18578 #define $ac_func innocuous_$ac_func
18580 /* System header to define __stub macros and hopefully few prototypes,
18581 which can conflict with char $ac_func (); below.
18582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18583 <limits.h> exists even on freestanding compilers. */
18586 # include <limits.h>
18588 # include <assert.h>
18593 /* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18600 /* The GNU C library defines this for functions which it implements
18601 to always fail with ENOSYS. Some functions are actually named
18602 something starting with __ and the normal name is an alias. */
18603 #if defined __stub_$ac_func || defined __stub___$ac_func
18610 return $ac_func ();
18615 rm -f conftest.
$ac_objext conftest
$ac_exeext
18616 if { (ac_try
="$ac_link"
18617 case "(($ac_try" in
18618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_link") 2>conftest.er1
18624 grep -v '^ *+' conftest.er1 >conftest.err
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest$ac_exeext &&
18632 $as_test_x conftest$ac_exeext; then
18633 eval "$as_ac_var=yes"
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 eval "$as_ac_var=no"
18641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18642 conftest$ac_exeext conftest.$ac_ext
18644 ac_res=`eval echo '${'$as_ac_var'}'`
18645 { echo "$as_me:$LINENO: result: $ac_res" >&5
18646 echo "${ECHO_T}$ac_res" >&6; }
18647 if test `eval echo '${'$as_ac_var'}'` = yes; then
18648 cat >>confdefs.h <<_ACEOF
18649 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 #include <sys/time.h>
18661 gettimeofday((struct timeval*)0,(struct timezone*)0);
18666 rm -f conftest.$ac_objext
18667 if { (ac_try="$ac_compile"
18668 case "(($ac_try" in
18669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18670 *) ac_try_echo
=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_compile") 2>conftest.er1
18675 grep -v '^ *+' conftest.er1
>conftest.err
18677 cat conftest.err
>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && {
18680 test -z "$ac_c_werror_flag" ||
18681 test ! -s conftest.err
18682 } && test -s conftest.
$ac_objext; then
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.
$ac_ext >&5
18689 cat >>confdefs.h
<<\_ACEOF
18690 #define GETTIMEOFDAY_NO_TZ 1
18696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18702 { echo "$as_me:$LINENO: checking for major" >&5
18703 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18704 cat >conftest.
$ac_ext <<_ACEOF
18707 cat confdefs.h
>>conftest.
$ac_ext
18708 cat >>conftest.
$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18711 #if defined(MAJOR_IN_MKDEV)
18712 #include <sys/mkdev.h>
18713 #elif defined(MAJOR_IN_SYSMACROS)
18714 #include <sys/sysmacros.h>
18716 #include <sys/types.h>
18723 makedev(major(0),minor(0));
18729 rm -f conftest.
$ac_objext conftest
$ac_exeext
18730 if { (ac_try
="$ac_link"
18731 case "(($ac_try" in
18732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_link") 2>conftest.er1
18738 grep -v '^ *+' conftest.er1 >conftest.err
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } && {
18743 test -z "$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18745 } && test -s conftest$ac_exeext &&
18746 $as_test_x conftest$ac_exeext; then
18749 cat >>confdefs.h <<\_ACEOF
18750 #define HAVE_DEVICE_MACROS 1
18753 { echo "$as_me:$LINENO: result: yes" >&5
18754 echo "${ECHO_T}yes" >&6; }
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18761 { echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6; }
18766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18767 conftest$ac_exeext conftest.$ac_ext
18769 # On OSF/1 V5.1, getaddrinfo is available, but a define
18770 # for [no]getaddrinfo in netdb.h.
18771 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18772 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18773 cat >conftest.$ac_ext <<_ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18780 #include <sys/types.h>
18781 #include <sys/socket.h>
18789 getaddrinfo(NULL, NULL, NULL, NULL);
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18799 *) ac_try_echo
=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1
>conftest.err
18806 cat conftest.err
>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest
$ac_exeext &&
18812 $as_test_x conftest
$ac_exeext; then
18814 { echo "$as_me:$LINENO: result: yes" >&5
18815 echo "${ECHO_T}yes" >&6; }
18816 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18817 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18818 if test "$cross_compiling" = yes; then
18819 { echo "$as_me:$LINENO: result: buggy" >&5
18820 echo "${ECHO_T}buggy" >&6; }
18821 buggygetaddrinfo
=yes
18823 cat >conftest.
$ac_ext <<_ACEOF
18826 cat confdefs.h
>>conftest.
$ac_ext
18827 cat >>conftest.
$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18830 #include <sys/types.h>
18832 #include <string.h>
18833 #include <sys/socket.h>
18834 #include <netinet/in.h>
18838 int passive, gaierr, inet4 = 0, inet6 = 0;
18839 struct addrinfo hints, *ai, *aitop;
18840 char straddr[INET6_ADDRSTRLEN], strport[16];
18842 for (passive = 0; passive <= 1; passive++) {
18843 memset(&hints, 0, sizeof(hints));
18844 hints.ai_family = AF_UNSPEC;
18845 hints.ai_flags = passive ? AI_PASSIVE : 0;
18846 hints.ai_socktype = SOCK_STREAM;
18847 hints.ai_protocol = IPPROTO_TCP;
18848 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18849 (void)gai_strerror(gaierr);
18852 for (ai = aitop; ai; ai = ai->ai_next) {
18853 if (ai->ai_addr == NULL ||
18854 ai->ai_addrlen == 0 ||
18855 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18856 straddr, sizeof(straddr), strport, sizeof(strport),
18857 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18860 switch (ai->ai_family) {
18862 if (strcmp(strport, "54321") != 0) {
18866 if (strcmp(straddr, "0.0.0.0") != 0) {
18870 if (strcmp(straddr, "127.0.0.1") != 0) {
18877 if (strcmp(strport, "54321") != 0) {
18881 if (strcmp(straddr, "::") != 0) {
18885 if (strcmp(straddr, "::1") != 0) {
18895 /* another family support? */
18901 if (!(inet4 == 0 || inet4 == 2))
18903 if (!(inet6 == 0 || inet6 == 2))
18907 freeaddrinfo(aitop);
18912 freeaddrinfo(aitop);
18917 rm -f conftest
$ac_exeext
18918 if { (ac_try
="$ac_link"
18919 case "(($ac_try" in
18920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_link") 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18930 *) ac_try_echo
=$ac_try;;
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 { echo "$as_me:$LINENO: result: good" >&5
18938 echo "${ECHO_T}good" >&6; }
18939 buggygetaddrinfo
=no
18941 echo "$as_me: program exited with status $ac_status" >&5
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.
$ac_ext >&5
18945 ( exit $ac_status )
18946 { echo "$as_me:$LINENO: result: buggy" >&5
18947 echo "${ECHO_T}buggy" >&6; }
18948 buggygetaddrinfo
=yes
18950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.
$ac_ext >&5
18959 { echo "$as_me:$LINENO: result: no" >&5
18960 echo "${ECHO_T}no" >&6; }
18961 buggygetaddrinfo
=yes
18965 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18966 conftest
$ac_exeext conftest.
$ac_ext
18968 if test "$buggygetaddrinfo" = "yes"; then
18969 if test "$ipv6" = "yes"; then
18970 echo 'Fatal: You must get working getaddrinfo() function.'
18971 echo ' or you can specify "--disable-ipv6"'.
18976 cat >>confdefs.h
<<\_ACEOF
18977 #define HAVE_GETADDRINFO 1
18982 for ac_func
in getnameinfo
18984 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18987 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 cat >conftest.
$ac_ext <<_ACEOF
18993 cat confdefs.h
>>conftest.
$ac_ext
18994 cat >>conftest.
$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define $ac_func innocuous_$ac_func
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19006 # include <limits.h>
19008 # include <assert.h>
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined __stub_$ac_func || defined __stub___$ac_func
19030 return $ac_func ();
19035 rm -f conftest.
$ac_objext conftest
$ac_exeext
19036 if { (ac_try
="$ac_link"
19037 case "(($ac_try" in
19038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 eval "$as_ac_var=yes"
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 eval "$as_ac_var=no"
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19064 ac_res=`eval echo '${'$as_ac_var'}'`
19065 { echo "$as_me:$LINENO: result: $ac_res" >&5
19066 echo "${ECHO_T}$ac_res" >&6; }
19067 if test `eval echo '${'$as_ac_var'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19076 # checks for structures
19077 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19078 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19079 if test "${ac_cv_header_time+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 cat >conftest.$ac_ext <<_ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19088 #include <sys/types.h>
19089 #include <sys/time.h>
19095 if ((struct tm *) 0)
19101 rm -f conftest.$ac_objext
19102 if { (ac_try="$ac_compile"
19103 case "(($ac_try" in
19104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19105 *) ac_try_echo
=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_compile") 2>conftest.er1
19110 grep -v '^ *+' conftest.er1
>conftest.err
19112 cat conftest.err
>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && {
19115 test -z "$ac_c_werror_flag" ||
19116 test ! -s conftest.err
19117 } && test -s conftest.
$ac_objext; then
19118 ac_cv_header_time
=yes
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.
$ac_ext >&5
19123 ac_cv_header_time
=no
19126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19128 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19129 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19130 if test $ac_cv_header_time = yes; then
19132 cat >>confdefs.h
<<\_ACEOF
19133 #define TIME_WITH_SYS_TIME 1
19138 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19139 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19140 if test "${ac_cv_struct_tm+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 cat >conftest.
$ac_ext <<_ACEOF
19146 cat confdefs.h
>>conftest.
$ac_ext
19147 cat >>conftest.
$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 #include <sys/types.h>
19156 int *p = &tm.tm_sec;
19162 rm -f conftest.
$ac_objext
19163 if { (ac_try
="$ac_compile"
19164 case "(($ac_try" in
19165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_compile") 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest.$ac_objext; then
19179 ac_cv_struct_tm=time.h
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_cv_struct_tm=sys/time.h
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19190 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19191 if test $ac_cv_struct_tm = sys/time.h; then
19193 cat >>confdefs.h <<\_ACEOF
19194 #define TM_IN_SYS_TIME 1
19199 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19200 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19201 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 #include <sys/types.h>
19211 #include <$ac_cv_struct_tm>
19217 static struct tm ac_aggr;
19218 if (ac_aggr.tm_zone)
19224 rm -f conftest.$ac_objext
19225 if { (ac_try="$ac_compile"
19226 case "(($ac_try" in
19227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19228 *) ac_try_echo
=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_compile") 2>conftest.er1
19233 grep -v '^ *+' conftest.er1
>conftest.err
19235 cat conftest.err
>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } && {
19238 test -z "$ac_c_werror_flag" ||
19239 test ! -s conftest.err
19240 } && test -s conftest.
$ac_objext; then
19241 ac_cv_member_struct_tm_tm_zone
=yes
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.
$ac_ext >&5
19246 cat >conftest.
$ac_ext <<_ACEOF
19249 cat confdefs.h
>>conftest.
$ac_ext
19250 cat >>conftest.
$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 #include <sys/types.h>
19253 #include <$ac_cv_struct_tm>
19259 static struct tm ac_aggr;
19260 if (sizeof ac_aggr.tm_zone)
19266 rm -f conftest.
$ac_objext
19267 if { (ac_try
="$ac_compile"
19268 case "(($ac_try" in
19269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_compile") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } && {
19280 test -z "$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 } && test -s conftest.$ac_objext; then
19283 ac_cv_member_struct_tm_tm_zone=yes
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_cv_member_struct_tm_tm_zone=no
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19297 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19298 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define HAVE_STRUCT_TM_TM_ZONE 1
19307 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_TM_ZONE 1
19314 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19315 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19316 if test "${ac_cv_have_decl_tzname+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19342 *) ac_try_echo
=$ac_try;;
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1
>conftest.err
19349 cat conftest.err
>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.
$ac_objext; then
19355 ac_cv_have_decl_tzname
=yes
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.
$ac_ext >&5
19360 ac_cv_have_decl_tzname
=no
19363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19365 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19366 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19367 if test $ac_cv_have_decl_tzname = yes; then
19369 cat >>confdefs.h
<<_ACEOF
19370 #define HAVE_DECL_TZNAME 1
19375 cat >>confdefs.h
<<_ACEOF
19376 #define HAVE_DECL_TZNAME 0
19383 { echo "$as_me:$LINENO: checking for tzname" >&5
19384 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19385 if test "${ac_cv_var_tzname+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 cat >conftest.
$ac_ext <<_ACEOF
19391 cat confdefs.h
>>conftest.
$ac_ext
19392 cat >>conftest.
$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19395 #if !HAVE_DECL_TZNAME
19396 extern char *tzname[];
19402 return tzname[0][0];
19407 rm -f conftest.
$ac_objext conftest
$ac_exeext
19408 if { (ac_try
="$ac_link"
19409 case "(($ac_try" in
19410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest$ac_exeext &&
19424 $as_test_x conftest$ac_exeext; then
19425 ac_cv_var_tzname=yes
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 ac_cv_var_tzname=no
19433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19434 conftest$ac_exeext conftest.$ac_ext
19436 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19437 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19438 if test $ac_cv_var_tzname = yes; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_TZNAME 1
19447 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19448 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19449 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 cat >conftest.$ac_ext <<_ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19458 $ac_includes_default
19462 static struct stat ac_aggr;
19463 if (ac_aggr.st_rdev)
19469 rm -f conftest.$ac_objext
19470 if { (ac_try="$ac_compile"
19471 case "(($ac_try" in
19472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19473 *) ac_try_echo
=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_compile") 2>conftest.er1
19478 grep -v '^ *+' conftest.er1
>conftest.err
19480 cat conftest.err
>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest.
$ac_objext; then
19486 ac_cv_member_struct_stat_st_rdev
=yes
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.
$ac_ext >&5
19491 cat >conftest.
$ac_ext <<_ACEOF
19494 cat confdefs.h
>>conftest.
$ac_ext
19495 cat >>conftest.
$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497 $ac_includes_default
19501 static struct stat ac_aggr;
19502 if (sizeof ac_aggr.st_rdev)
19508 rm -f conftest.
$ac_objext
19509 if { (ac_try
="$ac_compile"
19510 case "(($ac_try" in
19511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_compile") 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest.$ac_objext; then
19525 ac_cv_member_struct_stat_st_rdev=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_member_struct_stat_st_rdev=no
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19539 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19540 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_STRUCT_STAT_ST_RDEV 1
19549 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19550 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19551 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 $ac_includes_default
19564 static struct stat ac_aggr;
19565 if (ac_aggr.st_blksize)
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19575 *) ac_try_echo
=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_compile") 2>conftest.er1
19580 grep -v '^ *+' conftest.er1
>conftest.err
19582 cat conftest.err
>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest.
$ac_objext; then
19588 ac_cv_member_struct_stat_st_blksize
=yes
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.
$ac_ext >&5
19593 cat >conftest.
$ac_ext <<_ACEOF
19596 cat confdefs.h
>>conftest.
$ac_ext
19597 cat >>conftest.
$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 $ac_includes_default
19603 static struct stat ac_aggr;
19604 if (sizeof ac_aggr.st_blksize)
19610 rm -f conftest.
$ac_objext
19611 if { (ac_try
="$ac_compile"
19612 case "(($ac_try" in
19613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_compile") 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest.$ac_objext; then
19627 ac_cv_member_struct_stat_st_blksize=yes
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_cv_member_struct_stat_st_blksize=no
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19641 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19642 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19644 cat >>confdefs.h <<_ACEOF
19645 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19651 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19652 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19653 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 $ac_includes_default
19666 static struct stat ac_aggr;
19667 if (ac_aggr.st_flags)
19673 rm -f conftest.$ac_objext
19674 if { (ac_try="$ac_compile"
19675 case "(($ac_try" in
19676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19677 *) ac_try_echo
=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
19682 grep -v '^ *+' conftest.er1
>conftest.err
19684 cat conftest.err
>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } && {
19687 test -z "$ac_c_werror_flag" ||
19688 test ! -s conftest.err
19689 } && test -s conftest.
$ac_objext; then
19690 ac_cv_member_struct_stat_st_flags
=yes
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.
$ac_ext >&5
19695 cat >conftest.
$ac_ext <<_ACEOF
19698 cat confdefs.h
>>conftest.
$ac_ext
19699 cat >>conftest.
$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 $ac_includes_default
19705 static struct stat ac_aggr;
19706 if (sizeof ac_aggr.st_flags)
19712 rm -f conftest.
$ac_objext
19713 if { (ac_try
="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } && {
19726 test -z "$ac_c_werror_flag" ||
19727 test ! -s conftest.err
19728 } && test -s conftest.$ac_objext; then
19729 ac_cv_member_struct_stat_st_flags=yes
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 ac_cv_member_struct_stat_st_flags=no
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19743 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19744 if test $ac_cv_member_struct_stat_st_flags = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19753 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19754 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19755 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 $ac_includes_default
19768 static struct stat ac_aggr;
19769 if (ac_aggr.st_gen)
19775 rm -f conftest.$ac_objext
19776 if { (ac_try="$ac_compile"
19777 case "(($ac_try" in
19778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19779 *) ac_try_echo
=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_compile") 2>conftest.er1
19784 grep -v '^ *+' conftest.er1
>conftest.err
19786 cat conftest.err
>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } && {
19789 test -z "$ac_c_werror_flag" ||
19790 test ! -s conftest.err
19791 } && test -s conftest.
$ac_objext; then
19792 ac_cv_member_struct_stat_st_gen
=yes
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.
$ac_ext >&5
19797 cat >conftest.
$ac_ext <<_ACEOF
19800 cat confdefs.h
>>conftest.
$ac_ext
19801 cat >>conftest.
$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19807 static struct stat ac_aggr;
19808 if (sizeof ac_aggr.st_gen)
19814 rm -f conftest.
$ac_objext
19815 if { (ac_try
="$ac_compile"
19816 case "(($ac_try" in
19817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_compile") 2>conftest.er1
19823 grep -v '^ *+' conftest.er1 >conftest.err
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest.$ac_objext; then
19831 ac_cv_member_struct_stat_st_gen=yes
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_cv_member_struct_stat_st_gen=no
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19845 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19846 if test $ac_cv_member_struct_stat_st_gen = yes; then
19848 cat >>confdefs.h <<_ACEOF
19849 #define HAVE_STRUCT_STAT_ST_GEN 1
19855 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19856 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19857 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 $ac_includes_default
19870 static struct stat ac_aggr;
19871 if (ac_aggr.st_birthtime)
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19881 *) ac_try_echo
=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_compile") 2>conftest.er1
19886 grep -v '^ *+' conftest.er1
>conftest.err
19888 cat conftest.err
>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } && {
19891 test -z "$ac_c_werror_flag" ||
19892 test ! -s conftest.err
19893 } && test -s conftest.
$ac_objext; then
19894 ac_cv_member_struct_stat_st_birthtime
=yes
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.
$ac_ext >&5
19899 cat >conftest.
$ac_ext <<_ACEOF
19902 cat confdefs.h
>>conftest.
$ac_ext
19903 cat >>conftest.
$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19909 static struct stat ac_aggr;
19910 if (sizeof ac_aggr.st_birthtime)
19916 rm -f conftest.
$ac_objext
19917 if { (ac_try
="$ac_compile"
19918 case "(($ac_try" in
19919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_compile") 2>conftest.er1
19925 grep -v '^ *+' conftest.er1 >conftest.err
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && {
19930 test -z "$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19932 } && test -s conftest.$ac_objext; then
19933 ac_cv_member_struct_stat_st_birthtime=yes
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ac_cv_member_struct_stat_st_birthtime=no
19941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19947 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19948 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19957 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19958 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19959 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19972 static struct stat ac_aggr;
19973 if (ac_aggr.st_blocks)
19979 rm -f conftest.$ac_objext
19980 if { (ac_try="$ac_compile"
19981 case "(($ac_try" in
19982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19983 *) ac_try_echo
=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_compile") 2>conftest.er1
19988 grep -v '^ *+' conftest.er1
>conftest.err
19990 cat conftest.err
>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } && {
19993 test -z "$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 } && test -s conftest.
$ac_objext; then
19996 ac_cv_member_struct_stat_st_blocks
=yes
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.
$ac_ext >&5
20001 cat >conftest.
$ac_ext <<_ACEOF
20004 cat confdefs.h
>>conftest.
$ac_ext
20005 cat >>conftest.
$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007 $ac_includes_default
20011 static struct stat ac_aggr;
20012 if (sizeof ac_aggr.st_blocks)
20018 rm -f conftest.
$ac_objext
20019 if { (ac_try
="$ac_compile"
20020 case "(($ac_try" in
20021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_compile") 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && {
20032 test -z "$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 } && test -s conftest.$ac_objext; then
20035 ac_cv_member_struct_stat_st_blocks=yes
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_cv_member_struct_stat_st_blocks=no
20043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20049 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20050 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20052 cat >>confdefs.h <<_ACEOF
20053 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_ST_BLOCKS 1
20062 case " $LIBOBJS " in
20063 *" fileblocks.$ac_objext "* ) ;;
20064 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20072 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20073 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20074 if test "${ac_cv_header_time_altzone+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20096 *) ac_try_echo
=$ac_try;;
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20101 grep -v '^ *+' conftest.er1
>conftest.err
20103 cat conftest.err
>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest.
$ac_objext; then
20109 ac_cv_header_time_altzone
=yes
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.
$ac_ext >&5
20114 ac_cv_header_time_altzone
=no
20117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20120 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20121 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20122 if test $ac_cv_header_time_altzone = yes; then
20124 cat >>confdefs.h
<<\_ACEOF
20125 #define HAVE_ALTZONE 1
20131 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20132 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20133 cat >conftest.
$ac_ext <<_ACEOF
20136 cat confdefs.h
>>conftest.
$ac_ext
20137 cat >>conftest.
$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20140 #include <sys/types.h>
20141 #include <sys/select.h>
20142 #include <sys/time.h>
20152 rm -f conftest.
$ac_objext
20153 if { (ac_try
="$ac_compile"
20154 case "(($ac_try" in
20155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_compile") 2>conftest.er1
20161 grep -v '^ *+' conftest.er1 >conftest.err
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } && {
20166 test -z "$ac_c_werror_flag" ||
20167 test ! -s conftest.err
20168 } && test -s conftest.$ac_objext; then
20171 cat >>confdefs.h <<\_ACEOF
20172 #define SYS_SELECT_WITH_SYS_TIME 1
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20186 echo "${ECHO_T}$was_it_defined" >&6; }
20188 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20189 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20190 if test "${ac_cv_struct_addrinfo+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20200 # include <netdb.h>
20209 rm -f conftest.$ac_objext
20210 if { (ac_try="$ac_compile"
20211 case "(($ac_try" in
20212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20213 *) ac_try_echo
=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_compile") 2>conftest.er1
20218 grep -v '^ *+' conftest.er1
>conftest.err
20220 cat conftest.err
>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest.
$ac_objext; then
20226 ac_cv_struct_addrinfo
=yes
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.
$ac_ext >&5
20231 ac_cv_struct_addrinfo
=no
20234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20237 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20238 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20239 if test $ac_cv_struct_addrinfo = yes; then
20241 cat >>confdefs.h
<<\_ACEOF
20242 #define HAVE_ADDRINFO 1
20247 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20248 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20249 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 cat >conftest.
$ac_ext <<_ACEOF
20255 cat confdefs.h
>>conftest.
$ac_ext
20256 cat >>conftest.
$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 # include <sys/types.h>
20260 # include <sys/socket.h>
20264 struct sockaddr_storage s
20269 rm -f conftest.
$ac_objext
20270 if { (ac_try
="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20278 grep -v '^ *+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_cv_struct_sockaddr_storage=yes
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_cv_struct_sockaddr_storage=no
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20298 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20299 if test $ac_cv_struct_sockaddr_storage = yes; then
20301 cat >>confdefs.h <<\_ACEOF
20302 #define HAVE_SOCKADDR_STORAGE 1
20307 # checks for compiler characteristics
20310 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20311 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20312 if test "${ac_cv_c_char_unsigned+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20325 static int test_array [1 - 2 * !(((char) -1) < 0)];
20332 rm -f conftest.$ac_objext
20333 if { (ac_try="$ac_compile"
20334 case "(($ac_try" in
20335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20336 *) ac_try_echo
=$ac_try;;
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_compile") 2>conftest.er1
20341 grep -v '^ *+' conftest.er1
>conftest.err
20343 cat conftest.err
>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && {
20346 test -z "$ac_c_werror_flag" ||
20347 test ! -s conftest.err
20348 } && test -s conftest.
$ac_objext; then
20349 ac_cv_c_char_unsigned
=no
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.
$ac_ext >&5
20354 ac_cv_c_char_unsigned
=yes
20357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20359 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20360 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20361 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20362 cat >>confdefs.h
<<\_ACEOF
20363 #define __CHAR_UNSIGNED__ 1
20368 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20369 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20370 if test "${ac_cv_c_const+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 cat >conftest.
$ac_ext <<_ACEOF
20376 cat confdefs.h
>>conftest.
$ac_ext
20377 cat >>conftest.
$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20383 /* FIXME: Include the comments suggested by Paul. */
20384 #ifndef __cplusplus
20385 /* Ultrix mips cc rejects this. */
20386 typedef int charset[2];
20388 /* SunOS 4.1.1 cc rejects this. */
20389 char const *const *pcpcc;
20391 /* NEC SVR4.0.2 mips cc rejects this. */
20392 struct point {int x, y;};
20393 static struct point const zero = {0,0};
20394 /* AIX XL C 1.02.0.0 rejects this.
20395 It does not let you subtract one const X* pointer from another in
20396 an arm of an if-expression whose if-part is not a constant
20398 const char *g = "string";
20399 pcpcc = &g + (g ? g-g : 0);
20400 /* HPUX 7.0 cc rejects these. */
20402 ppc = (char**) pcpcc;
20403 pcpcc = (char const *const *) ppc;
20404 { /* SCO 3.2v4 cc rejects this. */
20406 char const *s = 0 ? (char *) 0 : (char const *) 0;
20411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20412 int x[] = {25, 17};
20413 const int *foo = &x[0];
20416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20417 typedef const int *iptr;
20421 { /* AIX XL C 1.02.0.0 rejects this saying
20422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20423 struct s { int j; const int *ap[3]; };
20424 struct s *b; b->j = 5;
20426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20427 const int foo = 10;
20428 if (!foo) return 0;
20430 return !cs[0] && !zero.x;
20437 rm -f conftest.
$ac_objext
20438 if { (ac_try
="$ac_compile"
20439 case "(($ac_try" in
20440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_compile") 2>conftest.er1
20446 grep -v '^ *+' conftest.er1 >conftest.err
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest.$ac_objext; then
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20465 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20466 if test $ac_cv_c_const = no; then
20468 cat >>confdefs.h <<\_ACEOF
20476 { echo "$as_me:$LINENO: checking for working volatile" >&5
20477 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20478 cat >conftest.$ac_ext <<_ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20488 volatile int x; x = 0;
20493 rm -f conftest.$ac_objext
20494 if { (ac_try="$ac_compile"
20495 case "(($ac_try" in
20496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20497 *) ac_try_echo
=$ac_try;;
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500 (eval "$ac_compile") 2>conftest.er1
20502 grep -v '^ *+' conftest.er1
>conftest.err
20504 cat conftest.err
>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } && {
20507 test -z "$ac_c_werror_flag" ||
20508 test ! -s conftest.err
20509 } && test -s conftest.
$ac_objext; then
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.
$ac_ext >&5
20516 cat >>confdefs.h
<<\_ACEOF
20523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20524 { echo "$as_me:$LINENO: result: $works" >&5
20525 echo "${ECHO_T}$works" >&6; }
20528 { echo "$as_me:$LINENO: checking for working signed char" >&5
20529 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20530 cat >conftest.
$ac_ext <<_ACEOF
20533 cat confdefs.h
>>conftest.
$ac_ext
20534 cat >>conftest.
$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20545 rm -f conftest.
$ac_objext
20546 if { (ac_try
="$ac_compile"
20547 case "(($ac_try" in
20548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_compile") 2>conftest.er1
20554 grep -v '^ *+' conftest.er1 >conftest.err
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } && {
20559 test -z "$ac_c_werror_flag" ||
20560 test ! -s conftest.err
20561 } && test -s conftest.$ac_objext; then
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20568 cat >>confdefs.h <<\_ACEOF
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576 { echo "$as_me:$LINENO: result: $works" >&5
20577 echo "${ECHO_T}$works" >&6; }
20580 { echo "$as_me:$LINENO: checking for prototypes" >&5
20581 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 int foo(int x) { return 0; }
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20601 *) ac_try_echo
=$ac_try;;
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20606 grep -v '^ *+' conftest.er1
>conftest.err
20608 cat conftest.err
>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.
$ac_objext; then
20616 cat >>confdefs.h
<<\_ACEOF
20617 #define HAVE_PROTOTYPES 1
20620 have_prototypes
=yes
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.
$ac_ext >&5
20629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20630 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20631 echo "${ECHO_T}$have_prototypes" >&6; }
20634 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20635 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20636 cat >conftest.
$ac_ext <<_ACEOF
20639 cat confdefs.h
>>conftest.
$ac_ext
20640 cat >>conftest.
$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20643 #include <stdarg.h>
20644 int foo(int x, ...) {
20648 va_arg(va, char *);
20649 va_arg(va, double);
20656 return foo(10, "", 3.14);
20661 rm -f conftest.
$ac_objext
20662 if { (ac_try
="$ac_compile"
20663 case "(($ac_try" in
20664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_compile") 2>conftest.er1
20670 grep -v '^ *+' conftest.er1 >conftest.err
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && {
20675 test -z "$ac_c_werror_flag" ||
20676 test ! -s conftest.err
20677 } && test -s conftest.$ac_objext; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_STDARG_PROTOTYPES 1
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $works" >&5
20695 echo "${ECHO_T}$works" >&6; }
20697 # check for socketpair
20698 { echo "$as_me:$LINENO: checking for socketpair" >&5
20699 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20707 #include <sys/types.h>
20708 #include <sys/socket.h>
20718 rm -f conftest.$ac_objext
20719 if { (ac_try="$ac_compile"
20720 case "(($ac_try" in
20721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20722 *) ac_try_echo
=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_compile") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1
>conftest.err
20729 cat conftest.err
>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest.
$ac_objext; then
20736 cat >>confdefs.h
<<\_ACEOF
20737 #define HAVE_SOCKETPAIR 1
20740 { echo "$as_me:$LINENO: result: yes" >&5
20741 echo "${ECHO_T}yes" >&6; }
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.
$ac_ext >&5
20746 { echo "$as_me:$LINENO: result: no" >&5
20747 echo "${ECHO_T}no" >&6; }
20751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20753 # check if sockaddr has sa_len member
20754 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20755 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20756 cat >conftest.
$ac_ext <<_ACEOF
20759 cat confdefs.h
>>conftest.
$ac_ext
20760 cat >>conftest.
$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 #include <sys/types.h>
20763 #include <sys/socket.h>
20773 rm -f conftest.
$ac_objext
20774 if { (ac_try
="$ac_compile"
20775 case "(($ac_try" in
20776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_compile") 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest.$ac_objext; then
20790 { echo "$as_me:$LINENO: result: yes" >&5
20791 echo "${ECHO_T}yes" >&6; }
20793 cat >>confdefs.h <<\_ACEOF
20794 #define HAVE_SOCKADDR_SA_LEN 1
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 { echo "$as_me:$LINENO: result: no" >&5
20802 echo "${ECHO_T}no" >&6; }
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807 va_list_is_array=no
20808 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20809 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20817 #ifdef HAVE_STDARG_PROTOTYPES
20818 #include <stdarg.h>
20820 #include <varargs.h>
20826 va_list list1, list2; list1 = list2;
20831 rm -f conftest.$ac_objext
20832 if { (ac_try="$ac_compile"
20833 case "(($ac_try" in
20834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20835 *) ac_try_echo
=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_compile") 2>conftest.er1
20840 grep -v '^ *+' conftest.er1
>conftest.err
20842 cat conftest.err
>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && {
20845 test -z "$ac_c_werror_flag" ||
20846 test ! -s conftest.err
20847 } && test -s conftest.
$ac_objext; then
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.
$ac_ext >&5
20855 cat >>confdefs.h
<<\_ACEOF
20856 #define VA_LIST_IS_ARRAY 1
20859 va_list_is_array
=yes
20863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20864 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20865 echo "${ECHO_T}$va_list_is_array" >&6; }
20867 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20871 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20872 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20873 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 cat >conftest.
$ac_ext <<_ACEOF
20879 cat confdefs.h
>>conftest.
$ac_ext
20880 cat >>conftest.
$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20884 #define gethostbyname_r innocuous_gethostbyname_r
20886 /* System header to define __stub macros and hopefully few prototypes,
20887 which can conflict with char gethostbyname_r (); below.
20888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20889 <limits.h> exists even on freestanding compilers. */
20892 # include <limits.h>
20894 # include <assert.h>
20897 #undef gethostbyname_r
20899 /* Override any GCC internal prototype to avoid an error.
20900 Use char because int might match the return type of a GCC
20901 builtin and then its argument prototype would still apply. */
20905 char gethostbyname_r ();
20906 /* The GNU C library defines this for functions which it implements
20907 to always fail with ENOSYS. Some functions are actually named
20908 something starting with __ and the normal name is an alias. */
20909 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20916 return gethostbyname_r ();
20921 rm -f conftest.
$ac_objext conftest
$ac_exeext
20922 if { (ac_try
="$ac_link"
20923 case "(($ac_try" in
20924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_link") 2>conftest.er1
20930 grep -v '^ *+' conftest.er1 >conftest.err
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } && {
20935 test -z "$ac_c_werror_flag" ||
20936 test ! -s conftest.err
20937 } && test -s conftest$ac_exeext &&
20938 $as_test_x conftest$ac_exeext; then
20939 ac_cv_func_gethostbyname_r=yes
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_cv_func_gethostbyname_r=no
20947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20948 conftest$ac_exeext conftest.$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20951 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20952 if test $ac_cv_func_gethostbyname_r = yes; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_GETHOSTBYNAME_R 1
20958 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20959 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20961 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 # include <netdb.h>
20976 struct hostent *he, *res;
20981 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20991 *) ac_try_echo
=$ac_try;;
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_compile") 2>conftest.er1
20996 grep -v '^ *+' conftest.er1
>conftest.err
20998 cat conftest.err
>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.
$ac_objext; then
21005 cat >>confdefs.h
<<\_ACEOF
21006 #define HAVE_GETHOSTBYNAME_R 1
21010 cat >>confdefs.h
<<\_ACEOF
21011 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21014 { echo "$as_me:$LINENO: result: yes" >&5
21015 echo "${ECHO_T}yes" >&6; }
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.
$ac_ext >&5
21022 { echo "$as_me:$LINENO: result: no" >&5
21023 echo "${ECHO_T}no" >&6; }
21024 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21025 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21026 cat >conftest.
$ac_ext <<_ACEOF
21029 cat confdefs.h
>>conftest.
$ac_ext
21030 cat >>conftest.
$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21033 # include <netdb.h>
21040 struct hostent *he;
21045 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21051 rm -f conftest.
$ac_objext
21052 if { (ac_try
="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_GETHOSTBYNAME_R 1
21074 cat >>confdefs.h <<\_ACEOF
21075 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21078 { echo "$as_me:$LINENO: result: yes" >&5
21079 echo "${ECHO_T}yes" >&6; }
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21086 { echo "$as_me:$LINENO: result: no" >&5
21087 echo "${ECHO_T}no" >&6; }
21088 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21089 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21097 # include <netdb.h>
21104 struct hostent *he;
21105 struct hostent_data data;
21107 (void) gethostbyname_r(name, he, &data);
21113 rm -f conftest.$ac_objext
21114 if { (ac_try="$ac_compile"
21115 case "(($ac_try" in
21116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21117 *) ac_try_echo
=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_compile") 2>conftest.er1
21122 grep -v '^ *+' conftest.er1
>conftest.err
21124 cat conftest.err
>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } && {
21127 test -z "$ac_c_werror_flag" ||
21128 test ! -s conftest.err
21129 } && test -s conftest.
$ac_objext; then
21131 cat >>confdefs.h
<<\_ACEOF
21132 #define HAVE_GETHOSTBYNAME_R 1
21136 cat >>confdefs.h
<<\_ACEOF
21137 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21140 { echo "$as_me:$LINENO: result: yes" >&5
21141 echo "${ECHO_T}yes" >&6; }
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.
$ac_ext >&5
21148 { echo "$as_me:$LINENO: result: no" >&5
21149 echo "${ECHO_T}no" >&6; }
21153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21167 for ac_func
in gethostbyname
21169 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21172 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 cat >conftest.
$ac_ext <<_ACEOF
21178 cat confdefs.h
>>conftest.
$ac_ext
21179 cat >>conftest.
$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21183 #define $ac_func innocuous_$ac_func
21185 /* System header to define __stub macros and hopefully few prototypes,
21186 which can conflict with char $ac_func (); below.
21187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21188 <limits.h> exists even on freestanding compilers. */
21191 # include <limits.h>
21193 # include <assert.h>
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21205 /* The GNU C library defines this for functions which it implements
21206 to always fail with ENOSYS. Some functions are actually named
21207 something starting with __ and the normal name is an alias. */
21208 #if defined __stub_$ac_func || defined __stub___$ac_func
21215 return $ac_func ();
21220 rm -f conftest.
$ac_objext conftest
$ac_exeext
21221 if { (ac_try
="$ac_link"
21222 case "(($ac_try" in
21223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_link") 2>conftest.er1
21229 grep -v '^ *+' conftest.er1 >conftest.err
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest$ac_exeext &&
21237 $as_test_x conftest$ac_exeext; then
21238 eval "$as_ac_var=yes"
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 eval "$as_ac_var=no"
21246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21247 conftest$ac_exeext conftest.$ac_ext
21249 ac_res=`eval echo '${'$as_ac_var'}'`
21250 { echo "$as_me:$LINENO: result: $ac_res" >&5
21251 echo "${ECHO_T}$ac_res" >&6; }
21252 if test `eval echo '${'$as_ac_var'}'` = yes; then
21253 cat >>confdefs.h <<_ACEOF
21254 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21269 # checks for system services
21272 # Linux requires this for correct f.p. operations
21273 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21274 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21275 if test "${ac_cv_func___fpu_control+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 cat >conftest.$ac_ext <<_ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21286 #define __fpu_control innocuous___fpu_control
21288 /* System header to define __stub macros and hopefully few prototypes,
21289 which can conflict with char __fpu_control (); below.
21290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21291 <limits.h> exists even on freestanding compilers. */
21294 # include <limits.h>
21296 # include <assert.h>
21299 #undef __fpu_control
21301 /* Override any GCC internal prototype to avoid an error.
21302 Use char because int might match the return type of a GCC
21303 builtin and then its argument prototype would still apply. */
21307 char __fpu_control ();
21308 /* The GNU C library defines this for functions which it implements
21309 to always fail with ENOSYS. Some functions are actually named
21310 something starting with __ and the normal name is an alias. */
21311 #if defined __stub___fpu_control || defined __stub_____fpu_control
21318 return __fpu_control ();
21323 rm -f conftest.$ac_objext conftest$ac_exeext
21324 if { (ac_try="$ac_link"
21325 case "(($ac_try" in
21326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21327 *) ac_try_echo
=$ac_try;;
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_link") 2>conftest.er1
21332 grep -v '^ *+' conftest.er1
>conftest.err
21334 cat conftest.err
>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } && {
21337 test -z "$ac_c_werror_flag" ||
21338 test ! -s conftest.err
21339 } && test -s conftest
$ac_exeext &&
21340 $as_test_x conftest
$ac_exeext; then
21341 ac_cv_func___fpu_control
=yes
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.
$ac_ext >&5
21346 ac_cv_func___fpu_control
=no
21349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21350 conftest
$ac_exeext conftest.
$ac_ext
21352 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21353 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21354 if test $ac_cv_func___fpu_control = yes; then
21358 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21359 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21360 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 ac_check_lib_save_LIBS
=$LIBS
21364 LIBS
="-lieee $LIBS"
21365 cat >conftest.
$ac_ext <<_ACEOF
21368 cat confdefs.h
>>conftest.
$ac_ext
21369 cat >>conftest.
$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21372 /* Override any GCC internal prototype to avoid an error.
21373 Use char because int might match the return type of a GCC
21374 builtin and then its argument prototype would still apply. */
21378 char __fpu_control ();
21382 return __fpu_control ();
21387 rm -f conftest.
$ac_objext conftest
$ac_exeext
21388 if { (ac_try
="$ac_link"
21389 case "(($ac_try" in
21390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_link") 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest$ac_exeext &&
21404 $as_test_x conftest$ac_exeext; then
21405 ac_cv_lib_ieee___fpu_control=yes
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_cv_lib_ieee___fpu_control=no
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414 conftest$ac_exeext conftest.$ac_ext
21415 LIBS=$ac_check_lib_save_LIBS
21417 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21418 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21419 if test $ac_cv_lib_ieee___fpu_control = yes; then
21420 cat >>confdefs.h <<_ACEOF
21421 #define HAVE_LIBIEEE 1
21424 LIBS="-lieee $LIBS"
21432 # Check for --with-fpectl
21433 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21434 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21436 # Check whether --with-fpectl was given.
21437 if test "${with_fpectl+set}" = set; then
21438 withval=$with_fpectl;
21439 if test "$withval" != no
21442 cat >>confdefs.h <<\_ACEOF
21443 #define WANT_SIGFPE_HANDLER 1
21446 { echo "$as_me:$LINENO: result: yes" >&5
21447 echo "${ECHO_T}yes" >&6; }
21448 else { echo "$as_me:$LINENO: result: no" >&5
21449 echo "${ECHO_T}no" >&6; }
21452 { echo "$as_me:$LINENO: result: no" >&5
21453 echo "${ECHO_T}no" >&6; }
21457 # check for --with-libm=...
21459 case $ac_sys_system in
21464 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21465 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21467 # Check whether --with-libm was given.
21468 if test "${with_libm+set}" = set; then
21469 withval=$with_libm;
21470 if test "$withval" = no
21472 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21473 echo "${ECHO_T}force LIBM empty" >&6; }
21474 elif test "$withval" != yes
21476 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21477 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21478 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21479 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21480 { (exit 1); exit 1; }; }
21483 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21484 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21488 # check for --with-libc=...
21490 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21491 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21493 # Check whether --with-libc was given.
21494 if test "${with_libc+set}" = set; then
21495 withval=$with_libc;
21496 if test "$withval" = no
21498 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21499 echo "${ECHO_T}force LIBC empty" >&6; }
21500 elif test "$withval" != yes
21502 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21503 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21504 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21505 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21506 { (exit 1); exit 1; }; }
21509 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21510 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21514 # ************************************
21515 # * Check for mathematical functions *
21516 # ************************************
21521 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21522 # -0. on some architectures.
21523 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21524 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21525 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 if test "$cross_compiling" = yes; then
21530 ac_cv_tanh_preserves_zero_sign=no
21532 cat >conftest.$ac_ext <<_ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21540 #include <stdlib.h>
21542 /* return 0 if either negative zeros don't exist
21543 on this platform or if negative zeros exist
21544 and tanh(-0.) == -0. */
21545 if (atan2(0., -1.) == atan2(-0., -1.) ||
21546 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21551 rm -f conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21555 *) ac_try_echo
=$ac_try;;
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_link") 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21562 { (case "(($ac_try" in
21563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_try") 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_tanh_preserves_zero_sign=yes
21573 echo "$as_me: program exited with status $ac_status" >&5
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ( exit $ac_status )
21578 ac_cv_tanh_preserves_zero_sign=no
21580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21587 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21588 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21591 cat >>confdefs.h <<\_ACEOF
21592 #define TANH_PRESERVES_ZERO_SIGN 1
21598 for ac_func in hypot
21600 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 cat >conftest.$ac_ext <<_ACEOF
21609 cat confdefs.h >>conftest.$ac_ext
21610 cat >>conftest.$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21614 #define $ac_func innocuous_$ac_func
21616 /* System header to define __stub macros and hopefully few prototypes,
21617 which can conflict with char $ac_func (); below.
21618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21619 <limits.h> exists even on freestanding compilers. */
21622 # include <limits.h>
21624 # include <assert.h>
21629 /* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21636 /* The GNU C library defines this for functions which it implements
21637 to always fail with ENOSYS. Some functions are actually named
21638 something starting with __ and the normal name is an alias. */
21639 #if defined __stub_$ac_func || defined __stub___$ac_func
21646 return $ac_func ();
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (ac_try="$ac_link"
21653 case "(($ac_try" in
21654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21655 *) ac_try_echo
=$ac_try;;
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658 (eval "$ac_link") 2>conftest.er1
21660 grep -v '^ *+' conftest.er1
>conftest.err
21662 cat conftest.err
>&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && {
21665 test -z "$ac_c_werror_flag" ||
21666 test ! -s conftest.err
21667 } && test -s conftest
$ac_exeext &&
21668 $as_test_x conftest
$ac_exeext; then
21669 eval "$as_ac_var=yes"
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.
$ac_ext >&5
21674 eval "$as_ac_var=no"
21677 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21678 conftest
$ac_exeext conftest.
$ac_ext
21680 ac_res
=`eval echo '${'$as_ac_var'}'`
21681 { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21683 if test `eval echo '${'$as_ac_var'}'` = yes; then
21684 cat >>confdefs.h
<<_ACEOF
21685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21689 case " $LIBOBJS " in
21690 *" $ac_func.$ac_objext "* ) ;;
21691 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21709 for ac_func
in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21711 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21714 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 cat >conftest.
$ac_ext <<_ACEOF
21720 cat confdefs.h
>>conftest.
$ac_ext
21721 cat >>conftest.
$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21725 #define $ac_func innocuous_$ac_func
21727 /* System header to define __stub macros and hopefully few prototypes,
21728 which can conflict with char $ac_func (); below.
21729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21730 <limits.h> exists even on freestanding compilers. */
21733 # include <limits.h>
21735 # include <assert.h>
21740 /* Override any GCC internal prototype to avoid an error.
21741 Use char because int might match the return type of a GCC
21742 builtin and then its argument prototype would still apply. */
21747 /* The GNU C library defines this for functions which it implements
21748 to always fail with ENOSYS. Some functions are actually named
21749 something starting with __ and the normal name is an alias. */
21750 #if defined __stub_$ac_func || defined __stub___$ac_func
21757 return $ac_func ();
21762 rm -f conftest.
$ac_objext conftest
$ac_exeext
21763 if { (ac_try
="$ac_link"
21764 case "(($ac_try" in
21765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1 >conftest.err
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest$ac_exeext &&
21779 $as_test_x conftest$ac_exeext; then
21780 eval "$as_ac_var=yes"
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 eval "$as_ac_var=no"
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789 conftest$ac_exeext conftest.$ac_ext
21791 ac_res=`eval echo '${'$as_ac_var'}'`
21792 { echo "$as_me:$LINENO: result: $ac_res" >&5
21793 echo "${ECHO_T}$ac_res" >&6; }
21794 if test `eval echo '${'$as_ac_var'}'` = yes; then
21795 cat >>confdefs.h <<_ACEOF
21796 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21805 # check for wchar.h
21806 if test "${ac_cv_header_wchar_h+set}" = set; then
21807 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21808 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21809 if test "${ac_cv_header_wchar_h+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21813 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21815 # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21817 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21831 *) ac_try_echo
=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_compile") 2>conftest.er1
21836 grep -v '^ *+' conftest.er1
>conftest.err
21838 cat conftest.err
>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest.
$ac_objext; then
21844 ac_header_compiler
=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.
$ac_ext >&5
21849 ac_header_compiler
=no
21852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21858 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21859 cat >conftest.
$ac_ext <<_ACEOF
21862 cat confdefs.h
>>conftest.
$ac_ext
21863 cat >>conftest.
$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21867 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev/null && {
21880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21883 ac_header_preproc=yes
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_preproc=no
21891 rm -f conftest.err conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895 # So? What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21901 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc=yes
21905 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21914 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21918 ## ------------------------------------------------ ##
21919 ## Report this to http://www.python.org/python-bugs ##
21920 ## ------------------------------------------------ ##
21922 ) | sed "s/^/$as_me: WARNING: /" >&2
21925 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21926 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21927 if test "${ac_cv_header_wchar_h+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 ac_cv_header_wchar_h=$ac_header_preproc
21932 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21933 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21936 if test $ac_cv_header_wchar_h = yes; then
21939 cat >>confdefs.h <<\_ACEOF
21940 #define HAVE_WCHAR_H 1
21952 # determine wchar_t size
21953 if test "$wchar_h" = yes
21955 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21956 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21957 if test "${ac_cv_type_wchar_t+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21968 typedef wchar_t ac__type_new_;
21972 if ((ac__type_new_ *) 0)
21974 if (sizeof (ac__type_new_))
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21984 *) ac_try_echo
=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1
>conftest.err
21991 cat conftest.err
>&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.
$ac_objext; then
21997 ac_cv_type_wchar_t
=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.
$ac_ext >&5
22002 ac_cv_type_wchar_t
=no
22005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22008 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22010 # The cast to long int works around a bug in the HP C Compiler
22011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22013 # This bug is HP SR number 8606223364.
22014 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22015 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22016 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 if test "$cross_compiling" = yes; then
22020 # Depending upon the size, compute the lo and hi bounds.
22021 cat >conftest.
$ac_ext <<_ACEOF
22024 cat confdefs.h
>>conftest.
$ac_ext
22025 cat >>conftest.
$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22029 typedef wchar_t ac__type_sizeof_;
22033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22040 rm -f conftest.
$ac_objext
22041 if { (ac_try
="$ac_compile"
22042 case "(($ac_try" in
22043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_compile") 2>conftest.er1
22049 grep -v '^ *+' conftest.er1 >conftest.err
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } && {
22054 test -z "$ac_c_werror_flag" ||
22055 test ! -s conftest.err
22056 } && test -s conftest.$ac_objext; then
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22067 typedef wchar_t ac__type_sizeof_;
22071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22082 *) ac_try_echo
=$ac_try;;
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1
>conftest.err
22089 cat conftest.err
>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest.
$ac_objext; then
22095 ac_hi
=$ac_mid; break
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.
$ac_ext >&5
22100 ac_lo
=`expr $ac_mid + 1`
22101 if test $ac_lo -le $ac_mid; then
22105 ac_mid
=`expr 2 '*' $ac_mid + 1`
22108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.
$ac_ext >&5
22114 cat >conftest.
$ac_ext <<_ACEOF
22117 cat confdefs.h
>>conftest.
$ac_ext
22118 cat >>conftest.
$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22122 typedef wchar_t ac__type_sizeof_;
22126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22133 rm -f conftest.
$ac_objext
22134 if { (ac_try
="$ac_compile"
22135 case "(($ac_try" in
22136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_compile") 2>conftest.er1
22142 grep -v '^ *+' conftest.er1 >conftest.err
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest.$ac_objext; then
22152 cat >conftest.$ac_ext <<_ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22160 typedef wchar_t ac__type_sizeof_;
22164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22175 *) ac_try_echo
=$ac_try;;
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22180 grep -v '^ *+' conftest.er1
>conftest.err
22182 cat conftest.err
>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.
$ac_objext; then
22188 ac_lo
=$ac_mid; break
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.
$ac_ext >&5
22193 ac_hi
=`expr '(' $ac_mid ')' - 1`
22194 if test $ac_mid -le $ac_hi; then
22198 ac_mid
=`expr 2 '*' $ac_mid`
22201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22204 echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.
$ac_ext >&5
22210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22214 # Binary search between lo and hi bounds.
22215 while test "x$ac_lo" != "x$ac_hi"; do
22216 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22217 cat >conftest.
$ac_ext <<_ACEOF
22220 cat confdefs.h
>>conftest.
$ac_ext
22221 cat >>conftest.
$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22225 typedef wchar_t ac__type_sizeof_;
22229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22236 rm -f conftest.
$ac_objext
22237 if { (ac_try
="$ac_compile"
22238 case "(($ac_try" in
22239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_compile") 2>conftest.er1
22245 grep -v '^ *+' conftest.er1 >conftest.err
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest.$ac_objext; then
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 ac_lo=`expr '(' $ac_mid ')' + 1`
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22265 '') if test "$ac_cv_type_wchar_t" = yes; then
22266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22267 See \`config.log
' for more details." >&5
22268 echo "$as_me: error: cannot compute sizeof (wchar_t)
22269 See \`config.log' for more details.
" >&2;}
22270 { (exit 77); exit 77; }; }
22272 ac_cv_sizeof_wchar_t=0
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22284 typedef wchar_t ac__type_sizeof_;
22285 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22286 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22288 #include <stdlib.h>
22293 FILE *f = fopen ("conftest.val
", "w
");
22296 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22298 long int i = longval ();
22299 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22301 fprintf (f, "%ld
\n", i);
22305 unsigned long int i = ulongval ();
22306 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22308 fprintf (f, "%lu
\n", i);
22310 return ferror (f) || fclose (f) != 0;
22316 rm -f conftest$ac_exeext
22317 if { (ac_try="$ac_link"
22318 case "(($ac_try" in
22319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320 *) ac_try_echo=$ac_try;;
22322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22323 (eval "$ac_link") 2>&5
22325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22327 { (case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_try") 2>&5
22334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22335 (exit $ac_status); }; }; then
22336 ac_cv_sizeof_wchar_t=`cat conftest.val`
22338 echo "$as_me: program exited with status
$ac_status" >&5
22339 echo "$as_me: failed program was
:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22342 ( exit $ac_status )
22343 if test "$ac_cv_type_wchar_t" = yes; then
22344 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22345 See \
`config.log' for more details." >&5
22346 echo "$as_me: error: cannot compute sizeof (wchar_t)
22347 See \`config.log
' for more details." >&2;}
22348 { (exit 77); exit 77; }; }
22350 ac_cv_sizeof_wchar_t=0
22353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22358 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22362 cat >>confdefs.h <<_ACEOF
22363 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22369 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22370 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22372 cat >conftest.$ac_ext <<_ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h. */
22380 #if TCL_UTF_MAX != 6
22381 # error "NOT UCS4_TCL"
22391 rm -f conftest.$ac_objext
22392 if { (ac_try="$ac_compile"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_compile") 2>conftest.er1
22400 grep -v '^
*+' conftest.er1 >conftest.err
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } && {
22405 test -z "$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22407 } && test -s conftest.$ac_objext; then
22410 cat >>confdefs.h <<\_ACEOF
22411 #define HAVE_UCS4_TCL 1
22417 echo "$as_me: failed program was:" >&5
22418 sed 's
/^
/|
/' conftest.$ac_ext >&5
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22425 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22427 # check whether wchar_t is signed or not
22428 if test "$wchar_h" = yes
22430 # check whether wchar_t is signed or not
22431 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22432 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22433 if test "${ac_cv_wchar_t_signed+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 if test "$cross_compiling" = yes; then
22438 ac_cv_wchar_t_signed=yes
22440 cat >conftest.$ac_ext <<_ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22450 /* Success: exit code 0 */
22451 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22455 rm -f conftest$ac_exeext
22456 if { (ac_try="$ac_link"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_link") 2>&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22466 { (case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_try") 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; }; then
22475 ac_cv_wchar_t_signed=yes
22477 echo "$as_me: program exited with status $ac_status" >&5
22478 echo "$as_me: failed program was:" >&5
22479 sed 's
/^
/|
/' conftest.$ac_ext >&5
22481 ( exit $ac_status )
22482 ac_cv_wchar_t_signed=no
22484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22490 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22491 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22494 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22495 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22496 # Check whether --enable-unicode was given.
22497 if test "${enable_unicode+set}" = set; then
22498 enableval=$enable_unicode;
22504 if test $enable_unicode = yes
22506 # Without any arguments, Py_UNICODE defaults to two-byte mode
22507 case "$have_ucs4_tcl" in
22508 yes) enable_unicode="ucs4"
22510 *) enable_unicode="ucs2"
22517 case "$enable_unicode" in
22518 ucs2) unicode_size="2"
22519 cat >>confdefs.h <<\_ACEOF
22520 #define Py_UNICODE_SIZE 2
22524 ucs4) unicode_size="4"
22525 cat >>confdefs.h <<\_ACEOF
22526 #define Py_UNICODE_SIZE 4
22536 if test "$enable_unicode" = "no"
22539 { echo "$as_me:$LINENO: result: not used" >&5
22540 echo "${ECHO_T}not used" >&6; }
22542 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22544 cat >>confdefs.h <<\_ACEOF
22545 #define Py_USING_UNICODE 1
22549 # wchar_t is only usable if it maps to an unsigned type
22550 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22551 -a "$ac_cv_wchar_t_signed" = "no"
22553 PY_UNICODE_TYPE="wchar_t"
22555 cat >>confdefs.h <<\_ACEOF
22556 #define HAVE_USABLE_WCHAR_T 1
22559 cat >>confdefs.h <<\_ACEOF
22560 #define PY_UNICODE_TYPE wchar_t
22563 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22565 PY_UNICODE_TYPE="unsigned short"
22566 cat >>confdefs.h <<\_ACEOF
22567 #define PY_UNICODE_TYPE unsigned short
22570 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22572 PY_UNICODE_TYPE="unsigned long"
22573 cat >>confdefs.h <<\_ACEOF
22574 #define PY_UNICODE_TYPE unsigned long
22578 PY_UNICODE_TYPE="no type found"
22580 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22581 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22584 # check for endianness
22585 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22586 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22587 if test "${ac_cv_c_bigendian+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 # See if sys/param.h defines the BYTE_ORDER macro.
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 #include <sys/types.h>
22598 #include <sys/param.h>
22603 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22604 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22605 bogus endian macros
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_compile") 2>conftest.er1
22621 grep -v '^
*+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest.$ac_objext; then
22629 # It does; now see whether it defined to BIG_ENDIAN or not.
22630 cat >conftest.$ac_ext <<_ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 #include <sys/types.h>
22637 #include <sys/param.h>
22642 #if BYTE_ORDER != BIG_ENDIAN
22650 rm -f conftest.$ac_objext
22651 if { (ac_try="$ac_compile"
22652 case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_compile") 2>conftest.er1
22659 grep -v '^
*+' conftest.er1 >conftest.err
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } && {
22664 test -z "$ac_c_werror_flag" ||
22665 test ! -s conftest.err
22666 } && test -s conftest.$ac_objext; then
22667 ac_cv_c_bigendian=yes
22669 echo "$as_me: failed program was:" >&5
22670 sed 's
/^
/|
/' conftest.$ac_ext >&5
22672 ac_cv_c_bigendian=no
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22677 echo "$as_me: failed program was:" >&5
22678 sed 's
/^
/|
/' conftest.$ac_ext >&5
22680 # It does not; compile a test program.
22681 if test "$cross_compiling" = yes; then
22682 # try to guess the endianness by grepping values into an object file
22683 ac_cv_c_bigendian=unknown
22684 cat >conftest.$ac_ext <<_ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h. */
22690 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22691 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22692 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22693 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22694 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22695 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22699 _ascii (); _ebcdic ();
22704 rm -f conftest.$ac_objext
22705 if { (ac_try="$ac_compile"
22706 case "(($ac_try" in
22707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708 *) ac_try_echo=$ac_try;;
22710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22711 (eval "$ac_compile") 2>conftest.er1
22713 grep -v '^
*+' conftest.er1 >conftest.err
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && {
22718 test -z "$ac_c_werror_flag" ||
22719 test ! -s conftest.err
22720 } && test -s conftest.$ac_objext; then
22721 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22722 ac_cv_c_bigendian=yes
22724 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22725 if test "$ac_cv_c_bigendian" = unknown; then
22726 ac_cv_c_bigendian=no
22728 # finding both strings is unlikely to happen, but who knows?
22729 ac_cv_c_bigendian=unknown
22733 echo "$as_me: failed program was:" >&5
22734 sed 's
/^
/|
/' conftest.$ac_ext >&5
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741 cat >conftest.$ac_ext <<_ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 $ac_includes_default
22752 /* Are we little or big endian? From Harbison&Steele. */
22756 char c[sizeof (long int)];
22759 return u.c[sizeof (long int) - 1] == 1;
22765 rm -f conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22776 { (case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_try") 2>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }; then
22785 ac_cv_c_bigendian=no
22787 echo "$as_me: program exited with status $ac_status" >&5
22788 echo "$as_me: failed program was:" >&5
22789 sed 's
/^
/|
/' conftest.$ac_ext >&5
22791 ( exit $ac_status )
22792 ac_cv_c_bigendian=yes
22794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22803 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22804 case $ac_cv_c_bigendian in
22807 cat >>confdefs.h <<\_ACEOF
22808 #define WORDS_BIGENDIAN 1
22814 { { echo "$as_me:$LINENO: error: unknown endianness
22815 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22816 echo "$as_me: error: unknown endianness
22817 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22818 { (exit 1); exit 1; }; } ;;
22822 # Check whether right shifting a negative integer extends the sign bit
22823 # or fills with zeros (like the Cray J90, according to Tim Peters).
22824 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22825 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22826 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 if test "$cross_compiling" = yes; then
22831 ac_cv_rshift_extends_sign=yes
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22842 exit(((-1)>>3 == -1) ? 0 : 1);
22846 rm -f conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_link") 2>&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22857 { (case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_try") 2>&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866 ac_cv_rshift_extends_sign=yes
22868 echo "$as_me: program exited with status $ac_status" >&5
22869 echo "$as_me: failed program was:" >&5
22870 sed 's
/^
/|
/' conftest.$ac_ext >&5
22872 ( exit $ac_status )
22873 ac_cv_rshift_extends_sign=no
22875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22882 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22883 if test "$ac_cv_rshift_extends_sign" = no
22886 cat >>confdefs.h <<\_ACEOF
22887 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22892 # check for getc_unlocked and related locking functions
22893 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22894 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22895 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 cat >conftest.$ac_ext <<_ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h. */
22910 FILE *f = fopen("/dev/null", "r");
22919 rm -f conftest.$ac_objext conftest$ac_exeext
22920 if { (ac_try="$ac_link"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_link") 2>conftest.er1
22928 grep -v '^
*+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && {
22933 test -z "$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 } && test -s conftest$ac_exeext &&
22936 $as_test_x conftest$ac_exeext; then
22937 ac_cv_have_getc_unlocked=yes
22939 echo "$as_me: failed program was:" >&5
22940 sed 's
/^
/|
/' conftest.$ac_ext >&5
22942 ac_cv_have_getc_unlocked=no
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946 conftest$ac_exeext conftest.$ac_ext
22949 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22950 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22951 if test "$ac_cv_have_getc_unlocked" = yes
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_GETC_UNLOCKED 1
22960 # check where readline lives
22961 # save the value of LIBS so we don't actually link Python with readline
22962 LIBS_no_readline
=$LIBS
22964 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22965 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22966 if test "${ac_cv_lib_readline_readline+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22969 ac_check_lib_save_LIBS
=$LIBS
22970 LIBS
="-lreadline $READLINE_LIBS $LIBS"
22971 cat >conftest.
$ac_ext <<_ACEOF
22974 cat confdefs.h
>>conftest.
$ac_ext
22975 cat >>conftest.
$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22978 /* Override any GCC internal prototype to avoid an error.
22979 Use char because int might match the return type of a GCC
22980 builtin and then its argument prototype would still apply. */
22988 return readline ();
22993 rm -f conftest.
$ac_objext conftest
$ac_exeext
22994 if { (ac_try
="$ac_link"
22995 case "(($ac_try" in
22996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_link") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest$ac_exeext &&
23010 $as_test_x conftest$ac_exeext; then
23011 ac_cv_lib_readline_readline=yes
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 ac_cv_lib_readline_readline=no
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020 conftest$ac_exeext conftest.$ac_ext
23021 LIBS=$ac_check_lib_save_LIBS
23023 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
23024 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
23025 if test $ac_cv_lib_readline_readline = yes; then
23026 cat >>confdefs.h <<_ACEOF
23027 #define HAVE_LIBREADLINE 1
23030 LIBS="-lreadline $LIBS"
23034 if test "$ac_cv_have_readline_readline" = no
23037 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
23038 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
23039 if test "${ac_cv_lib_termcap_readline+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 ac_check_lib_save_LIBS=$LIBS
23043 LIBS="-ltermcap $LIBS"
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23051 /* Override any GCC internal prototype to avoid an error.
23052 Use char because int might match the return type of a GCC
23053 builtin and then its argument prototype would still apply. */
23061 return readline ();
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (ac_try="$ac_link"
23068 case "(($ac_try" in
23069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23070 *) ac_try_echo
=$ac_try;;
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073 (eval "$ac_link") 2>conftest.er1
23075 grep -v '^ *+' conftest.er1
>conftest.err
23077 cat conftest.err
>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } && {
23080 test -z "$ac_c_werror_flag" ||
23081 test ! -s conftest.err
23082 } && test -s conftest
$ac_exeext &&
23083 $as_test_x conftest
$ac_exeext; then
23084 ac_cv_lib_termcap_readline
=yes
23086 echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.
$ac_ext >&5
23089 ac_cv_lib_termcap_readline
=no
23092 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23093 conftest
$ac_exeext conftest.
$ac_ext
23094 LIBS
=$ac_check_lib_save_LIBS
23096 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
23097 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
23098 if test $ac_cv_lib_termcap_readline = yes; then
23099 cat >>confdefs.h
<<_ACEOF
23100 #define HAVE_LIBTERMCAP 1
23103 LIBS
="-ltermcap $LIBS"
23109 # check for readline 2.1
23110 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23111 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23112 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 ac_check_lib_save_LIBS
=$LIBS
23116 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23117 cat >conftest.
$ac_ext <<_ACEOF
23120 cat confdefs.h
>>conftest.
$ac_ext
23121 cat >>conftest.
$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23124 /* Override any GCC internal prototype to avoid an error.
23125 Use char because int might match the return type of a GCC
23126 builtin and then its argument prototype would still apply. */
23130 char rl_callback_handler_install ();
23134 return rl_callback_handler_install ();
23139 rm -f conftest.
$ac_objext conftest
$ac_exeext
23140 if { (ac_try
="$ac_link"
23141 case "(($ac_try" in
23142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_link") 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest$ac_exeext &&
23156 $as_test_x conftest$ac_exeext; then
23157 ac_cv_lib_readline_rl_callback_handler_install=yes
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 ac_cv_lib_readline_rl_callback_handler_install=no
23165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23166 conftest$ac_exeext conftest.$ac_ext
23167 LIBS=$ac_check_lib_save_LIBS
23169 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23170 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23171 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_RL_CALLBACK 1
23180 # check for readline 2.2
23181 cat >conftest.$ac_ext <<_ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 #include <readline/readline.h>
23189 if { (ac_try="$ac_cpp conftest.$ac_ext"
23190 case "(($ac_try" in
23191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23192 *) ac_try_echo
=$ac_try;;
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23197 grep -v '^ *+' conftest.er1
>conftest.err
23199 cat conftest.err
>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } >/dev
/null
&& {
23202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.
$ac_ext >&5
23213 rm -f conftest.err conftest.
$ac_ext
23214 if test $have_readline = yes
23216 cat >conftest.
$ac_ext <<_ACEOF
23219 cat confdefs.h
>>conftest.
$ac_ext
23220 cat >>conftest.
$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 #include <readline/readline.h>
23225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23226 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
23228 cat >>confdefs.h
<<\_ACEOF
23229 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23237 # check for readline 4.0
23238 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23239 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23240 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 ac_check_lib_save_LIBS
=$LIBS
23244 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23245 cat >conftest.
$ac_ext <<_ACEOF
23248 cat confdefs.h
>>conftest.
$ac_ext
23249 cat >>conftest.
$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23252 /* Override any GCC internal prototype to avoid an error.
23253 Use char because int might match the return type of a GCC
23254 builtin and then its argument prototype would still apply. */
23258 char rl_pre_input_hook ();
23262 return rl_pre_input_hook ();
23267 rm -f conftest.
$ac_objext conftest
$ac_exeext
23268 if { (ac_try
="$ac_link"
23269 case "(($ac_try" in
23270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_link") 2>conftest.er1
23276 grep -v '^ *+' conftest.er1 >conftest.err
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest$ac_exeext &&
23284 $as_test_x conftest$ac_exeext; then
23285 ac_cv_lib_readline_rl_pre_input_hook=yes
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23290 ac_cv_lib_readline_rl_pre_input_hook=no
23293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23294 conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23297 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23298 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23299 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_RL_PRE_INPUT_HOOK 1
23309 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23310 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23311 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 ac_check_lib_save_LIBS=$LIBS
23315 LIBS="-lreadline $READLINE_LIBS $LIBS"
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23323 /* Override any GCC internal prototype to avoid an error.
23324 Use char because int might match the return type of a GCC
23325 builtin and then its argument prototype would still apply. */
23329 char rl_completion_display_matches_hook ();
23333 return rl_completion_display_matches_hook ();
23338 rm -f conftest.$ac_objext conftest$ac_exeext
23339 if { (ac_try="$ac_link"
23340 case "(($ac_try" in
23341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23342 *) ac_try_echo
=$ac_try;;
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_link") 2>conftest.er1
23347 grep -v '^ *+' conftest.er1
>conftest.err
23349 cat conftest.err
>&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest
$ac_exeext &&
23355 $as_test_x conftest
$ac_exeext; then
23356 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
23358 echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.
$ac_ext >&5
23361 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
23364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23365 conftest
$ac_exeext conftest.
$ac_ext
23366 LIBS
=$ac_check_lib_save_LIBS
23368 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23369 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23370 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23372 cat >>confdefs.h
<<\_ACEOF
23373 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23379 # check for readline 4.2
23380 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23381 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23382 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23385 ac_check_lib_save_LIBS
=$LIBS
23386 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23387 cat >conftest.
$ac_ext <<_ACEOF
23390 cat confdefs.h
>>conftest.
$ac_ext
23391 cat >>conftest.
$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23394 /* Override any GCC internal prototype to avoid an error.
23395 Use char because int might match the return type of a GCC
23396 builtin and then its argument prototype would still apply. */
23400 char rl_completion_matches ();
23404 return rl_completion_matches ();
23409 rm -f conftest.
$ac_objext conftest
$ac_exeext
23410 if { (ac_try
="$ac_link"
23411 case "(($ac_try" in
23412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_link") 2>conftest.er1
23418 grep -v '^ *+' conftest.er1 >conftest.err
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest$ac_exeext &&
23426 $as_test_x conftest$ac_exeext; then
23427 ac_cv_lib_readline_rl_completion_matches=yes
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ac_cv_lib_readline_rl_completion_matches=no
23435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23436 conftest$ac_exeext conftest.$ac_ext
23437 LIBS=$ac_check_lib_save_LIBS
23439 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23440 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23441 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23443 cat >>confdefs.h <<\_ACEOF
23444 #define HAVE_RL_COMPLETION_MATCHES 1
23450 # also in readline 4.2
23451 cat >conftest.$ac_ext <<_ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 #include <readline/readline.h>
23459 if { (ac_try="$ac_cpp conftest.$ac_ext"
23460 case "(($ac_try" in
23461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23462 *) ac_try_echo
=$ac_try;;
23464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23467 grep -v '^ *+' conftest.er1
>conftest.err
23469 cat conftest.err
>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } >/dev
/null
&& {
23472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23473 test ! -s conftest.err
23477 echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.
$ac_ext >&5
23483 rm -f conftest.err conftest.
$ac_ext
23484 if test $have_readline = yes
23486 cat >conftest.
$ac_ext <<_ACEOF
23489 cat confdefs.h
>>conftest.
$ac_ext
23490 cat >>conftest.
$ac_ext <<_ACEOF
23491 /* end confdefs.h. */
23492 #include <readline/readline.h>
23495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23496 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
23498 cat >>confdefs.h
<<\_ACEOF
23499 #define HAVE_RL_CATCH_SIGNAL 1
23507 # End of readline checks: restore LIBS
23508 LIBS
=$LIBS_no_readline
23510 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23511 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23512 if test "${ac_cv_broken_nice+set}" = set; then
23513 echo $ECHO_N "(cached) $ECHO_C" >&6
23516 if test "$cross_compiling" = yes; then
23517 ac_cv_broken_nice
=no
23519 cat >conftest.
$ac_ext <<_ACEOF
23522 cat confdefs.h
>>conftest.
$ac_ext
23523 cat >>conftest.
$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23528 int val1 = nice(1);
23529 if (val1 != -1 && val1 == nice(2))
23535 rm -f conftest
$ac_exeext
23536 if { (ac_try
="$ac_link"
23537 case "(($ac_try" in
23538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542 (eval "$ac_link") 2>&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23546 { (case "(($ac_try" in
23547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23548 *) ac_try_echo
=$ac_try;;
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551 (eval "$ac_try") 2>&5
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23555 ac_cv_broken_nice
=yes
23557 echo "$as_me: program exited with status $ac_status" >&5
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.
$ac_ext >&5
23561 ( exit $ac_status )
23562 ac_cv_broken_nice
=no
23564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23570 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23571 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23572 if test "$ac_cv_broken_nice" = yes
23575 cat >>confdefs.h
<<\_ACEOF
23576 #define HAVE_BROKEN_NICE 1
23581 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23582 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23583 if test "$cross_compiling" = yes; then
23584 ac_cv_broken_poll
=no
23586 cat >conftest.
$ac_ext <<_ACEOF
23589 cat confdefs.h
>>conftest.
$ac_ext
23590 cat >>conftest.
$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23597 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23601 int poll_test = poll (&poll_struct, 1, 0);
23607 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23618 rm -f conftest
$ac_exeext
23619 if { (ac_try
="$ac_link"
23620 case "(($ac_try" in
23621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23622 *) ac_try_echo=$ac_try;;
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625 (eval "$ac_link") 2>&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23629 { (case "(($ac_try" in
23630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23631 *) ac_try_echo
=$ac_try;;
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_try") 2>&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; }; then
23638 ac_cv_broken_poll
=yes
23640 echo "$as_me: program exited with status $ac_status" >&5
23641 echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.
$ac_ext >&5
23644 ( exit $ac_status )
23645 ac_cv_broken_poll
=no
23647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23651 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23652 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23653 if test "$ac_cv_broken_poll" = yes
23656 cat >>confdefs.h
<<\_ACEOF
23657 #define HAVE_BROKEN_POLL 1
23662 # Before we can test tzset, we need to check if struct tm has a tm_zone
23663 # (which is not required by ISO C or UNIX spec) and/or if we support
23665 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23666 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23667 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23670 cat >conftest.
$ac_ext <<_ACEOF
23673 cat confdefs.h
>>conftest.
$ac_ext
23674 cat >>conftest.
$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 #include <sys/types.h>
23677 #include <$ac_cv_struct_tm>
23683 static struct tm ac_aggr;
23684 if (ac_aggr.tm_zone)
23690 rm -f conftest.
$ac_objext
23691 if { (ac_try
="$ac_compile"
23692 case "(($ac_try" in
23693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_compile") 2>conftest.er1
23699 grep -v '^ *+' conftest.er1 >conftest.err
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && {
23704 test -z "$ac_c_werror_flag" ||
23705 test ! -s conftest.err
23706 } && test -s conftest.$ac_objext; then
23707 ac_cv_member_struct_tm_tm_zone=yes
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include <sys/types.h>
23719 #include <$ac_cv_struct_tm>
23725 static struct tm ac_aggr;
23726 if (sizeof ac_aggr.tm_zone)
23732 rm -f conftest.$ac_objext
23733 if { (ac_try="$ac_compile"
23734 case "(($ac_try" in
23735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23736 *) ac_try_echo
=$ac_try;;
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_compile") 2>conftest.er1
23741 grep -v '^ *+' conftest.er1
>conftest.err
23743 cat conftest.err
>&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && {
23746 test -z "$ac_c_werror_flag" ||
23747 test ! -s conftest.err
23748 } && test -s conftest.
$ac_objext; then
23749 ac_cv_member_struct_tm_tm_zone
=yes
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.
$ac_ext >&5
23754 ac_cv_member_struct_tm_tm_zone
=no
23757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23762 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23763 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23764 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23766 cat >>confdefs.h
<<_ACEOF
23767 #define HAVE_STRUCT_TM_TM_ZONE 1
23773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23775 cat >>confdefs.h
<<\_ACEOF
23776 #define HAVE_TM_ZONE 1
23780 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23781 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23782 if test "${ac_cv_have_decl_tzname+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 cat >conftest.
$ac_ext <<_ACEOF
23788 cat confdefs.h
>>conftest.
$ac_ext
23789 cat >>conftest.
$ac_ext <<_ACEOF
23790 /* end confdefs.h. */
23804 rm -f conftest.
$ac_objext
23805 if { (ac_try
="$ac_compile"
23806 case "(($ac_try" in
23807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23811 (eval "$ac_compile") 2>conftest.er1
23813 grep -v '^ *+' conftest.er1 >conftest.err
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } && {
23818 test -z "$ac_c_werror_flag" ||
23819 test ! -s conftest.err
23820 } && test -s conftest.$ac_objext; then
23821 ac_cv_have_decl_tzname=yes
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23826 ac_cv_have_decl_tzname=no
23829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23832 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23833 if test $ac_cv_have_decl_tzname = yes; then
23835 cat >>confdefs.h <<_ACEOF
23836 #define HAVE_DECL_TZNAME 1
23841 cat >>confdefs.h <<_ACEOF
23842 #define HAVE_DECL_TZNAME 0
23849 { echo "$as_me:$LINENO: checking for tzname" >&5
23850 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23851 if test "${ac_cv_var_tzname+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23854 cat >conftest.$ac_ext <<_ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23861 #if !HAVE_DECL_TZNAME
23862 extern char *tzname[];
23868 return tzname[0][0];
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23877 *) ac_try_echo
=$ac_try;;
23879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23880 (eval "$ac_link") 2>conftest.er1
23882 grep -v '^ *+' conftest.er1
>conftest.err
23884 cat conftest.err
>&5
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); } && {
23887 test -z "$ac_c_werror_flag" ||
23888 test ! -s conftest.err
23889 } && test -s conftest
$ac_exeext &&
23890 $as_test_x conftest
$ac_exeext; then
23891 ac_cv_var_tzname
=yes
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.
$ac_ext >&5
23896 ac_cv_var_tzname
=no
23899 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23900 conftest
$ac_exeext conftest.
$ac_ext
23902 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23903 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23904 if test $ac_cv_var_tzname = yes; then
23906 cat >>confdefs.h
<<\_ACEOF
23907 #define HAVE_TZNAME 1
23914 # check tzset(3) exists and works like we expect it to
23915 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23916 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23917 if test "${ac_cv_working_tzset+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 if test "$cross_compiling" = yes; then
23922 ac_cv_working_tzset
=no
23924 cat >conftest.
$ac_ext <<_ACEOF
23927 cat confdefs.h
>>conftest.
$ac_ext
23928 cat >>conftest.
$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23931 #include <stdlib.h>
23933 #include <string.h>
23936 extern char *tzname[];
23941 /* Note that we need to ensure that not only does tzset(3)
23942 do 'something' with localtime, but it works as documented
23943 in the library reference and as expected by the test suite.
23944 This includes making sure that tzname is set properly if
23945 tm->tm_zone does not exist since it is the alternative way
23946 of getting timezone info.
23948 Red Hat 6.2 doesn't understand the southern hemisphere
23949 after New Year's Day.
23952 time_t groundhogday = 1044144000; /* GMT-based */
23953 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23955 putenv("TZ=UTC+0");
23957 if (localtime(&groundhogday)->tm_hour != 0)
23960 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23961 if (strcmp(tzname[0], "UTC") ||
23962 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23966 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23968 if (localtime(&groundhogday)->tm_hour != 19)
23971 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23975 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23977 if (localtime(&groundhogday)->tm_hour != 11)
23980 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23984 #if HAVE_STRUCT_TM_TM_ZONE
23985 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23987 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23995 rm -f conftest
$ac_exeext
23996 if { (ac_try
="$ac_link"
23997 case "(($ac_try" in
23998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23999 *) ac_try_echo=$ac_try;;
24001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24002 (eval "$ac_link") 2>&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24006 { (case "(($ac_try" in
24007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24008 *) ac_try_echo
=$ac_try;;
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_try") 2>&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; }; then
24015 ac_cv_working_tzset
=yes
24017 echo "$as_me: program exited with status $ac_status" >&5
24018 echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.
$ac_ext >&5
24021 ( exit $ac_status )
24022 ac_cv_working_tzset
=no
24024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24030 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24031 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24032 if test "$ac_cv_working_tzset" = yes
24035 cat >>confdefs.h
<<\_ACEOF
24036 #define HAVE_WORKING_TZSET 1
24041 # Look for subsecond timestamps in struct stat
24042 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24043 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24044 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24045 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 cat >conftest.
$ac_ext <<_ACEOF
24050 cat confdefs.h
>>conftest.
$ac_ext
24051 cat >>conftest.
$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 #include <sys/stat.h>
24059 st.st_mtim.tv_nsec = 1;
24065 rm -f conftest.
$ac_objext
24066 if { (ac_try
="$ac_compile"
24067 case "(($ac_try" in
24068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072 (eval "$ac_compile") 2>conftest.er1
24074 grep -v '^ *+' conftest.er1 >conftest.err
24076 cat conftest.err >&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } && {
24079 test -z "$ac_c_werror_flag" ||
24080 test ! -s conftest.err
24081 } && test -s conftest.$ac_objext; then
24082 ac_cv_stat_tv_nsec=yes
24084 echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24087 ac_cv_stat_tv_nsec=no
24090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24093 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24094 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24095 if test "$ac_cv_stat_tv_nsec" = yes
24098 cat >>confdefs.h <<\_ACEOF
24099 #define HAVE_STAT_TV_NSEC 1
24104 # Look for BSD style subsecond timestamps in struct stat
24105 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24106 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24107 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 #include <sys/stat.h>
24122 st.st_mtimespec.tv_nsec = 1;
24128 rm -f conftest.$ac_objext
24129 if { (ac_try="$ac_compile"
24130 case "(($ac_try" in
24131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24132 *) ac_try_echo
=$ac_try;;
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_compile") 2>conftest.er1
24137 grep -v '^ *+' conftest.er1
>conftest.err
24139 cat conftest.err
>&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } && {
24142 test -z "$ac_c_werror_flag" ||
24143 test ! -s conftest.err
24144 } && test -s conftest.
$ac_objext; then
24145 ac_cv_stat_tv_nsec2
=yes
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.
$ac_ext >&5
24150 ac_cv_stat_tv_nsec2
=no
24153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24156 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24157 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24158 if test "$ac_cv_stat_tv_nsec2" = yes
24161 cat >>confdefs.h
<<\_ACEOF
24162 #define HAVE_STAT_TV_NSEC2 1
24167 # On HP/UX 11.0, mvwdelch is a block with a return statement
24168 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24169 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24170 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24173 cat >conftest.
$ac_ext <<_ACEOF
24176 cat confdefs.h
>>conftest.
$ac_ext
24177 cat >>conftest.
$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179 #include <curses.h>
24185 rtn = mvwdelch(0,0,0);
24191 rm -f conftest.
$ac_objext
24192 if { (ac_try
="$ac_compile"
24193 case "(($ac_try" in
24194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24195 *) ac_try_echo=$ac_try;;
24197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24198 (eval "$ac_compile") 2>conftest.er1
24200 grep -v '^ *+' conftest.er1 >conftest.err
24202 cat conftest.err >&5
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } && {
24205 test -z "$ac_c_werror_flag" ||
24206 test ! -s conftest.err
24207 } && test -s conftest.$ac_objext; then
24208 ac_cv_mvwdelch_is_expression=yes
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_cv_mvwdelch_is_expression=no
24216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24220 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24222 if test "$ac_cv_mvwdelch_is_expression" = yes
24225 cat >>confdefs.h <<\_ACEOF
24226 #define MVWDELCH_IS_EXPRESSION 1
24231 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24232 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24233 if test "${ac_cv_window_has_flags+set}" = set; then
24234 echo $ECHO_N "(cached) $ECHO_C" >&6
24236 cat >conftest.$ac_ext <<_ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h. */
24242 #include <curses.h>
24254 rm -f conftest.$ac_objext
24255 if { (ac_try="$ac_compile"
24256 case "(($ac_try" in
24257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24258 *) ac_try_echo
=$ac_try;;
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261 (eval "$ac_compile") 2>conftest.er1
24263 grep -v '^ *+' conftest.er1
>conftest.err
24265 cat conftest.err
>&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } && {
24268 test -z "$ac_c_werror_flag" ||
24269 test ! -s conftest.err
24270 } && test -s conftest.
$ac_objext; then
24271 ac_cv_window_has_flags
=yes
24273 echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.
$ac_ext >&5
24276 ac_cv_window_has_flags
=no
24279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24282 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24283 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24286 if test "$ac_cv_window_has_flags" = yes
24289 cat >>confdefs.h
<<\_ACEOF
24290 #define WINDOW_HAS_FLAGS 1
24295 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24296 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24297 cat >conftest.
$ac_ext <<_ACEOF
24300 cat confdefs.h
>>conftest.
$ac_ext
24301 cat >>conftest.
$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 #include <curses.h>
24307 void *x=is_term_resized
24312 rm -f conftest.
$ac_objext
24313 if { (ac_try
="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_compile") 2>conftest.er1
24321 grep -v '^ *+' conftest.er1 >conftest.err
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && {
24326 test -z "$ac_c_werror_flag" ||
24327 test ! -s conftest.err
24328 } && test -s conftest.$ac_objext; then
24330 cat >>confdefs.h <<\_ACEOF
24331 #define HAVE_CURSES_IS_TERM_RESIZED 1
24334 { echo "$as_me:$LINENO: result: yes" >&5
24335 echo "${ECHO_T}yes" >&6; }
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 { echo "$as_me:$LINENO: result: no" >&5
24341 echo "${ECHO_T}no" >&6; }
24345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24347 { echo "$as_me:$LINENO: checking for resize_term" >&5
24348 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24349 cat >conftest.$ac_ext <<_ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 #include <curses.h>
24359 void *x=resize_term
24364 rm -f conftest.$ac_objext
24365 if { (ac_try="$ac_compile"
24366 case "(($ac_try" in
24367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24368 *) ac_try_echo
=$ac_try;;
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_compile") 2>conftest.er1
24373 grep -v '^ *+' conftest.er1
>conftest.err
24375 cat conftest.err
>&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && {
24378 test -z "$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24380 } && test -s conftest.
$ac_objext; then
24382 cat >>confdefs.h
<<\_ACEOF
24383 #define HAVE_CURSES_RESIZE_TERM 1
24386 { echo "$as_me:$LINENO: result: yes" >&5
24387 echo "${ECHO_T}yes" >&6; }
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.
$ac_ext >&5
24392 { echo "$as_me:$LINENO: result: no" >&5
24393 echo "${ECHO_T}no" >&6; }
24397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24399 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24400 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24401 cat >conftest.
$ac_ext <<_ACEOF
24404 cat confdefs.h
>>conftest.
$ac_ext
24405 cat >>conftest.
$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 #include <curses.h>
24416 rm -f conftest.
$ac_objext
24417 if { (ac_try
="$ac_compile"
24418 case "(($ac_try" in
24419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_compile") 2>conftest.er1
24425 grep -v '^ *+' conftest.er1 >conftest.err
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } && {
24430 test -z "$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24432 } && test -s conftest.$ac_objext; then
24434 cat >>confdefs.h <<\_ACEOF
24435 #define HAVE_CURSES_RESIZETERM 1
24438 { echo "$as_me:$LINENO: result: yes" >&5
24439 echo "${ECHO_T}yes" >&6; }
24441 echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24444 { echo "$as_me:$LINENO: result: no" >&5
24445 echo "${ECHO_T}no" >&6; }
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24452 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24454 if test -r /dev/ptmx
24456 { echo "$as_me:$LINENO: result: yes" >&5
24457 echo "${ECHO_T}yes" >&6; }
24459 cat >>confdefs.h <<\_ACEOF
24460 #define HAVE_DEV_PTMX 1
24464 { echo "$as_me:$LINENO: result: no" >&5
24465 echo "${ECHO_T}no" >&6; }
24468 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24469 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24471 if test -r /dev/ptc
24473 { echo "$as_me:$LINENO: result: yes" >&5
24474 echo "${ECHO_T}yes" >&6; }
24476 cat >>confdefs.h <<\_ACEOF
24477 #define HAVE_DEV_PTC 1
24481 { echo "$as_me:$LINENO: result: no" >&5
24482 echo "${ECHO_T}no" >&6; }
24485 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24486 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24487 if test "$cross_compiling" = yes; then
24488 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24489 See \`config.log
' for more details." >&5
24490 echo "$as_me: error: cannot run test program while cross compiling
24491 See \`config.log' for more details.
" >&2;}
24492 { (exit 1); exit 1; }; }
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24501 #include <stddef.h>
24502 #include <string.h>
24504 #ifdef HAVE_SYS_TYPES_H
24505 #include <sys/types.h>
24508 #ifdef HAVE_SSIZE_T
24509 typedef ssize_t Py_ssize_t;
24510 #elif SIZEOF_VOID_P == SIZEOF_LONG
24511 typedef long Py_ssize_t;
24513 typedef int Py_ssize_t;
24520 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
24523 if (strcmp(buffer, "123"))
24526 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
24529 if (strcmp(buffer, "-123"))
24535 rm -f conftest$ac_exeext
24536 if { (ac_try="$ac_link"
24537 case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24542 (eval "$ac_link") 2>&5
24544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24554 (exit $ac_status); }; }; then
24555 { echo "$as_me:$LINENO: result
: yes" >&5
24556 echo "${ECHO_T}yes" >&6; }
24558 cat >>confdefs.h <<\_ACEOF
24559 #define PY_FORMAT_SIZE_T "z
"
24563 echo "$as_me: program exited with status
$ac_status" >&5
24564 echo "$as_me: failed program was
:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24567 ( exit $ac_status )
24568 { echo "$as_me:$LINENO: result
: no
" >&5
24569 echo "${ECHO_T}no
" >&6; }
24571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24576 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
24577 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
24578 if test "${ac_cv_type_socklen_t+set}" = set; then
24579 echo $ECHO_N "(cached
) $ECHO_C" >&6
24581 cat >conftest.$ac_ext <<_ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24588 #ifdef HAVE_SYS_TYPES_H
24589 #include <sys/types.h>
24591 #ifdef HAVE_SYS_SOCKET_H
24592 #include <sys/socket.h>
24596 typedef socklen_t ac__type_new_;
24600 if ((ac__type_new_ *) 0)
24602 if (sizeof (ac__type_new_))
24608 rm -f conftest.$ac_objext
24609 if { (ac_try="$ac_compile"
24610 case "(($ac_try" in
24611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612 *) ac_try_echo=$ac_try;;
24614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24615 (eval "$ac_compile") 2>conftest.er1
24617 grep -v '^ *+' conftest.er1 >conftest.err
24619 cat conftest.err >&5
24620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24621 (exit $ac_status); } && {
24622 test -z "$ac_c_werror_flag" ||
24623 test ! -s conftest.err
24624 } && test -s conftest.$ac_objext; then
24625 ac_cv_type_socklen_t=yes
24627 echo "$as_me: failed program was
:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24630 ac_cv_type_socklen_t=no
24633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
24636 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24637 if test $ac_cv_type_socklen_t = yes; then
24641 cat >>confdefs.h <<\_ACEOF
24642 #define socklen_t int
24650 for h in `(cd $srcdir;echo Python/thread_*.h)`
24652 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
24656 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
24657 { echo "$as_me:$LINENO: checking
for build directories
" >&5
24658 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
24659 for dir in $SRCDIRS; do
24660 if test ! -d $dir; then
24664 { echo "$as_me:$LINENO: result
: done" >&5
24665 echo "${ECHO_T}done" >&6; }
24667 # generate output files
24668 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config
"
24670 cat >confcache <<\_ACEOF
24671 # This file is a shell script that caches the results of configure
24672 # tests run on this system so they can be shared between configure
24673 # scripts and configure runs, see configure's option --config-cache.
24674 # It is not useful on other systems. If it contains results you don't
24675 # want to keep, you may remove or edit it.
24677 # config.status only pays attention to the cache file if you give it
24678 # the --recheck option to rerun configure.
24680 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24681 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24682 # following values.
24686 # The following way of writing the cache mishandles newlines in values,
24687 # but we know of no workaround that is simple, portable, and efficient.
24688 # So, we kill variables containing newlines.
24689 # Ultrix sh set writes to stderr and can't be redirected directly,
24690 # and sets the high bit in the cache file unless we assign to the vars.
24692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24693 eval ac_val=\$$ac_var
24697 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24698 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24701 _ | IFS | as_nl) ;; #(
24702 *) $as_unset $ac_var ;;
24708 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24709 *${as_nl}ac_space=\ *)
24710 # `set' does not quote correctly, so add quotes (double-quote
24711 # substitution turns \\\\ into \\, and sed turns \\ into \).
24714 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24717 # `set' quotes correctly as required by POSIX, so do not add quotes.
24718 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24729 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24731 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24732 if test -w "$cache_file"; then
24733 test "x
$cache_file" != "x
/dev
/null
" &&
24734 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24735 echo "$as_me: updating cache
$cache_file" >&6;}
24736 cat confcache >$cache_file
24738 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24739 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24744 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24745 # Let make expand exec_prefix.
24746 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24748 DEFS=-DHAVE_CONFIG_H
24752 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24753 # 1. Remove the extension, and $U if already installed.
24754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24755 ac_i=`echo "$ac_i" | sed "$ac_script"`
24756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24757 # will be set to the directory where LIBOBJS objects are built.
24758 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24759 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24761 LIBOBJS=$ac_libobjs
24763 LTLIBOBJS=$ac_ltlibobjs
24767 : ${CONFIG_STATUS=./config.status}
24768 ac_clean_files_save=$ac_clean_files
24769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24770 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24771 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24772 cat >$CONFIG_STATUS <<_ACEOF
24774 # Generated by $as_me.
24775 # Run this file to recreate the current configuration.
24776 # Compiler output produced by configure, useful for debugging
24777 # configure, is in config.log if it exists.
24780 ac_cs_recheck=false
24782 SHELL=\${CONFIG_SHELL-$SHELL}
24785 cat >>$CONFIG_STATUS <<\_ACEOF
24786 ## --------------------- ##
24787 ## M4sh Initialization. ##
24788 ## --------------------- ##
24790 # Be more Bourne compatible
24791 DUALCASE=1; export DUALCASE # for MKS sh
24792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24796 # is contrary to our usage. Disable this feature.
24797 alias -g '${1+"$@"}'='"$@
"'
24798 setopt NO_GLOB_SUBST
24800 case `(set -o) 2>/dev/null` in
24801 *posix*) set -o posix ;;
24810 # Avoid depending upon Character Ranges.
24811 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24812 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24813 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24814 as_cr_digits='0123456789'
24815 as_cr_alnum=$as_cr_Letters$as_cr_digits
24817 # The user is always right.
24818 if test "${PATH_SEPARATOR+set}" != set; then
24819 echo "#! /bin/sh" >conf$$.sh
24820 echo "exit 0" >>conf$$.sh
24822 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24830 # Support unset when possible.
24831 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24839 # We need space, tab and new line, in precisely that order. Quoting is
24840 # there to prevent editors from complaining about space-tab.
24841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24842 # splitting by setting IFS to empty value.)
24847 # Find who we are. Look in the path if we contain no directory separator.
24849 *[\\/]* ) as_myself
=$0 ;;
24850 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24851 for as_dir
in $PATH
24854 test -z "$as_dir" && as_dir
=.
24855 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24861 # We did not find ourselves, most probably we were run as `sh COMMAND'
24862 # in which case we are not to be found in the path.
24863 if test "x$as_myself" = x
; then
24866 if test ! -f "$as_myself"; then
24867 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24868 { (exit 1); exit 1; }
24871 # Work around bugs in pre-3.0 UWIN ksh.
24872 for as_var
in ENV MAIL MAILPATH
24873 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24881 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24882 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24883 LC_TELEPHONE LC_TIME
24885 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24886 eval $as_var=C
; export $as_var
24888 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24892 # Required to use basename.
24893 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24894 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24900 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24901 as_basename
=basename
24907 # Name of the executable.
24908 as_me
=`$as_basename -- "$0" ||
24909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24910 X"$0" : 'X\(//\)$' \| \
24911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24913 sed '/^.*\/\([^/][^/]*\)\/*$/{
24932 as_lineno_1
=$LINENO
24933 as_lineno_2
=$LINENO
24934 test "x$as_lineno_1" != "x$as_lineno_2" &&
24935 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24937 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24938 # uniformly replaced by the line number. The first 'sed' inserts a
24939 # line-number line after each line using $LINENO; the second 'sed'
24940 # does the real work. The second script uses 'N' to pair each
24941 # line-number line with the line containing $LINENO, and appends
24942 # trailing '-' during substitution so that $LINENO is not a special
24943 # case at line end.
24944 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24945 # scripts with optimization help from Paolo Bonzini. Blame Lee
24946 # E. McMahon (1931-1989) for sed's syntax. :-)
24958 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24961 ' >$as_me.lineno
&&
24962 chmod +x
"$as_me.lineno" ||
24963 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24964 { (exit 1); exit 1; }; }
24966 # Don't try to exec as it changes $[0], causing all sort of problems
24967 # (the dirname of $[0] is not the place where we might find the
24968 # original and so on. Autoconf is especially sensitive to this).
24969 .
"./$as_me.lineno"
24970 # Exit status is that of the last command.
24975 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24981 ECHO_C
= ECHO_N
= ECHO_T
=
24982 case `echo -n x` in
24984 case `echo 'x\c'` in
24985 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24992 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24993 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24999 rm -f conf$$ conf$$.exe conf$$.
file
25000 if test -d conf$$.dir
; then
25001 rm -f conf$$.dir
/conf$$.
file
25007 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25009 # ... but there are two gotchas:
25010 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25011 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25012 # In both cases, we have to default to `cp -p'.
25013 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25015 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25020 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25021 rmdir conf$$.dir
2>/dev
/null
25023 if mkdir
-p .
2>/dev
/null
; then
25026 test -d .
/-p && rmdir .
/-p
25030 if test -x / >/dev
/null
2>&1; then
25031 as_test_x
='test -x'
25033 if ls -dL / >/dev
/null
2>&1; then
25040 if test -d "$1"; then
25046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25047 ???[sx]*):;;*)false;;esac;fi
25051 as_executable_p
=$as_test_x
25053 # Sed expression to map a string onto a valid CPP name.
25054 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25056 # Sed expression to map a string onto a valid variable name.
25057 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25062 # Save the log message, to keep $[0] and so on meaningful, and to
25063 # report actual input values of CONFIG_FILES etc. instead of their
25064 # values after options handling.
25066 This file was extended by python $as_me 2.6, which was
25067 generated by GNU Autoconf 2.61. Invocation command line was
25069 CONFIG_FILES = $CONFIG_FILES
25070 CONFIG_HEADERS = $CONFIG_HEADERS
25071 CONFIG_LINKS = $CONFIG_LINKS
25072 CONFIG_COMMANDS = $CONFIG_COMMANDS
25075 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25080 cat >>$CONFIG_STATUS <<_ACEOF
25081 # Files that config.status was made for.
25082 config_files="$ac_config_files"
25083 config_headers="$ac_config_headers"
25087 cat >>$CONFIG_STATUS <<\_ACEOF
25089 \`$as_me' instantiates files from templates according to the
25090 current configuration.
25092 Usage: $0 [OPTIONS] [FILE]...
25094 -h, --help print this help, then exit
25095 -V, --version print version number and configuration settings, then exit
25096 -q, --quiet do not print progress messages
25097 -d, --debug don't remove temporary files
25098 --recheck update $as_me by reconfiguring in the same conditions
25099 --file=FILE[:TEMPLATE]
25100 instantiate the configuration file FILE
25101 --header=FILE[:TEMPLATE]
25102 instantiate the configuration header FILE
25104 Configuration files:
25107 Configuration headers:
25110 Report bugs to <bug-autoconf@gnu.org>."
25113 cat >>$CONFIG_STATUS <<_ACEOF
25115 python config.status 2.6
25116 configured by $0, generated by GNU Autoconf 2.61,
25117 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25119 Copyright (C) 2006 Free Software Foundation, Inc.
25120 This config.status script is free software; the Free Software Foundation
25121 gives unlimited permission to copy, distribute and modify it."
25128 cat >>$CONFIG_STATUS <<\_ACEOF
25129 # If no file are specified by the user, then we need to provide default
25130 # value. By we need to know if files were specified by the user.
25136 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25137 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25148 # Handling of the options.
25149 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25151 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25152 echo "$ac_cs_version"; exit ;;
25153 --debug |
--debu |
--deb |
--de |
--d |
-d )
25155 --file |
--fil |
--fi |
--f )
25157 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25158 ac_need_defaults
=false
;;
25159 --header |
--heade |
--head |
--hea )
25161 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25162 ac_need_defaults
=false
;;
25164 # Conflict between --help and --header
25165 { echo "$as_me: error: ambiguous option: $1
25166 Try \`$0 --help' for more information." >&2
25167 { (exit 1); exit 1; }; };;
25168 --help |
--hel |
-h )
25169 echo "$ac_cs_usage"; exit ;;
25170 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25171 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25174 # This is an error.
25175 -*) { echo "$as_me: error: unrecognized option: $1
25176 Try \`$0 --help' for more information." >&2
25177 { (exit 1); exit 1; }; } ;;
25179 *) ac_config_targets
="$ac_config_targets $1"
25180 ac_need_defaults
=false
;;
25186 ac_configure_extra_args
=
25188 if $ac_cs_silent; then
25190 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25194 cat >>$CONFIG_STATUS <<_ACEOF
25195 if \$ac_cs_recheck; then
25196 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25197 CONFIG_SHELL=$SHELL
25198 export CONFIG_SHELL
25199 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25203 cat >>$CONFIG_STATUS <<\_ACEOF
25207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25208 ## Running $as_me. ##
25214 cat >>$CONFIG_STATUS <<_ACEOF
25217 cat >>$CONFIG_STATUS <<\_ACEOF
25219 # Handling of arguments.
25220 for ac_config_target
in $ac_config_targets
25222 case $ac_config_target in
25223 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25224 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25225 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25226 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25227 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25228 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25229 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25230 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25232 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25233 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25234 { (exit 1); exit 1; }; };;
25239 # If the user did not use the arguments to specify the items to instantiate,
25240 # then the envvar interface is used. Set only those that are not.
25241 # We use the long form for the default assignment because of an extremely
25242 # bizarre bug on SunOS 4.1.3.
25243 if $ac_need_defaults; then
25244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25248 # Have a temporary directory for convenience. Make it in the build tree
25249 # simply because there is no reason against having it here, and in addition,
25250 # creating and moving files from /tmp can sometimes cause problems.
25251 # Hook for its removal unless debugging.
25252 # Note that there is a small window in which the directory will not be cleaned:
25253 # after its creation but before its name has been assigned to `$tmp'.
25257 trap 'exit_status=$?
25258 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25260 trap '{ (exit 1); exit 1; }' 1 2 13 15
25262 # Create a (secure) tmp directory for tmp files.
25265 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25266 test -n "$tmp" && test -d "$tmp"
25269 tmp
=.
/conf$$
-$RANDOM
25270 (umask 077 && mkdir
"$tmp")
25273 echo "$me: cannot create a temporary directory in ." >&2
25274 { (exit 1); exit 1; }
25278 # Set up the sed scripts for CONFIG_FILES section.
25281 # No need to generate the scripts if there are no CONFIG_FILES.
25282 # This happens for instance when ./config.status config.h
25283 if test -n "$CONFIG_FILES"; then
25290 for ac_last_try
in false false false false false
:; do
25291 cat >conf$
$subs.
sed <<_ACEOF
25292 SHELL!$SHELL$ac_delim
25293 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25294 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25295 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25296 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25297 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25298 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25299 exec_prefix!$exec_prefix$ac_delim
25300 prefix!$prefix$ac_delim
25301 program_transform_name!$program_transform_name$ac_delim
25302 bindir!$bindir$ac_delim
25303 sbindir!$sbindir$ac_delim
25304 libexecdir!$libexecdir$ac_delim
25305 datarootdir!$datarootdir$ac_delim
25306 datadir!$datadir$ac_delim
25307 sysconfdir!$sysconfdir$ac_delim
25308 sharedstatedir!$sharedstatedir$ac_delim
25309 localstatedir!$localstatedir$ac_delim
25310 includedir!$includedir$ac_delim
25311 oldincludedir!$oldincludedir$ac_delim
25312 docdir!$docdir$ac_delim
25313 infodir!$infodir$ac_delim
25314 htmldir!$htmldir$ac_delim
25315 dvidir!$dvidir$ac_delim
25316 pdfdir!$pdfdir$ac_delim
25317 psdir!$psdir$ac_delim
25318 libdir!$libdir$ac_delim
25319 localedir!$localedir$ac_delim
25320 mandir!$mandir$ac_delim
25321 DEFS!$DEFS$ac_delim
25322 ECHO_C!$ECHO_C$ac_delim
25323 ECHO_N!$ECHO_N$ac_delim
25324 ECHO_T!$ECHO_T$ac_delim
25325 LIBS!$LIBS$ac_delim
25326 build_alias!$build_alias$ac_delim
25327 host_alias!$host_alias$ac_delim
25328 target_alias!$target_alias$ac_delim
25329 VERSION!$VERSION$ac_delim
25330 SOVERSION!$SOVERSION$ac_delim
25331 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25332 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25333 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25334 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25335 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25336 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25337 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25338 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25339 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25340 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25341 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25342 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25343 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25344 MACHDEP!$MACHDEP$ac_delim
25345 SGI_ABI!$SGI_ABI$ac_delim
25346 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25347 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25348 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25349 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25351 CFLAGS!$CFLAGS$ac_delim
25352 LDFLAGS!$LDFLAGS$ac_delim
25353 CPPFLAGS!$CPPFLAGS$ac_delim
25354 ac_ct_CC!$ac_ct_CC$ac_delim
25355 EXEEXT!$EXEEXT$ac_delim
25356 OBJEXT!$OBJEXT$ac_delim
25358 MAINCC!$MAINCC$ac_delim
25360 GREP!$GREP$ac_delim
25361 EGREP!$EGREP$ac_delim
25362 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25363 LIBRARY!$LIBRARY$ac_delim
25364 LDLIBRARY!$LDLIBRARY$ac_delim
25365 DLLLIBRARY!$DLLLIBRARY$ac_delim
25366 BLDLIBRARY!$BLDLIBRARY$ac_delim
25367 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25368 INSTSONAME!$INSTSONAME$ac_delim
25369 RUNSHARED!$RUNSHARED$ac_delim
25370 LINKCC!$LINKCC$ac_delim
25371 RANLIB!$RANLIB$ac_delim
25373 SVNVERSION!$SVNVERSION$ac_delim
25374 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25375 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25376 INSTALL_DATA!$INSTALL_DATA$ac_delim
25379 BASECFLAGS!$BASECFLAGS$ac_delim
25380 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25381 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25382 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25384 LDSHARED!$LDSHARED$ac_delim
25385 BLDSHARED!$BLDSHARED$ac_delim
25386 CCSHARED!$CCSHARED$ac_delim
25387 LINKFORSHARED!$LINKFORSHARED$ac_delim
25388 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25391 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25393 elif $ac_last_try; then
25394 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25395 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25396 { (exit 1); exit 1; }; }
25398 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25402 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25403 if test -n "$ac_eof"; then
25404 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25405 ac_eof
=`expr $ac_eof + 1`
25408 cat >>$CONFIG_STATUS <<_ACEOF
25409 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25413 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25414 s/^/s,@/; s/!/@,|#_!!_#|/
25417 s/'"$ac_delim"'$/,g/; t
25419 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25420 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25421 rm -f conf$
$subs.
sed
25422 cat >>$CONFIG_STATUS <<_ACEOF
25428 for ac_last_try
in false false false false false
:; do
25429 cat >conf$
$subs.
sed <<_ACEOF
25430 SHLIBS!$SHLIBS$ac_delim
25431 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25432 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25433 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25434 LDLAST!$LDLAST$ac_delim
25435 THREADOBJ!$THREADOBJ$ac_delim
25436 DLINCLDIR!$DLINCLDIR$ac_delim
25437 DYNLOADFILE!$DYNLOADFILE$ac_delim
25438 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25439 TRUE!$TRUE$ac_delim
25440 LIBOBJS!$LIBOBJS$ac_delim
25441 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25442 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25443 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25444 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25445 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25446 LIBM!$LIBM$ac_delim
25447 LIBC!$LIBC$ac_delim
25448 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25449 THREADHEADERS!$THREADHEADERS$ac_delim
25450 SRCDIRS!$SRCDIRS$ac_delim
25451 LTLIBOBJS!$LTLIBOBJS$ac_delim
25454 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25456 elif $ac_last_try; then
25457 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25458 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25459 { (exit 1); exit 1; }; }
25461 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25465 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25466 if test -n "$ac_eof"; then
25467 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25468 ac_eof
=`expr $ac_eof + 1`
25471 cat >>$CONFIG_STATUS <<_ACEOF
25472 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25476 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25477 s/^/s,@/; s/!/@,|#_!!_#|/
25480 s/'"$ac_delim"'$/,g/; t
25482 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25483 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25484 rm -f conf$
$subs.
sed
25485 cat >>$CONFIG_STATUS <<_ACEOF
25492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25494 # trailing colons and then remove the whole line if VPATH becomes empty
25495 # (actually we leave an empty line to preserve line numbers).
25496 if test "x$srcdir" = x.
; then
25497 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25498 s/:*\$(srcdir):*/:/
25499 s/:*\${srcdir}:*/:/
25501 s/^\([^=]*=[ ]*\):*/\1/
25507 cat >>$CONFIG_STATUS <<\_ACEOF
25508 fi # test -n "$CONFIG_FILES"
25511 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
25514 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25516 case $ac_mode$ac_tag in
25518 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25519 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25520 { (exit 1); exit 1; }; };;
25521 :[FH
]-) ac_tag
=-:-;;
25522 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25539 -) ac_f
="$tmp/stdin";;
25540 *) # Look for the file first in the build tree, then in the source tree
25541 # (if the path is not absolute). The absolute path cannot be DOS-style,
25542 # because $ac_f cannot contain `:'.
25546 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25548 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25549 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25550 { (exit 1); exit 1; }; };;
25552 ac_file_inputs
="$ac_file_inputs $ac_f"
25555 # Let's still pretend it is `configure' which instantiates (i.e., don't
25556 # use $as_me), people would be surprised to read:
25557 # /* config.h. Generated by config.status. */
25558 configure_input
="Generated from "`IFS=:
25559 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25560 if test x
"$ac_file" != x-
; then
25561 configure_input
="$ac_file. $configure_input"
25562 { echo "$as_me:$LINENO: creating $ac_file" >&5
25563 echo "$as_me: creating $ac_file" >&6;}
25567 *:-:* |
*:-) cat >"$tmp/stdin";;
25572 ac_dir
=`$as_dirname -- "$ac_file" ||
25573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25574 X"$ac_file" : 'X\(//\)[^/]' \| \
25575 X"$ac_file" : 'X\(//\)$' \| \
25576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25582 /^X\(\/\/\)[^/].*/{
25597 -*) as_dir
=.
/$as_dir;;
25599 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25603 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25604 *) as_qdir
=$as_dir;;
25606 as_dirs
="'$as_qdir' $as_dirs"
25607 as_dir
=`$as_dirname -- "$as_dir" ||
25608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25609 X"$as_dir" : 'X\(//\)[^/]' \| \
25610 X"$as_dir" : 'X\(//\)$' \| \
25611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25617 /^X\(\/\/\)[^/].*/{
25630 test -d "$as_dir" && break
25632 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25633 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25635 { (exit 1); exit 1; }; }; }
25639 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25641 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25642 # A ".." for each directory in $ac_dir_suffix.
25643 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25644 case $ac_top_builddir_sub in
25645 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25646 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25649 ac_abs_top_builddir
=$ac_pwd
25650 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25651 # for backward compatibility:
25652 ac_top_builddir
=$ac_top_build_prefix
25655 .
) # We are building in place.
25657 ac_top_srcdir
=$ac_top_builddir_sub
25658 ac_abs_top_srcdir
=$ac_pwd ;;
25659 [\\/]* | ?
:[\\/]* ) # Absolute name.
25660 ac_srcdir
=$srcdir$ac_dir_suffix;
25661 ac_top_srcdir
=$srcdir
25662 ac_abs_top_srcdir
=$srcdir ;;
25663 *) # Relative name.
25664 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25665 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25666 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25668 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25678 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25679 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25683 cat >>$CONFIG_STATUS <<\_ACEOF
25684 # If the template does not know about datarootdir, expand it.
25685 # FIXME: This hack should be removed a few years after 2.60.
25686 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25688 case `sed -n '/datarootdir/ {
25697 ' $ac_file_inputs` in
25698 *datarootdir
*) ac_datarootdir_seen
=yes;;
25699 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25700 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25701 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25703 cat >>$CONFIG_STATUS <<_ACEOF
25704 ac_datarootdir_hack='
25705 s&@datadir@&$datadir&g
25706 s&@docdir@&$docdir&g
25707 s&@infodir@&$infodir&g
25708 s&@localedir@&$localedir&g
25709 s&@mandir@&$mandir&g
25710 s&\\\${datarootdir}&$datarootdir&g' ;;
25714 # Neutralize VPATH when `$srcdir' = `.'.
25715 # Shell code in configure.ac might set extrasub.
25716 # FIXME: do we really want to maintain this feature?
25717 cat >>$CONFIG_STATUS <<_ACEOF
25721 cat >>$CONFIG_STATUS <<\_ACEOF
25723 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25724 s
&@configure_input@
&$configure_input&;t t
25725 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25726 s
&@srcdir@
&$ac_srcdir&;t t
25727 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25728 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25729 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25730 s
&@builddir@
&$ac_builddir&;t t
25731 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25732 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25733 s
&@INSTALL@
&$ac_INSTALL&;t t
25734 $ac_datarootdir_hack
25735 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25738 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25740 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25741 which seems to be undefined. Please make sure it is defined." >&5
25742 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25743 which seems to be undefined. Please make sure it is defined." >&2;}
25747 -) cat "$tmp/out"; rm -f "$tmp/out";;
25748 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25757 # Transform confdefs.h into a sed script `conftest.defines', that
25758 # substitutes the proper values into config.h.in to produce config.h.
25759 rm -f conftest.defines conftest.
tail
25760 # First, append a space to every undef/define line, to ease matching.
25761 echo 's/$/ /' >conftest.defines
25762 # Then, protect against being on the right side of a sed subst, or in
25763 # an unquoted here document, in config.status. If some macros were
25764 # called several times there might be several #defines for the same
25765 # symbol, which is useless. But do not sort them, since the last
25766 # AC_DEFINE must be honored.
25767 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25768 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25769 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25770 # PARAMS is the parameter list in the macro definition--in most cases, it's
25771 # just an empty string.
25772 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25773 ac_dB
='\\)[ (].*,\\1define\\2'
25781 s/^[ ]*#[ ]*define[ ][ ]*//
25786 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25787 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25788 ' >>conftest.defines
25790 # Remove the space that was appended to ease matching.
25791 # Then replace #undef with comments. This is necessary, for
25792 # example, in the case of _POSIX_SOURCE, which is predefined and required
25793 # on some systems where configure will not decide to define it.
25794 # (The regexp can be short, since the line contains either #define or #undef.)
25796 s,^[ #]*u.*,/* & */,' >>conftest.defines
25798 # Break up conftest.defines:
25799 ac_max_sed_lines
=50
25801 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25802 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25803 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25805 ac_in
='$ac_file_inputs'
25806 ac_out
='"$tmp/out1"'
25807 ac_nxt
='"$tmp/out2"'
25811 # Write a here document:
25812 cat >>$CONFIG_STATUS <<_ACEOF
25813 # First, check the format of the line:
25814 cat >"\$tmp/defines.sed" <<\\CEOF
25815 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25816 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25820 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25822 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25823 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25824 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25825 grep . conftest.
tail >/dev
/null ||
break
25826 rm -f conftest.defines
25827 mv conftest.
tail conftest.defines
25829 rm -f conftest.defines conftest.
tail
25831 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25832 cat >>$CONFIG_STATUS <<\_ACEOF
25833 if test x
"$ac_file" != x-
; then
25834 echo "/* $configure_input */" >"$tmp/config.h"
25835 cat "$ac_result" >>"$tmp/config.h"
25836 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25837 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25838 echo "$as_me: $ac_file is unchanged" >&6;}
25841 mv "$tmp/config.h" $ac_file
25844 echo "/* $configure_input */"
25856 { (exit 0); exit 0; }
25858 chmod +x
$CONFIG_STATUS
25859 ac_clean_files
=$ac_clean_files_save
25862 # configure is writing to config.log, and then calls config.status.
25863 # config.status does its own redirection, appending to config.log.
25864 # Unfortunately, on DOS this fails, as config.log is still kept open
25865 # by configure, so config.status won't be able to write to it; its
25866 # output is simply discarded. So we exec the FD to /dev/null,
25867 # effectively closing config.log, so it can be properly (re)opened and
25868 # appended to by config.status. When coming back to configure, we
25869 # need to make the FD available again.
25870 if test "$no_create" != yes; then
25872 ac_config_status_args
=
25873 test "$silent" = yes &&
25874 ac_config_status_args
="$ac_config_status_args --quiet"
25876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25879 # would make configure fail if this is the last instruction.
25880 $ac_cs_success ||
{ (exit 1); exit 1; }
25884 echo "creating Modules/Setup"
25885 if test ! -f Modules
/Setup
25887 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25890 echo "creating Modules/Setup.local"
25891 if test ! -f Modules
/Setup.
local
25893 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25896 echo "creating Makefile"
25897 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25898 -s Modules Modules
/Setup.config \
25899 Modules
/Setup.
local Modules
/Setup
25901 case $ac_sys_system in
25903 { echo "$as_me:$LINENO: WARNING:
25905 Support for BeOS is deprecated as of Python 2.6.
25906 See PEP 11 for the gory details.
25908 echo "$as_me: WARNING:
25910 Support for BeOS is deprecated as of Python 2.6.
25911 See PEP 11 for the gory details.
25917 mv config.c Modules