2 # From configure.in Revision: 65061 .
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.
2079 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
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
2090 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2091 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2093 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2094 define_xopen_source=no;;
2095 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2096 # of union __?sigval. Reported by Stuart Bishop.
2098 define_xopen_source=no;;
2099 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2100 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2101 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2102 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2103 define_xopen_source=no;;
2104 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2105 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2107 define_xopen_source=no;;
2108 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2109 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2110 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2111 # This should hopefully be fixed in FreeBSD 4.9
2112 FreeBSD/4.8* | Darwin/6* )
2113 define_xopen_source=no;;
2114 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2115 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2116 # or has another value. By not (re)defining it, the defaults come in place.
2118 define_xopen_source=no;;
2120 if test `uname
-r` -eq 1; then
2121 define_xopen_source=no
2124 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2125 # disables platform specific features beyond repair.
2126 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2127 # has no effect, don't bother defining them
2129 define_xopen_source=no
2131 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2132 # defining NI_NUMERICHOST.
2134 define_xopen_source=no
2139 if test $define_xopen_source = yes
2141 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2142 # defined precisely as g++ defines it
2143 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2145 case $ac_sys_system/$ac_sys_release in
2146 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2148 cat >>confdefs.h <<\_ACEOF
2149 #define _XOPEN_SOURCE 500
2155 cat >>confdefs.h <<\_ACEOF
2156 #define _XOPEN_SOURCE 600
2162 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2163 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2164 # several APIs are not declared. Since this is also needed in some
2165 # cases for HP-UX, we define it globally.
2166 # except for Solaris 10, where it must not be defined,
2167 # as it implies XPG4.2
2168 case $ac_sys_system/$ac_sys_release in
2173 cat >>confdefs.h <<\_ACEOF
2174 #define _XOPEN_SOURCE_EXTENDED 1
2181 cat >>confdefs.h <<\_ACEOF
2182 #define _POSIX_C_SOURCE 200112L
2189 # SGI compilers allow the specification of the both the ABI and the
2190 # ISA on the command line. Depending on the values of these switches,
2191 # different and often incompatable code will be generated.
2193 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2194 # thus supply support for various ABI/ISA combinations. The MACHDEP
2195 # variable is also adjusted.
2198 if test ! -z "$SGI_ABI"
2201 LDFLAGS="$SGI_ABI $LDFLAGS"
2202 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2204 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2205 echo "${ECHO_T}$MACHDEP" >&6; }
2207 # And add extra plat-mac for darwin
2210 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2211 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2212 if test -z "$EXTRAPLATDIR"
2216 EXTRAPLATDIR="\$(PLATMACDIRS)"
2217 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2225 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2226 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2228 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2229 # it may influence the way we can build extensions, so distutils
2233 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2234 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2236 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2237 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2238 ac_sys_machine=`uname
-m`
2239 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2240 echo "${ECHO_T}$ac_sys_machine" >&6; }
2242 # checks for alternative programs
2244 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2245 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2246 # just to get things to compile and link. Users are free to override OPT
2247 # when running configure or make. The build should not break if they do.
2248 # BASECFLAGS should generally not be messed with, however.
2250 # XXX shouldn't some/most/all of this code be merged with the stuff later
2251 # on that fiddles with OPT and BASECFLAGS?
2252 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2253 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2255 # Check whether --with-gcc was given.
2256 if test "${with_gcc+set}" = set; then
2264 without_gcc=$withval;;
2268 case $ac_sys_system in
2272 case $BE_HOST_CPU in
2276 BASECFLAGS="$BASECFLAGS -export pragma"
2278 LDFLAGS="$LDFLAGS -nodup"
2286 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2287 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2288 { (exit 1); exit 1; }; }
2291 AR="\$(srcdir)/Modules/ar_beos"
2301 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2302 echo "${ECHO_T}$without_gcc" >&6; }
2304 # If the user switches compilers, we can't believe the cache
2305 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2307 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2308 (it is also a good idea to do 'make clean' before compiling)" >&5
2309 echo "$as_me: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2311 { (exit 1); exit 1; }; }
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 if test -n "$CC"; then
2349 { echo "$as_me:$LINENO: result: $CC" >&5
2350 echo "${ECHO_T}$CC" >&6; }
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2358 if test -z "$ac_cv_prog_CC"; then
2360 # Extract the first word of "gcc", so it can be a program name with args.
2361 set dummy gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2396 if test "x$ac_ct_CC" = x; then
2399 case $cross_compiling:$ac_tool_warned in
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2415 if test -z "$CC"; then
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}cc; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="${ac_tool_prefix}cc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test -n "$CC"; then
2446 { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2456 if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458 set dummy cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2476 ac_prog_rejected=yes
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2491 if test $# != 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2502 if test -n "$CC"; then
2503 { echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6; }
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2514 for ac_prog in cl.exe
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$CC" && break
2556 if test -z "$CC"; then
2558 for ac_prog in cl.exe
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="$ac_prog"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6; }
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2597 test -n "$ac_ct_CC" && break
2600 if test "x$ac_ct_CC" = x; then
2603 case $cross_compiling:$ac_tool_warned in
2605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&5
2608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2611 ac_tool_warned=yes ;;
2620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2621 See \`config.log
' for more details." >&5
2622 echo "$as_me: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details.
" >&2;}
2624 { (exit 1); exit 1; }; }
2626 # Provide some information about the compiler.
2627 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2628 ac_compiler=`set X $ac_compile; echo $2`
2629 { (ac_try="$ac_compiler --version >&5"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compiler --version >&5") 2>&5
2637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2638 (exit $ac_status); }
2639 { (ac_try="$ac_compiler -v >&5"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler -v >&5") 2>&5
2647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2648 (exit $ac_status); }
2649 { (ac_try="$ac_compiler -V >&5"
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler -V >&5") 2>&5
2657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2658 (exit $ac_status); }
2660 cat >conftest.$ac_ext <<_ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2675 ac_clean_files_save=$ac_clean_files
2676 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2677 # Try to create an executable without -o first, disregard a.out.
2678 # It will help us diagnose broken compilers, and finding out an intuition
2680 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2681 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2682 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2684 # List of possible output files, starting from the most likely.
2685 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2686 # only as a last resort. b.out is created by i960 compilers.
2687 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2689 # The IRIX 6 linker writes into existing files which may not be
2690 # executable, retaining their permissions. Remove them first so a
2691 # subsequent execution test works.
2693 for ac_file in $ac_files
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2697 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2702 if { (ac_try="$ac_link_default"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_link_default") 2>&5
2710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2711 (exit $ac_status); }; then
2712 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2713 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2714 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2715 # so that the user can short-circuit this test for compilers unknown to
2717 for ac_file in $ac_files ''
2719 test -f "$ac_file" || continue
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2724 # We found the default executable, but exeext='' is most
2728 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 # We set ac_cv_exeext here because the later test for it is not
2733 # safe: cross compilers may not add the suffix if given an `-o'
2734 # argument, so we may need to know it at that point already.
2735 # Even if this section looks crufty: it has the advantage of
2742 test "$ac_cv_exeext" = no && ac_cv_exeext=
2748 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2749 echo "${ECHO_T}$ac_file" >&6; }
2750 if test -z "$ac_file"; then
2751 echo "$as_me: failed program was
:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2755 See \
`config.log' for more details." >&5
2756 echo "$as_me: error: C compiler cannot create executables
2757 See \`config.log
' for more details." >&2;}
2758 { (exit 77); exit 77; }; }
2761 ac_exeext=$ac_cv_exeext
2763 # Check that the compiler produces executables we can run. If not, either
2764 # the compiler is broken, or we cross compile.
2765 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2766 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2767 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2768 # If not cross compiling, check that we can run a simple program.
2769 if test "$cross_compiling" != yes; then
2770 if { ac_try='.
/$ac_file'
2771 { (case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_try") 2>&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2782 if test "$cross_compiling" = maybe; then
2785 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2786 If you meant to cross compile, use \`--host'.
2787 See \
`config.log' for more details." >&5
2788 echo "$as_me: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details.
" >&2;}
2791 { (exit 1); exit 1; }; }
2795 { echo "$as_me:$LINENO: result
: yes" >&5
2796 echo "${ECHO_T}yes" >&6; }
2798 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2799 ac_clean_files=$ac_clean_files_save
2800 # Check that the compiler produces executables we can run. If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2803 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2804 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2805 echo "${ECHO_T}$cross_compiling" >&6; }
2807 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2808 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2809 if { (ac_try="$ac_link"
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_link") 2>&5
2817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2818 (exit $ac_status); }; then
2819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2821 # work properly (i.e., refer to `conftest.exe'), while it won't with
2823 for ac_file in conftest.exe conftest conftest.*; do
2824 test -f "$ac_file" || continue
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2834 See \
`config.log' for more details." >&5
2835 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log
' for more details." >&2;}
2837 { (exit 1); exit 1; }; }
2840 rm -f conftest$ac_cv_exeext
2841 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2842 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2844 rm -f conftest.$ac_ext
2845 EXEEXT=$ac_cv_exeext
2847 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2849 if test "${ac_cv_objext+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2867 rm -f conftest.o conftest.obj
2868 if { (ac_try="$ac_compile"
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 for ac_file in conftest.o conftest.obj conftest.*; do
2879 test -f "$ac_file" || continue;
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2882 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2887 echo "$as_me: failed program was:" >&5
2888 sed 's
/^
/|
/' conftest.$ac_ext >&5
2890 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2891 See \`config.log' for more details.
" >&5
2892 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2893 See \
`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2899 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2900 echo "${ECHO_T}$ac_cv_objext" >&6; }
2901 OBJEXT=$ac_cv_objext
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2930 *) ac_try_echo
=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1
>conftest.err
2937 cat conftest.err
>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.
$ac_objext; then
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2952 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2955 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2957 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2958 ac_test_CFLAGS
=${CFLAGS+set}
2959 ac_save_CFLAGS
=$CFLAGS
2960 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2961 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_cc_g+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 ac_save_c_werror_flag
=$ac_c_werror_flag
2966 ac_c_werror_flag
=yes
2969 cat >conftest.
$ac_ext <<_ACEOF
2972 cat confdefs.h
>>conftest.
$ac_ext
2973 cat >>conftest.
$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2984 rm -f conftest.
$ac_objext
2985 if { (ac_try
="$ac_compile"
2987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2993 grep -v '^ *+' conftest.er1 >conftest.err
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3026 *) ac_try_echo
=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1
>conftest.err
3033 cat conftest.err
>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.
$ac_objext; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3044 ac_c_werror_flag
=$ac_save_c_werror_flag
3046 cat >conftest.
$ac_ext <<_ACEOF
3049 cat confdefs.h
>>conftest.
$ac_ext
3050 cat >>conftest.
$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 rm -f conftest.
$ac_objext
3062 if { (ac_try
="$ac_compile"
3064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3095 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3097 if test "$ac_test_CFLAGS" = set; then
3098 CFLAGS=$ac_save_CFLAGS
3099 elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
3106 if test "$GCC" = yes; then
3112 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3113 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3114 if test "${ac_cv_prog_cc_c89+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 ac_cv_prog_cc_c89=no
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3127 #include <sys/types.h>
3128 #include <sys/stat.h>
3129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3130 struct buf { int x; };
3131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3132 static char *e (p, i)
3138 static char *f (char * (*g) (char **, int), char **p, ...)
3143 s = g (p, va_arg (v,int));
3148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3149 function prototypes and stuff, but not '\xHH' hex character constants.
3150 These don't provoke an error unfortunately, instead are silently treated
3151 as 'x'. The following induces an error, until -std is added to get
3152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3153 array size at least. It's necessary to write '\x00'==0 to get something
3154 that's true only with -std. */
3155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3158 inside strings and character constants. */
3160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3162 int test (int i, double x);
3163 struct s1 {int (*f) (int a);};
3164 struct s2 {int (*f) (double a);};
3165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3179 CC="$ac_save_CC $ac_arg"
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3184 *) ac_try_echo
=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1
>conftest.err
3191 cat conftest.err
>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.
$ac_objext; then
3197 ac_cv_prog_cc_c89
=$ac_arg
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.
$ac_ext >&5
3205 rm -f core conftest.err conftest.
$ac_objext
3206 test "x$ac_cv_prog_cc_c89" != "xno" && break
3208 rm -f conftest.
$ac_ext
3213 case "x$ac_cv_prog_cc_c89" in
3215 { echo "$as_me:$LINENO: result: none needed" >&5
3216 echo "${ECHO_T}none needed" >&6; } ;;
3218 { echo "$as_me:$LINENO: result: unsupported" >&5
3219 echo "${ECHO_T}unsupported" >&6; } ;;
3221 CC
="$CC $ac_cv_prog_cc_c89"
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3228 ac_cpp
='$CPP $CPPFLAGS'
3229 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3237 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3239 # Check whether --with-cxx_main was given.
3240 if test "${with_cxx_main+set}" = set; then
3241 withval
=$with_cxx_main;
3244 no
) with_cxx_main
=no
3246 yes) with_cxx_main
=yes
3248 *) with_cxx_main
=yes
3262 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3263 echo "${ECHO_T}$with_cxx_main" >&6; }
3269 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3270 set dummy g
++; ac_word
=$2
3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273 if test "${ac_cv_path_CXX+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3282 for as_dir
in notfound
3285 test -z "$as_dir" && as_dir
=.
3286 for ac_exec_ext
in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3301 if test -n "$CXX"; then
3302 { echo "$as_me:$LINENO: result: $CXX" >&5
3303 echo "${ECHO_T}$CXX" >&6; }
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3310 cc
) # Extract the first word of "c++", so it can be a program name with args.
3311 set dummy c
++; ac_word
=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_path_CXX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 for as_dir
in notfound
3326 test -z "$as_dir" && as_dir
=.
3327 for ac_exec_ext
in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3342 if test -n "$CXX"; then
3343 { echo "$as_me:$LINENO: result: $CXX" >&5
3344 echo "${ECHO_T}$CXX" >&6; }
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3352 if test "$CXX" = "notfound"
3359 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy
$ac_prog; ac_word
=$2
3363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_CXX+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if test -n "$CXX"; then
3369 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir
=.
3376 for ac_exec_ext
in '' $ac_executable_extensions; do
3377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378 ac_cv_prog_CXX
="$ac_prog"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 if test -n "$CXX"; then
3390 { echo "$as_me:$LINENO: result: $CXX" >&5
3391 echo "${ECHO_T}$CXX" >&6; }
3393 { echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6; }
3398 test -n "$CXX" && break
3400 test -n "$CXX" || CXX
="notfound"
3402 if test "$CXX" = "notfound"
3407 if test "$preset_cxx" != "$CXX"
3409 { echo "$as_me:$LINENO: WARNING:
3411 By default, distutils will build C++ extension modules with \"$CXX\".
3412 If this is not intended, then set CXX on the configure command line.
3414 echo "$as_me: WARNING:
3416 By default, distutils will build C++ extension modules with \"$CXX\".
3417 If this is not intended, then set CXX on the configure command line.
3422 # checks for UNIX variants that set C preprocessor variables
3425 ac_cpp
='$CPP $CPPFLAGS'
3426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3429 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3431 # On Suns, sometimes $CPP names a directory.
3432 if test -n "$CPP" && test -d "$CPP"; then
3435 if test -z "$CPP"; then
3436 if test "${ac_cv_prog_CPP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 # Double quotes because CPP needs to be expanded
3440 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3443 for ac_c_preproc_warn_flag
in '' yes
3445 # Use a header file that comes with gcc, so configuring glibc
3446 # with a fresh cross-compiler works.
3447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448 # <limits.h> exists even on freestanding compilers.
3449 # On the NeXT, cc -E runs the code through the compiler's parser,
3450 # not just through cpp. "Syntax error" is here to catch this case.
3451 cat >conftest.
$ac_ext <<_ACEOF
3454 cat confdefs.h
>>conftest.
$ac_ext
3455 cat >>conftest.
$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3458 # include <limits.h>
3460 # include <assert.h>
3464 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null && {
3477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <ac_nonexistent.h>
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3504 *) ac_try_echo
=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1
>conftest.err
3511 cat conftest.err
>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev
/null
&& {
3514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3517 # Broken: success on invalid input.
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.
$ac_ext >&5
3523 # Passes both tests.
3528 rm -f conftest.err conftest.
$ac_ext
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.
$ac_ext
3533 if $ac_preproc_ok; then
3545 { echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6; }
3548 for ac_c_preproc_warn_flag
in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.
$ac_ext <<_ACEOF
3559 cat confdefs.h
>>conftest.
$ac_ext
3560 cat >>conftest.
$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 # include <limits.h>
3565 # include <assert.h>
3569 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3594 rm -f conftest.err conftest.$ac_ext
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <ac_nonexistent.h>
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3609 *) ac_try_echo
=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614 grep -v '^ *+' conftest.er1
>conftest.err
3616 cat conftest.err
>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev
/null
&& {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.
$ac_ext >&5
3628 # Passes both tests.
3633 rm -f conftest.err conftest.
$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.
$ac_ext
3638 if $ac_preproc_ok; then
3641 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3642 See \`config.log' for more details." >&5
3643 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&2;}
3645 { (exit 1); exit 1; }; }
3649 ac_cpp
='$CPP $CPPFLAGS'
3650 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3655 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3656 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 # Extract the first word of "grep ggrep" to use in msg output
3661 if test -z "$GREP"; then
3662 set dummy
grep ggrep
; ac_prog_name
=$2
3663 if test "${ac_cv_path_GREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 ac_path_GREP_found
=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3669 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3672 test -z "$as_dir" && as_dir
=.
3673 for ac_prog
in grep ggrep
; do
3674 for ac_exec_ext
in '' $ac_executable_extensions; do
3675 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3677 # Check for GNU ac_path_GREP and select it if it is found.
3678 # Check for GNU $ac_path_GREP
3679 case `"$ac_path_GREP" --version 2>&1` in
3681 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 echo 'GREP' >> "conftest.nl"
3691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3692 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3693 ac_count
=`expr $ac_count + 1`
3694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_GREP
="$ac_path_GREP"
3697 ac_path_GREP_max
=$ac_count
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3702 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3706 $ac_path_GREP_found && break 3
3716 GREP
="$ac_cv_path_GREP"
3717 if test -z "$GREP"; then
3718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3719 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3720 { (exit 1); exit 1; }; }
3724 ac_cv_path_GREP
=$GREP
3729 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3730 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3731 GREP
="$ac_cv_path_GREP"
3734 { echo "$as_me:$LINENO: checking for egrep" >&5
3735 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3740 then ac_cv_path_EGREP
="$GREP -E"
3742 # Extract the first word of "egrep" to use in msg output
3743 if test -z "$EGREP"; then
3744 set dummy
egrep; ac_prog_name
=$2
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 ac_path_EGREP_found
=false
3749 # Loop through the user's path and test for each of PROGNAME-LIST
3750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3751 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3754 test -z "$as_dir" && as_dir
=.
3755 for ac_prog
in egrep; do
3756 for ac_exec_ext
in '' $ac_executable_extensions; do
3757 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3758 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3759 # Check for GNU ac_path_EGREP and select it if it is found.
3760 # Check for GNU $ac_path_EGREP
3761 case `"$ac_path_EGREP" --version 2>&1` in
3763 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3766 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3769 cat "conftest.in" "conftest.in" >"conftest.tmp"
3770 mv "conftest.tmp" "conftest.in"
3771 cp "conftest.in" "conftest.nl"
3772 echo 'EGREP' >> "conftest.nl"
3773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3774 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3775 ac_count
=`expr $ac_count + 1`
3776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3777 # Best one so far, save it but keep looking for a better one
3778 ac_cv_path_EGREP
="$ac_path_EGREP"
3779 ac_path_EGREP_max
=$ac_count
3781 # 10*(2^10) chars as input seems more than enough
3782 test $ac_count -gt 10 && break
3784 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3788 $ac_path_EGREP_found && break 3
3798 EGREP
="$ac_cv_path_EGREP"
3799 if test -z "$EGREP"; then
3800 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3801 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3802 { (exit 1); exit 1; }; }
3806 ac_cv_path_EGREP
=$EGREP
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3814 EGREP
="$ac_cv_path_EGREP"
3818 { echo "$as_me:$LINENO: checking for AIX" >&5
3819 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3820 cat >conftest.
$ac_ext <<_ACEOF
3823 cat confdefs.h
>>conftest.
$ac_ext
3824 cat >>conftest.
$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 $EGREP "yes" >/dev
/null
2>&1; then
3833 { echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6; }
3835 cat >>confdefs.h
<<\_ACEOF
3836 #define _ALL_SOURCE 1
3840 { echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6; }
3847 # Check for unsupported systems
3848 case $ac_sys_system/$ac_sys_release in
3850 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3851 echo See README
for details.
3856 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3857 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3859 # Check whether --with-suffix was given.
3860 if test "${with_suffix+set}" = set; then
3861 withval
=$with_suffix;
3865 *) EXEEXT
=$withval;;
3869 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3870 echo "${ECHO_T}$EXEEXT" >&6; }
3872 # Test whether we're running on a non-case-sensitive system, in which
3873 # case we give a warning if no ext is given
3875 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3876 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3877 if test ! -d CaseSensitiveTestDir
; then
3878 mkdir CaseSensitiveTestDir
3881 if test -d casesensitivetestdir
3883 { echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6; }
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3891 rmdir CaseSensitiveTestDir
3896 gcc
) CC
="$CC -D_HAVE_BSDI";;
3900 case $ac_sys_system in
3903 cc|
*/cc
) CC
="$CC -Ae";;
3907 cc
) CC
="$CC -Wl,-Bexport";;
3910 # Some functions have a prototype only with that define, e.g. confstr
3912 cat >>confdefs.h
<<\_ACEOF
3913 #define __EXTENSIONS__ 1
3921 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3922 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3923 if test -z "$LIBRARY"
3925 LIBRARY
='libpython$(VERSION).a'
3927 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3928 echo "${ECHO_T}$LIBRARY" >&6; }
3930 # LDLIBRARY is the name of the library to link against (as opposed to the
3931 # name of the library into which to insert object files). BLDLIBRARY is also
3932 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3933 # is blank as the main program is not linked directly against LDLIBRARY.
3934 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3935 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3936 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3937 # DLLLIBRARY is the shared (i.e., DLL) library.
3939 # RUNSHARED is used to run shared python without installed libraries
3941 # INSTSONAME is the name of the shared library that will be use to install
3942 # on the system - some systems like version suffix, others don't
3949 LDLIBRARY
="$LIBRARY"
3950 BLDLIBRARY
='$(LDLIBRARY)'
3951 INSTSONAME
='$(LDLIBRARY)'
3956 # LINKCC is the command that links the python executable -- default is $(CC).
3957 # If CXX is set, and if it is needed to link a main function that was
3958 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3959 # python might then depend on the C++ runtime
3960 # This is altered for AIX in order to build the export list before
3963 { echo "$as_me:$LINENO: checking LINKCC" >&5
3964 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3965 if test -z "$LINKCC"
3967 LINKCC
='$(PURIFY) $(MAINCC)'
3968 case $ac_sys_system in
3971 if test $ac_sys_release -ge 5 -o \
3972 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3975 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3977 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3979 # qcc must be used because the other compilers do not
3984 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3985 echo "${ECHO_T}$LINKCC" >&6; }
3987 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3988 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3989 # Check whether --enable-shared was given.
3990 if test "${enable_shared+set}" = set; then
3991 enableval
=$enable_shared;
3995 if test -z "$enable_shared"
3997 case $ac_sys_system in
3999 enable_shared
="yes";;
4001 enable_shared
="no";;
4004 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4005 echo "${ECHO_T}$enable_shared" >&6; }
4007 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4008 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4009 # Check whether --enable-profiling was given.
4010 if test "${enable_profiling+set}" = set; then
4011 enableval
=$enable_profiling; ac_save_cc
="$CC"
4013 if test "$cross_compiling" = yes; then
4014 ac_enable_profiling
="no"
4016 cat >conftest.
$ac_ext <<_ACEOF
4019 cat confdefs.h
>>conftest.
$ac_ext
4020 cat >>conftest.
$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 int main() { return 0; }
4024 rm -f conftest
$ac_exeext
4025 if { (ac_try
="$ac_link"
4027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_link") 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035 { (case "(($ac_try" in
4036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4037 *) ac_try_echo
=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_enable_profiling
="yes"
4046 echo "$as_me: program exited with status $ac_status" >&5
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.
$ac_ext >&5
4051 ac_enable_profiling
="no"
4053 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4060 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4061 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4063 case "$ac_enable_profiling" in
4065 BASECFLAGS
="-pg $BASECFLAGS"
4066 LDFLAGS
="-pg $LDFLAGS"
4070 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4071 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4073 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4074 # library that we build, but we do not want to link against it (we
4075 # will find it with a -framework option). For this reason there is an
4076 # extra variable BLDLIBRARY against which Python and the extension
4077 # modules are linked, BLDLIBRARY. This is normally the same as
4078 # LDLIBRARY, but empty for MacOSX framework builds.
4079 if test "$enable_framework"
4081 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4082 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4085 BLDLIBRARY
='$(LDLIBRARY)'
4088 # Other platforms follow
4089 if test $enable_shared = "yes"; then
4091 cat >>confdefs.h
<<\_ACEOF
4092 #define Py_ENABLE_SHARED 1
4095 case $ac_sys_system in
4097 LDLIBRARY
='libpython$(VERSION).so'
4100 LDLIBRARY
='libpython$(VERSION).dll.a'
4101 DLLLIBRARY
='libpython$(VERSION).dll'
4104 LDLIBRARY
='libpython$(VERSION).so'
4105 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4106 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4107 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4109 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4110 LDLIBRARY
='libpython$(VERSION).so'
4111 BLDLIBRARY
='-L. -lpython$(VERSION)'
4112 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4113 case $ac_sys_system in
4115 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4118 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4123 LDLIBRARY
='libpython$(VERSION).so'
4126 LDLIBRARY
='libpython$(VERSION).sl'
4129 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4130 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4133 LDLIBRARY
='libpython$(VERSION).so'
4134 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4135 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4138 LDLIBRARY
='libpython$(VERSION).so'
4139 BLDLIBRARY
='-L. -lpython$(VERSION)'
4140 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4143 else # shared is disabled
4144 case $ac_sys_system in
4146 BLDLIBRARY
='$(LIBRARY)'
4147 LDLIBRARY
='libpython$(VERSION).dll.a'
4152 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4153 echo "${ECHO_T}$LDLIBRARY" >&6; }
4155 if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4157 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4160 if test "${ac_cv_prog_RANLIB+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$RANLIB"; then
4164 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir
=.
4171 for ac_exec_ext
in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 RANLIB
=$ac_cv_prog_RANLIB
4184 if test -n "$RANLIB"; then
4185 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4186 echo "${ECHO_T}$RANLIB" >&6; }
4188 { echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6; }
4194 if test -z "$ac_cv_prog_RANLIB"; then
4195 ac_ct_RANLIB
=$RANLIB
4196 # Extract the first word of "ranlib", so it can be a program name with args.
4197 set dummy ranlib
; ac_word
=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 if test -n "$ac_ct_RANLIB"; then
4204 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4224 if test -n "$ac_ct_RANLIB"; then
4225 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4226 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4228 { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4232 if test "x$ac_ct_RANLIB" = x
; then
4235 case $cross_compiling:$ac_tool_warned in
4237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet. If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&5
4240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4241 whose name does not start with the host triplet. If you think this
4242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4243 ac_tool_warned
=yes ;;
4245 RANLIB
=$ac_ct_RANLIB
4248 RANLIB
="$ac_cv_prog_RANLIB"
4252 for ac_prog
in ar aal
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255 set dummy
$ac_prog; ac_word
=$2
4256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4258 if test "${ac_cv_prog_AR+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 if test -n "$AR"; then
4262 ac_cv_prog_AR
="$AR" # Let the user override the test.
4264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir
=.
4269 for ac_exec_ext
in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_AR
="$ac_prog"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 if test -n "$AR"; then
4283 { echo "$as_me:$LINENO: result: $AR" >&5
4284 echo "${ECHO_T}$AR" >&6; }
4286 { echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6; }
4291 test -n "$AR" && break
4293 test -n "$AR" || AR
="ar"
4297 # Extract the first word of "svnversion", so it can be a program name with args.
4298 set dummy svnversion
; ac_word
=$2
4299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4301 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 if test -n "$SVNVERSION"; then
4305 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4311 test -z "$as_dir" && as_dir
=.
4312 for ac_exec_ext
in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_prog_SVNVERSION
="found"
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4325 SVNVERSION
=$ac_cv_prog_SVNVERSION
4326 if test -n "$SVNVERSION"; then
4327 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4328 echo "${ECHO_T}$SVNVERSION" >&6; }
4330 { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4335 if test $SVNVERSION = found
4337 SVNVERSION
="svnversion \$(srcdir)"
4339 SVNVERSION
="echo exported"
4344 # install -d does not work on BSDI or HP-UX
4345 if test -z "$INSTALL"
4347 INSTALL
="${srcdir}/install-sh -c"
4351 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4352 if test -f "$ac_dir/install-sh"; then
4354 ac_install_sh
="$ac_aux_dir/install-sh -c"
4356 elif test -f "$ac_dir/install.sh"; then
4358 ac_install_sh
="$ac_aux_dir/install.sh -c"
4360 elif test -f "$ac_dir/shtool"; then
4362 ac_install_sh
="$ac_aux_dir/shtool install -c"
4366 if test -z "$ac_aux_dir"; then
4367 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4368 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4369 { (exit 1); exit 1; }; }
4372 # These three variables are undocumented and unsupported,
4373 # and are intended to be withdrawn in a future Autoconf release.
4374 # They can cause serious problems if a builder's source tree is in a directory
4375 # whose full name contains unusual characters.
4376 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4377 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4378 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4381 # Find a good install program. We prefer a C program (faster),
4382 # so one script is as good as another. But avoid the broken or
4383 # incompatible versions:
4384 # SysV /etc/install, /usr/sbin/install
4385 # SunOS /usr/etc/install
4386 # IRIX /sbin/install
4388 # AmigaOS /C/install, which installs bootblocks on floppy discs
4389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4392 # OS/2's system install, which has a completely different semantic
4393 # ./install, which can be erroneously created by make from ./install.sh.
4394 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4395 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4396 if test -z "$INSTALL"; then
4397 if test "${ac_cv_path_install+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir
=.
4405 # Account for people who put trailing slashes in PATH elements.
4407 .
/ | .
// |
/cC
/* | \
4408 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4409 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4412 # OSF1 and SCO ODT 3.0 have their own names for install.
4413 # Don't use installbsd from OSF since it installs stuff as root
4415 for ac_prog
in ginstall scoinst
install; do
4416 for ac_exec_ext
in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4418 if test $ac_prog = install &&
4419 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4420 # AIX install. It has an incompatible calling convention.
4422 elif test $ac_prog = install &&
4423 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4424 # program-specific install script used by HP pwplus--don't use.
4427 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4440 if test "${ac_cv_path_install+set}" = set; then
4441 INSTALL
=$ac_cv_path_install
4443 # As a last resort, use the slow shell script. Don't cache a
4444 # value for INSTALL within a source directory, because that will
4445 # break other packages using the cache if that directory is
4446 # removed, or if the value is a relative name.
4447 INSTALL
=$ac_install_sh
4450 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4451 echo "${ECHO_T}$INSTALL" >&6; }
4453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4454 # It thinks the first close brace ends the variable substitution.
4455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4459 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4462 # Not every filesystem supports hard links
4464 if test -z "$LN" ; then
4465 case $ac_sys_system in
4467 CYGWIN
*) LN
="ln -s";;
4468 atheos
*) LN
="ln -s";;
4473 # Check for --with-pydebug
4474 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4475 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4477 # Check whether --with-pydebug was given.
4478 if test "${with_pydebug+set}" = set; then
4479 withval
=$with_pydebug;
4480 if test "$withval" != no
4483 cat >>confdefs.h
<<\_ACEOF
4487 { echo "$as_me:$LINENO: result: yes" >&5
4488 echo "${ECHO_T}yes" >&6; };
4490 else { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4499 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4500 # merged with this chunk of code?
4502 # Optimizer/debugger flags
4503 # ------------------------
4504 # (The following bit of code is complicated enough - please keep things
4505 # indented properly. Just pretend you're editing Python code. ;-)
4507 # There are two parallel sets of case statements below, one that checks to
4508 # see if OPT was set and one that does BASECFLAGS setting based upon
4509 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4512 # tweak OPT based on compiler and platform, only if the user didn't set
4513 # it on the command line
4519 if test "$CC" != 'g++' ; then
4520 STRICT_PROTO
="-Wstrict-prototypes"
4522 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4523 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4526 case $ac_cv_prog_cc_g in
4528 if test "$Py_DEBUG" = 'true' ; then
4529 # Optimization messes up debuggers, so turn it off for
4531 OPT
="-g -Wall $STRICT_PROTO"
4533 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4537 OPT
="-O3 -Wall $STRICT_PROTO"
4540 case $ac_sys_system in
4541 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4551 # The current (beta) Monterey compiler dies with optimizations
4552 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4553 case $ac_sys_system in
4563 # The -arch flags for universal builds on OSX
4564 UNIVERSAL_ARCH_FLAGS
=
4567 # tweak BASECFLAGS based on compiler and platform
4570 # Python violates C99 rules, by casting between incompatible
4571 # pointer types. GCC may generate bad code as a result of that,
4572 # so use -fno-strict-aliasing if supported.
4573 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4574 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4576 CC
="$CC -fno-strict-aliasing"
4577 if test "$cross_compiling" = yes; then
4578 ac_cv_no_strict_aliasing_ok
=no
4580 cat >conftest.
$ac_ext <<_ACEOF
4583 cat confdefs.h
>>conftest.
$ac_ext
4584 cat >>conftest.
$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 int main() { return 0; }
4588 rm -f conftest
$ac_exeext
4589 if { (ac_try
="$ac_link"
4591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_link") 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4599 { (case "(($ac_try" in
4600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4601 *) ac_try_echo
=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_try") 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_cv_no_strict_aliasing_ok
=yes
4610 echo "$as_me: program exited with status $ac_status" >&5
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.
$ac_ext >&5
4615 ac_cv_no_strict_aliasing_ok
=no
4617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4622 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4623 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4624 if test $ac_cv_no_strict_aliasing_ok = yes
4626 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4629 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4630 # support. Without this, treatment of subnormals doesn't follow
4632 case $ac_sys_machine in
4634 BASECFLAGS
="$BASECFLAGS -mieee"
4638 case $ac_sys_system in
4640 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4642 # is there any other compiler on Darwin besides gcc?
4644 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4645 # used to be here, but non-Apple gcc doesn't accept them.
4648 if test "${enable_universalsdk}"; then
4649 UNIVERSAL_ARCH_FLAGS
=""
4650 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4651 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4654 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4655 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4657 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4658 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4659 ARCH_RUN_32BIT
="arch -386 -ppc"
4662 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4663 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4664 { (exit 1); exit 1; }; }
4669 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4670 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4671 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4672 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4676 # Calculate the right deployment target for this build.
4678 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4679 if test ${cur_target} '>' 10.2; then
4682 if test "${UNIVERSAL_ARCHS}" = "all"; then
4683 # Ensure that the default platform for a 4-way
4684 # universal build is OSX 10.5, that's the first
4685 # OS release where 4-way builds make sense.
4688 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4690 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4691 # environment with a value that is the same as what we'll use
4692 # in the Makefile to ensure that we'll get the same compiler
4693 # environment during configure and build time.
4694 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4695 export MACOSX_DEPLOYMENT_TARGET
4696 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4700 BASECFLAGS
="$BASECFLAGS -mieee"
4706 case $ac_sys_system in
4707 OpenUNIX
*|UnixWare
*)
4708 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4711 BASECFLAGS
="$BASECFLAGS -ieee -std"
4714 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4720 if test "$Py_DEBUG" = 'true'; then
4726 if test "$ac_arch_flags"
4728 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4731 # disable check for icc since it seems to pass, but generates a warning
4734 ac_cv_opt_olimit_ok
=no
4737 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4738 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4739 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 CC
="$CC -OPT:Olimit=0"
4744 if test "$cross_compiling" = yes; then
4745 ac_cv_opt_olimit_ok
=no
4747 cat >conftest.
$ac_ext <<_ACEOF
4750 cat confdefs.h
>>conftest.
$ac_ext
4751 cat >>conftest.
$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 int main() { return 0; }
4755 rm -f conftest
$ac_exeext
4756 if { (ac_try
="$ac_link"
4758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_link") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766 { (case "(($ac_try" in
4767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4768 *) ac_try_echo
=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_try") 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 ac_cv_opt_olimit_ok
=yes
4777 echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.
$ac_ext >&5
4782 ac_cv_opt_olimit_ok
=no
4784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4791 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4792 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4793 if test $ac_cv_opt_olimit_ok = yes; then
4794 case $ac_sys_system in
4795 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4796 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4801 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4805 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4806 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4807 if test "${ac_cv_olimit_ok+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 CC
="$CC -Olimit 1500"
4812 if test "$cross_compiling" = yes; then
4815 cat >conftest.
$ac_ext <<_ACEOF
4818 cat confdefs.h
>>conftest.
$ac_ext
4819 cat >>conftest.
$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 int main() { return 0; }
4823 rm -f conftest
$ac_exeext
4824 if { (ac_try
="$ac_link"
4826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_link") 2>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4834 { (case "(($ac_try" in
4835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4836 *) ac_try_echo
=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_try") 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4845 echo "$as_me: program exited with status $ac_status" >&5
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.
$ac_ext >&5
4852 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4859 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4860 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4861 if test $ac_cv_olimit_ok = yes; then
4862 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4866 # Check whether GCC supports PyArg_ParseTuple format
4867 if test "$GCC" = "yes"
4869 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4870 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4872 CFLAGS
="$CFLAGS -Werror"
4873 cat >conftest.
$ac_ext <<_ACEOF
4876 cat confdefs.h
>>conftest.
$ac_ext
4877 cat >>conftest.
$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4880 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4890 rm -f conftest.
$ac_objext
4891 if { (ac_try
="$ac_compile"
4893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4912 { echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6; }
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 # On some compilers, pthreads are available without further options
4928 # (e.g. MacOS X). On some of these systems, the compiler will not
4929 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4930 # So we have to see first whether pthreads are available without
4931 # options before we can check whether -Kpthread improves anything.
4932 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4933 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4934 if test "${ac_cv_pthread_is_default+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test "$cross_compiling" = yes; then
4938 ac_cv_pthread_is_default=no
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 #include <pthread.h>
4949 void* routine(void* p){return NULL;}
4953 if(pthread_create(&p,NULL,routine,NULL)!=0)
4955 (void)pthread_detach(p);
4960 rm -f conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4964 *) ac_try_echo
=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_link") 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4971 { (case "(($ac_try" in
4972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_try") 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4981 ac_cv_pthread_is_default=yes
4986 echo "$as_me: program exited with status $ac_status" >&5
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_pthread_is_default=no
4993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5000 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5001 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5004 if test $ac_cv_pthread_is_default = yes
5008 # -Kpthread, if available, provides the right #defines
5009 # and linker options to make pthread_create available
5010 # Some compilers won't report that they do not support -Kpthread,
5011 # so we need to run a program to see whether it really made the
5012 # function available.
5013 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5014 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5015 if test "${ac_cv_kpthread+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test "$cross_compiling" = yes; then
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5030 #include <pthread.h>
5032 void* routine(void* p){return NULL;}
5036 if(pthread_create(&p,NULL,routine,NULL)!=0)
5038 (void)pthread_detach(p);
5043 rm -f conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5047 *) ac_try_echo
=$ac_try;;
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5054 { (case "(($ac_try" in
5055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_try") 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5065 echo "$as_me: program exited with status $ac_status" >&5
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5079 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5080 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5083 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5085 # -Kthread, if available, provides the right #defines
5086 # and linker options to make pthread_create available
5087 # Some compilers won't report that they do not support -Kthread,
5088 # so we need to run a program to see whether it really made the
5089 # function available.
5090 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5091 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5092 if test "${ac_cv_kthread+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test "$cross_compiling" = yes; then
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5107 #include <pthread.h>
5109 void* routine(void* p){return NULL;}
5113 if(pthread_create(&p,NULL,routine,NULL)!=0)
5115 (void)pthread_detach(p);
5120 rm -f conftest$ac_exeext
5121 if { (ac_try="$ac_link"
5123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5124 *) ac_try_echo
=$ac_try;;
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_link") 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5131 { (case "(($ac_try" in
5132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_try") 2>&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5156 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5157 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5160 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5162 # -pthread, if available, provides the right #defines
5163 # and linker options to make pthread_create available
5164 # Some compilers won't report that they do not support -pthread,
5165 # so we need to run a program to see whether it really made the
5166 # function available.
5167 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5168 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5169 if test "${ac_cv_thread+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test "$cross_compiling" = yes; then
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5184 #include <pthread.h>
5186 void* routine(void* p){return NULL;}
5190 if(pthread_create(&p,NULL,routine,NULL)!=0)
5192 (void)pthread_detach(p);
5197 rm -f conftest$ac_exeext
5198 if { (ac_try="$ac_link"
5200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5201 *) ac_try_echo
=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_link") 2>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5208 { (case "(($ac_try" in
5209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5233 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5234 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5237 # If we have set a CC compiler flag for thread support then
5238 # check if it works for CXX, too.
5242 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5243 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5246 if test "$ac_cv_kpthread" = "yes"
5248 CXX="$CXX -Kpthread"
5249 ac_cv_cxx_thread=yes
5250 elif test "$ac_cv_kthread" = "yes"
5253 ac_cv_cxx_thread=yes
5254 elif test "$ac_cv_pthread" = "yes"
5257 ac_cv_cxx_thread=yes
5260 if test $ac_cv_cxx_thread = yes
5262 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5263 $CXX -c conftest.$ac_ext 2>&5
5264 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5265 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5267 ac_cv_cxx_thread=yes
5273 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5274 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5279 # checks for header files
5280 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5281 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5282 if test "${ac_cv_header_stdc+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 cat >conftest.$ac_ext <<_ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5304 rm -f conftest.$ac_objext
5305 if { (ac_try="$ac_compile"
5307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5308 *) ac_try_echo
=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5313 grep -v '^ *+' conftest.er1
>conftest.err
5315 cat conftest.err
>&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } && {
5318 test -z "$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 } && test -s conftest.
$ac_objext; then
5321 ac_cv_header_stdc
=yes
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.
$ac_ext >&5
5326 ac_cv_header_stdc
=no
5329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5331 if test $ac_cv_header_stdc = yes; then
5332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5333 cat >conftest.
$ac_ext <<_ACEOF
5336 cat confdefs.h
>>conftest.
$ac_ext
5337 cat >>conftest.
$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "memchr" >/dev
/null
2>&1; then
5346 ac_cv_header_stdc
=no
5352 if test $ac_cv_header_stdc = yes; then
5353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5354 cat >conftest.
$ac_ext <<_ACEOF
5357 cat confdefs.h
>>conftest.
$ac_ext
5358 cat >>conftest.
$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5364 $EGREP "free" >/dev
/null
2>&1; then
5367 ac_cv_header_stdc
=no
5373 if test $ac_cv_header_stdc = yes; then
5374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5375 if test "$cross_compiling" = yes; then
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5386 #if ((' ' & 0x0FF) == 0x020)
5387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5390 # define ISLOWER(c) \
5391 (('a' <= (c) && (c) <= 'i') \
5392 || ('j' <= (c) && (c) <= 'r') \
5393 || ('s' <= (c) && (c) <= 'z'))
5394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5402 for (i = 0; i < 256; i++)
5403 if (XOR (islower (i), ISLOWER (i))
5404 || toupper (i) != TOUPPER (i))
5409 rm -f conftest
$ac_exeext
5410 if { (ac_try
="$ac_link"
5412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_link") 2>&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5420 { (case "(($ac_try" in
5421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5422 *) ac_try_echo
=$ac_try;;
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_try") 2>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5431 echo "$as_me: program exited with status $ac_status" >&5
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.
$ac_ext >&5
5436 ac_cv_header_stdc
=no
5438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5444 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5445 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5446 if test $ac_cv_header_stdc = yes; then
5448 cat >>confdefs.h
<<\_ACEOF
5449 #define STDC_HEADERS 1
5454 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5464 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5465 inttypes.h stdint.h unistd.h
5467 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5470 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 cat >conftest.
$ac_ext <<_ACEOF
5476 cat confdefs.h
>>conftest.
$ac_ext
5477 cat >>conftest.
$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5481 #include <$ac_header>
5483 rm -f conftest.
$ac_objext
5484 if { (ac_try
="$ac_compile"
5486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 eval "$as_ac_Header=yes"
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 eval "$as_ac_Header=no"
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_res=`eval echo '${'$as_ac_Header'}'`
5511 { echo "$as_me:$LINENO: result: $ac_res" >&5
5512 echo "${ECHO_T}$ac_res" >&6; }
5513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514 cat >>confdefs.h <<_ACEOF
5515 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5577 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5579 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5580 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5582 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5583 sys/lock.h sys/mkdev.h sys/modem.h \
5584 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5585 sys/termio.h sys/time.h \
5586 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5587 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5588 bluetooth/bluetooth.h linux/tipc.h
5590 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 ac_res=`eval echo '${'$as_ac_Header'}'`
5598 { echo "$as_me:$LINENO: result: $ac_res" >&5
5599 echo "${ECHO_T}$ac_res" >&6; }
5601 # Is the header compilable?
5602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5604 cat >conftest.$ac_ext <<_ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 $ac_includes_default
5611 #include <$ac_header>
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5617 *) ac_try_echo
=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1
>conftest.err
5624 cat conftest.err
>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.
$ac_objext; then
5630 ac_header_compiler
=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.
$ac_ext >&5
5635 ac_header_compiler
=no
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5640 echo "${ECHO_T}$ac_header_compiler" >&6; }
5642 # Is the header present?
5643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5645 cat >conftest.
$ac_ext <<_ACEOF
5648 cat confdefs.h
>>conftest.
$ac_ext
5649 cat >>conftest.
$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <$ac_header>
5653 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } >/dev/null && {
5666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5669 ac_header_preproc=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_preproc=no
5677 rm -f conftest.err conftest.$ac_ext
5678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5679 echo "${ECHO_T}$ac_header_preproc" >&6; }
5681 # So? What about this header?
5682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5688 ac_header_preproc=yes
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5704 ## ------------------------------------------------ ##
5705 ## Report this to http://www.python.org/python-bugs ##
5706 ## ------------------------------------------------ ##
5708 ) | sed "s/^/$as_me: WARNING: /" >&2
5711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 eval "$as_ac_Header=\$ac_header_preproc"
5718 ac_res=`eval echo '${'$as_ac_Header'}'`
5719 { echo "$as_me:$LINENO: result: $ac_res" >&5
5720 echo "${ECHO_T}$ac_res" >&6; }
5723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5724 cat >>confdefs.h <<_ACEOF
5725 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5738 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5739 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5740 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5741 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5763 rm -f conftest.$ac_objext
5764 if { (ac_try="$ac_compile"
5766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5767 *) ac_try_echo
=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compile") 2>conftest.er1
5772 grep -v '^ *+' conftest.er1
>conftest.err
5774 cat conftest.err
>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && {
5777 test -z "$ac_c_werror_flag" ||
5778 test ! -s conftest.err
5779 } && test -s conftest.
$ac_objext; then
5780 eval "$as_ac_Header=yes"
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.
$ac_ext >&5
5785 eval "$as_ac_Header=no"
5788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5790 ac_res
=`eval echo '${'$as_ac_Header'}'`
5791 { echo "$as_me:$LINENO: result: $ac_res" >&5
5792 echo "${ECHO_T}$ac_res" >&6; }
5793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794 cat >>confdefs.h
<<_ACEOF
5795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5798 ac_header_dirent
=$ac_hdr; break
5802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5803 if test $ac_header_dirent = dirent.h
; then
5804 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5806 if test "${ac_cv_search_opendir+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 ac_func_search_save_LIBS
=$LIBS
5810 cat >conftest.
$ac_ext <<_ACEOF
5813 cat confdefs.h
>>conftest.
$ac_ext
5814 cat >>conftest.
$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any GCC internal prototype to avoid an error.
5818 Use char because int might match the return type of a GCC
5819 builtin and then its argument prototype would still apply. */
5832 for ac_lib
in '' dir
; do
5833 if test -z "$ac_lib"; then
5834 ac_res
="none required"
5837 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5839 rm -f conftest.
$ac_objext conftest
$ac_exeext
5840 if { (ac_try
="$ac_link"
5842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_link") 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest$ac_exeext &&
5856 $as_test_x conftest$ac_exeext; then
5857 ac_cv_search_opendir=$ac_res
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5867 if test "${ac_cv_search_opendir+set}" = set; then
5871 if test "${ac_cv_search_opendir+set}" = set; then
5874 ac_cv_search_opendir=no
5877 LIBS=$ac_func_search_save_LIBS
5879 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5880 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5881 ac_res=$ac_cv_search_opendir
5882 if test "$ac_res" != no; then
5883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5888 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5889 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5890 if test "${ac_cv_search_opendir+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 ac_func_search_save_LIBS=$LIBS
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5916 for ac_lib in '' x; do
5917 if test -z "$ac_lib"; then
5918 ac_res="none required"
5921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5923 rm -f conftest.$ac_objext conftest$ac_exeext
5924 if { (ac_try="$ac_link"
5926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5927 *) ac_try_echo
=$ac_try;;
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_link") 2>conftest.er1
5932 grep -v '^ *+' conftest.er1
>conftest.err
5934 cat conftest.err
>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest
$ac_exeext &&
5940 $as_test_x conftest
$ac_exeext; then
5941 ac_cv_search_opendir
=$ac_res
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5949 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5951 if test "${ac_cv_search_opendir+set}" = set; then
5955 if test "${ac_cv_search_opendir+set}" = set; then
5958 ac_cv_search_opendir
=no
5961 LIBS
=$ac_func_search_save_LIBS
5963 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5964 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5965 ac_res
=$ac_cv_search_opendir
5966 if test "$ac_res" != no
; then
5967 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5973 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5974 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5975 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 cat >conftest.
$ac_ext <<_ACEOF
5981 cat confdefs.h
>>conftest.
$ac_ext
5982 cat >>conftest.
$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5988 return makedev(0, 0);
5993 rm -f conftest.
$ac_objext conftest
$ac_exeext
5994 if { (ac_try
="$ac_link"
5996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest$ac_exeext &&
6010 $as_test_x conftest$ac_exeext; then
6011 ac_cv_header_sys_types_h_makedev=yes
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 ac_cv_header_sys_types_h_makedev=no
6019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6020 conftest$ac_exeext conftest.$ac_ext
6023 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6024 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6026 if test $ac_cv_header_sys_types_h_makedev = no; then
6027 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6028 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6029 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6030 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6034 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6036 # Is the header compilable?
6037 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6038 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6039 cat >conftest.$ac_ext <<_ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6046 #include <sys/mkdev.h>
6048 rm -f conftest.$ac_objext
6049 if { (ac_try="$ac_compile"
6051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6052 *) ac_try_echo
=$ac_try;;
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_compile") 2>conftest.er1
6057 grep -v '^ *+' conftest.er1
>conftest.err
6059 cat conftest.err
>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
6064 } && test -s conftest.
$ac_objext; then
6065 ac_header_compiler
=yes
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.
$ac_ext >&5
6070 ac_header_compiler
=no
6073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6; }
6077 # Is the header present?
6078 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6079 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6080 cat >conftest.
$ac_ext <<_ACEOF
6083 cat confdefs.h
>>conftest.
$ac_ext
6084 cat >>conftest.
$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <sys/mkdev.h>
6088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null && {
6101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6104 ac_header_preproc=yes
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_header_preproc=no
6112 rm -f conftest.err conftest.$ac_ext
6113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114 echo "${ECHO_T}$ac_header_preproc" >&6; }
6116 # So? What about this header?
6117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6119 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6120 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6122 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6123 ac_header_preproc=yes
6126 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6127 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6129 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6131 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6139 ## ------------------------------------------------ ##
6140 ## Report this to http://www.python.org/python-bugs ##
6141 ## ------------------------------------------------ ##
6143 ) | sed "s/^/$as_me: WARNING: /" >&2
6146 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6147 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6148 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6157 if test $ac_cv_header_sys_mkdev_h = yes; then
6159 cat >>confdefs.h <<\_ACEOF
6160 #define MAJOR_IN_MKDEV 1
6167 if test $ac_cv_header_sys_mkdev_h = no; then
6168 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6169 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6170 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6171 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6175 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6177 # Is the header compilable?
6178 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6179 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6187 #include <sys/sysmacros.h>
6189 rm -f conftest.$ac_objext
6190 if { (ac_try="$ac_compile"
6192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6193 *) ac_try_echo
=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.
$ac_objext; then
6206 ac_header_compiler
=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 ac_header_compiler
=no
6214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6216 echo "${ECHO_T}$ac_header_compiler" >&6; }
6218 # Is the header present?
6219 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6220 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6221 cat >conftest.
$ac_ext <<_ACEOF
6224 cat confdefs.h
>>conftest.
$ac_ext
6225 cat >>conftest.
$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <sys/sysmacros.h>
6229 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6237 grep -v '^ *+' conftest.er1 >conftest.err
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } >/dev/null && {
6242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6243 test ! -s conftest.err
6245 ac_header_preproc=yes
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_header_preproc=no
6253 rm -f conftest.err conftest.$ac_ext
6254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6255 echo "${ECHO_T}$ac_header_preproc" >&6; }
6257 # So? What about this header?
6258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6260 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6261 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6263 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6264 ac_header_preproc=yes
6267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6268 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6270 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6272 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6280 ## ------------------------------------------------ ##
6281 ## Report this to http://www.python.org/python-bugs ##
6282 ## ------------------------------------------------ ##
6284 ) | sed "s/^/$as_me: WARNING: /" >&2
6287 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6288 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6289 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6295 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6298 if test $ac_cv_header_sys_sysmacros_h = yes; then
6300 cat >>confdefs.h <<\_ACEOF
6301 #define MAJOR_IN_SYSMACROS 1
6311 # On Solaris, term.h requires curses.h
6313 for ac_header in term.h
6315 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6328 #ifdef HAVE_CURSES_H
6333 #include <$ac_header>
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6339 *) ac_try_echo
=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6344 grep -v '^ *+' conftest.er1
>conftest.err
6346 cat conftest.err
>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.
$ac_objext; then
6352 eval "$as_ac_Header=yes"
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.
$ac_ext >&5
6357 eval "$as_ac_Header=no"
6360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6362 ac_res
=`eval echo '${'$as_ac_Header'}'`
6363 { echo "$as_me:$LINENO: result: $ac_res" >&5
6364 echo "${ECHO_T}$ac_res" >&6; }
6365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6366 cat >>confdefs.h
<<_ACEOF
6367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6375 # On Linux, netlink.h requires asm/types.h
6377 for ac_header
in linux
/netlink.h
6379 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6382 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 cat >conftest.
$ac_ext <<_ACEOF
6388 cat confdefs.h
>>conftest.
$ac_ext
6389 cat >>conftest.
$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6392 #ifdef HAVE_ASM_TYPES_H
6393 #include <asm/types.h>
6395 #ifdef HAVE_SYS_SOCKET_H
6396 #include <sys/socket.h>
6400 #include <$ac_header>
6402 rm -f conftest.
$ac_objext
6403 if { (ac_try
="$ac_compile"
6405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6411 grep -v '^ *+' conftest.er1 >conftest.err
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 eval "$as_ac_Header=yes"
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 eval "$as_ac_Header=no"
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 ac_res=`eval echo '${'$as_ac_Header'}'`
6430 { echo "$as_me:$LINENO: result: $ac_res" >&5
6431 echo "${ECHO_T}$ac_res" >&6; }
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6442 # checks for typedefs
6444 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6445 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6446 cat >conftest.$ac_ext <<_ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 $EGREP "clock_t" >/dev/null 2>&1; then
6461 cat >>confdefs.h <<\_ACEOF
6462 #define clock_t long
6469 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6470 echo "${ECHO_T}$was_it_defined" >&6; }
6472 # Check whether using makedev requires defining _OSF_SOURCE
6473 { echo "$as_me:$LINENO: checking for makedev" >&5
6474 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6475 cat >conftest.$ac_ext <<_ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 #include <sys/types.h>
6490 rm -f conftest.$ac_objext conftest$ac_exeext
6491 if { (ac_try="$ac_link"
6493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6494 *) ac_try_echo
=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_link") 2>conftest.er1
6499 grep -v '^ *+' conftest.er1
>conftest.err
6501 cat conftest.err
>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest
$ac_exeext &&
6507 $as_test_x conftest
$ac_exeext; then
6508 ac_cv_has_makedev
=yes
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.
$ac_ext >&5
6513 ac_cv_has_makedev
=no
6516 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6517 conftest
$ac_exeext conftest.
$ac_ext
6518 if test "$ac_cv_has_makedev" = "no"; then
6519 # we didn't link, try if _OSF_SOURCE will allow us to link
6520 cat >conftest.
$ac_ext <<_ACEOF
6523 cat confdefs.h
>>conftest.
$ac_ext
6524 cat >>conftest.
$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6527 #define _OSF_SOURCE 1
6528 #include <sys/types.h>
6538 rm -f conftest.
$ac_objext conftest
$ac_exeext
6539 if { (ac_try
="$ac_link"
6541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_link") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest$ac_exeext &&
6555 $as_test_x conftest$ac_exeext; then
6556 ac_cv_has_makedev=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_has_makedev=no
6564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6565 conftest$ac_exeext conftest.$ac_ext
6566 if test "$ac_cv_has_makedev" = "yes"; then
6568 cat >>confdefs.h <<\_ACEOF
6569 #define _OSF_SOURCE 1
6574 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6575 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6576 if test "$ac_cv_has_makedev" = "yes"; then
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_MAKEDEV 1
6584 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6585 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6586 # defined, but the compiler does not support pragma redefine_extname,
6587 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6588 # structures (such as rlimit64) without declaring them. As a
6589 # work-around, disable LFS on such configurations
6592 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6593 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6594 cat >conftest.$ac_ext <<_ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6601 #define _LARGEFILE_SOURCE 1
6602 #define _FILE_OFFSET_BITS 64
6603 #include <sys/resource.h>
6613 rm -f conftest.$ac_objext
6614 if { (ac_try="$ac_compile"
6616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6617 *) ac_try_echo
=$ac_try;;
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_compile") 2>conftest.er1
6622 grep -v '^ *+' conftest.er1
>conftest.err
6624 cat conftest.err
>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && {
6627 test -z "$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 } && test -s conftest.
$ac_objext; then
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.
$ac_ext >&5
6638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6639 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6640 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6641 if test "$sol_lfs_bug" = "yes"; then
6645 if test "$use_lfs" = "yes"; then
6646 # Two defines needed to enable largefile support on various platforms
6647 # These may affect some typedefs
6649 cat >>confdefs.h
<<\_ACEOF
6650 #define _LARGEFILE_SOURCE 1
6654 cat >>confdefs.h
<<\_ACEOF
6655 #define _FILE_OFFSET_BITS 64
6660 # Add some code to confdefs.h so that the test for off_t works on SCO
6661 cat >> confdefs.h
<<\EOF
6667 # Type availability checks
6668 { echo "$as_me:$LINENO: checking for mode_t" >&5
6669 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6670 if test "${ac_cv_type_mode_t+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.
$ac_ext <<_ACEOF
6676 cat confdefs.h
>>conftest.
$ac_ext
6677 cat >>conftest.
$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 $ac_includes_default
6680 typedef mode_t ac__type_new_;
6684 if ((ac__type_new_ *) 0)
6686 if (sizeof (ac__type_new_))
6692 rm -f conftest.
$ac_objext
6693 if { (ac_try
="$ac_compile"
6695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.$ac_objext; then
6709 ac_cv_type_mode_t=yes
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_cv_type_mode_t=no
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6720 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6721 if test $ac_cv_type_mode_t = yes; then
6725 cat >>confdefs.h <<_ACEOF
6731 { echo "$as_me:$LINENO: checking for off_t" >&5
6732 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6733 if test "${ac_cv_type_off_t+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6743 typedef off_t ac__type_new_;
6747 if ((ac__type_new_ *) 0)
6749 if (sizeof (ac__type_new_))
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6759 *) ac_try_echo
=$ac_try;;
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6764 grep -v '^ *+' conftest.er1
>conftest.err
6766 cat conftest.err
>&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.
$ac_objext; then
6772 ac_cv_type_off_t
=yes
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.
$ac_ext >&5
6780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6783 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6784 if test $ac_cv_type_off_t = yes; then
6788 cat >>confdefs.h
<<_ACEOF
6789 #define off_t long int
6794 { echo "$as_me:$LINENO: checking for pid_t" >&5
6795 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6796 if test "${ac_cv_type_pid_t+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 cat >conftest.
$ac_ext <<_ACEOF
6802 cat confdefs.h
>>conftest.
$ac_ext
6803 cat >>conftest.
$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6806 typedef pid_t ac__type_new_;
6810 if ((ac__type_new_ *) 0)
6812 if (sizeof (ac__type_new_))
6818 rm -f conftest.
$ac_objext
6819 if { (ac_try
="$ac_compile"
6821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6827 grep -v '^ *+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 ac_cv_type_pid_t=yes
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6846 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6847 if test $ac_cv_type_pid_t = yes; then
6851 cat >>confdefs.h <<_ACEOF
6857 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6858 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6859 if test "${ac_cv_type_signal+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #include <sys/types.h>
6874 return *(signal (0, 0)) (0) == 1;
6879 rm -f conftest.$ac_objext
6880 if { (ac_try="$ac_compile"
6882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6883 *) ac_try_echo
=$ac_try;;
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_compile") 2>conftest.er1
6888 grep -v '^ *+' conftest.er1
>conftest.err
6890 cat conftest.err
>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && {
6893 test -z "$ac_c_werror_flag" ||
6894 test ! -s conftest.err
6895 } && test -s conftest.
$ac_objext; then
6896 ac_cv_type_signal
=int
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.
$ac_ext >&5
6901 ac_cv_type_signal
=void
6904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6906 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6907 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6909 cat >>confdefs.h
<<_ACEOF
6910 #define RETSIGTYPE $ac_cv_type_signal
6914 { echo "$as_me:$LINENO: checking for size_t" >&5
6915 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6916 if test "${ac_cv_type_size_t+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.
$ac_ext <<_ACEOF
6922 cat confdefs.h
>>conftest.
$ac_ext
6923 cat >>conftest.
$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 $ac_includes_default
6926 typedef size_t ac__type_new_;
6930 if ((ac__type_new_ *) 0)
6932 if (sizeof (ac__type_new_))
6938 rm -f conftest.
$ac_objext
6939 if { (ac_try
="$ac_compile"
6941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_type_size_t=yes
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_cv_type_size_t=no
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6966 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6967 if test $ac_cv_type_size_t = yes; then
6971 cat >>confdefs.h <<_ACEOF
6972 #define size_t unsigned int
6977 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6978 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6979 if test "${ac_cv_type_uid_t+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #include <sys/types.h>
6991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992 $EGREP "uid_t" >/dev/null 2>&1; then
6993 ac_cv_type_uid_t=yes
7000 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7001 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7002 if test $ac_cv_type_uid_t = no; then
7004 cat >>confdefs.h <<\_ACEOF
7009 cat >>confdefs.h <<\_ACEOF
7015 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7016 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7017 if test "${ac_cv_type_ssize_t+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7027 typedef ssize_t ac__type_new_;
7031 if ((ac__type_new_ *) 0)
7033 if (sizeof (ac__type_new_))
7039 rm -f conftest.$ac_objext
7040 if { (ac_try="$ac_compile"
7042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7043 *) ac_try_echo
=$ac_try;;
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7048 grep -v '^ *+' conftest.er1
>conftest.err
7050 cat conftest.err
>&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.
$ac_objext; then
7056 ac_cv_type_ssize_t
=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.
$ac_ext >&5
7061 ac_cv_type_ssize_t
=no
7064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7066 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7067 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7068 if test $ac_cv_type_ssize_t = yes; then
7070 cat >>confdefs.h
<<\_ACEOF
7071 #define HAVE_SSIZE_T 1
7077 # Sizes of various common basic types
7078 # ANSI C requires sizeof(char) == 1, so no need to check it
7079 { echo "$as_me:$LINENO: checking for int" >&5
7080 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7081 if test "${ac_cv_type_int+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 cat >conftest.
$ac_ext <<_ACEOF
7087 cat confdefs.h
>>conftest.
$ac_ext
7088 cat >>conftest.
$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 $ac_includes_default
7091 typedef int ac__type_new_;
7095 if ((ac__type_new_ *) 0)
7097 if (sizeof (ac__type_new_))
7103 rm -f conftest.
$ac_objext
7104 if { (ac_try
="$ac_compile"
7106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7112 grep -v '^ *+' conftest.er1 >conftest.err
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_c_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.$ac_objext; then
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7131 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7133 # The cast to long int works around a bug in the HP C Compiler
7134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7135 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7136 # This bug is HP SR number 8606223364.
7137 { echo "$as_me:$LINENO: checking size of int" >&5
7138 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7139 if test "${ac_cv_sizeof_int+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 if test "$cross_compiling" = yes; then
7143 # Depending upon the size, compute the lo and hi bounds.
7144 cat >conftest.$ac_ext <<_ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 $ac_includes_default
7151 typedef int ac__type_sizeof_;
7155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7162 rm -f conftest.$ac_objext
7163 if { (ac_try="$ac_compile"
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_compile") 2>conftest.er1
7171 grep -v '^
*+' conftest.er1 >conftest.err
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } && {
7176 test -z "$ac_c_werror_flag" ||
7177 test ! -s conftest.err
7178 } && test -s conftest.$ac_objext; then
7181 cat >conftest.$ac_ext <<_ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 $ac_includes_default
7188 typedef int ac__type_sizeof_;
7192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7208 grep -v '^
*+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 ac_hi=$ac_mid; break
7218 echo "$as_me: failed program was:" >&5
7219 sed 's
/^
/|
/' conftest.$ac_ext >&5
7221 ac_lo=`expr $ac_mid + 1`
7222 if test $ac_lo -le $ac_mid; then
7226 ac_mid=`expr 2 '*' $ac_mid + 1`
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 echo "$as_me: failed program was:" >&5
7233 sed 's
/^
/|
/' conftest.$ac_ext >&5
7235 cat >conftest.$ac_ext <<_ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 $ac_includes_default
7242 typedef int ac__type_sizeof_;
7246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7253 rm -f conftest.$ac_objext
7254 if { (ac_try="$ac_compile"
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7262 grep -v '^
*+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest.$ac_objext; then
7272 cat >conftest.$ac_ext <<_ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 typedef int ac__type_sizeof_;
7283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7290 rm -f conftest.$ac_objext
7291 if { (ac_try="$ac_compile"
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compile") 2>conftest.er1
7299 grep -v '^
*+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest.$ac_objext; then
7307 ac_lo=$ac_mid; break
7309 echo "$as_me: failed program was:" >&5
7310 sed 's
/^
/|
/' conftest.$ac_ext >&5
7312 ac_hi=`expr '(' $ac_mid ')' - 1`
7313 if test $ac_mid -le $ac_hi; then
7317 ac_mid=`expr 2 '*' $ac_mid`
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 echo "$as_me: failed program was:" >&5
7324 sed 's
/^
/|
/' conftest.$ac_ext >&5
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 # Binary search between lo and hi bounds.
7334 while test "x$ac_lo" != "x$ac_hi"; do
7335 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 $ac_includes_default
7343 typedef int ac__type_sizeof_;
7347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^
*+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7373 echo "$as_me: failed program was:" >&5
7374 sed 's
/^
/|
/' conftest.$ac_ext >&5
7376 ac_lo=`expr '(' $ac_mid ')' + 1`
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 ?*) ac_cv_sizeof_int=$ac_lo;;
7383 '') if test "$ac_cv_type_int" = yes; then
7384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7385 See \`config.log' for more details.
" >&5
7386 echo "$as_me: error
: cannot compute sizeof
(int
)
7387 See \
`config.log' for more details." >&2;}
7388 { (exit 77); exit 77; }; }
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 $ac_includes_default
7401 typedef int ac__type_sizeof_;
7402 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7403 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7410 FILE *f = fopen ("conftest.val", "w");
7413 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7415 long int i = longval ();
7416 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7418 fprintf (f, "%ld\n", i);
7422 unsigned long int i = ulongval ();
7423 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7425 fprintf (f, "%lu\n", i);
7427 return ferror (f) || fclose (f) != 0;
7433 rm -f conftest$ac_exeext
7434 if { (ac_try="$ac_link"
7436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7437 *) ac_try_echo
=$ac_try;;
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_link") 2>&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7444 { (case "(($ac_try" in
7445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_try") 2>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_sizeof_int=`cat conftest.val
`
7455 echo "$as_me: program exited with status $ac_status" >&5
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7460 if test "$ac_cv_type_int" = yes; then
7461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7462 See \`config.log
' for more details." >&5
7463 echo "$as_me: error: cannot compute sizeof (int)
7464 See \`config.log' for more details.
" >&2;}
7465 { (exit 77); exit 77; }; }
7470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7474 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7475 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7479 cat >>confdefs.h <<_ACEOF
7480 #define SIZEOF_INT $ac_cv_sizeof_int
7484 { echo "$as_me:$LINENO: checking
for long
" >&5
7485 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7486 if test "${ac_cv_type_long+set}" = set; then
7487 echo $ECHO_N "(cached
) $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7496 typedef long ac__type_new_;
7500 if ((ac__type_new_ *) 0)
7502 if (sizeof (ac__type_new_))
7508 rm -f conftest.$ac_objext
7509 if { (ac_try="$ac_compile"
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_compile") 2>conftest.er1
7517 grep -v '^ *+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest.$ac_objext; then
7527 echo "$as_me: failed program was
:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7536 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7538 # The cast to long int works around a bug in the HP C Compiler
7539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7541 # This bug is HP SR number 8606223364.
7542 { echo "$as_me:$LINENO: checking size of long
" >&5
7543 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7544 if test "${ac_cv_sizeof_long+set}" = set; then
7545 echo $ECHO_N "(cached
) $ECHO_C" >&6
7547 if test "$cross_compiling" = yes; then
7548 # Depending upon the size, compute the lo and hi bounds.
7549 cat >conftest.$ac_ext <<_ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7555 $ac_includes_default
7556 typedef long ac__type_sizeof_;
7560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 $ac_includes_default
7593 typedef long ac__type_sizeof_;
7597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7604 rm -f conftest.$ac_objext
7605 if { (ac_try="$ac_compile"
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 ac_hi=$ac_mid; break
7623 echo "$as_me: failed program was
:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 ac_lo=`expr $ac_mid + 1`
7627 if test $ac_lo -le $ac_mid; then
7631 ac_mid=`expr 2 '*' $ac_mid + 1`
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me: failed program was
:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 cat >conftest.$ac_ext <<_ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 $ac_includes_default
7647 typedef long ac__type_sizeof_;
7651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7658 rm -f conftest.$ac_objext
7659 if { (ac_try="$ac_compile"
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_compile") 2>conftest.er1
7667 grep -v '^ *+' conftest.er1 >conftest.err
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7671 (exit $ac_status); } && {
7672 test -z "$ac_c_werror_flag" ||
7673 test ! -s conftest.err
7674 } && test -s conftest.$ac_objext; then
7677 cat >conftest.$ac_ext <<_ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 $ac_includes_default
7684 typedef long ac__type_sizeof_;
7688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 ac_lo=$ac_mid; break
7714 echo "$as_me: failed program was
:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 ac_hi=`expr '(' $ac_mid ')' - 1`
7718 if test $ac_mid -le $ac_hi; then
7722 ac_mid=`expr 2 '*' $ac_mid`
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 echo "$as_me: failed program was
:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 # Binary search between lo and hi bounds.
7739 while test "x
$ac_lo" != "x
$ac_hi"; do
7740 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 $ac_includes_default
7748 typedef long ac__type_sizeof_;
7752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7759 rm -f conftest.$ac_objext
7760 if { (ac_try="$ac_compile"
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.$ac_objext; then
7778 echo "$as_me: failed program was
:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7781 ac_lo=`expr '(' $ac_mid ')' + 1`
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 ?*) ac_cv_sizeof_long=$ac_lo;;
7788 '') if test "$ac_cv_type_long" = yes; then
7789 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7790 See \
`config.log' for more details." >&5
7791 echo "$as_me: error: cannot compute sizeof (long)
7792 See \`config.log
' for more details." >&2;}
7793 { (exit 77); exit 77; }; }
7799 cat >conftest.$ac_ext <<_ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7806 typedef long ac__type_sizeof_;
7807 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7808 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7815 FILE *f = fopen ("conftest.val", "w");
7818 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7820 long int i = longval ();
7821 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7823 fprintf (f, "%ld\n", i);
7827 unsigned long int i = ulongval ();
7828 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7830 fprintf (f, "%lu\n", i);
7832 return ferror (f) || fclose (f) != 0;
7838 rm -f conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7849 { (case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_try") 2>&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_cv_sizeof_long=`cat conftest.val`
7860 echo "$as_me: program exited with status $ac_status" >&5
7861 echo "$as_me: failed program was:" >&5
7862 sed 's
/^
/|
/' conftest.$ac_ext >&5
7865 if test "$ac_cv_type_long" = yes; then
7866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7867 See \`config.log' for more details.
" >&5
7868 echo "$as_me: error
: cannot compute sizeof
(long
)
7869 See \
`config.log' for more details." >&2;}
7870 { (exit 77); exit 77; }; }
7875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7879 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7880 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7884 cat >>confdefs.h <<_ACEOF
7885 #define SIZEOF_LONG $ac_cv_sizeof_long
7889 { echo "$as_me:$LINENO: checking for void *" >&5
7890 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7891 if test "${ac_cv_type_void_p+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 $ac_includes_default
7901 typedef void * ac__type_new_;
7905 if ((ac__type_new_ *) 0)
7907 if (sizeof (ac__type_new_))
7913 rm -f conftest.$ac_objext
7914 if { (ac_try="$ac_compile"
7916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7917 *) ac_try_echo
=$ac_try;;
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_compile") 2>conftest.er1
7922 grep -v '^ *+' conftest.er1
>conftest.err
7924 cat conftest.err
>&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } && {
7927 test -z "$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 } && test -s conftest.
$ac_objext; then
7930 ac_cv_type_void_p
=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.
$ac_ext >&5
7935 ac_cv_type_void_p
=no
7938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7940 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7941 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7943 # The cast to long int works around a bug in the HP C Compiler
7944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7946 # This bug is HP SR number 8606223364.
7947 { echo "$as_me:$LINENO: checking size of void *" >&5
7948 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7949 if test "${ac_cv_sizeof_void_p+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 if test "$cross_compiling" = yes; then
7953 # Depending upon the size, compute the lo and hi bounds.
7954 cat >conftest.
$ac_ext <<_ACEOF
7957 cat confdefs.h
>>conftest.
$ac_ext
7958 cat >>conftest.
$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 $ac_includes_default
7961 typedef void * ac__type_sizeof_;
7965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7972 rm -f conftest.
$ac_objext
7973 if { (ac_try
="$ac_compile"
7975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_compile") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest.$ac_objext; then
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7998 typedef void * ac__type_sizeof_;
8002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8013 *) ac_try_echo
=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8018 grep -v '^ *+' conftest.er1
>conftest.err
8020 cat conftest.err
>&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.
$ac_objext; then
8026 ac_hi
=$ac_mid; break
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.
$ac_ext >&5
8031 ac_lo
=`expr $ac_mid + 1`
8032 if test $ac_lo -le $ac_mid; then
8036 ac_mid
=`expr 2 '*' $ac_mid + 1`
8039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.
$ac_ext >&5
8045 cat >conftest.
$ac_ext <<_ACEOF
8048 cat confdefs.h
>>conftest.
$ac_ext
8049 cat >>conftest.
$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 $ac_includes_default
8052 typedef void * ac__type_sizeof_;
8056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8063 rm -f conftest.
$ac_objext
8064 if { (ac_try
="$ac_compile"
8066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 $ac_includes_default
8089 typedef void * ac__type_sizeof_;
8093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8104 *) ac_try_echo
=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8109 grep -v '^ *+' conftest.er1
>conftest.err
8111 cat conftest.err
>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.
$ac_objext; then
8117 ac_lo
=$ac_mid; break
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.
$ac_ext >&5
8122 ac_hi
=`expr '(' $ac_mid ')' - 1`
8123 if test $ac_mid -le $ac_hi; then
8127 ac_mid
=`expr 2 '*' $ac_mid`
8130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.
$ac_ext >&5
8139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8143 # Binary search between lo and hi bounds.
8144 while test "x$ac_lo" != "x$ac_hi"; do
8145 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8146 cat >conftest.
$ac_ext <<_ACEOF
8149 cat confdefs.h
>>conftest.
$ac_ext
8150 cat >>conftest.
$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 typedef void * ac__type_sizeof_;
8157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8164 rm -f conftest.
$ac_objext
8165 if { (ac_try
="$ac_compile"
8167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 ac_lo=`expr '(' $ac_mid ')' + 1`
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8193 '') if test "$ac_cv_type_void_p" = yes; then
8194 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8195 See \`config.log
' for more details." >&5
8196 echo "$as_me: error: cannot compute sizeof (void *)
8197 See \`config.log' for more details.
" >&2;}
8198 { (exit 77); exit 77; }; }
8200 ac_cv_sizeof_void_p=0
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 typedef void * ac__type_sizeof_;
8212 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8213 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8220 FILE *f = fopen ("conftest.val
", "w
");
8223 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8225 long int i = longval ();
8226 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8228 fprintf (f, "%ld
\n", i);
8232 unsigned long int i = ulongval ();
8233 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8235 fprintf (f, "%lu
\n", i);
8237 return ferror (f) || fclose (f) != 0;
8243 rm -f conftest$ac_exeext
8244 if { (ac_try="$ac_link"
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_link") 2>&5
8252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8254 { (case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_try") 2>&5
8261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_sizeof_void_p=`cat conftest.val`
8265 echo "$as_me: program exited with status
$ac_status" >&5
8266 echo "$as_me: failed program was
:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8270 if test "$ac_cv_type_void_p" = yes; then
8271 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8272 See \
`config.log' for more details." >&5
8273 echo "$as_me: error: cannot compute sizeof (void *)
8274 See \`config.log
' for more details." >&2;}
8275 { (exit 77); exit 77; }; }
8277 ac_cv_sizeof_void_p=0
8280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8284 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8285 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8289 cat >>confdefs.h <<_ACEOF
8290 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8294 { echo "$as_me:$LINENO: checking for short" >&5
8295 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8296 if test "${ac_cv_type_short+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 typedef short ac__type_new_;
8310 if ((ac__type_new_ *) 0)
8312 if (sizeof (ac__type_new_))
8318 rm -f conftest.$ac_objext
8319 if { (ac_try="$ac_compile"
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_compile") 2>conftest.er1
8327 grep -v '^
*+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 } && test -s conftest.$ac_objext; then
8335 ac_cv_type_short=yes
8337 echo "$as_me: failed program was:" >&5
8338 sed 's
/^
/|
/' conftest.$ac_ext >&5
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8346 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8348 # The cast to long int works around a bug in the HP C Compiler
8349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8351 # This bug is HP SR number 8606223364.
8352 { echo "$as_me:$LINENO: checking size of short" >&5
8353 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8354 if test "${ac_cv_sizeof_short+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 if test "$cross_compiling" = yes; then
8358 # Depending upon the size, compute the lo and hi bounds.
8359 cat >conftest.
$ac_ext <<_ACEOF
8362 cat confdefs.h
>>conftest.
$ac_ext
8363 cat >>conftest.
$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 typedef short ac__type_sizeof_;
8370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8377 rm -f conftest.
$ac_objext
8378 if { (ac_try
="$ac_compile"
8380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_compile") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest.$ac_objext; then
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 typedef short ac__type_sizeof_;
8407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8414 rm -f conftest.$ac_objext
8415 if { (ac_try="$ac_compile"
8417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8418 *) ac_try_echo
=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8423 grep -v '^ *+' conftest.er1
>conftest.err
8425 cat conftest.err
>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && {
8428 test -z "$ac_c_werror_flag" ||
8429 test ! -s conftest.err
8430 } && test -s conftest.
$ac_objext; then
8431 ac_hi
=$ac_mid; break
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.
$ac_ext >&5
8436 ac_lo
=`expr $ac_mid + 1`
8437 if test $ac_lo -le $ac_mid; then
8441 ac_mid
=`expr 2 '*' $ac_mid + 1`
8444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.
$ac_ext >&5
8450 cat >conftest.
$ac_ext <<_ACEOF
8453 cat confdefs.h
>>conftest.
$ac_ext
8454 cat >>conftest.
$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 typedef short ac__type_sizeof_;
8461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8468 rm -f conftest.
$ac_objext
8469 if { (ac_try
="$ac_compile"
8471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest.$ac_objext; then
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 $ac_includes_default
8494 typedef short ac__type_sizeof_;
8498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8509 *) ac_try_echo
=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1
>conftest.err
8516 cat conftest.err
>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.
$ac_objext; then
8522 ac_lo
=$ac_mid; break
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.
$ac_ext >&5
8527 ac_hi
=`expr '(' $ac_mid ')' - 1`
8528 if test $ac_mid -le $ac_hi; then
8532 ac_mid
=`expr 2 '*' $ac_mid`
8535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8548 # Binary search between lo and hi bounds.
8549 while test "x$ac_lo" != "x$ac_hi"; do
8550 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8551 cat >conftest.
$ac_ext <<_ACEOF
8554 cat confdefs.h
>>conftest.
$ac_ext
8555 cat >>conftest.
$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 typedef short ac__type_sizeof_;
8562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8569 rm -f conftest.
$ac_objext
8570 if { (ac_try
="$ac_compile"
8572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_compile") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest.$ac_objext; then
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_lo=`expr '(' $ac_mid ')' + 1`
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 ?*) ac_cv_sizeof_short=$ac_lo;;
8598 '') if test "$ac_cv_type_short" = yes; then
8599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8600 See \`config.log
' for more details." >&5
8601 echo "$as_me: error: cannot compute sizeof (short)
8602 See \`config.log' for more details.
" >&2;}
8603 { (exit 77); exit 77; }; }
8605 ac_cv_sizeof_short=0
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 typedef short ac__type_sizeof_;
8617 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8618 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8625 FILE *f = fopen ("conftest.val
", "w
");
8628 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8630 long int i = longval ();
8631 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8633 fprintf (f, "%ld
\n", i);
8637 unsigned long int i = ulongval ();
8638 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8640 fprintf (f, "%lu
\n", i);
8642 return ferror (f) || fclose (f) != 0;
8648 rm -f conftest$ac_exeext
8649 if { (ac_try="$ac_link"
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_link") 2>&5
8657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_sizeof_short=`cat conftest.val`
8670 echo "$as_me: program exited with status
$ac_status" >&5
8671 echo "$as_me: failed program was
:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8675 if test "$ac_cv_type_short" = yes; then
8676 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8677 See \
`config.log' for more details." >&5
8678 echo "$as_me: error: cannot compute sizeof (short)
8679 See \`config.log
' for more details." >&2;}
8680 { (exit 77); exit 77; }; }
8682 ac_cv_sizeof_short=0
8685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8689 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8690 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8694 cat >>confdefs.h <<_ACEOF
8695 #define SIZEOF_SHORT $ac_cv_sizeof_short
8699 { echo "$as_me:$LINENO: checking for float" >&5
8700 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8701 if test "${ac_cv_type_float+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8711 typedef float ac__type_new_;
8715 if ((ac__type_new_ *) 0)
8717 if (sizeof (ac__type_new_))
8723 rm -f conftest.$ac_objext
8724 if { (ac_try="$ac_compile"
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_compile") 2>conftest.er1
8732 grep -v '^
*+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest.$ac_objext; then
8740 ac_cv_type_float=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's
/^
/|
/' conftest.$ac_ext >&5
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8751 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8753 # The cast to long int works around a bug in the HP C Compiler
8754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8756 # This bug is HP SR number 8606223364.
8757 { echo "$as_me:$LINENO: checking size of float" >&5
8758 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8759 if test "${ac_cv_sizeof_float+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 if test "$cross_compiling" = yes; then
8763 # Depending upon the size, compute the lo and hi bounds.
8764 cat >conftest.
$ac_ext <<_ACEOF
8767 cat confdefs.h
>>conftest.
$ac_ext
8768 cat >>conftest.
$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8770 $ac_includes_default
8771 typedef float ac__type_sizeof_;
8775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8782 rm -f conftest.
$ac_objext
8783 if { (ac_try
="$ac_compile"
8785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_compile") 2>conftest.er1
8791 grep -v '^ *+' conftest.er1 >conftest.err
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && {
8796 test -z "$ac_c_werror_flag" ||
8797 test ! -s conftest.err
8798 } && test -s conftest.$ac_objext; then
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8808 typedef float ac__type_sizeof_;
8812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8823 *) ac_try_echo
=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8828 grep -v '^ *+' conftest.er1
>conftest.err
8830 cat conftest.err
>&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.
$ac_objext; then
8836 ac_hi
=$ac_mid; break
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8841 ac_lo
=`expr $ac_mid + 1`
8842 if test $ac_lo -le $ac_mid; then
8846 ac_mid
=`expr 2 '*' $ac_mid + 1`
8849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.
$ac_ext >&5
8855 cat >conftest.
$ac_ext <<_ACEOF
8858 cat confdefs.h
>>conftest.
$ac_ext
8859 cat >>conftest.
$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 $ac_includes_default
8862 typedef float ac__type_sizeof_;
8866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8873 rm -f conftest.
$ac_objext
8874 if { (ac_try
="$ac_compile"
8876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8882 grep -v '^ *+' conftest.er1 >conftest.err
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 $ac_includes_default
8899 typedef float ac__type_sizeof_;
8903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8914 *) ac_try_echo
=$ac_try;;
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8919 grep -v '^ *+' conftest.er1
>conftest.err
8921 cat conftest.err
>&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.
$ac_objext; then
8927 ac_lo
=$ac_mid; break
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.
$ac_ext >&5
8932 ac_hi
=`expr '(' $ac_mid ')' - 1`
8933 if test $ac_mid -le $ac_hi; then
8937 ac_mid
=`expr 2 '*' $ac_mid`
8940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.
$ac_ext >&5
8949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8953 # Binary search between lo and hi bounds.
8954 while test "x$ac_lo" != "x$ac_hi"; do
8955 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8956 cat >conftest.
$ac_ext <<_ACEOF
8959 cat confdefs.h
>>conftest.
$ac_ext
8960 cat >>conftest.
$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 $ac_includes_default
8963 typedef float ac__type_sizeof_;
8967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8974 rm -f conftest.
$ac_objext
8975 if { (ac_try
="$ac_compile"
8977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_compile") 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } && {
8988 test -z "$ac_c_werror_flag" ||
8989 test ! -s conftest.err
8990 } && test -s conftest.$ac_objext; then
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_lo=`expr '(' $ac_mid ')' + 1`
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 ?*) ac_cv_sizeof_float=$ac_lo;;
9003 '') if test "$ac_cv_type_float" = yes; then
9004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9005 See \`config.log
' for more details." >&5
9006 echo "$as_me: error: cannot compute sizeof (float)
9007 See \`config.log' for more details.
" >&2;}
9008 { (exit 77); exit 77; }; }
9010 ac_cv_sizeof_float=0
9014 cat >conftest.$ac_ext <<_ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020 $ac_includes_default
9021 typedef float ac__type_sizeof_;
9022 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9023 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9030 FILE *f = fopen ("conftest.val
", "w
");
9033 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9035 long int i = longval ();
9036 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9038 fprintf (f, "%ld
\n", i);
9042 unsigned long int i = ulongval ();
9043 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9045 fprintf (f, "%lu
\n", i);
9047 return ferror (f) || fclose (f) != 0;
9053 rm -f conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>&5
9062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_sizeof_float=`cat conftest.val`
9075 echo "$as_me: program exited with status
$ac_status" >&5
9076 echo "$as_me: failed program was
:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9080 if test "$ac_cv_type_float" = yes; then
9081 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9082 See \
`config.log' for more details." >&5
9083 echo "$as_me: error: cannot compute sizeof (float)
9084 See \`config.log
' for more details." >&2;}
9085 { (exit 77); exit 77; }; }
9087 ac_cv_sizeof_float=0
9090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9094 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9095 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9099 cat >>confdefs.h <<_ACEOF
9100 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9104 { echo "$as_me:$LINENO: checking for double" >&5
9105 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9106 if test "${ac_cv_type_double+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 $ac_includes_default
9116 typedef double ac__type_new_;
9120 if ((ac__type_new_ *) 0)
9122 if (sizeof (ac__type_new_))
9128 rm -f conftest.$ac_objext
9129 if { (ac_try="$ac_compile"
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_compile") 2>conftest.er1
9137 grep -v '^
*+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest.$ac_objext; then
9145 ac_cv_type_double=yes
9147 echo "$as_me: failed program was:" >&5
9148 sed 's
/^
/|
/' conftest.$ac_ext >&5
9150 ac_cv_type_double=no
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9156 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9158 # The cast to long int works around a bug in the HP C Compiler
9159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9161 # This bug is HP SR number 8606223364.
9162 { echo "$as_me:$LINENO: checking size of double" >&5
9163 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9164 if test "${ac_cv_sizeof_double+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 if test "$cross_compiling" = yes; then
9168 # Depending upon the size, compute the lo and hi bounds.
9169 cat >conftest.
$ac_ext <<_ACEOF
9172 cat confdefs.h
>>conftest.
$ac_ext
9173 cat >>conftest.
$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 typedef double ac__type_sizeof_;
9180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9187 rm -f conftest.
$ac_objext
9188 if { (ac_try
="$ac_compile"
9190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_compile") 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } && {
9201 test -z "$ac_c_werror_flag" ||
9202 test ! -s conftest.err
9203 } && test -s conftest.$ac_objext; then
9206 cat >conftest.$ac_ext <<_ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 $ac_includes_default
9213 typedef double ac__type_sizeof_;
9217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9224 rm -f conftest.$ac_objext
9225 if { (ac_try="$ac_compile"
9227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9228 *) ac_try_echo
=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_compile") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1
>conftest.err
9235 cat conftest.err
>&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest.
$ac_objext; then
9241 ac_hi
=$ac_mid; break
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.
$ac_ext >&5
9246 ac_lo
=`expr $ac_mid + 1`
9247 if test $ac_lo -le $ac_mid; then
9251 ac_mid
=`expr 2 '*' $ac_mid + 1`
9254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.
$ac_ext >&5
9260 cat >conftest.
$ac_ext <<_ACEOF
9263 cat confdefs.h
>>conftest.
$ac_ext
9264 cat >>conftest.
$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 $ac_includes_default
9267 typedef double ac__type_sizeof_;
9271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9278 rm -f conftest.
$ac_objext
9279 if { (ac_try
="$ac_compile"
9281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9297 cat >conftest.$ac_ext <<_ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303 $ac_includes_default
9304 typedef double ac__type_sizeof_;
9308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9315 rm -f conftest.$ac_objext
9316 if { (ac_try="$ac_compile"
9318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9319 *) ac_try_echo
=$ac_try;;
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_compile") 2>conftest.er1
9324 grep -v '^ *+' conftest.er1
>conftest.err
9326 cat conftest.err
>&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest.
$ac_objext; then
9332 ac_lo
=$ac_mid; break
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.
$ac_ext >&5
9337 ac_hi
=`expr '(' $ac_mid ')' - 1`
9338 if test $ac_mid -le $ac_hi; then
9342 ac_mid
=`expr 2 '*' $ac_mid`
9345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.
$ac_ext >&5
9354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9358 # Binary search between lo and hi bounds.
9359 while test "x$ac_lo" != "x$ac_hi"; do
9360 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9361 cat >conftest.
$ac_ext <<_ACEOF
9364 cat confdefs.h
>>conftest.
$ac_ext
9365 cat >>conftest.
$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9368 typedef double ac__type_sizeof_;
9372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9379 rm -f conftest.
$ac_objext
9380 if { (ac_try
="$ac_compile"
9382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_lo=`expr '(' $ac_mid ')' + 1`
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 ?*) ac_cv_sizeof_double=$ac_lo;;
9408 '') if test "$ac_cv_type_double" = yes; then
9409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9410 See \`config.log
' for more details." >&5
9411 echo "$as_me: error: cannot compute sizeof (double)
9412 See \`config.log' for more details.
" >&2;}
9413 { (exit 77); exit 77; }; }
9415 ac_cv_sizeof_double=0
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 $ac_includes_default
9426 typedef double ac__type_sizeof_;
9427 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9428 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9435 FILE *f = fopen ("conftest.val
", "w
");
9438 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9440 long int i = longval ();
9441 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9443 fprintf (f, "%ld
\n", i);
9447 unsigned long int i = ulongval ();
9448 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9450 fprintf (f, "%lu
\n", i);
9452 return ferror (f) || fclose (f) != 0;
9458 rm -f conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>&5
9467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9469 { (case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_try") 2>&5
9476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 ac_cv_sizeof_double=`cat conftest.val`
9480 echo "$as_me: program exited with status
$ac_status" >&5
9481 echo "$as_me: failed program was
:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9485 if test "$ac_cv_type_double" = yes; then
9486 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9487 See \
`config.log' for more details." >&5
9488 echo "$as_me: error: cannot compute sizeof (double)
9489 See \`config.log
' for more details." >&2;}
9490 { (exit 77); exit 77; }; }
9492 ac_cv_sizeof_double=0
9495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9499 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9500 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9504 cat >>confdefs.h <<_ACEOF
9505 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9509 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9510 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9511 if test "${ac_cv_type_fpos_t+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 $ac_includes_default
9521 typedef fpos_t ac__type_new_;
9525 if ((ac__type_new_ *) 0)
9527 if (sizeof (ac__type_new_))
9533 rm -f conftest.$ac_objext
9534 if { (ac_try="$ac_compile"
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9542 grep -v '^
*+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 ac_cv_type_fpos_t=yes
9552 echo "$as_me: failed program was:" >&5
9553 sed 's
/^
/|
/' conftest.$ac_ext >&5
9555 ac_cv_type_fpos_t=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9561 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9563 # The cast to long int works around a bug in the HP C Compiler
9564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9566 # This bug is HP SR number 8606223364.
9567 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9568 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9569 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 if test "$cross_compiling" = yes; then
9573 # Depending upon the size, compute the lo and hi bounds.
9574 cat >conftest.
$ac_ext <<_ACEOF
9577 cat confdefs.h
>>conftest.
$ac_ext
9578 cat >>conftest.
$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 $ac_includes_default
9581 typedef fpos_t ac__type_sizeof_;
9585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9592 rm -f conftest.
$ac_objext
9593 if { (ac_try
="$ac_compile"
9595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_compile") 2>conftest.er1
9601 grep -v '^ *+' conftest.er1 >conftest.err
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } && {
9606 test -z "$ac_c_werror_flag" ||
9607 test ! -s conftest.err
9608 } && test -s conftest.$ac_objext; then
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 $ac_includes_default
9618 typedef fpos_t ac__type_sizeof_;
9622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9629 rm -f conftest.$ac_objext
9630 if { (ac_try="$ac_compile"
9632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9633 *) ac_try_echo
=$ac_try;;
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_compile") 2>conftest.er1
9638 grep -v '^ *+' conftest.er1
>conftest.err
9640 cat conftest.err
>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest.
$ac_objext; then
9646 ac_hi
=$ac_mid; break
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.
$ac_ext >&5
9651 ac_lo
=`expr $ac_mid + 1`
9652 if test $ac_lo -le $ac_mid; then
9656 ac_mid
=`expr 2 '*' $ac_mid + 1`
9659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.
$ac_ext >&5
9665 cat >conftest.
$ac_ext <<_ACEOF
9668 cat confdefs.h
>>conftest.
$ac_ext
9669 cat >>conftest.
$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 $ac_includes_default
9672 typedef fpos_t ac__type_sizeof_;
9676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9683 rm -f conftest.
$ac_objext
9684 if { (ac_try
="$ac_compile"
9686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_compile") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest.$ac_objext; then
9702 cat >conftest.$ac_ext <<_ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 $ac_includes_default
9709 typedef fpos_t ac__type_sizeof_;
9713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9720 rm -f conftest.$ac_objext
9721 if { (ac_try="$ac_compile"
9723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9724 *) ac_try_echo
=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_compile") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1
>conftest.err
9731 cat conftest.err
>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest.
$ac_objext; then
9737 ac_lo
=$ac_mid; break
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.
$ac_ext >&5
9742 ac_hi
=`expr '(' $ac_mid ')' - 1`
9743 if test $ac_mid -le $ac_hi; then
9747 ac_mid
=`expr 2 '*' $ac_mid`
9750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.
$ac_ext >&5
9759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9763 # Binary search between lo and hi bounds.
9764 while test "x$ac_lo" != "x$ac_hi"; do
9765 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9766 cat >conftest.
$ac_ext <<_ACEOF
9769 cat confdefs.h
>>conftest.
$ac_ext
9770 cat >>conftest.
$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 $ac_includes_default
9773 typedef fpos_t ac__type_sizeof_;
9777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9784 rm -f conftest.
$ac_objext
9785 if { (ac_try
="$ac_compile"
9787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_compile") 2>conftest.er1
9793 grep -v '^ *+' conftest.er1 >conftest.err
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } && {
9798 test -z "$ac_c_werror_flag" ||
9799 test ! -s conftest.err
9800 } && test -s conftest.$ac_objext; then
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 ac_lo=`expr '(' $ac_mid ')' + 1`
9809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9813 '') if test "$ac_cv_type_fpos_t" = yes; then
9814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9815 See \`config.log
' for more details." >&5
9816 echo "$as_me: error: cannot compute sizeof (fpos_t)
9817 See \`config.log' for more details.
" >&2;}
9818 { (exit 77); exit 77; }; }
9820 ac_cv_sizeof_fpos_t=0
9824 cat >conftest.$ac_ext <<_ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 $ac_includes_default
9831 typedef fpos_t ac__type_sizeof_;
9832 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9833 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9840 FILE *f = fopen ("conftest.val
", "w
");
9843 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9845 long int i = longval ();
9846 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9848 fprintf (f, "%ld
\n", i);
9852 unsigned long int i = ulongval ();
9853 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9855 fprintf (f, "%lu
\n", i);
9857 return ferror (f) || fclose (f) != 0;
9863 rm -f conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>&5
9872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_sizeof_fpos_t=`cat conftest.val`
9885 echo "$as_me: program exited with status
$ac_status" >&5
9886 echo "$as_me: failed program was
:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9890 if test "$ac_cv_type_fpos_t" = yes; then
9891 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9892 See \
`config.log' for more details." >&5
9893 echo "$as_me: error: cannot compute sizeof (fpos_t)
9894 See \`config.log
' for more details." >&2;}
9895 { (exit 77); exit 77; }; }
9897 ac_cv_sizeof_fpos_t=0
9900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9904 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9905 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9909 cat >>confdefs.h <<_ACEOF
9910 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9914 { echo "$as_me:$LINENO: checking for size_t" >&5
9915 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9916 if test "${ac_cv_type_size_t+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 cat >conftest.$ac_ext <<_ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 $ac_includes_default
9926 typedef size_t ac__type_new_;
9930 if ((ac__type_new_ *) 0)
9932 if (sizeof (ac__type_new_))
9938 rm -f conftest.$ac_objext
9939 if { (ac_try="$ac_compile"
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_compile") 2>conftest.er1
9947 grep -v '^
*+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest.$ac_objext; then
9955 ac_cv_type_size_t=yes
9957 echo "$as_me: failed program was:" >&5
9958 sed 's
/^
/|
/' conftest.$ac_ext >&5
9960 ac_cv_type_size_t=no
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9966 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9968 # The cast to long int works around a bug in the HP C Compiler
9969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9971 # This bug is HP SR number 8606223364.
9972 { echo "$as_me:$LINENO: checking size of size_t" >&5
9973 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9974 if test "${ac_cv_sizeof_size_t+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 if test "$cross_compiling" = yes; then
9978 # Depending upon the size, compute the lo and hi bounds.
9979 cat >conftest.
$ac_ext <<_ACEOF
9982 cat confdefs.h
>>conftest.
$ac_ext
9983 cat >>conftest.
$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 $ac_includes_default
9986 typedef size_t ac__type_sizeof_;
9990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9997 rm -f conftest.
$ac_objext
9998 if { (ac_try
="$ac_compile"
10000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_compile") 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest.$ac_objext; then
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 $ac_includes_default
10023 typedef size_t ac__type_sizeof_;
10027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10034 rm -f conftest.$ac_objext
10035 if { (ac_try="$ac_compile"
10036 case "(($ac_try" in
10037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10038 *) ac_try_echo
=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_compile") 2>conftest.er1
10043 grep -v '^ *+' conftest.er1
>conftest.err
10045 cat conftest.err
>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && {
10048 test -z "$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 } && test -s conftest.
$ac_objext; then
10051 ac_hi
=$ac_mid; break
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.
$ac_ext >&5
10056 ac_lo
=`expr $ac_mid + 1`
10057 if test $ac_lo -le $ac_mid; then
10061 ac_mid
=`expr 2 '*' $ac_mid + 1`
10064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.
$ac_ext >&5
10070 cat >conftest.
$ac_ext <<_ACEOF
10073 cat confdefs.h
>>conftest.
$ac_ext
10074 cat >>conftest.
$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 $ac_includes_default
10077 typedef size_t ac__type_sizeof_;
10081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10088 rm -f conftest.
$ac_objext
10089 if { (ac_try
="$ac_compile"
10090 case "(($ac_try" in
10091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_compile") 2>conftest.er1
10097 grep -v '^ *+' conftest.er1 >conftest.err
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } && {
10102 test -z "$ac_c_werror_flag" ||
10103 test ! -s conftest.err
10104 } && test -s conftest.$ac_objext; then
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 $ac_includes_default
10114 typedef size_t ac__type_sizeof_;
10118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10129 *) ac_try_echo
=$ac_try;;
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_compile") 2>conftest.er1
10134 grep -v '^ *+' conftest.er1
>conftest.err
10136 cat conftest.err
>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && {
10139 test -z "$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 } && test -s conftest.
$ac_objext; then
10142 ac_lo
=$ac_mid; break
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.
$ac_ext >&5
10147 ac_hi
=`expr '(' $ac_mid ')' - 1`
10148 if test $ac_mid -le $ac_hi; then
10152 ac_mid
=`expr 2 '*' $ac_mid`
10155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.
$ac_ext >&5
10164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10168 # Binary search between lo and hi bounds.
10169 while test "x$ac_lo" != "x$ac_hi"; do
10170 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10171 cat >conftest.
$ac_ext <<_ACEOF
10174 cat confdefs.h
>>conftest.
$ac_ext
10175 cat >>conftest.
$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 $ac_includes_default
10178 typedef size_t ac__type_sizeof_;
10182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10189 rm -f conftest.
$ac_objext
10190 if { (ac_try
="$ac_compile"
10191 case "(($ac_try" in
10192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196 (eval "$ac_compile") 2>conftest.er1
10198 grep -v '^ *+' conftest.er1 >conftest.err
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } && {
10203 test -z "$ac_c_werror_flag" ||
10204 test ! -s conftest.err
10205 } && test -s conftest.$ac_objext; then
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_lo=`expr '(' $ac_mid ')' + 1`
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10218 '') if test "$ac_cv_type_size_t" = yes; then
10219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10220 See \`config.log
' for more details." >&5
10221 echo "$as_me: error: cannot compute sizeof (size_t)
10222 See \`config.log' for more details.
" >&2;}
10223 { (exit 77); exit 77; }; }
10225 ac_cv_sizeof_size_t=0
10229 cat >conftest.$ac_ext <<_ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10235 $ac_includes_default
10236 typedef size_t ac__type_sizeof_;
10237 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10238 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10240 #include <stdlib.h>
10245 FILE *f = fopen ("conftest.val
", "w
");
10248 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10250 long int i = longval ();
10251 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10253 fprintf (f, "%ld
\n", i);
10257 unsigned long int i = ulongval ();
10258 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10260 fprintf (f, "%lu
\n", i);
10262 return ferror (f) || fclose (f) != 0;
10268 rm -f conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>&5
10277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_try") 2>&5
10286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_sizeof_size_t=`cat conftest.val`
10290 echo "$as_me: program exited with status
$ac_status" >&5
10291 echo "$as_me: failed program was
:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ( exit $ac_status )
10295 if test "$ac_cv_type_size_t" = yes; then
10296 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10297 See \
`config.log' for more details." >&5
10298 echo "$as_me: error: cannot compute sizeof (size_t)
10299 See \`config.log
' for more details." >&2;}
10300 { (exit 77); exit 77; }; }
10302 ac_cv_sizeof_size_t=0
10305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10309 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10310 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10314 cat >>confdefs.h <<_ACEOF
10315 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10319 { echo "$as_me:$LINENO: checking for pid_t" >&5
10320 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10321 if test "${ac_cv_type_pid_t+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10331 typedef pid_t ac__type_new_;
10335 if ((ac__type_new_ *) 0)
10337 if (sizeof (ac__type_new_))
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_compile") 2>conftest.er1
10352 grep -v '^
*+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest.$ac_objext; then
10360 ac_cv_type_pid_t=yes
10362 echo "$as_me: failed program was:" >&5
10363 sed 's
/^
/|
/' conftest.$ac_ext >&5
10365 ac_cv_type_pid_t=no
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10371 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10373 # The cast to long int works around a bug in the HP C Compiler
10374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10376 # This bug is HP SR number 8606223364.
10377 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10378 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10379 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 if test "$cross_compiling" = yes; then
10383 # Depending upon the size, compute the lo and hi bounds.
10384 cat >conftest.
$ac_ext <<_ACEOF
10387 cat confdefs.h
>>conftest.
$ac_ext
10388 cat >>conftest.
$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 $ac_includes_default
10391 typedef pid_t ac__type_sizeof_;
10395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10402 rm -f conftest.
$ac_objext
10403 if { (ac_try
="$ac_compile"
10404 case "(($ac_try" in
10405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_compile") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest.$ac_objext; then
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 $ac_includes_default
10428 typedef pid_t ac__type_sizeof_;
10432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10439 rm -f conftest.$ac_objext
10440 if { (ac_try="$ac_compile"
10441 case "(($ac_try" in
10442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10443 *) ac_try_echo
=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_compile") 2>conftest.er1
10448 grep -v '^ *+' conftest.er1
>conftest.err
10450 cat conftest.err
>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest.
$ac_objext; then
10456 ac_hi
=$ac_mid; break
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.
$ac_ext >&5
10461 ac_lo
=`expr $ac_mid + 1`
10462 if test $ac_lo -le $ac_mid; then
10466 ac_mid
=`expr 2 '*' $ac_mid + 1`
10469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.
$ac_ext >&5
10475 cat >conftest.
$ac_ext <<_ACEOF
10478 cat confdefs.h
>>conftest.
$ac_ext
10479 cat >>conftest.
$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 typedef pid_t ac__type_sizeof_;
10486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10493 rm -f conftest.
$ac_objext
10494 if { (ac_try
="$ac_compile"
10495 case "(($ac_try" in
10496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_compile") 2>conftest.er1
10502 grep -v '^ *+' conftest.er1 >conftest.err
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest.$ac_objext; then
10512 cat >conftest.$ac_ext <<_ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 $ac_includes_default
10519 typedef pid_t ac__type_sizeof_;
10523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10530 rm -f conftest.$ac_objext
10531 if { (ac_try="$ac_compile"
10532 case "(($ac_try" in
10533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10534 *) ac_try_echo
=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_compile") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1
>conftest.err
10541 cat conftest.err
>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest.
$ac_objext; then
10547 ac_lo
=$ac_mid; break
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.
$ac_ext >&5
10552 ac_hi
=`expr '(' $ac_mid ')' - 1`
10553 if test $ac_mid -le $ac_hi; then
10557 ac_mid
=`expr 2 '*' $ac_mid`
10560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.
$ac_ext >&5
10569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10573 # Binary search between lo and hi bounds.
10574 while test "x$ac_lo" != "x$ac_hi"; do
10575 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10576 cat >conftest.
$ac_ext <<_ACEOF
10579 cat confdefs.h
>>conftest.
$ac_ext
10580 cat >>conftest.
$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 $ac_includes_default
10583 typedef pid_t ac__type_sizeof_;
10587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10594 rm -f conftest.
$ac_objext
10595 if { (ac_try
="$ac_compile"
10596 case "(($ac_try" in
10597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_compile") 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && {
10608 test -z "$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10610 } && test -s conftest.$ac_objext; then
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_lo=`expr '(' $ac_mid ')' + 1`
10619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10623 '') if test "$ac_cv_type_pid_t" = yes; then
10624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10625 See \`config.log
' for more details." >&5
10626 echo "$as_me: error: cannot compute sizeof (pid_t)
10627 See \`config.log' for more details.
" >&2;}
10628 { (exit 77); exit 77; }; }
10630 ac_cv_sizeof_pid_t=0
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 typedef pid_t ac__type_sizeof_;
10642 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10643 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10645 #include <stdlib.h>
10650 FILE *f = fopen ("conftest.val
", "w
");
10653 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10655 long int i = longval ();
10656 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10658 fprintf (f, "%ld
\n", i);
10662 unsigned long int i = ulongval ();
10663 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10665 fprintf (f, "%lu
\n", i);
10667 return ferror (f) || fclose (f) != 0;
10673 rm -f conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>&5
10682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_sizeof_pid_t=`cat conftest.val`
10695 echo "$as_me: program exited with status
$ac_status" >&5
10696 echo "$as_me: failed program was
:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ( exit $ac_status )
10700 if test "$ac_cv_type_pid_t" = yes; then
10701 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10702 See \
`config.log' for more details." >&5
10703 echo "$as_me: error: cannot compute sizeof (pid_t)
10704 See \`config.log
' for more details." >&2;}
10705 { (exit 77); exit 77; }; }
10707 ac_cv_sizeof_pid_t=0
10710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10714 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10715 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10719 cat >>confdefs.h <<_ACEOF
10720 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10725 { echo "$as_me:$LINENO: checking for long long support" >&5
10726 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10738 long long x; x = (long long)0;
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_compile") 2>conftest.er1
10752 grep -v '^
*+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest.$ac_objext; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_LONG_LONG 1
10769 echo "$as_me: failed program was:" >&5
10770 sed 's
/^
/|
/' conftest.$ac_ext >&5
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10777 echo "${ECHO_T}$have_long_long" >&6; }
10778 if test "$have_long_long" = yes ; then
10779 { echo "$as_me:$LINENO: checking for long long" >&5
10780 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10781 if test "${ac_cv_type_long_long+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 $ac_includes_default
10791 typedef long long ac__type_new_;
10795 if ((ac__type_new_ *) 0)
10797 if (sizeof (ac__type_new_))
10803 rm -f conftest.$ac_objext
10804 if { (ac_try="$ac_compile"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_compile") 2>conftest.er1
10812 grep -v '^
*+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } && {
10817 test -z "$ac_c_werror_flag" ||
10818 test ! -s conftest.err
10819 } && test -s conftest.$ac_objext; then
10820 ac_cv_type_long_long=yes
10822 echo "$as_me: failed program was:" >&5
10823 sed 's
/^
/|
/' conftest.$ac_ext >&5
10825 ac_cv_type_long_long=no
10828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10831 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10833 # The cast to long int works around a bug in the HP C Compiler
10834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10836 # This bug is HP SR number 8606223364.
10837 { echo "$as_me:$LINENO: checking size of long long" >&5
10838 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10839 if test "${ac_cv_sizeof_long_long+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 if test "$cross_compiling" = yes; then
10843 # Depending upon the size, compute the lo and hi bounds.
10844 cat >conftest.
$ac_ext <<_ACEOF
10847 cat confdefs.h
>>conftest.
$ac_ext
10848 cat >>conftest.
$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 $ac_includes_default
10851 typedef long long ac__type_sizeof_;
10855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10862 rm -f conftest.
$ac_objext
10863 if { (ac_try
="$ac_compile"
10864 case "(($ac_try" in
10865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_compile") 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 } && test -s conftest.$ac_objext; then
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 $ac_includes_default
10888 typedef long long ac__type_sizeof_;
10892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10899 rm -f conftest.$ac_objext
10900 if { (ac_try="$ac_compile"
10901 case "(($ac_try" in
10902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10903 *) ac_try_echo
=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_compile") 2>conftest.er1
10908 grep -v '^ *+' conftest.er1
>conftest.err
10910 cat conftest.err
>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest.
$ac_objext; then
10916 ac_hi
=$ac_mid; break
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.
$ac_ext >&5
10921 ac_lo
=`expr $ac_mid + 1`
10922 if test $ac_lo -le $ac_mid; then
10926 ac_mid
=`expr 2 '*' $ac_mid + 1`
10929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.
$ac_ext >&5
10935 cat >conftest.
$ac_ext <<_ACEOF
10938 cat confdefs.h
>>conftest.
$ac_ext
10939 cat >>conftest.
$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 $ac_includes_default
10942 typedef long long ac__type_sizeof_;
10946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10953 rm -f conftest.
$ac_objext
10954 if { (ac_try
="$ac_compile"
10955 case "(($ac_try" in
10956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_compile") 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest.$ac_objext; then
10972 cat >conftest.$ac_ext <<_ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 $ac_includes_default
10979 typedef long long ac__type_sizeof_;
10983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10994 *) ac_try_echo
=$ac_try;;
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_compile") 2>conftest.er1
10999 grep -v '^ *+' conftest.er1
>conftest.err
11001 cat conftest.err
>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest.
$ac_objext; then
11007 ac_lo
=$ac_mid; break
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.
$ac_ext >&5
11012 ac_hi
=`expr '(' $ac_mid ')' - 1`
11013 if test $ac_mid -le $ac_hi; then
11017 ac_mid
=`expr 2 '*' $ac_mid`
11020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.
$ac_ext >&5
11029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11033 # Binary search between lo and hi bounds.
11034 while test "x$ac_lo" != "x$ac_hi"; do
11035 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11036 cat >conftest.
$ac_ext <<_ACEOF
11039 cat confdefs.h
>>conftest.
$ac_ext
11040 cat >>conftest.
$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 $ac_includes_default
11043 typedef long long ac__type_sizeof_;
11047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11054 rm -f conftest.
$ac_objext
11055 if { (ac_try
="$ac_compile"
11056 case "(($ac_try" in
11057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_compile") 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest.$ac_objext; then
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_lo=`expr '(' $ac_mid ')' + 1`
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11083 '') if test "$ac_cv_type_long_long" = yes; then
11084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11085 See \`config.log
' for more details." >&5
11086 echo "$as_me: error: cannot compute sizeof (long long)
11087 See \`config.log' for more details.
" >&2;}
11088 { (exit 77); exit 77; }; }
11090 ac_cv_sizeof_long_long=0
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 $ac_includes_default
11101 typedef long long ac__type_sizeof_;
11102 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11103 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11105 #include <stdlib.h>
11110 FILE *f = fopen ("conftest.val
", "w
");
11113 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11115 long int i = longval ();
11116 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11118 fprintf (f, "%ld
\n", i);
11122 unsigned long int i = ulongval ();
11123 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11125 fprintf (f, "%lu
\n", i);
11127 return ferror (f) || fclose (f) != 0;
11133 rm -f conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_link") 2>&5
11142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 ac_cv_sizeof_long_long=`cat conftest.val`
11155 echo "$as_me: program exited with status
$ac_status" >&5
11156 echo "$as_me: failed program was
:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ( exit $ac_status )
11160 if test "$ac_cv_type_long_long" = yes; then
11161 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11162 See \
`config.log' for more details." >&5
11163 echo "$as_me: error: cannot compute sizeof (long long)
11164 See \`config.log
' for more details." >&2;}
11165 { (exit 77); exit 77; }; }
11167 ac_cv_sizeof_long_long=0
11170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11175 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11179 cat >>confdefs.h <<_ACEOF
11180 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11186 { echo "$as_me:$LINENO: checking for long double support" >&5
11187 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11188 have_long_double=no
11189 cat >conftest.$ac_ext <<_ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11199 long double x; x = (long double)0.;
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11213 grep -v '^
*+' conftest.er1 >conftest.err
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest.$ac_objext; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_LONG_DOUBLE 1
11227 have_long_double=yes
11230 echo "$as_me: failed program was:" >&5
11231 sed 's
/^
/|
/' conftest.$ac_ext >&5
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11238 echo "${ECHO_T}$have_long_double" >&6; }
11239 if test "$have_long_double" = yes ; then
11240 { echo "$as_me:$LINENO: checking for long double" >&5
11241 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11242 if test "${ac_cv_type_long_double+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 $ac_includes_default
11252 typedef long double ac__type_new_;
11256 if ((ac__type_new_ *) 0)
11258 if (sizeof (ac__type_new_))
11264 rm -f conftest.$ac_objext
11265 if { (ac_try="$ac_compile"
11266 case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_compile") 2>conftest.er1
11273 grep -v '^
*+' conftest.er1 >conftest.err
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } && {
11278 test -z "$ac_c_werror_flag" ||
11279 test ! -s conftest.err
11280 } && test -s conftest.$ac_objext; then
11281 ac_cv_type_long_double=yes
11283 echo "$as_me: failed program was:" >&5
11284 sed 's
/^
/|
/' conftest.$ac_ext >&5
11286 ac_cv_type_long_double=no
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11292 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11294 # The cast to long int works around a bug in the HP C Compiler
11295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11297 # This bug is HP SR number 8606223364.
11298 { echo "$as_me:$LINENO: checking size of long double" >&5
11299 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11300 if test "${ac_cv_sizeof_long_double+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 if test "$cross_compiling" = yes; then
11304 # Depending upon the size, compute the lo and hi bounds.
11305 cat >conftest.
$ac_ext <<_ACEOF
11308 cat confdefs.h
>>conftest.
$ac_ext
11309 cat >>conftest.
$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 $ac_includes_default
11312 typedef long double ac__type_sizeof_;
11316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11323 rm -f conftest.
$ac_objext
11324 if { (ac_try
="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest.$ac_objext; then
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 $ac_includes_default
11349 typedef long double ac__type_sizeof_;
11353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11360 rm -f conftest.$ac_objext
11361 if { (ac_try="$ac_compile"
11362 case "(($ac_try" in
11363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11364 *) ac_try_echo
=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_compile") 2>conftest.er1
11369 grep -v '^ *+' conftest.er1
>conftest.err
11371 cat conftest.err
>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } && {
11374 test -z "$ac_c_werror_flag" ||
11375 test ! -s conftest.err
11376 } && test -s conftest.
$ac_objext; then
11377 ac_hi
=$ac_mid; break
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.
$ac_ext >&5
11382 ac_lo
=`expr $ac_mid + 1`
11383 if test $ac_lo -le $ac_mid; then
11387 ac_mid
=`expr 2 '*' $ac_mid + 1`
11390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11393 echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.
$ac_ext >&5
11396 cat >conftest.
$ac_ext <<_ACEOF
11399 cat confdefs.h
>>conftest.
$ac_ext
11400 cat >>conftest.
$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 $ac_includes_default
11403 typedef long double ac__type_sizeof_;
11407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11414 rm -f conftest.
$ac_objext
11415 if { (ac_try
="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_compile") 2>conftest.er1
11423 grep -v '^ *+' conftest.er1 >conftest.err
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest.$ac_objext; then
11433 cat >conftest.$ac_ext <<_ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 $ac_includes_default
11440 typedef long double ac__type_sizeof_;
11444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11455 *) ac_try_echo
=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11460 grep -v '^ *+' conftest.er1
>conftest.err
11462 cat conftest.err
>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest.
$ac_objext; then
11468 ac_lo
=$ac_mid; break
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.
$ac_ext >&5
11473 ac_hi
=`expr '(' $ac_mid ')' - 1`
11474 if test $ac_mid -le $ac_hi; then
11478 ac_mid
=`expr 2 '*' $ac_mid`
11481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.
$ac_ext >&5
11490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11494 # Binary search between lo and hi bounds.
11495 while test "x$ac_lo" != "x$ac_hi"; do
11496 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11497 cat >conftest.
$ac_ext <<_ACEOF
11500 cat confdefs.h
>>conftest.
$ac_ext
11501 cat >>conftest.
$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 typedef long double ac__type_sizeof_;
11508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11515 rm -f conftest.
$ac_objext
11516 if { (ac_try
="$ac_compile"
11517 case "(($ac_try" in
11518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_compile") 2>conftest.er1
11524 grep -v '^ *+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } && {
11529 test -z "$ac_c_werror_flag" ||
11530 test ! -s conftest.err
11531 } && test -s conftest.$ac_objext; then
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_lo=`expr '(' $ac_mid ')' + 1`
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11543 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11544 '') if test "$ac_cv_type_long_double" = yes; then
11545 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11546 See \`config.log
' for more details." >&5
11547 echo "$as_me: error: cannot compute sizeof (long double)
11548 See \`config.log' for more details.
" >&2;}
11549 { (exit 77); exit 77; }; }
11551 ac_cv_sizeof_long_double=0
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 typedef long double ac__type_sizeof_;
11563 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11564 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11566 #include <stdlib.h>
11571 FILE *f = fopen ("conftest.val
", "w
");
11574 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11576 long int i = longval ();
11577 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11579 fprintf (f, "%ld
\n", i);
11583 unsigned long int i = ulongval ();
11584 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11586 fprintf (f, "%lu
\n", i);
11588 return ferror (f) || fclose (f) != 0;
11594 rm -f conftest$ac_exeext
11595 if { (ac_try="$ac_link"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_link") 2>&5
11603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 ac_cv_sizeof_long_double=`cat conftest.val`
11616 echo "$as_me: program exited with status
$ac_status" >&5
11617 echo "$as_me: failed program was
:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ( exit $ac_status )
11621 if test "$ac_cv_type_long_double" = yes; then
11622 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
11623 See \
`config.log' for more details." >&5
11624 echo "$as_me: error: cannot compute sizeof (long double)
11625 See \`config.log
' for more details." >&2;}
11626 { (exit 77); exit 77; }; }
11628 ac_cv_sizeof_long_double=0
11631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11635 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11636 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11640 cat >>confdefs.h <<_ACEOF
11641 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11647 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11648 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11650 cat >conftest.$ac_ext <<_ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11660 _Bool x; x = (_Bool)0;
11665 rm -f conftest.$ac_objext
11666 if { (ac_try="$ac_compile"
11667 case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_compile") 2>conftest.er1
11674 grep -v '^
*+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } && {
11679 test -z "$ac_c_werror_flag" ||
11680 test ! -s conftest.err
11681 } && test -s conftest.$ac_objext; then
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_C99_BOOL 1
11691 echo "$as_me: failed program was:" >&5
11692 sed 's
/^
/|
/' conftest.$ac_ext >&5
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11699 echo "${ECHO_T}$have_c99_bool" >&6; }
11700 if test "$have_c99_bool" = yes ; then
11701 { echo "$as_me:$LINENO: checking for _Bool" >&5
11702 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11703 if test "${ac_cv_type__Bool+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 cat >conftest.$ac_ext <<_ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11712 $ac_includes_default
11713 typedef _Bool ac__type_new_;
11717 if ((ac__type_new_ *) 0)
11719 if (sizeof (ac__type_new_))
11725 rm -f conftest.$ac_objext
11726 if { (ac_try="$ac_compile"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_compile") 2>conftest.er1
11734 grep -v '^
*+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } && {
11739 test -z "$ac_c_werror_flag" ||
11740 test ! -s conftest.err
11741 } && test -s conftest.$ac_objext; then
11742 ac_cv_type__Bool=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's
/^
/|
/' conftest.$ac_ext >&5
11747 ac_cv_type__Bool=no
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11753 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11755 # The cast to long int works around a bug in the HP C Compiler
11756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11758 # This bug is HP SR number 8606223364.
11759 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11760 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11761 if test "${ac_cv_sizeof__Bool+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 if test "$cross_compiling" = yes; then
11765 # Depending upon the size, compute the lo and hi bounds.
11766 cat >conftest.
$ac_ext <<_ACEOF
11769 cat confdefs.h
>>conftest.
$ac_ext
11770 cat >>conftest.
$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 typedef _Bool ac__type_sizeof_;
11777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11784 rm -f conftest.
$ac_objext
11785 if { (ac_try
="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 $ac_includes_default
11810 typedef _Bool ac__type_sizeof_;
11814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11825 *) ac_try_echo
=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1
>conftest.err
11832 cat conftest.err
>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.
$ac_objext; then
11838 ac_hi
=$ac_mid; break
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.
$ac_ext >&5
11843 ac_lo
=`expr $ac_mid + 1`
11844 if test $ac_lo -le $ac_mid; then
11848 ac_mid
=`expr 2 '*' $ac_mid + 1`
11851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.
$ac_ext >&5
11857 cat >conftest.
$ac_ext <<_ACEOF
11860 cat confdefs.h
>>conftest.
$ac_ext
11861 cat >>conftest.
$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11864 typedef _Bool ac__type_sizeof_;
11868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11875 rm -f conftest.
$ac_objext
11876 if { (ac_try
="$ac_compile"
11877 case "(($ac_try" in
11878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_compile") 2>conftest.er1
11884 grep -v '^ *+' conftest.er1 >conftest.err
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } && {
11889 test -z "$ac_c_werror_flag" ||
11890 test ! -s conftest.err
11891 } && test -s conftest.$ac_objext; then
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 $ac_includes_default
11901 typedef _Bool ac__type_sizeof_;
11905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11912 rm -f conftest.$ac_objext
11913 if { (ac_try="$ac_compile"
11914 case "(($ac_try" in
11915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11916 *) ac_try_echo
=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_compile") 2>conftest.er1
11921 grep -v '^ *+' conftest.er1
>conftest.err
11923 cat conftest.err
>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest.
$ac_objext; then
11929 ac_lo
=$ac_mid; break
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.
$ac_ext >&5
11934 ac_hi
=`expr '(' $ac_mid ')' - 1`
11935 if test $ac_mid -le $ac_hi; then
11939 ac_mid
=`expr 2 '*' $ac_mid`
11942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.
$ac_ext >&5
11951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11955 # Binary search between lo and hi bounds.
11956 while test "x$ac_lo" != "x$ac_hi"; do
11957 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11958 cat >conftest.
$ac_ext <<_ACEOF
11961 cat confdefs.h
>>conftest.
$ac_ext
11962 cat >>conftest.
$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 $ac_includes_default
11965 typedef _Bool ac__type_sizeof_;
11969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11976 rm -f conftest.
$ac_objext
11977 if { (ac_try
="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11985 grep -v '^ *+' conftest.er1 >conftest.err
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest.$ac_objext; then
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 ac_lo=`expr '(' $ac_mid ')' + 1`
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12005 '') if test "$ac_cv_type__Bool" = yes; then
12006 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12007 See \`config.log
' for more details." >&5
12008 echo "$as_me: error: cannot compute sizeof (_Bool)
12009 See \`config.log' for more details.
" >&2;}
12010 { (exit 77); exit 77; }; }
12012 ac_cv_sizeof__Bool=0
12016 cat >conftest.$ac_ext <<_ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 $ac_includes_default
12023 typedef _Bool ac__type_sizeof_;
12024 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12025 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12027 #include <stdlib.h>
12032 FILE *f = fopen ("conftest.val
", "w
");
12035 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12037 long int i = longval ();
12038 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12040 fprintf (f, "%ld
\n", i);
12044 unsigned long int i = ulongval ();
12045 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12047 fprintf (f, "%lu
\n", i);
12049 return ferror (f) || fclose (f) != 0;
12055 rm -f conftest$ac_exeext
12056 if { (ac_try="$ac_link"
12057 case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_link") 2>&5
12064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12066 { (case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_try") 2>&5
12073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_sizeof__Bool=`cat conftest.val`
12077 echo "$as_me: program exited with status
$ac_status" >&5
12078 echo "$as_me: failed program was
:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ( exit $ac_status )
12082 if test "$ac_cv_type__Bool" = yes; then
12083 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12084 See \
`config.log' for more details." >&5
12085 echo "$as_me: error: cannot compute sizeof (_Bool)
12086 See \`config.log
' for more details." >&2;}
12087 { (exit 77); exit 77; }; }
12089 ac_cv_sizeof__Bool=0
12092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12096 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12097 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12101 cat >>confdefs.h <<_ACEOF
12102 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12108 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12109 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12110 if test "${ac_cv_type_uintptr_t+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 #ifdef HAVE_STDINT_H
12120 #include <stdint.h>
12123 typedef uintptr_t ac__type_new_;
12127 if ((ac__type_new_ *) 0)
12129 if (sizeof (ac__type_new_))
12135 rm -f conftest.$ac_objext
12136 if { (ac_try="$ac_compile"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_compile") 2>conftest.er1
12144 grep -v '^
*+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } && {
12149 test -z "$ac_c_werror_flag" ||
12150 test ! -s conftest.err
12151 } && test -s conftest.$ac_objext; then
12152 ac_cv_type_uintptr_t=yes
12154 echo "$as_me: failed program was:" >&5
12155 sed 's
/^
/|
/' conftest.$ac_ext >&5
12157 ac_cv_type_uintptr_t=no
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12163 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12164 if test $ac_cv_type_uintptr_t = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_UINTPTR_T 1
12170 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12171 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12172 if test "${ac_cv_type_uintptr_t+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 $ac_includes_default
12182 typedef uintptr_t ac__type_new_;
12186 if ((ac__type_new_ *) 0)
12188 if (sizeof (ac__type_new_))
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_compile") 2>conftest.er1
12203 grep -v '^
*+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && {
12208 test -z "$ac_c_werror_flag" ||
12209 test ! -s conftest.err
12210 } && test -s conftest.$ac_objext; then
12211 ac_cv_type_uintptr_t=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's
/^
/|
/' conftest.$ac_ext >&5
12216 ac_cv_type_uintptr_t=no
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12222 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12224 # The cast to long int works around a bug in the HP C Compiler
12225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12227 # This bug is HP SR number 8606223364.
12228 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12229 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12230 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 if test "$cross_compiling" = yes; then
12234 # Depending upon the size, compute the lo and hi bounds.
12235 cat >conftest.
$ac_ext <<_ACEOF
12238 cat confdefs.h
>>conftest.
$ac_ext
12239 cat >>conftest.
$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 $ac_includes_default
12242 typedef uintptr_t ac__type_sizeof_;
12246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12253 rm -f conftest.
$ac_objext
12254 if { (ac_try
="$ac_compile"
12255 case "(($ac_try" in
12256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 typedef uintptr_t ac__type_sizeof_;
12283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12294 *) ac_try_echo
=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1
>conftest.err
12301 cat conftest.err
>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.
$ac_objext; then
12307 ac_hi
=$ac_mid; break
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.
$ac_ext >&5
12312 ac_lo
=`expr $ac_mid + 1`
12313 if test $ac_lo -le $ac_mid; then
12317 ac_mid
=`expr 2 '*' $ac_mid + 1`
12320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.
$ac_ext >&5
12326 cat >conftest.
$ac_ext <<_ACEOF
12329 cat confdefs.h
>>conftest.
$ac_ext
12330 cat >>conftest.
$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 typedef uintptr_t ac__type_sizeof_;
12337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12344 rm -f conftest.
$ac_objext
12345 if { (ac_try
="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.$ac_objext; then
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 $ac_includes_default
12370 typedef uintptr_t ac__type_sizeof_;
12374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12385 *) ac_try_echo
=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12390 grep -v '^ *+' conftest.er1
>conftest.err
12392 cat conftest.err
>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest.
$ac_objext; then
12398 ac_lo
=$ac_mid; break
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.
$ac_ext >&5
12403 ac_hi
=`expr '(' $ac_mid ')' - 1`
12404 if test $ac_mid -le $ac_hi; then
12408 ac_mid
=`expr 2 '*' $ac_mid`
12411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.
$ac_ext >&5
12420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12424 # Binary search between lo and hi bounds.
12425 while test "x$ac_lo" != "x$ac_hi"; do
12426 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12427 cat >conftest.
$ac_ext <<_ACEOF
12430 cat confdefs.h
>>conftest.
$ac_ext
12431 cat >>conftest.
$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 $ac_includes_default
12434 typedef uintptr_t ac__type_sizeof_;
12438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12445 rm -f conftest.
$ac_objext
12446 if { (ac_try
="$ac_compile"
12447 case "(($ac_try" in
12448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_compile") 2>conftest.er1
12454 grep -v '^ *+' conftest.er1 >conftest.err
12456 cat conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } && {
12459 test -z "$ac_c_werror_flag" ||
12460 test ! -s conftest.err
12461 } && test -s conftest.$ac_objext; then
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_lo=`expr '(' $ac_mid ')' + 1`
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12474 '') if test "$ac_cv_type_uintptr_t" = yes; then
12475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12476 See \`config.log
' for more details." >&5
12477 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12478 See \`config.log' for more details.
" >&2;}
12479 { (exit 77); exit 77; }; }
12481 ac_cv_sizeof_uintptr_t=0
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12492 typedef uintptr_t ac__type_sizeof_;
12493 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12494 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12496 #include <stdlib.h>
12501 FILE *f = fopen ("conftest.val
", "w
");
12504 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12506 long int i = longval ();
12507 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12509 fprintf (f, "%ld
\n", i);
12513 unsigned long int i = ulongval ();
12514 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12516 fprintf (f, "%lu
\n", i);
12518 return ferror (f) || fclose (f) != 0;
12524 rm -f conftest$ac_exeext
12525 if { (ac_try="$ac_link"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_link") 2>&5
12533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12535 { (case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_try") 2>&5
12542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12546 echo "$as_me: program exited with status
$ac_status" >&5
12547 echo "$as_me: failed program was
:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ( exit $ac_status )
12551 if test "$ac_cv_type_uintptr_t" = yes; then
12552 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12553 See \
`config.log' for more details." >&5
12554 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12555 See \`config.log
' for more details." >&2;}
12556 { (exit 77); exit 77; }; }
12558 ac_cv_sizeof_uintptr_t=0
12561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12565 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12566 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12570 cat >>confdefs.h <<_ACEOF
12571 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12579 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12580 { echo "$as_me:$LINENO: checking size of off_t" >&5
12581 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12582 if test "${ac_cv_sizeof_off_t+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 if test "$cross_compiling" = yes; then
12586 ac_cv_sizeof_off_t
=4
12588 cat >conftest.
$ac_ext <<_ACEOF
12591 cat confdefs.h
>>conftest.
$ac_ext
12592 cat >>conftest.
$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 #include <sys/types.h>
12598 FILE *f=fopen("conftestval", "w");
12600 fprintf(f, "%d\n", sizeof(off_t));
12604 rm -f conftest
$ac_exeext
12605 if { (ac_try
="$ac_link"
12606 case "(($ac_try" in
12607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_link") 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615 { (case "(($ac_try" in
12616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12617 *) ac_try_echo
=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_try") 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 ac_cv_sizeof_off_t
=`cat conftestval`
12626 echo "$as_me: program exited with status $ac_status" >&5
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.
$ac_ext >&5
12630 ( exit $ac_status )
12631 ac_cv_sizeof_off_t
=0
12633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12640 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12641 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12643 cat >>confdefs.h
<<_ACEOF
12644 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12648 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12649 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12650 if test "$have_long_long" = yes -a \
12651 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12652 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12654 cat >>confdefs.h
<<\_ACEOF
12655 #define HAVE_LARGEFILE_SUPPORT 1
12658 { echo "$as_me:$LINENO: result: yes" >&5
12659 echo "${ECHO_T}yes" >&6; }
12661 { echo "$as_me:$LINENO: result: no" >&5
12662 echo "${ECHO_T}no" >&6; }
12665 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12666 { echo "$as_me:$LINENO: checking size of time_t" >&5
12667 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12668 if test "${ac_cv_sizeof_time_t+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 if test "$cross_compiling" = yes; then
12672 ac_cv_sizeof_time_t
=4
12674 cat >conftest.
$ac_ext <<_ACEOF
12677 cat confdefs.h
>>conftest.
$ac_ext
12678 cat >>conftest.
$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12684 FILE *f=fopen("conftestval", "w");
12686 fprintf(f, "%d\n", sizeof(time_t));
12690 rm -f conftest
$ac_exeext
12691 if { (ac_try
="$ac_link"
12692 case "(($ac_try" in
12693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_link") 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12701 { (case "(($ac_try" in
12702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12703 *) ac_try_echo
=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_try") 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_sizeof_time_t
=`cat conftestval`
12712 echo "$as_me: program exited with status $ac_status" >&5
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.
$ac_ext >&5
12716 ( exit $ac_status )
12717 ac_cv_sizeof_time_t
=0
12719 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12726 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12727 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12729 cat >>confdefs.h
<<_ACEOF
12730 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12735 # if have pthread_t then define SIZEOF_PTHREAD_T
12737 if test "$ac_cv_kpthread" = "yes"
12738 then CC
="$CC -Kpthread"
12739 elif test "$ac_cv_kthread" = "yes"
12740 then CC
="$CC -Kthread"
12741 elif test "$ac_cv_pthread" = "yes"
12742 then CC
="$CC -pthread"
12744 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12745 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12747 cat >conftest.
$ac_ext <<_ACEOF
12750 cat confdefs.h
>>conftest.
$ac_ext
12751 cat >>conftest.
$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 #include <pthread.h>
12757 pthread_t x; x = *(pthread_t*)0;
12762 rm -f conftest.
$ac_objext
12763 if { (ac_try
="$ac_compile"
12764 case "(($ac_try" in
12765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12771 grep -v '^ *+' conftest.er1 >conftest.err
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12789 echo "${ECHO_T}$have_pthread_t" >&6; }
12790 if test "$have_pthread_t" = yes ; then
12791 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12792 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12793 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12794 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 if test "$cross_compiling" = yes; then
12798 ac_cv_sizeof_pthread_t=4
12800 cat >conftest.$ac_ext <<_ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12807 #include <pthread.h>
12810 FILE *f=fopen("conftestval", "w");
12812 fprintf(f, "%d\n", sizeof(pthread_t));
12816 rm -f conftest$ac_exeext
12817 if { (ac_try="$ac_link"
12818 case "(($ac_try" in
12819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12820 *) ac_try_echo
=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_link") 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_cv_sizeof_pthread_t=`cat conftestval
`
12838 echo "$as_me: program exited with status $ac_status" >&5
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 ( exit $ac_status )
12843 ac_cv_sizeof_pthread_t=0
12845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12852 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12853 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12855 cat >>confdefs.h <<_ACEOF
12856 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12862 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12863 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12864 # Check whether --enable-toolbox-glue was given.
12865 if test "${enable_toolbox_glue+set}" = set; then
12866 enableval=$enable_toolbox_glue;
12870 if test -z "$enable_toolbox_glue"
12872 case $ac_sys_system/$ac_sys_release in
12874 enable_toolbox_glue="yes";;
12876 enable_toolbox_glue="no";;
12879 case "$enable_toolbox_glue" in
12881 extra_machdep_objs="Python/mactoolboxglue.o"
12882 extra_undefs="-u _PyMac_Error"
12884 cat >>confdefs.h <<\_ACEOF
12885 #define USE_TOOLBOX_OBJECT_GLUE 1
12890 extra_machdep_objs=""
12894 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12895 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12899 case $ac_sys_system/$ac_sys_release in
12900 Darwin/[01567]\..*)
12901 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12904 OTHER_LIBTOOL_OPT=""
12909 case $ac_sys_system/$ac_sys_release in
12910 Darwin/[01567]\..*)
12911 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12912 if test "${enable_universalsdk}"; then
12915 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12917 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12918 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12920 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12921 if test ${gcc_version} '<' 4.0
12923 LIBTOOL_CRUFT="-lcc_dynamic"
12927 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12928 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12929 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12932 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12933 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12934 if test "$enable_framework"
12936 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12937 # -F. is needed to allow linking to the framework while
12938 # in the build location.
12940 cat >>confdefs.h <<\_ACEOF
12941 #define WITH_NEXT_FRAMEWORK 1
12944 { echo "$as_me:$LINENO: result: yes" >&5
12945 echo "${ECHO_T}yes" >&6; }
12947 { echo "$as_me:$LINENO: result: no" >&5
12948 echo "${ECHO_T}no" >&6; }
12951 { echo "$as_me:$LINENO: checking for dyld" >&5
12952 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12953 case $ac_sys_system/$ac_sys_release in
12956 cat >>confdefs.h <<\_ACEOF
12957 #define WITH_DYLD 1
12960 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12961 echo "${ECHO_T}always on for Darwin" >&6; }
12964 { echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6; }
12969 # Set info about shared libraries.
12975 # SO is the extension of shared libraries `(including the dot
!)
12976 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12977 { echo "$as_me:$LINENO: checking SO" >&5
12978 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12981 case $ac_sys_system in
12992 # this might also be a termcap variable, see #610332
12994 echo '====================================================================='
12996 echo '+ WARNING: You have set SO in your environment. +'
12997 echo '+ Do you really mean to change the extension for shared libraries? +'
12998 echo '+ Continuing in 10 seconds to let you to ponder. +'
13000 echo '====================================================================='
13003 { echo "$as_me:$LINENO: result: $SO" >&5
13004 echo "${ECHO_T}$SO" >&6; }
13006 cat >>confdefs.h
<<_ACEOF
13007 #define SHLIB_EXT "$SO"
13010 # LDSHARED is the ld *command* used to create shared library
13011 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13012 # (Shared libraries in this instance are shared modules to be loaded into
13013 # Python, as opposed to building Python itself as a shared library.)
13014 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13015 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13016 if test -z "$LDSHARED"
13018 case $ac_sys_system/$ac_sys_release in
13020 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13021 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13024 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13025 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13027 IRIX
/5*) LDSHARED
="ld -shared";;
13028 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13030 if test "$GCC" = "yes"
13031 then LDSHARED
='$(CC) -shared'
13032 else LDSHARED
='$(CC) -G';
13035 if test "$GCC" = "yes"
13036 then LDSHARED
='$(CC) -shared'
13037 else LDSHARED
='ld -b';
13039 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13041 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13042 if test "$enable_framework" ; then
13043 # Link against the framework. All externals should be defined.
13044 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13045 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13047 # No framework. Ignore undefined symbols, assuming they come from Python
13048 LDSHARED
="$LDSHARED -undefined suppress"
13050 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13051 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13052 if test "$enable_framework" ; then
13053 # Link against the framework. All externals should be defined.
13054 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13055 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13057 # No framework, use the Python app as bundle-loader
13058 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13059 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13062 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13063 # This allows an extension to be used in any Python
13065 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13067 if test "${enable_universalsdk}"; then
13068 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13070 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13071 BLDSHARED
="$LDSHARED"
13073 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13074 if test "$enable_framework" ; then
13075 # Link against the framework. All externals should be defined.
13076 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13077 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13079 # No framework, use the Python app as bundle-loader
13080 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13081 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13085 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13086 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13088 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13090 LDSHARED
="$CC -shared ${LDFLAGS}"
13092 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13095 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13097 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13100 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13101 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13104 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13108 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13109 OpenUNIX
*|UnixWare
*)
13110 if test "$GCC" = "yes"
13111 then LDSHARED
='$(CC) -shared'
13112 else LDSHARED
='$(CC) -G'
13114 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13115 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13116 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13117 atheos
*) LDSHARED
="gcc -shared";;
13121 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13122 echo "${ECHO_T}$LDSHARED" >&6; }
13123 BLDSHARED
=${BLDSHARED-$LDSHARED}
13124 # CCSHARED are the C *flags* used to create objects to go into a shared
13125 # library (module) -- this is only needed for a few systems
13126 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13127 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13128 if test -z "$CCSHARED"
13130 case $ac_sys_system/$ac_sys_release in
13131 SunOS
*) if test "$GCC" = yes;
13132 then CCSHARED
="-fPIC";
13133 elif test `uname -p` = sparc
;
13134 then CCSHARED
="-xcode=pic32";
13135 else CCSHARED
="-Kpic";
13137 hp
*|HP
*) if test "$GCC" = yes;
13138 then CCSHARED
="-fPIC";
13139 else CCSHARED
="+z";
13141 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13142 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13143 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13144 OpenUNIX
*|UnixWare
*)
13145 if test "$GCC" = "yes"
13146 then CCSHARED
="-fPIC"
13147 else CCSHARED
="-KPIC"
13150 if test "$GCC" = "yes"
13151 then CCSHARED
="-fPIC"
13152 else CCSHARED
="-Kpic -belf"
13154 Monterey
*) CCSHARED
="-G";;
13155 IRIX
*/6*) case $CC in
13156 *gcc
*) CCSHARED
="-shared";;
13159 atheos
*) CCSHARED
="-fPIC";;
13162 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13163 echo "${ECHO_T}$CCSHARED" >&6; }
13164 # LINKFORSHARED are the flags passed to the $(CC) command that links
13165 # the python executable -- this is only needed for a few systems
13166 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13167 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13168 if test -z "$LINKFORSHARED"
13170 case $ac_sys_system/$ac_sys_release in
13171 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13173 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13174 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13175 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13176 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13177 # -u libsys_s pulls in all symbols in libsys
13179 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13181 # not used by the core itself but which needs to be in the core so
13182 # that dynamically loaded extension modules have access to it.
13183 # -prebind is no longer used, because it actually seems to give a
13184 # slowdown in stead of a speedup, maybe due to the large number of
13185 # dynamic loads Python does.
13187 LINKFORSHARED
="$extra_undefs"
13188 if test "$enable_framework"
13190 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13192 LINKFORSHARED
="$LINKFORSHARED";;
13193 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13194 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13195 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13196 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13197 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13199 LINKFORSHARED
="-Wl,--export-dynamic"
13201 SunOS
/5*) case $CC in
13203 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13205 LINKFORSHARED
="-Xlinker --export-dynamic"
13209 if test $enable_shared = "no"
13211 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13214 # -Wl,-E causes the symbols to be added to the dynamic
13215 # symbol table so that they can be found when a module
13216 # is loaded. -N 2048K causes the stack size to be set
13217 # to 2048 kilobytes so that the stack doesn't overflow
13218 # when running test_compile.py.
13219 LINKFORSHARED
='-Wl,-E -N 2048K';;
13222 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13223 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13227 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13228 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13229 if test ! "$LIBRARY" = "$LDLIBRARY"
13231 case $ac_sys_system in
13233 # Cygwin needs CCSHARED when building extension DLLs
13234 # but not when building the interpreter DLL.
13235 CFLAGSFORSHARED
='';;
13237 CFLAGSFORSHARED
='$(CCSHARED)'
13240 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13241 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13243 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13244 # library (with --enable-shared).
13245 # For platforms on which shared libraries are not allowed to have unresolved
13246 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13247 # if it is not required, since it creates a dependency of the shared library
13248 # to LIBS. This, in turn, means that applications linking the shared libpython
13249 # don't need to link LIBS explicitly. The default should be only changed
13250 # on systems where this approach causes problems.
13252 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13253 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13254 case "$ac_sys_system" in
13258 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13259 echo "${ECHO_T}$SHLIBS" >&6; }
13262 # checks for libraries
13264 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 ac_check_lib_save_LIBS
=$LIBS
13271 cat >conftest.
$ac_ext <<_ACEOF
13274 cat confdefs.h
>>conftest.
$ac_ext
13275 cat >>conftest.
$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13293 rm -f conftest.
$ac_objext conftest
$ac_exeext
13294 if { (ac_try
="$ac_link"
13295 case "(($ac_try" in
13296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13302 grep -v '^ *+' conftest.er1 >conftest.err
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } && {
13307 test -z "$ac_c_werror_flag" ||
13308 test ! -s conftest.err
13309 } && test -s conftest$ac_exeext &&
13310 $as_test_x conftest$ac_exeext; then
13311 ac_cv_lib_dl_dlopen=yes
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_cv_lib_dl_dlopen=no
13319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13323 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13324 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13325 if test $ac_cv_lib_dl_dlopen = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_LIBDL 1
13333 # Dynamic linking for SunOS/Solaris and SYSV
13335 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13336 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13337 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 ac_check_lib_save_LIBS=$LIBS
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13349 /* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13359 return shl_load ();
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (ac_try="$ac_link"
13366 case "(($ac_try" in
13367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13368 *) ac_try_echo
=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_link") 2>conftest.er1
13373 grep -v '^ *+' conftest.er1
>conftest.err
13375 cat conftest.err
>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && {
13378 test -z "$ac_c_werror_flag" ||
13379 test ! -s conftest.err
13380 } && test -s conftest
$ac_exeext &&
13381 $as_test_x conftest
$ac_exeext; then
13382 ac_cv_lib_dld_shl_load
=yes
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.
$ac_ext >&5
13387 ac_cv_lib_dld_shl_load
=no
13390 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13391 conftest
$ac_exeext conftest.
$ac_ext
13392 LIBS
=$ac_check_lib_save_LIBS
13394 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13395 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13396 if test $ac_cv_lib_dld_shl_load = yes; then
13397 cat >>confdefs.h
<<_ACEOF
13398 #define HAVE_LIBDLD 1
13404 # Dynamic linking for HP-UX
13406 # only check for sem_ini if thread support is requested
13407 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13408 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13409 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13410 if test "${ac_cv_search_sem_init+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 ac_func_search_save_LIBS
=$LIBS
13414 cat >conftest.
$ac_ext <<_ACEOF
13417 cat confdefs.h
>>conftest.
$ac_ext
13418 cat >>conftest.
$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13421 /* Override any GCC internal prototype to avoid an error.
13422 Use char because int might match the return type of a GCC
13423 builtin and then its argument prototype would still apply. */
13431 return sem_init ();
13436 for ac_lib
in '' pthread rt posix4
; do
13437 if test -z "$ac_lib"; then
13438 ac_res
="none required"
13441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13443 rm -f conftest.
$ac_objext conftest
$ac_exeext
13444 if { (ac_try
="$ac_link"
13445 case "(($ac_try" in
13446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_link") 2>conftest.er1
13452 grep -v '^ *+' conftest.er1 >conftest.err
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && {
13457 test -z "$ac_c_werror_flag" ||
13458 test ! -s conftest.err
13459 } && test -s conftest$ac_exeext &&
13460 $as_test_x conftest$ac_exeext; then
13461 ac_cv_search_sem_init=$ac_res
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13471 if test "${ac_cv_search_sem_init+set}" = set; then
13475 if test "${ac_cv_search_sem_init+set}" = set; then
13478 ac_cv_search_sem_init=no
13480 rm conftest.$ac_ext
13481 LIBS=$ac_func_search_save_LIBS
13483 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13484 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13485 ac_res=$ac_cv_search_sem_init
13486 if test "$ac_res" != no; then
13487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13490 # 'Real Time' functions on Solaris
13491 # posix4 on Solaris 2.6
13492 # pthread (first!) on Linux
13495 # check if we need libintl for locale functions
13496 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13497 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13498 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-lintl $LIBS"
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13516 char textdomain ();
13520 return textdomain ();
13525 rm -f conftest.$ac_objext conftest$ac_exeext
13526 if { (ac_try="$ac_link"
13527 case "(($ac_try" in
13528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13529 *) ac_try_echo
=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_link") 2>conftest.er1
13534 grep -v '^ *+' conftest.er1
>conftest.err
13536 cat conftest.err
>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && {
13539 test -z "$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13541 } && test -s conftest
$ac_exeext &&
13542 $as_test_x conftest
$ac_exeext; then
13543 ac_cv_lib_intl_textdomain
=yes
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.
$ac_ext >&5
13548 ac_cv_lib_intl_textdomain
=no
13551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13552 conftest
$ac_exeext conftest.
$ac_ext
13553 LIBS
=$ac_check_lib_save_LIBS
13555 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13556 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13557 if test $ac_cv_lib_intl_textdomain = yes; then
13559 cat >>confdefs.h
<<\_ACEOF
13560 #define WITH_LIBINTL 1
13566 # checks for system dependent C++ extensions support
13567 case "$ac_sys_system" in
13568 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13569 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13570 cat >conftest.
$ac_ext <<_ACEOF
13573 cat confdefs.h
>>conftest.
$ac_ext
13574 cat >>conftest.
$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include "/usr/lpp/xlC/include/load.h"
13580 loadAndInit("", 0, "")
13585 rm -f conftest.
$ac_objext conftest
$ac_exeext
13586 if { (ac_try
="$ac_link"
13587 case "(($ac_try" in
13588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13594 grep -v '^ *+' conftest.er1 >conftest.err
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest$ac_exeext &&
13602 $as_test_x conftest$ac_exeext; then
13604 cat >>confdefs.h <<\_ACEOF
13605 #define AIX_GENUINE_CPLUSPLUS 1
13608 { echo "$as_me:$LINENO: result: yes" >&5
13609 echo "${ECHO_T}yes" >&6; }
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 { echo "$as_me:$LINENO: result: no" >&5
13615 echo "${ECHO_T}no" >&6; }
13618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13619 conftest$ac_exeext conftest.$ac_ext;;
13623 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13624 # BeOS' sockets are stashed in libnet.
13625 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13626 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13627 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 ac_check_lib_save_LIBS=$LIBS
13632 cat >conftest.$ac_ext <<_ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13639 /* Override any GCC internal prototype to avoid an error.
13640 Use char because int might match the return type of a GCC
13641 builtin and then its argument prototype would still apply. */
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (ac_try="$ac_link"
13656 case "(($ac_try" in
13657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13658 *) ac_try_echo
=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_link") 2>conftest.er1
13663 grep -v '^ *+' conftest.er1
>conftest.err
13665 cat conftest.err
>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && {
13668 test -z "$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 } && test -s conftest
$ac_exeext &&
13671 $as_test_x conftest
$ac_exeext; then
13672 ac_cv_lib_nsl_t_open
=yes
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.
$ac_ext >&5
13677 ac_cv_lib_nsl_t_open
=no
13680 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13681 conftest
$ac_exeext conftest.
$ac_ext
13682 LIBS
=$ac_check_lib_save_LIBS
13684 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13685 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13686 if test $ac_cv_lib_nsl_t_open = yes; then
13690 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13691 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13692 if test "${ac_cv_lib_socket_socket+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 ac_check_lib_save_LIBS
=$LIBS
13696 LIBS
="-lsocket $LIBS $LIBS"
13697 cat >conftest.
$ac_ext <<_ACEOF
13700 cat confdefs.h
>>conftest.
$ac_ext
13701 cat >>conftest.
$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13719 rm -f conftest.
$ac_objext conftest
$ac_exeext
13720 if { (ac_try
="$ac_link"
13721 case "(($ac_try" in
13722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_link") 2>conftest.er1
13728 grep -v '^ *+' conftest.er1 >conftest.err
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } && {
13733 test -z "$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13735 } && test -s conftest$ac_exeext &&
13736 $as_test_x conftest$ac_exeext; then
13737 ac_cv_lib_socket_socket=yes
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_cv_lib_socket_socket=no
13745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13746 conftest$ac_exeext conftest.$ac_ext
13747 LIBS=$ac_check_lib_save_LIBS
13749 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13750 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13751 if test $ac_cv_lib_socket_socket = yes; then
13752 LIBS="-lsocket $LIBS"
13756 case "$ac_sys_system" in
13758 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13759 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13760 if test "${ac_cv_lib_net_socket+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lnet $LIBS $LIBS"
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13791 *) ac_try_echo
=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>conftest.er1
13796 grep -v '^ *+' conftest.er1
>conftest.err
13798 cat conftest.err
>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && {
13801 test -z "$ac_c_werror_flag" ||
13802 test ! -s conftest.err
13803 } && test -s conftest
$ac_exeext &&
13804 $as_test_x conftest
$ac_exeext; then
13805 ac_cv_lib_net_socket
=yes
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.
$ac_ext >&5
13810 ac_cv_lib_net_socket
=no
13813 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13814 conftest
$ac_exeext conftest.
$ac_ext
13815 LIBS
=$ac_check_lib_save_LIBS
13817 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13818 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13819 if test $ac_cv_lib_net_socket = yes; then
13826 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13827 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13829 # Check whether --with-libs was given.
13830 if test "${with_libs+set}" = set; then
13831 withval
=$with_libs;
13832 { echo "$as_me:$LINENO: result: $withval" >&5
13833 echo "${ECHO_T}$withval" >&6; }
13834 LIBS
="$withval $LIBS"
13837 { echo "$as_me:$LINENO: result: no" >&5
13838 echo "${ECHO_T}no" >&6; }
13842 # Check for use of the system libffi library
13843 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13844 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13846 # Check whether --with-system_ffi was given.
13847 if test "${with_system_ffi+set}" = set; then
13848 withval
=$with_system_ffi;
13852 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13853 echo "${ECHO_T}$with_system_ffi" >&6; }
13855 # Determine if signalmodule should be used.
13858 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13859 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13861 # Check whether --with-signal-module was given.
13862 if test "${with_signal_module+set}" = set; then
13863 withval
=$with_signal_module;
13867 if test -z "$with_signal_module"
13868 then with_signal_module
="yes"
13870 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13871 echo "${ECHO_T}$with_signal_module" >&6; }
13873 if test "${with_signal_module}" = "yes"; then
13874 USE_SIGNAL_MODULE
=""
13877 USE_SIGNAL_MODULE
="#"
13878 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13881 # This is used to generate Setup.config
13883 USE_THREAD_MODULE
=""
13885 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13886 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13889 # Check whether --with-dec-threads was given.
13890 if test "${with_dec_threads+set}" = set; then
13891 withval
=$with_dec_threads;
13892 { echo "$as_me:$LINENO: result: $withval" >&5
13893 echo "${ECHO_T}$withval" >&6; }
13895 if test "${with_thread+set}" != set; then
13896 with_thread
="$withval";
13899 { echo "$as_me:$LINENO: result: no" >&5
13900 echo "${ECHO_T}no" >&6; }
13904 # Templates for things AC_DEFINEd more than once.
13905 # For a single AC_DEFINE, no template is needed.
13913 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13914 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13916 # Check whether --with-threads was given.
13917 if test "${with_threads+set}" = set; then
13918 withval
=$with_threads;
13922 # --with-thread is deprecated, but check for it anyway
13924 # Check whether --with-thread was given.
13925 if test "${with_thread+set}" = set; then
13926 withval
=$with_thread; with_threads
=$with_thread
13930 if test -z "$with_threads"
13931 then with_threads
="yes"
13933 { echo "$as_me:$LINENO: result: $with_threads" >&5
13934 echo "${ECHO_T}$with_threads" >&6; }
13937 if test "$with_threads" = "no"
13939 USE_THREAD_MODULE
="#"
13940 elif test "$ac_cv_pthread_is_default" = yes
13942 cat >>confdefs.h
<<\_ACEOF
13943 #define WITH_THREAD 1
13946 # Defining _REENTRANT on system with POSIX threads should not hurt.
13947 cat >>confdefs.h
<<\_ACEOF
13948 #define _REENTRANT 1
13952 THREADOBJ
="Python/thread.o"
13953 elif test "$ac_cv_kpthread" = "yes"
13956 if test "$ac_cv_cxx_thread" = "yes"; then
13957 CXX
="$CXX -Kpthread"
13959 cat >>confdefs.h
<<\_ACEOF
13960 #define WITH_THREAD 1
13964 THREADOBJ
="Python/thread.o"
13965 elif test "$ac_cv_kthread" = "yes"
13968 if test "$ac_cv_cxx_thread" = "yes"; then
13969 CXX
="$CXX -Kthread"
13971 cat >>confdefs.h
<<\_ACEOF
13972 #define WITH_THREAD 1
13976 THREADOBJ
="Python/thread.o"
13977 elif test "$ac_cv_pthread" = "yes"
13980 if test "$ac_cv_cxx_thread" = "yes"; then
13981 CXX
="$CXX -pthread"
13983 cat >>confdefs.h
<<\_ACEOF
13984 #define WITH_THREAD 1
13988 THREADOBJ
="Python/thread.o"
13990 if test ! -z "$with_threads" -a -d "$with_threads"
13991 then LDFLAGS
="$LDFLAGS -L$with_threads"
13993 if test ! -z "$withval" -a -d "$withval"
13994 then LDFLAGS
="$LDFLAGS -L$withval"
13997 # According to the POSIX spec, a pthreads implementation must
13998 # define _POSIX_THREADS in unistd.h. Some apparently don't
13999 # (e.g. gnu pth with pthread emulation)
14000 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14001 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14002 cat >conftest.
$ac_ext <<_ACEOF
14005 cat confdefs.h
>>conftest.
$ac_ext
14006 cat >>conftest.
$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14009 #include <unistd.h>
14010 #ifdef _POSIX_THREADS
14015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14016 $EGREP "yes" >/dev
/null
2>&1; then
14017 unistd_defines_pthreads
=yes
14019 unistd_defines_pthreads
=no
14023 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14024 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14026 cat >>confdefs.h
<<\_ACEOF
14027 #define _REENTRANT 1
14030 if test "${ac_cv_header_cthreads_h+set}" = set; then
14031 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14032 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14033 if test "${ac_cv_header_cthreads_h+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14037 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14039 # Is the header compilable?
14040 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14041 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14042 cat >conftest.
$ac_ext <<_ACEOF
14045 cat confdefs.h
>>conftest.
$ac_ext
14046 cat >>conftest.
$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 $ac_includes_default
14049 #include <cthreads.h>
14051 rm -f conftest.
$ac_objext
14052 if { (ac_try
="$ac_compile"
14053 case "(($ac_try" in
14054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_compile") 2>conftest.er1
14060 grep -v '^ *+' conftest.er1 >conftest.err
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest.$ac_objext; then
14068 ac_header_compiler=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_header_compiler=no
14076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14078 echo "${ECHO_T}$ac_header_compiler" >&6; }
14080 # Is the header present?
14081 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14082 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 #include <cthreads.h>
14091 if { (ac_try="$ac_cpp conftest.$ac_ext"
14092 case "(($ac_try" in
14093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14094 *) ac_try_echo
=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1
>conftest.err
14101 cat conftest.err
>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } >/dev
/null
&& {
14104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14107 ac_header_preproc
=yes
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.
$ac_ext >&5
14112 ac_header_preproc
=no
14115 rm -f conftest.err conftest.
$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6; }
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14122 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14125 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14126 ac_header_preproc
=yes
14129 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14130 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14132 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14134 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14136 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14140 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14142 ## ------------------------------------------------ ##
14143 ## Report this to http://www.python.org/python-bugs ##
14144 ## ------------------------------------------------ ##
14146 ) |
sed "s/^/$as_me: WARNING: /" >&2
14149 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14150 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14151 if test "${ac_cv_header_cthreads_h+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 ac_cv_header_cthreads_h
=$ac_header_preproc
14156 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14157 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14160 if test $ac_cv_header_cthreads_h = yes; then
14161 cat >>confdefs.h
<<\_ACEOF
14162 #define WITH_THREAD 1
14165 cat >>confdefs.h
<<\_ACEOF
14166 #define C_THREADS 1
14170 cat >>confdefs.h
<<\_ACEOF
14171 #define HURD_C_THREADS 1
14174 LIBS
="$LIBS -lthreads"
14175 THREADOBJ
="Python/thread.o"
14178 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14179 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14180 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14181 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14185 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14187 # Is the header compilable?
14188 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14189 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14190 cat >conftest.
$ac_ext <<_ACEOF
14193 cat confdefs.h
>>conftest.
$ac_ext
14194 cat >>conftest.
$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 $ac_includes_default
14197 #include <mach/cthreads.h>
14199 rm -f conftest.
$ac_objext
14200 if { (ac_try
="$ac_compile"
14201 case "(($ac_try" in
14202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_compile") 2>conftest.er1
14208 grep -v '^ *+' conftest.er1 >conftest.err
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } && {
14213 test -z "$ac_c_werror_flag" ||
14214 test ! -s conftest.err
14215 } && test -s conftest.$ac_objext; then
14216 ac_header_compiler=yes
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 ac_header_compiler=no
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14226 echo "${ECHO_T}$ac_header_compiler" >&6; }
14228 # Is the header present?
14229 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14230 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <mach/cthreads.h>
14239 if { (ac_try="$ac_cpp conftest.$ac_ext"
14240 case "(($ac_try" in
14241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14242 *) ac_try_echo
=$ac_try;;
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14247 grep -v '^ *+' conftest.er1
>conftest.err
14249 cat conftest.err
>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } >/dev
/null
&& {
14252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14255 ac_header_preproc
=yes
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.
$ac_ext >&5
14260 ac_header_preproc
=no
14263 rm -f conftest.err conftest.
$ac_ext
14264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14265 echo "${ECHO_T}$ac_header_preproc" >&6; }
14267 # So? What about this header?
14268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14270 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14271 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14272 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14273 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14274 ac_header_preproc
=yes
14277 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14278 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14280 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14282 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14284 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14286 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14288 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14290 ## ------------------------------------------------ ##
14291 ## Report this to http://www.python.org/python-bugs ##
14292 ## ------------------------------------------------ ##
14294 ) |
sed "s/^/$as_me: WARNING: /" >&2
14297 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14298 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14299 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14304 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14305 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14308 if test $ac_cv_header_mach_cthreads_h = yes; then
14309 cat >>confdefs.h
<<\_ACEOF
14310 #define WITH_THREAD 1
14313 cat >>confdefs.h
<<\_ACEOF
14314 #define C_THREADS 1
14318 cat >>confdefs.h
<<\_ACEOF
14319 #define MACH_C_THREADS 1
14322 THREADOBJ
="Python/thread.o"
14325 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14326 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14328 # Check whether --with-pth was given.
14329 if test "${with_pth+set}" = set; then
14330 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14331 echo "${ECHO_T}$withval" >&6; }
14332 cat >>confdefs.h
<<\_ACEOF
14333 #define WITH_THREAD 1
14337 cat >>confdefs.h
<<\_ACEOF
14342 THREADOBJ
="Python/thread.o"
14344 { echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6; }
14347 # Just looking for pthread_create in libpthread is not enough:
14348 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14349 # So we really have to include pthread.h, and then link.
14351 LIBS
="$LIBS -lpthread"
14352 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14353 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14354 cat >conftest.
$ac_ext <<_ACEOF
14357 cat confdefs.h
>>conftest.
$ac_ext
14358 cat >>conftest.
$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include <pthread.h>
14362 void * start_routine (void *arg) { exit (0); }
14367 pthread_create (NULL, NULL, start_routine, NULL)
14372 rm -f conftest.
$ac_objext conftest
$ac_exeext
14373 if { (ac_try
="$ac_link"
14374 case "(($ac_try" in
14375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_link") 2>conftest.er1
14381 grep -v '^ *+' conftest.er1 >conftest.err
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && {
14386 test -z "$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14388 } && test -s conftest$ac_exeext &&
14389 $as_test_x conftest$ac_exeext; then
14391 { echo "$as_me:$LINENO: result: yes" >&5
14392 echo "${ECHO_T}yes" >&6; }
14393 cat >>confdefs.h <<\_ACEOF
14394 #define WITH_THREAD 1
14398 THREADOBJ="Python/thread.o"
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14405 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14406 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14407 if test "${ac_cv_func_pthread_detach+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14418 #define pthread_detach innocuous_pthread_detach
14420 /* System header to define __stub macros and hopefully few prototypes,
14421 which can conflict with char pthread_detach (); below.
14422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14423 <limits.h> exists even on freestanding compilers. */
14426 # include <limits.h>
14428 # include <assert.h>
14431 #undef pthread_detach
14433 /* Override any GCC internal prototype to avoid an error.
14434 Use char because int might match the return type of a GCC
14435 builtin and then its argument prototype would still apply. */
14439 char pthread_detach ();
14440 /* The GNU C library defines this for functions which it implements
14441 to always fail with ENOSYS. Some functions are actually named
14442 something starting with __ and the normal name is an alias. */
14443 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14450 return pthread_detach ();
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (ac_try="$ac_link"
14457 case "(($ac_try" in
14458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14459 *) ac_try_echo
=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14464 grep -v '^ *+' conftest.er1
>conftest.err
14466 cat conftest.err
>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest
$ac_exeext &&
14472 $as_test_x conftest
$ac_exeext; then
14473 ac_cv_func_pthread_detach
=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14478 ac_cv_func_pthread_detach
=no
14481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14482 conftest
$ac_exeext conftest.
$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14485 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14486 if test $ac_cv_func_pthread_detach = yes; then
14487 cat >>confdefs.h
<<\_ACEOF
14488 #define WITH_THREAD 1
14492 THREADOBJ
="Python/thread.o"
14495 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14496 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14497 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14498 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14502 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14504 # Is the header compilable?
14505 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14506 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14507 cat >conftest.
$ac_ext <<_ACEOF
14510 cat confdefs.h
>>conftest.
$ac_ext
14511 cat >>conftest.
$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 $ac_includes_default
14514 #include <atheos/threads.h>
14516 rm -f conftest.
$ac_objext
14517 if { (ac_try
="$ac_compile"
14518 case "(($ac_try" in
14519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_compile") 2>conftest.er1
14525 grep -v '^ *+' conftest.er1 >conftest.err
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } && {
14530 test -z "$ac_c_werror_flag" ||
14531 test ! -s conftest.err
14532 } && test -s conftest.$ac_objext; then
14533 ac_header_compiler=yes
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_header_compiler=no
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14543 echo "${ECHO_T}$ac_header_compiler" >&6; }
14545 # Is the header present?
14546 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14547 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14548 cat >conftest.$ac_ext <<_ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 #include <atheos/threads.h>
14556 if { (ac_try="$ac_cpp conftest.$ac_ext"
14557 case "(($ac_try" in
14558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14559 *) ac_try_echo
=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1
>conftest.err
14566 cat conftest.err
>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } >/dev
/null
&& {
14569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14572 ac_header_preproc
=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.
$ac_ext >&5
14577 ac_header_preproc
=no
14580 rm -f conftest.err conftest.
$ac_ext
14581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14582 echo "${ECHO_T}$ac_header_preproc" >&6; }
14584 # So? What about this header?
14585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14587 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14588 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14589 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14590 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14591 ac_header_preproc
=yes
14594 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14595 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14597 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14599 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14601 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14603 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14605 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14607 ## ------------------------------------------------ ##
14608 ## Report this to http://www.python.org/python-bugs ##
14609 ## ------------------------------------------------ ##
14611 ) |
sed "s/^/$as_me: WARNING: /" >&2
14614 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14615 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14616 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14621 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14622 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14625 if test $ac_cv_header_atheos_threads_h = yes; then
14626 cat >>confdefs.h
<<\_ACEOF
14627 #define WITH_THREAD 1
14631 cat >>confdefs.h
<<\_ACEOF
14632 #define ATHEOS_THREADS 1
14635 THREADOBJ
="Python/thread.o"
14638 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14639 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14640 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14641 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14645 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14647 # Is the header compilable?
14648 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14649 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14650 cat >conftest.
$ac_ext <<_ACEOF
14653 cat confdefs.h
>>conftest.
$ac_ext
14654 cat >>conftest.
$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 $ac_includes_default
14657 #include <kernel/OS.h>
14659 rm -f conftest.
$ac_objext
14660 if { (ac_try
="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
14676 ac_header_compiler=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_compiler=no
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688 # Is the header present?
14689 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14690 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 #include <kernel/OS.h>
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14702 *) ac_try_echo
=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1
>conftest.err
14709 cat conftest.err
>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } >/dev
/null
&& {
14712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14715 ac_header_preproc
=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.
$ac_ext >&5
14720 ac_header_preproc
=no
14723 rm -f conftest.err conftest.
$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727 # So? What about this header?
14728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14731 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14733 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14734 ac_header_preproc
=yes
14737 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14738 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14740 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14742 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14744 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14746 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14748 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14750 ## ------------------------------------------------ ##
14751 ## Report this to http://www.python.org/python-bugs ##
14752 ## ------------------------------------------------ ##
14754 ) |
sed "s/^/$as_me: WARNING: /" >&2
14757 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14758 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14759 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14764 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14765 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14768 if test $ac_cv_header_kernel_OS_h = yes; then
14769 cat >>confdefs.h
<<\_ACEOF
14770 #define WITH_THREAD 1
14774 cat >>confdefs.h
<<\_ACEOF
14775 #define BEOS_THREADS 1
14778 THREADOBJ
="Python/thread.o"
14781 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14782 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14783 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 ac_check_lib_save_LIBS
=$LIBS
14787 LIBS
="-lpthreads $LIBS"
14788 cat >conftest.
$ac_ext <<_ACEOF
14791 cat confdefs.h
>>conftest.
$ac_ext
14792 cat >>conftest.
$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14801 char pthread_create ();
14805 return pthread_create ();
14810 rm -f conftest.
$ac_objext conftest
$ac_exeext
14811 if { (ac_try
="$ac_link"
14812 case "(($ac_try" in
14813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_link") 2>conftest.er1
14819 grep -v '^ *+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest$ac_exeext &&
14827 $as_test_x conftest$ac_exeext; then
14828 ac_cv_lib_pthreads_pthread_create=yes
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_cv_lib_pthreads_pthread_create=no
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14838 LIBS=$ac_check_lib_save_LIBS
14840 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14841 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14842 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14843 cat >>confdefs.h <<\_ACEOF
14844 #define WITH_THREAD 1
14848 LIBS="$LIBS -lpthreads"
14849 THREADOBJ="Python/thread.o"
14852 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14853 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14854 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 ac_check_lib_save_LIBS=$LIBS
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14866 /* Override any GCC internal prototype to avoid an error.
14867 Use char because int might match the return type of a GCC
14868 builtin and then its argument prototype would still apply. */
14872 char pthread_create ();
14876 return pthread_create ();
14881 rm -f conftest.$ac_objext conftest$ac_exeext
14882 if { (ac_try="$ac_link"
14883 case "(($ac_try" in
14884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14885 *) ac_try_echo
=$ac_try;;
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_link") 2>conftest.er1
14890 grep -v '^ *+' conftest.er1
>conftest.err
14892 cat conftest.err
>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && {
14895 test -z "$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 } && test -s conftest
$ac_exeext &&
14898 $as_test_x conftest
$ac_exeext; then
14899 ac_cv_lib_c_r_pthread_create
=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.
$ac_ext >&5
14904 ac_cv_lib_c_r_pthread_create
=no
14907 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14908 conftest
$ac_exeext conftest.
$ac_ext
14909 LIBS
=$ac_check_lib_save_LIBS
14911 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14912 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14913 if test $ac_cv_lib_c_r_pthread_create = yes; then
14914 cat >>confdefs.h
<<\_ACEOF
14915 #define WITH_THREAD 1
14920 THREADOBJ
="Python/thread.o"
14923 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14924 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14925 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 ac_check_lib_save_LIBS
=$LIBS
14929 LIBS
="-lpthread $LIBS"
14930 cat >conftest.
$ac_ext <<_ACEOF
14933 cat confdefs.h
>>conftest.
$ac_ext
14934 cat >>conftest.
$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14937 /* Override any GCC internal prototype to avoid an error.
14938 Use char because int might match the return type of a GCC
14939 builtin and then its argument prototype would still apply. */
14943 char __pthread_create_system ();
14947 return __pthread_create_system ();
14952 rm -f conftest.
$ac_objext conftest
$ac_exeext
14953 if { (ac_try
="$ac_link"
14954 case "(($ac_try" in
14955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>conftest.er1
14961 grep -v '^ *+' conftest.er1 >conftest.err
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && {
14966 test -z "$ac_c_werror_flag" ||
14967 test ! -s conftest.err
14968 } && test -s conftest$ac_exeext &&
14969 $as_test_x conftest$ac_exeext; then
14970 ac_cv_lib_pthread___pthread_create_system=yes
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 ac_cv_lib_pthread___pthread_create_system=no
14978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14979 conftest$ac_exeext conftest.$ac_ext
14980 LIBS=$ac_check_lib_save_LIBS
14982 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14983 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14984 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define WITH_THREAD 1
14990 LIBS="$LIBS -lpthread"
14991 THREADOBJ="Python/thread.o"
14994 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14995 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14996 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 ac_check_lib_save_LIBS=$LIBS
15001 cat >conftest.$ac_ext <<_ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h. */
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15014 char pthread_create ();
15018 return pthread_create ();
15023 rm -f conftest.$ac_objext conftest$ac_exeext
15024 if { (ac_try="$ac_link"
15025 case "(($ac_try" in
15026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15027 *) ac_try_echo
=$ac_try;;
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_link") 2>conftest.er1
15032 grep -v '^ *+' conftest.er1
>conftest.err
15034 cat conftest.err
>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } && {
15037 test -z "$ac_c_werror_flag" ||
15038 test ! -s conftest.err
15039 } && test -s conftest
$ac_exeext &&
15040 $as_test_x conftest
$ac_exeext; then
15041 ac_cv_lib_cma_pthread_create
=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.
$ac_ext >&5
15046 ac_cv_lib_cma_pthread_create
=no
15049 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15050 conftest
$ac_exeext conftest.
$ac_ext
15051 LIBS
=$ac_check_lib_save_LIBS
15053 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15054 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15055 if test $ac_cv_lib_cma_pthread_create = yes; then
15056 cat >>confdefs.h
<<\_ACEOF
15057 #define WITH_THREAD 1
15062 THREADOBJ
="Python/thread.o"
15065 USE_THREAD_MODULE
="#"
15085 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15086 conftest
$ac_exeext conftest.
$ac_ext
15096 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15097 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15098 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 ac_check_lib_save_LIBS
=$LIBS
15103 cat >conftest.
$ac_ext <<_ACEOF
15106 cat confdefs.h
>>conftest.
$ac_ext
15107 cat >>conftest.
$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15110 /* Override any GCC internal prototype to avoid an error.
15111 Use char because int might match the return type of a GCC
15112 builtin and then its argument prototype would still apply. */
15120 return usconfig ();
15125 rm -f conftest.
$ac_objext conftest
$ac_exeext
15126 if { (ac_try
="$ac_link"
15127 case "(($ac_try" in
15128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>conftest.er1
15134 grep -v '^ *+' conftest.er1 >conftest.err
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest$ac_exeext &&
15142 $as_test_x conftest$ac_exeext; then
15143 ac_cv_lib_mpc_usconfig=yes
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_lib_mpc_usconfig=no
15151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15152 conftest$ac_exeext conftest.$ac_ext
15153 LIBS=$ac_check_lib_save_LIBS
15155 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15156 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15157 if test $ac_cv_lib_mpc_usconfig = yes; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define WITH_THREAD 1
15163 THREADOBJ="Python/thread.o"
15164 USE_THREAD_MODULE=""
15168 if test "$posix_threads" != "yes"; then
15169 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15170 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15171 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 ac_check_lib_save_LIBS=$LIBS
15175 LIBS="-lthread $LIBS"
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15189 char thr_create ();
15193 return thr_create ();
15198 rm -f conftest.$ac_objext conftest$ac_exeext
15199 if { (ac_try="$ac_link"
15200 case "(($ac_try" in
15201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15202 *) ac_try_echo
=$ac_try;;
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_link") 2>conftest.er1
15207 grep -v '^ *+' conftest.er1
>conftest.err
15209 cat conftest.err
>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } && {
15212 test -z "$ac_c_werror_flag" ||
15213 test ! -s conftest.err
15214 } && test -s conftest
$ac_exeext &&
15215 $as_test_x conftest
$ac_exeext; then
15216 ac_cv_lib_thread_thr_create
=yes
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.
$ac_ext >&5
15221 ac_cv_lib_thread_thr_create
=no
15224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15225 conftest
$ac_exeext conftest.
$ac_ext
15226 LIBS
=$ac_check_lib_save_LIBS
15228 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15229 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15230 if test $ac_cv_lib_thread_thr_create = yes; then
15231 cat >>confdefs.h
<<\_ACEOF
15232 #define WITH_THREAD 1
15235 LIBS
="$LIBS -lthread"
15236 THREADOBJ
="Python/thread.o"
15237 USE_THREAD_MODULE
=""
15242 if test "$USE_THREAD_MODULE" != "#"
15244 # If the above checks didn't disable threads, (at least) OSF1
15245 # needs this '-threads' argument during linking.
15246 case $ac_sys_system in
15247 OSF1
) LDLAST
=-threads;;
15252 if test "$posix_threads" = "yes"; then
15253 if test "$unistd_defines_pthreads" = "no"; then
15255 cat >>confdefs.h
<<\_ACEOF
15256 #define _POSIX_THREADS 1
15261 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15262 case $ac_sys_system/$ac_sys_release in
15264 cat >>confdefs.h
<<\_ACEOF
15265 #define HAVE_PTHREAD_DESTRUCTOR 1
15270 cat >>confdefs.h
<<\_ACEOF
15271 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15276 cat >>confdefs.h
<<\_ACEOF
15277 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15283 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15284 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15285 if test "${ac_cv_pthread_system_supported+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 if test "$cross_compiling" = yes; then
15289 ac_cv_pthread_system_supported
=no
15291 cat >conftest.
$ac_ext <<_ACEOF
15294 cat confdefs.h
>>conftest.
$ac_ext
15295 cat >>conftest.
$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <pthread.h>
15298 void *foo(void *parm) {
15302 pthread_attr_t attr;
15304 if (pthread_attr_init(&attr)) exit(-1);
15305 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15306 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15310 rm -f conftest
$ac_exeext
15311 if { (ac_try
="$ac_link"
15312 case "(($ac_try" in
15313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_link") 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15323 *) ac_try_echo
=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_cv_pthread_system_supported
=yes
15332 echo "$as_me: program exited with status $ac_status" >&5
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.
$ac_ext >&5
15336 ( exit $ac_status )
15337 ac_cv_pthread_system_supported
=no
15339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15346 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15347 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15348 if test "$ac_cv_pthread_system_supported" = "yes"; then
15350 cat >>confdefs.h
<<\_ACEOF
15351 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15356 for ac_func
in pthread_sigmask
15358 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15361 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 cat >conftest.
$ac_ext <<_ACEOF
15367 cat confdefs.h
>>conftest.
$ac_ext
15368 cat >>conftest.
$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15372 #define $ac_func innocuous_$ac_func
15374 /* System header to define __stub macros and hopefully few prototypes,
15375 which can conflict with char $ac_func (); below.
15376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15377 <limits.h> exists even on freestanding compilers. */
15380 # include <limits.h>
15382 # include <assert.h>
15387 /* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15394 /* The GNU C library defines this for functions which it implements
15395 to always fail with ENOSYS. Some functions are actually named
15396 something starting with __ and the normal name is an alias. */
15397 #if defined __stub_$ac_func || defined __stub___$ac_func
15404 return $ac_func ();
15409 rm -f conftest.
$ac_objext conftest
$ac_exeext
15410 if { (ac_try
="$ac_link"
15411 case "(($ac_try" in
15412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
15427 eval "$as_ac_var=yes"
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 eval "$as_ac_var=no"
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15438 ac_res=`eval echo '${'$as_ac_var'}'`
15439 { echo "$as_me:$LINENO: result: $ac_res" >&5
15440 echo "${ECHO_T}$ac_res" >&6; }
15441 if test `eval echo '${'$as_ac_var'}'` = yes; then
15442 cat >>confdefs.h <<_ACEOF
15443 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15445 case $ac_sys_system in
15448 cat >>confdefs.h <<\_ACEOF
15449 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15460 # Check for enable-ipv6
15463 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15464 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15465 # Check whether --enable-ipv6 was given.
15466 if test "${enable_ipv6+set}" = set; then
15467 enableval=$enable_ipv6; case "$enableval" in
15469 { echo "$as_me:$LINENO: result: no" >&5
15470 echo "${ECHO_T}no" >&6; }
15473 *) { echo "$as_me:$LINENO: result: yes" >&5
15474 echo "${ECHO_T}yes" >&6; }
15475 cat >>confdefs.h <<\_ACEOF
15476 #define ENABLE_IPV6 1
15484 if test "$cross_compiling" = yes; then
15485 { echo "$as_me:$LINENO: result: no" >&5
15486 echo "${ECHO_T}no" >&6; }
15490 cat >conftest.$ac_ext <<_ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 /* AF_INET6 available check */
15497 #include <sys/types.h>
15498 #include <sys/socket.h>
15501 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15508 rm -f conftest$ac_exeext
15509 if { (ac_try="$ac_link"
15510 case "(($ac_try" in
15511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15512 *) ac_try_echo
=$ac_try;;
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_link") 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15519 { (case "(($ac_try" in
15520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 { echo "$as_me:$LINENO: result: yes" >&5
15529 echo "${ECHO_T}yes" >&6; }
15532 echo "$as_me: program exited with status $ac_status" >&5
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ( exit $ac_status )
15537 { echo "$as_me:$LINENO: result: no" >&5
15538 echo "${ECHO_T}no" >&6; }
15541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15546 if test "$ipv6" = "yes"; then
15547 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15548 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <sys/types.h>
15556 #include <netinet/in.h>
15560 struct sockaddr_in6 x;
15566 rm -f conftest.$ac_objext
15567 if { (ac_try="$ac_compile"
15568 case "(($ac_try" in
15569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15570 *) ac_try_echo
=$ac_try;;
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_compile") 2>conftest.er1
15575 grep -v '^ *+' conftest.er1
>conftest.err
15577 cat conftest.err
>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } && {
15580 test -z "$ac_c_werror_flag" ||
15581 test ! -s conftest.err
15582 } && test -s conftest.
$ac_objext; then
15583 { echo "$as_me:$LINENO: result: yes" >&5
15584 echo "${ECHO_T}yes" >&6; }
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.
$ac_ext >&5
15590 { echo "$as_me:$LINENO: result: no" >&5
15591 echo "${ECHO_T}no" >&6; }
15595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15598 if test "$ipv6" = "yes"; then
15599 cat >>confdefs.h
<<\_ACEOF
15600 #define ENABLE_IPV6 1
15612 if test "$ipv6" = "yes"; then
15613 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15614 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15615 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15619 cat >conftest.
$ac_ext <<_ACEOF
15622 cat confdefs.h
>>conftest.
$ac_ext
15623 cat >>conftest.
$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15626 #include <netinet/in.h>
15627 #ifdef IPV6_INRIA_VERSION
15631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15632 $EGREP "yes" >/dev
/null
2>&1; then
15639 cat >conftest.
$ac_ext <<_ACEOF
15642 cat confdefs.h
>>conftest.
$ac_ext
15643 cat >>conftest.
$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15646 #include <netinet/in.h>
15651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15652 $EGREP "yes" >/dev
/null
2>&1; then
15655 ipv6libdir
=/usr
/local
/v
6/lib
15662 cat >conftest.
$ac_ext <<_ACEOF
15665 cat confdefs.h
>>conftest.
$ac_ext
15666 cat >>conftest.
$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15669 #include <features.h>
15670 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15675 $EGREP "yes" >/dev
/null
2>&1; then
15683 if test -d /usr
/inet6
; then
15686 ipv6libdir
=/usr
/inet
6/lib
15687 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15691 if test -f /etc
/netconfig
; then
15692 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15699 cat >conftest.
$ac_ext <<_ACEOF
15702 cat confdefs.h
>>conftest.
$ac_ext
15703 cat >>conftest.
$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15706 #include <sys/param.h>
15707 #ifdef _TOSHIBA_INET6
15711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15712 $EGREP "yes" >/dev
/null
2>&1; then
15715 ipv6libdir
=/usr
/local
/v
6/lib
15721 cat >conftest.
$ac_ext <<_ACEOF
15724 cat confdefs.h
>>conftest.
$ac_ext
15725 cat >>conftest.
$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15728 #include </usr/local/v6/include/sys/v6config.h>
15733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15734 $EGREP "yes" >/dev
/null
2>&1; then
15737 ipv6libdir
=/usr
/local
/v
6/lib
;
15738 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15744 cat >conftest.
$ac_ext <<_ACEOF
15747 cat confdefs.h
>>conftest.
$ac_ext
15748 cat >>conftest.
$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15751 #include <sys/param.h>
15752 #ifdef _ZETA_MINAMI_INET6
15756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15757 $EGREP "yes" >/dev
/null
2>&1; then
15760 ipv6libdir
=/usr
/local
/v
6/lib
15766 if test "$ipv6type" != "unknown"; then
15770 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15771 echo "${ECHO_T}$ipv6type" >&6; }
15774 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15775 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15776 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15777 echo "using lib$ipv6lib"
15779 if test $ipv6trylibc = "yes"; then
15782 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15783 echo "You need to fetch lib$ipv6lib.a from appropriate"
15784 echo 'ipv6 kit and compile beforehand.'
15790 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15791 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15792 cat >conftest.
$ac_ext <<_ACEOF
15795 cat confdefs.h
>>conftest.
$ac_ext
15796 cat >>conftest.
$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 #include <Carbon/Carbon.h>
15802 FSIORefNum fRef = 0
15807 rm -f conftest.
$ac_objext
15808 if { (ac_try
="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15816 grep -v '^ *+' conftest.er1 >conftest.err
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15825 cat >>confdefs.h <<\_ACEOF
15826 #define HAVE_OSX105_SDK 1
15829 { echo "$as_me:$LINENO: result: yes" >&5
15830 echo "${ECHO_T}yes" >&6; }
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 # Check for --with-doc-strings
15843 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15844 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15846 # Check whether --with-doc-strings was given.
15847 if test "${with_doc_strings+set}" = set; then
15848 withval=$with_doc_strings;
15852 if test -z "$with_doc_strings"
15853 then with_doc_strings="yes"
15855 if test "$with_doc_strings" != "no"
15858 cat >>confdefs.h <<\_ACEOF
15859 #define WITH_DOC_STRINGS 1
15863 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15864 echo "${ECHO_T}$with_doc_strings" >&6; }
15866 # Check for Python-specific malloc support
15867 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15868 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15870 # Check whether --with-tsc was given.
15871 if test "${with_tsc+set}" = set; then
15873 if test "$withval" != no
15876 cat >>confdefs.h <<\_ACEOF
15880 { echo "$as_me:$LINENO: result: yes" >&5
15881 echo "${ECHO_T}yes" >&6; }
15882 else { echo "$as_me:$LINENO: result: no" >&5
15883 echo "${ECHO_T}no" >&6; }
15886 { echo "$as_me:$LINENO: result: no" >&5
15887 echo "${ECHO_T}no" >&6; }
15891 # Check for Python-specific malloc support
15892 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15893 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15895 # Check whether --with-pymalloc was given.
15896 if test "${with_pymalloc+set}" = set; then
15897 withval=$with_pymalloc;
15901 if test -z "$with_pymalloc"
15902 then with_pymalloc="yes"
15904 if test "$with_pymalloc" != "no"
15907 cat >>confdefs.h <<\_ACEOF
15908 #define WITH_PYMALLOC 1
15912 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15913 echo "${ECHO_T}$with_pymalloc" >&6; }
15915 # Check for --with-wctype-functions
15916 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15917 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15919 # Check whether --with-wctype-functions was given.
15920 if test "${with_wctype_functions+set}" = set; then
15921 withval=$with_wctype_functions;
15922 if test "$withval" != no
15925 cat >>confdefs.h <<\_ACEOF
15926 #define WANT_WCTYPE_FUNCTIONS 1
15929 { echo "$as_me:$LINENO: result: yes" >&5
15930 echo "${ECHO_T}yes" >&6; }
15931 else { echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6; }
15935 { echo "$as_me:$LINENO: result: no" >&5
15936 echo "${ECHO_T}no" >&6; }
15940 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15944 # the dlopen() function means we might want to use dynload_shlib.o. some
15945 # platforms, such as AIX, have dlopen(), but don't want to use it.
15947 for ac_func in dlopen
15949 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 cat >conftest.$ac_ext <<_ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15963 #define $ac_func innocuous_$ac_func
15965 /* System header to define __stub macros and hopefully few prototypes,
15966 which can conflict with char $ac_func (); below.
15967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15968 <limits.h> exists even on freestanding compilers. */
15971 # include <limits.h>
15973 # include <assert.h>
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15985 /* The GNU C library defines this for functions which it implements
15986 to always fail with ENOSYS. Some functions are actually named
15987 something starting with __ and the normal name is an alias. */
15988 #if defined __stub_$ac_func || defined __stub___$ac_func
15995 return $ac_func ();
16000 rm -f conftest.$ac_objext conftest$ac_exeext
16001 if { (ac_try="$ac_link"
16002 case "(($ac_try" in
16003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16004 *) ac_try_echo
=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_link") 2>conftest.er1
16009 grep -v '^ *+' conftest.er1
>conftest.err
16011 cat conftest.err
>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } && {
16014 test -z "$ac_c_werror_flag" ||
16015 test ! -s conftest.err
16016 } && test -s conftest
$ac_exeext &&
16017 $as_test_x conftest
$ac_exeext; then
16018 eval "$as_ac_var=yes"
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.
$ac_ext >&5
16023 eval "$as_ac_var=no"
16026 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16027 conftest
$ac_exeext conftest.
$ac_ext
16029 ac_res
=`eval echo '${'$as_ac_var'}'`
16030 { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16032 if test `eval echo '${'$as_ac_var'}'` = yes; then
16033 cat >>confdefs.h
<<_ACEOF
16034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16041 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16042 # loading of modules.
16044 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16045 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16046 if test -z "$DYNLOADFILE"
16048 case $ac_sys_system/$ac_sys_release in
16049 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16050 if test "$ac_cv_func_dlopen" = yes
16051 then DYNLOADFILE
="dynload_shlib.o"
16052 else DYNLOADFILE
="dynload_aix.o"
16055 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16056 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16057 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16058 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16059 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16061 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16062 # out any dynamic loading
16063 if test "$ac_cv_func_dlopen" = yes
16064 then DYNLOADFILE
="dynload_shlib.o"
16065 else DYNLOADFILE
="dynload_stub.o"
16070 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16071 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16072 if test "$DYNLOADFILE" != "dynload_stub.o"
16075 cat >>confdefs.h
<<\_ACEOF
16076 #define HAVE_DYNAMIC_LOADING 1
16081 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16084 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16085 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16086 if test -z "$MACHDEP_OBJS"
16088 MACHDEP_OBJS
=$extra_machdep_objs
16090 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16092 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16093 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16095 # checks for library functions
16177 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16178 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16179 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16180 getpriority getpwent getspnam getspent getsid getwd \
16181 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16182 mremap nice pathconf pause plock poll pthread_init \
16183 putenv readlink realpath \
16184 select setegid seteuid setgid \
16185 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16186 sigaction siginterrupt sigrelse strftime \
16187 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16188 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16190 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16193 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 cat >conftest.
$ac_ext <<_ACEOF
16199 cat confdefs.h
>>conftest.
$ac_ext
16200 cat >>conftest.
$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16204 #define $ac_func innocuous_$ac_func
16206 /* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func (); below.
16208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16209 <limits.h> exists even on freestanding compilers. */
16212 # include <limits.h>
16214 # include <assert.h>
16219 /* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16226 /* The GNU C library defines this for functions which it implements
16227 to always fail with ENOSYS. Some functions are actually named
16228 something starting with __ and the normal name is an alias. */
16229 #if defined __stub_$ac_func || defined __stub___$ac_func
16236 return $ac_func ();
16241 rm -f conftest.
$ac_objext conftest
$ac_exeext
16242 if { (ac_try
="$ac_link"
16243 case "(($ac_try" in
16244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_link") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } && {
16255 test -z "$ac_c_werror_flag" ||
16256 test ! -s conftest.err
16257 } && test -s conftest$ac_exeext &&
16258 $as_test_x conftest$ac_exeext; then
16259 eval "$as_ac_var=yes"
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 eval "$as_ac_var=no"
16267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16268 conftest$ac_exeext conftest.$ac_ext
16270 ac_res=`eval echo '${'$as_ac_var'}'`
16271 { echo "$as_me:$LINENO: result: $ac_res" >&5
16272 echo "${ECHO_T}$ac_res" >&6; }
16273 if test `eval echo '${'$as_ac_var'}'` = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16282 # For some functions, having a definition is not sufficient, since
16283 # we want to take their address.
16284 { echo "$as_me:$LINENO: checking for chroot" >&5
16285 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <unistd.h>
16301 rm -f conftest.$ac_objext
16302 if { (ac_try="$ac_compile"
16303 case "(($ac_try" in
16304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16305 *) ac_try_echo
=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_compile") 2>conftest.er1
16310 grep -v '^ *+' conftest.er1
>conftest.err
16312 cat conftest.err
>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest.
$ac_objext; then
16319 cat >>confdefs.h
<<\_ACEOF
16320 #define HAVE_CHROOT 1
16323 { echo "$as_me:$LINENO: result: yes" >&5
16324 echo "${ECHO_T}yes" >&6; }
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.
$ac_ext >&5
16329 { echo "$as_me:$LINENO: result: no" >&5
16330 echo "${ECHO_T}no" >&6; }
16334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16335 { echo "$as_me:$LINENO: checking for link" >&5
16336 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16337 cat >conftest.
$ac_ext <<_ACEOF
16340 cat confdefs.h
>>conftest.
$ac_ext
16341 cat >>conftest.
$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <unistd.h>
16352 rm -f conftest.
$ac_objext
16353 if { (ac_try
="$ac_compile"
16354 case "(($ac_try" in
16355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_compile") 2>conftest.er1
16361 grep -v '^ *+' conftest.er1 >conftest.err
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } && {
16366 test -z "$ac_c_werror_flag" ||
16367 test ! -s conftest.err
16368 } && test -s conftest.$ac_objext; then
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_LINK 1
16374 { echo "$as_me:$LINENO: result: yes" >&5
16375 echo "${ECHO_T}yes" >&6; }
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 { echo "$as_me:$LINENO: result: no" >&5
16381 echo "${ECHO_T}no" >&6; }
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { echo "$as_me:$LINENO: checking for symlink" >&5
16387 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 #include <unistd.h>
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16407 *) ac_try_echo
=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16412 grep -v '^ *+' conftest.er1
>conftest.err
16414 cat conftest.err
>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } && {
16417 test -z "$ac_c_werror_flag" ||
16418 test ! -s conftest.err
16419 } && test -s conftest.
$ac_objext; then
16421 cat >>confdefs.h
<<\_ACEOF
16422 #define HAVE_SYMLINK 1
16425 { echo "$as_me:$LINENO: result: yes" >&5
16426 echo "${ECHO_T}yes" >&6; }
16428 echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.
$ac_ext >&5
16431 { echo "$as_me:$LINENO: result: no" >&5
16432 echo "${ECHO_T}no" >&6; }
16436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16437 { echo "$as_me:$LINENO: checking for fchdir" >&5
16438 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16439 cat >conftest.
$ac_ext <<_ACEOF
16442 cat confdefs.h
>>conftest.
$ac_ext
16443 cat >>conftest.
$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 #include <unistd.h>
16454 rm -f conftest.
$ac_objext
16455 if { (ac_try
="$ac_compile"
16456 case "(($ac_try" in
16457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16463 grep -v '^ *+' conftest.er1 >conftest.err
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && {
16468 test -z "$ac_c_werror_flag" ||
16469 test ! -s conftest.err
16470 } && test -s conftest.$ac_objext; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_FCHDIR 1
16476 { echo "$as_me:$LINENO: result: yes" >&5
16477 echo "${ECHO_T}yes" >&6; }
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482 { echo "$as_me:$LINENO: result: no" >&5
16483 echo "${ECHO_T}no" >&6; }
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 { echo "$as_me:$LINENO: checking for fsync" >&5
16489 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16490 cat >conftest.$ac_ext <<_ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 #include <unistd.h>
16505 rm -f conftest.$ac_objext
16506 if { (ac_try="$ac_compile"
16507 case "(($ac_try" in
16508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16509 *) ac_try_echo
=$ac_try;;
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_compile") 2>conftest.er1
16514 grep -v '^ *+' conftest.er1
>conftest.err
16516 cat conftest.err
>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } && {
16519 test -z "$ac_c_werror_flag" ||
16520 test ! -s conftest.err
16521 } && test -s conftest.
$ac_objext; then
16523 cat >>confdefs.h
<<\_ACEOF
16524 #define HAVE_FSYNC 1
16527 { echo "$as_me:$LINENO: result: yes" >&5
16528 echo "${ECHO_T}yes" >&6; }
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.
$ac_ext >&5
16533 { echo "$as_me:$LINENO: result: no" >&5
16534 echo "${ECHO_T}no" >&6; }
16538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16539 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16540 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16541 cat >conftest.
$ac_ext <<_ACEOF
16544 cat confdefs.h
>>conftest.
$ac_ext
16545 cat >>conftest.
$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 #include <unistd.h>
16556 rm -f conftest.
$ac_objext
16557 if { (ac_try
="$ac_compile"
16558 case "(($ac_try" in
16559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_compile") 2>conftest.er1
16565 grep -v '^ *+' conftest.er1 >conftest.err
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && {
16570 test -z "$ac_c_werror_flag" ||
16571 test ! -s conftest.err
16572 } && test -s conftest.$ac_objext; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_FDATASYNC 1
16578 { echo "$as_me:$LINENO: result: yes" >&5
16579 echo "${ECHO_T}yes" >&6; }
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 { echo "$as_me:$LINENO: result: no" >&5
16585 echo "${ECHO_T}no" >&6; }
16589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: checking for epoll" >&5
16591 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16592 cat >conftest.$ac_ext <<_ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <sys/epoll.h>
16602 void *x=epoll_create
16607 rm -f conftest.$ac_objext
16608 if { (ac_try="$ac_compile"
16609 case "(($ac_try" in
16610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16611 *) ac_try_echo
=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_compile") 2>conftest.er1
16616 grep -v '^ *+' conftest.er1
>conftest.err
16618 cat conftest.err
>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && {
16621 test -z "$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 } && test -s conftest.
$ac_objext; then
16625 cat >>confdefs.h
<<\_ACEOF
16626 #define HAVE_EPOLL 1
16629 { echo "$as_me:$LINENO: result: yes" >&5
16630 echo "${ECHO_T}yes" >&6; }
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.
$ac_ext >&5
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16641 { echo "$as_me:$LINENO: checking for kqueue" >&5
16642 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16643 cat >conftest.
$ac_ext <<_ACEOF
16646 cat confdefs.h
>>conftest.
$ac_ext
16647 cat >>conftest.
$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16650 #include <sys/types.h>
16651 #include <sys/event.h>
16661 rm -f conftest.
$ac_objext
16662 if { (ac_try
="$ac_compile"
16663 case "(($ac_try" in
16664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } && {
16675 test -z "$ac_c_werror_flag" ||
16676 test ! -s conftest.err
16677 } && test -s conftest.$ac_objext; then
16679 cat >>confdefs.h <<\_ACEOF
16680 #define HAVE_KQUEUE 1
16683 { echo "$as_me:$LINENO: result: yes" >&5
16684 echo "${ECHO_T}yes" >&6; }
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 { echo "$as_me:$LINENO: result: no" >&5
16690 echo "${ECHO_T}no" >&6; }
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 # On some systems (eg. FreeBSD 5), we would find a definition of the
16696 # functions ctermid_r, setgroups in the library, but no prototype
16697 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16698 # address to avoid compiler warnings and potential miscompilations
16699 # because of the missing prototypes.
16701 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16702 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16703 cat >conftest.$ac_ext <<_ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16710 #include "confdefs.h"
16716 void* p = ctermid_r
16721 rm -f conftest.$ac_objext
16722 if { (ac_try="$ac_compile"
16723 case "(($ac_try" in
16724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16725 *) ac_try_echo
=$ac_try;;
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_compile") 2>conftest.er1
16730 grep -v '^ *+' conftest.er1
>conftest.err
16732 cat conftest.err
>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } && {
16735 test -z "$ac_c_werror_flag" ||
16736 test ! -s conftest.err
16737 } && test -s conftest.
$ac_objext; then
16739 cat >>confdefs.h
<<\_ACEOF
16740 #define HAVE_CTERMID_R 1
16743 { echo "$as_me:$LINENO: result: yes" >&5
16744 echo "${ECHO_T}yes" >&6; }
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.
$ac_ext >&5
16749 { echo "$as_me:$LINENO: result: no" >&5
16750 echo "${ECHO_T}no" >&6; }
16754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16756 { echo "$as_me:$LINENO: checking for flock" >&5
16757 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16758 cat >conftest.
$ac_ext <<_ACEOF
16761 cat confdefs.h
>>conftest.
$ac_ext
16762 cat >>conftest.
$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 #include "confdefs.h"
16766 #include <sys/file.h>
16776 rm -f conftest.
$ac_objext
16777 if { (ac_try
="$ac_compile"
16778 case "(($ac_try" in
16779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_compile") 2>conftest.er1
16785 grep -v '^ *+' conftest.er1 >conftest.err
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } && {
16790 test -z "$ac_c_werror_flag" ||
16791 test ! -s conftest.err
16792 } && test -s conftest.$ac_objext; then
16794 cat >>confdefs.h <<\_ACEOF
16795 #define HAVE_FLOCK 1
16798 { echo "$as_me:$LINENO: result: yes" >&5
16799 echo "${ECHO_T}yes" >&6; }
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 { echo "$as_me:$LINENO: result: no" >&5
16805 echo "${ECHO_T}no" >&6; }
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16812 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16813 cat >conftest.$ac_ext <<_ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16820 #include "confdefs.h"
16821 #include <unistd.h>
16826 void* p = getpagesize
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16835 *) ac_try_echo
=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16840 grep -v '^ *+' conftest.er1
>conftest.err
16842 cat conftest.err
>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } && {
16845 test -z "$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16847 } && test -s conftest.
$ac_objext; then
16849 cat >>confdefs.h
<<\_ACEOF
16850 #define HAVE_GETPAGESIZE 1
16853 { echo "$as_me:$LINENO: result: yes" >&5
16854 echo "${ECHO_T}yes" >&6; }
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.
$ac_ext >&5
16859 { echo "$as_me:$LINENO: result: no" >&5
16860 echo "${ECHO_T}no" >&6; }
16864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16866 for ac_prog
in true
16868 # Extract the first word of "$ac_prog", so it can be a program name with args.
16869 set dummy
$ac_prog; ac_word
=$2
16870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16872 if test "${ac_cv_prog_TRUE+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 if test -n "$TRUE"; then
16876 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
16878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16879 for as_dir
in $PATH
16882 test -z "$as_dir" && as_dir
=.
16883 for ac_exec_ext
in '' $ac_executable_extensions; do
16884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16885 ac_cv_prog_TRUE
="$ac_prog"
16886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16895 TRUE
=$ac_cv_prog_TRUE
16896 if test -n "$TRUE"; then
16897 { echo "$as_me:$LINENO: result: $TRUE" >&5
16898 echo "${ECHO_T}$TRUE" >&6; }
16900 { echo "$as_me:$LINENO: result: no" >&5
16901 echo "${ECHO_T}no" >&6; }
16905 test -n "$TRUE" && break
16907 test -n "$TRUE" || TRUE
="/bin/true"
16910 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16911 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16912 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 ac_check_lib_save_LIBS
=$LIBS
16917 cat >conftest.
$ac_ext <<_ACEOF
16920 cat confdefs.h
>>conftest.
$ac_ext
16921 cat >>conftest.
$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16924 /* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */
16934 return inet_aton ();
16939 rm -f conftest.
$ac_objext conftest
$ac_exeext
16940 if { (ac_try
="$ac_link"
16941 case "(($ac_try" in
16942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>conftest.er1
16948 grep -v '^ *+' conftest.er1 >conftest.err
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } && {
16953 test -z "$ac_c_werror_flag" ||
16954 test ! -s conftest.err
16955 } && test -s conftest$ac_exeext &&
16956 $as_test_x conftest$ac_exeext; then
16957 ac_cv_lib_c_inet_aton=yes
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_lib_c_inet_aton=no
16965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16966 conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16969 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16970 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16971 if test $ac_cv_lib_c_inet_aton = yes; then
16975 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16976 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16977 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 ac_check_lib_save_LIBS=$LIBS
16981 LIBS="-lresolv $LIBS"
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16989 /* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16999 return inet_aton ();
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17008 *) ac_try_echo
=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1
>conftest.err
17015 cat conftest.err
>&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest
$ac_exeext &&
17021 $as_test_x conftest
$ac_exeext; then
17022 ac_cv_lib_resolv_inet_aton
=yes
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.
$ac_ext >&5
17027 ac_cv_lib_resolv_inet_aton
=no
17030 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17031 conftest
$ac_exeext conftest.
$ac_ext
17032 LIBS
=$ac_check_lib_save_LIBS
17034 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17035 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17036 if test $ac_cv_lib_resolv_inet_aton = yes; then
17037 cat >>confdefs.h
<<_ACEOF
17038 #define HAVE_LIBRESOLV 1
17041 LIBS
="-lresolv $LIBS"
17049 # On Tru64, chflags seems to be present, but calling it will
17051 { echo "$as_me:$LINENO: checking for chflags" >&5
17052 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17053 if test "$cross_compiling" = yes; then
17054 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17055 See \`config.log' for more details." >&5
17056 echo "$as_me: error: cannot run test program while cross compiling
17057 See \`config.log' for more details." >&2;}
17058 { (exit 1); exit 1; }; }
17060 cat >conftest.
$ac_ext <<_ACEOF
17063 cat confdefs.h
>>conftest.
$ac_ext
17064 cat >>conftest.
$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17067 #include <sys/stat.h>
17068 #include <unistd.h>
17069 int main(int argc, char*argv[])
17071 if(chflags(argv[0], 0) != 0)
17077 rm -f conftest
$ac_exeext
17078 if { (ac_try
="$ac_link"
17079 case "(($ac_try" in
17080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_link") 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17090 *) ac_try_echo
=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17098 cat >>confdefs.h
<<\_ACEOF
17099 #define HAVE_CHFLAGS 1
17102 { echo "$as_me:$LINENO: result: yes" >&5
17103 echo "${ECHO_T}yes" >&6; }
17105 echo "$as_me: program exited with status $ac_status" >&5
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.
$ac_ext >&5
17109 ( exit $ac_status )
17110 { echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6; }
17114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17119 { echo "$as_me:$LINENO: checking for lchflags" >&5
17120 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17121 if test "$cross_compiling" = yes; then
17122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17123 See \`config.log' for more details." >&5
17124 echo "$as_me: error: cannot run test program while cross compiling
17125 See \`config.log' for more details." >&2;}
17126 { (exit 1); exit 1; }; }
17128 cat >conftest.
$ac_ext <<_ACEOF
17131 cat confdefs.h
>>conftest.
$ac_ext
17132 cat >>conftest.
$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 #include <sys/stat.h>
17136 #include <unistd.h>
17137 int main(int argc, char*argv[])
17139 if(lchflags(argv[0], 0) != 0)
17145 rm -f conftest
$ac_exeext
17146 if { (ac_try
="$ac_link"
17147 case "(($ac_try" in
17148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_link") 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17158 *) ac_try_echo
=$ac_try;;
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17166 cat >>confdefs.h
<<\_ACEOF
17167 #define HAVE_LCHFLAGS 1
17170 { echo "$as_me:$LINENO: result: yes" >&5
17171 echo "${ECHO_T}yes" >&6; }
17173 echo "$as_me: program exited with status $ac_status" >&5
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.
$ac_ext >&5
17177 ( exit $ac_status )
17178 { echo "$as_me:$LINENO: result: no" >&5
17179 echo "${ECHO_T}no" >&6; }
17182 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17187 case $ac_sys_system/$ac_sys_release in
17189 _CUR_CFLAGS
="${CFLAGS}"
17190 _CUR_LDFLAGS
="${LDFLAGS}"
17191 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17192 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17196 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17197 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17198 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 ac_check_lib_save_LIBS
=$LIBS
17203 cat >conftest.
$ac_ext <<_ACEOF
17206 cat confdefs.h
>>conftest.
$ac_ext
17207 cat >>conftest.
$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17216 char inflateCopy ();
17220 return inflateCopy ();
17225 rm -f conftest.
$ac_objext conftest
$ac_exeext
17226 if { (ac_try
="$ac_link"
17227 case "(($ac_try" in
17228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest$ac_exeext &&
17242 $as_test_x conftest$ac_exeext; then
17243 ac_cv_lib_z_inflateCopy=yes
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_cv_lib_z_inflateCopy=no
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17255 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17256 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17257 if test $ac_cv_lib_z_inflateCopy = yes; then
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_ZLIB_COPY 1
17266 case $ac_sys_system/$ac_sys_release in
17268 CFLAGS="${_CUR_CFLAGS}"
17269 LDFLAGS="${_CUR_LDFLAGS}"
17273 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17274 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 #include "confdefs.h"
17288 void* p = hstrerror; hstrerror(0)
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17297 *) ac_try_echo
=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1
>conftest.err
17304 cat conftest.err
>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest
$ac_exeext &&
17310 $as_test_x conftest
$ac_exeext; then
17312 cat >>confdefs.h
<<\_ACEOF
17313 #define HAVE_HSTRERROR 1
17316 { echo "$as_me:$LINENO: result: yes" >&5
17317 echo "${ECHO_T}yes" >&6; }
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.
$ac_ext >&5
17322 { echo "$as_me:$LINENO: result: no" >&5
17323 echo "${ECHO_T}no" >&6; }
17327 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17328 conftest
$ac_exeext conftest.
$ac_ext
17330 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17331 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17332 cat >conftest.
$ac_ext <<_ACEOF
17335 cat confdefs.h
>>conftest.
$ac_ext
17336 cat >>conftest.
$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17339 #include "confdefs.h"
17340 #include <sys/types.h>
17341 #include <sys/socket.h>
17342 #include <netinet/in.h>
17343 #include <arpa/inet.h>
17348 void* p = inet_aton;inet_aton(0,0)
17353 rm -f conftest.
$ac_objext conftest
$ac_exeext
17354 if { (ac_try
="$ac_link"
17355 case "(($ac_try" in
17356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext &&
17370 $as_test_x conftest$ac_exeext; then
17372 cat >>confdefs.h <<\_ACEOF
17373 #define HAVE_INET_ATON 1
17376 { echo "$as_me:$LINENO: result: yes" >&5
17377 echo "${ECHO_T}yes" >&6; }
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 { echo "$as_me:$LINENO: result: no" >&5
17383 echo "${ECHO_T}no" >&6; }
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17390 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17391 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17392 cat >conftest.$ac_ext <<_ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17399 #include "confdefs.h"
17400 #include <sys/types.h>
17401 #include <sys/socket.h>
17402 #include <netinet/in.h>
17403 #include <arpa/inet.h>
17408 void* p = inet_pton
17413 rm -f conftest.$ac_objext
17414 if { (ac_try="$ac_compile"
17415 case "(($ac_try" in
17416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17417 *) ac_try_echo
=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_compile") 2>conftest.er1
17422 grep -v '^ *+' conftest.er1
>conftest.err
17424 cat conftest.err
>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && {
17427 test -z "$ac_c_werror_flag" ||
17428 test ! -s conftest.err
17429 } && test -s conftest.
$ac_objext; then
17431 cat >>confdefs.h
<<\_ACEOF
17432 #define HAVE_INET_PTON 1
17435 { echo "$as_me:$LINENO: result: yes" >&5
17436 echo "${ECHO_T}yes" >&6; }
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.
$ac_ext >&5
17441 { echo "$as_me:$LINENO: result: no" >&5
17442 echo "${ECHO_T}no" >&6; }
17446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17448 # On some systems, setgroups is in unistd.h, on others, in grp.h
17449 { echo "$as_me:$LINENO: checking for setgroups" >&5
17450 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17451 cat >conftest.
$ac_ext <<_ACEOF
17454 cat confdefs.h
>>conftest.
$ac_ext
17455 cat >>conftest.
$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17458 #include "confdefs.h"
17459 #include <unistd.h>
17467 void* p = setgroups
17472 rm -f conftest.
$ac_objext
17473 if { (ac_try
="$ac_compile"
17474 case "(($ac_try" in
17475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_compile") 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && {
17486 test -z "$ac_c_werror_flag" ||
17487 test ! -s conftest.err
17488 } && test -s conftest.$ac_objext; then
17490 cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_SETGROUPS 1
17494 { echo "$as_me:$LINENO: result: yes" >&5
17495 echo "${ECHO_T}yes" >&6; }
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 { echo "$as_me:$LINENO: result: no" >&5
17501 echo "${ECHO_T}no" >&6; }
17505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17507 # check for openpty and forkpty
17510 for ac_func in openpty
17512 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17518 cat >conftest.$ac_ext <<_ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17526 #define $ac_func innocuous_$ac_func
17528 /* System header to define __stub macros and hopefully few prototypes,
17529 which can conflict with char $ac_func (); below.
17530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17531 <limits.h> exists even on freestanding compilers. */
17534 # include <limits.h>
17536 # include <assert.h>
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17548 /* The GNU C library defines this for functions which it implements
17549 to always fail with ENOSYS. Some functions are actually named
17550 something starting with __ and the normal name is an alias. */
17551 #if defined __stub_$ac_func || defined __stub___$ac_func
17558 return $ac_func ();
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17567 *) ac_try_echo
=$ac_try;;
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
17572 grep -v '^ *+' conftest.er1
>conftest.err
17574 cat conftest.err
>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } && {
17577 test -z "$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 } && test -s conftest
$ac_exeext &&
17580 $as_test_x conftest
$ac_exeext; then
17581 eval "$as_ac_var=yes"
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.
$ac_ext >&5
17586 eval "$as_ac_var=no"
17589 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17590 conftest
$ac_exeext conftest.
$ac_ext
17592 ac_res
=`eval echo '${'$as_ac_var'}'`
17593 { echo "$as_me:$LINENO: result: $ac_res" >&5
17594 echo "${ECHO_T}$ac_res" >&6; }
17595 if test `eval echo '${'$as_ac_var'}'` = yes; then
17596 cat >>confdefs.h
<<_ACEOF
17597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17601 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17602 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17603 if test "${ac_cv_lib_util_openpty+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 ac_check_lib_save_LIBS
=$LIBS
17607 LIBS
="-lutil $LIBS"
17608 cat >conftest.
$ac_ext <<_ACEOF
17611 cat confdefs.h
>>conftest.
$ac_ext
17612 cat >>conftest.
$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17615 /* Override any GCC internal prototype to avoid an error.
17616 Use char because int might match the return type of a GCC
17617 builtin and then its argument prototype would still apply. */
17630 rm -f conftest.
$ac_objext conftest
$ac_exeext
17631 if { (ac_try
="$ac_link"
17632 case "(($ac_try" in
17633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest$ac_exeext &&
17647 $as_test_x conftest$ac_exeext; then
17648 ac_cv_lib_util_openpty=yes
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ac_cv_lib_util_openpty=no
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17660 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17661 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17662 if test $ac_cv_lib_util_openpty = yes; then
17663 cat >>confdefs.h <<\_ACEOF
17664 #define HAVE_OPENPTY 1
17666 LIBS="$LIBS -lutil"
17668 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17669 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17670 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 ac_check_lib_save_LIBS=$LIBS
17675 cat >conftest.$ac_ext <<_ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17697 rm -f conftest.$ac_objext conftest$ac_exeext
17698 if { (ac_try="$ac_link"
17699 case "(($ac_try" in
17700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17701 *) ac_try_echo
=$ac_try;;
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_link") 2>conftest.er1
17706 grep -v '^ *+' conftest.er1
>conftest.err
17708 cat conftest.err
>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } && {
17711 test -z "$ac_c_werror_flag" ||
17712 test ! -s conftest.err
17713 } && test -s conftest
$ac_exeext &&
17714 $as_test_x conftest
$ac_exeext; then
17715 ac_cv_lib_bsd_openpty
=yes
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.
$ac_ext >&5
17720 ac_cv_lib_bsd_openpty
=no
17723 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17724 conftest
$ac_exeext conftest.
$ac_ext
17725 LIBS
=$ac_check_lib_save_LIBS
17727 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17728 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17729 if test $ac_cv_lib_bsd_openpty = yes; then
17730 cat >>confdefs.h
<<\_ACEOF
17731 #define HAVE_OPENPTY 1
17744 for ac_func
in forkpty
17746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17749 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 cat >conftest.
$ac_ext <<_ACEOF
17755 cat confdefs.h
>>conftest.
$ac_ext
17756 cat >>conftest.
$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17760 #define $ac_func innocuous_$ac_func
17762 /* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char $ac_func (); below.
17764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765 <limits.h> exists even on freestanding compilers. */
17768 # include <limits.h>
17770 # include <assert.h>
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17782 /* The GNU C library defines this for functions which it implements
17783 to always fail with ENOSYS. Some functions are actually named
17784 something starting with __ and the normal name is an alias. */
17785 #if defined __stub_$ac_func || defined __stub___$ac_func
17792 return $ac_func ();
17797 rm -f conftest.
$ac_objext conftest
$ac_exeext
17798 if { (ac_try
="$ac_link"
17799 case "(($ac_try" in
17800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_link") 2>conftest.er1
17806 grep -v '^ *+' conftest.er1 >conftest.err
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } && {
17811 test -z "$ac_c_werror_flag" ||
17812 test ! -s conftest.err
17813 } && test -s conftest$ac_exeext &&
17814 $as_test_x conftest$ac_exeext; then
17815 eval "$as_ac_var=yes"
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 eval "$as_ac_var=no"
17823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17824 conftest$ac_exeext conftest.$ac_ext
17826 ac_res=`eval echo '${'$as_ac_var'}'`
17827 { echo "$as_me:$LINENO: result: $ac_res" >&5
17828 echo "${ECHO_T}$ac_res" >&6; }
17829 if test `eval echo '${'$as_ac_var'}'` = yes; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17835 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17836 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17837 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-lutil $LIBS"
17842 cat >conftest.$ac_ext <<_ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17849 /* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17864 rm -f conftest.$ac_objext conftest$ac_exeext
17865 if { (ac_try="$ac_link"
17866 case "(($ac_try" in
17867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17868 *) ac_try_echo
=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_link") 2>conftest.er1
17873 grep -v '^ *+' conftest.er1
>conftest.err
17875 cat conftest.err
>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } && {
17878 test -z "$ac_c_werror_flag" ||
17879 test ! -s conftest.err
17880 } && test -s conftest
$ac_exeext &&
17881 $as_test_x conftest
$ac_exeext; then
17882 ac_cv_lib_util_forkpty
=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.
$ac_ext >&5
17887 ac_cv_lib_util_forkpty
=no
17890 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17891 conftest
$ac_exeext conftest.
$ac_ext
17892 LIBS
=$ac_check_lib_save_LIBS
17894 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17895 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17896 if test $ac_cv_lib_util_forkpty = yes; then
17897 cat >>confdefs.h
<<\_ACEOF
17898 #define HAVE_FORKPTY 1
17900 LIBS
="$LIBS -lutil"
17902 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17903 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17904 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 ac_check_lib_save_LIBS
=$LIBS
17909 cat >conftest.
$ac_ext <<_ACEOF
17912 cat confdefs.h
>>conftest.
$ac_ext
17913 cat >>conftest.
$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17916 /* Override any GCC internal prototype to avoid an error.
17917 Use char because int might match the return type of a GCC
17918 builtin and then its argument prototype would still apply. */
17931 rm -f conftest.
$ac_objext conftest
$ac_exeext
17932 if { (ac_try
="$ac_link"
17933 case "(($ac_try" in
17934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && {
17945 test -z "$ac_c_werror_flag" ||
17946 test ! -s conftest.err
17947 } && test -s conftest$ac_exeext &&
17948 $as_test_x conftest$ac_exeext; then
17949 ac_cv_lib_bsd_forkpty=yes
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_cv_lib_bsd_forkpty=no
17957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17961 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17962 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17963 if test $ac_cv_lib_bsd_forkpty = yes; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_FORKPTY 1
17980 for ac_func in memmove
17982 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 cat >conftest.$ac_ext <<_ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996 #define $ac_func innocuous_$ac_func
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18004 # include <limits.h>
18006 # include <assert.h>
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18018 /* The GNU C library defines this for functions which it implements
18019 to always fail with ENOSYS. Some functions are actually named
18020 something starting with __ and the normal name is an alias. */
18021 #if defined __stub_$ac_func || defined __stub___$ac_func
18028 return $ac_func ();
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18037 *) ac_try_echo
=$ac_try;;
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_link") 2>conftest.er1
18042 grep -v '^ *+' conftest.er1
>conftest.err
18044 cat conftest.err
>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && {
18047 test -z "$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 } && test -s conftest
$ac_exeext &&
18050 $as_test_x conftest
$ac_exeext; then
18051 eval "$as_ac_var=yes"
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.
$ac_ext >&5
18056 eval "$as_ac_var=no"
18059 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18060 conftest
$ac_exeext conftest.
$ac_ext
18062 ac_res
=`eval echo '${'$as_ac_var'}'`
18063 { echo "$as_me:$LINENO: result: $ac_res" >&5
18064 echo "${ECHO_T}$ac_res" >&6; }
18065 if test `eval echo '${'$as_ac_var'}'` = yes; then
18066 cat >>confdefs.h
<<_ACEOF
18067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18074 # check for long file support functions
18081 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18083 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18086 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 cat >conftest.
$ac_ext <<_ACEOF
18092 cat confdefs.h
>>conftest.
$ac_ext
18093 cat >>conftest.
$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18097 #define $ac_func innocuous_$ac_func
18099 /* System header to define __stub macros and hopefully few prototypes,
18100 which can conflict with char $ac_func (); below.
18101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102 <limits.h> exists even on freestanding compilers. */
18105 # include <limits.h>
18107 # include <assert.h>
18112 /* Override any GCC internal prototype to avoid an error.
18113 Use char because int might match the return type of a GCC
18114 builtin and then its argument prototype would still apply. */
18119 /* The GNU C library defines this for functions which it implements
18120 to always fail with ENOSYS. Some functions are actually named
18121 something starting with __ and the normal name is an alias. */
18122 #if defined __stub_$ac_func || defined __stub___$ac_func
18129 return $ac_func ();
18134 rm -f conftest.
$ac_objext conftest
$ac_exeext
18135 if { (ac_try
="$ac_link"
18136 case "(($ac_try" in
18137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_link") 2>conftest.er1
18143 grep -v '^ *+' conftest.er1 >conftest.err
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } && {
18148 test -z "$ac_c_werror_flag" ||
18149 test ! -s conftest.err
18150 } && test -s conftest$ac_exeext &&
18151 $as_test_x conftest$ac_exeext; then
18152 eval "$as_ac_var=yes"
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 eval "$as_ac_var=no"
18160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18161 conftest$ac_exeext conftest.$ac_ext
18163 ac_res=`eval echo '${'$as_ac_var'}'`
18164 { echo "$as_me:$LINENO: result: $ac_res" >&5
18165 echo "${ECHO_T}$ac_res" >&6; }
18166 if test `eval echo '${'$as_ac_var'}'` = yes; then
18167 cat >>confdefs.h <<_ACEOF
18168 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18178 for ac_func in dup2 getcwd strdup
18180 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 cat >conftest.$ac_ext <<_ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18194 #define $ac_func innocuous_$ac_func
18196 /* System header to define __stub macros and hopefully few prototypes,
18197 which can conflict with char $ac_func (); below.
18198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18199 <limits.h> exists even on freestanding compilers. */
18202 # include <limits.h>
18204 # include <assert.h>
18209 /* Override any GCC internal prototype to avoid an error.
18210 Use char because int might match the return type of a GCC
18211 builtin and then its argument prototype would still apply. */
18216 /* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219 #if defined __stub_$ac_func || defined __stub___$ac_func
18226 return $ac_func ();
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18235 *) ac_try_echo
=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18240 grep -v '^ *+' conftest.er1
>conftest.err
18242 cat conftest.err
>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && {
18245 test -z "$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 } && test -s conftest
$ac_exeext &&
18248 $as_test_x conftest
$ac_exeext; then
18249 eval "$as_ac_var=yes"
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.
$ac_ext >&5
18254 eval "$as_ac_var=no"
18257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18258 conftest
$ac_exeext conftest.
$ac_ext
18260 ac_res
=`eval echo '${'$as_ac_var'}'`
18261 { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264 cat >>confdefs.h
<<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18269 case " $LIBOBJS " in
18270 *" $ac_func.$ac_objext "* ) ;;
18271 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18280 for ac_func
in getpgrp
18282 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18285 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 cat >conftest.
$ac_ext <<_ACEOF
18291 cat confdefs.h
>>conftest.
$ac_ext
18292 cat >>conftest.
$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18296 #define $ac_func innocuous_$ac_func
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func (); below.
18300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 <limits.h> exists even on freestanding compilers. */
18304 # include <limits.h>
18306 # include <assert.h>
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined __stub_$ac_func || defined __stub___$ac_func
18328 return $ac_func ();
18333 rm -f conftest.
$ac_objext conftest
$ac_exeext
18334 if { (ac_try
="$ac_link"
18335 case "(($ac_try" in
18336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18351 eval "$as_ac_var=yes"
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 eval "$as_ac_var=no"
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18362 ac_res=`eval echo '${'$as_ac_var'}'`
18363 { echo "$as_me:$LINENO: result: $ac_res" >&5
18364 echo "${ECHO_T}$ac_res" >&6; }
18365 if test `eval echo '${'$as_ac_var'}'` = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 #include <unistd.h>
18384 rm -f conftest.$ac_objext
18385 if { (ac_try="$ac_compile"
18386 case "(($ac_try" in
18387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18388 *) ac_try_echo
=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1
>conftest.err
18395 cat conftest.err
>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.
$ac_objext; then
18402 cat >>confdefs.h
<<\_ACEOF
18403 #define GETPGRP_HAVE_ARG 1
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.
$ac_ext >&5
18414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18420 for ac_func
in setpgrp
18422 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18425 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 cat >conftest.
$ac_ext <<_ACEOF
18431 cat confdefs.h
>>conftest.
$ac_ext
18432 cat >>conftest.
$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18436 #define $ac_func innocuous_$ac_func
18438 /* System header to define __stub macros and hopefully few prototypes,
18439 which can conflict with char $ac_func (); below.
18440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18441 <limits.h> exists even on freestanding compilers. */
18444 # include <limits.h>
18446 # include <assert.h>
18451 /* Override any GCC internal prototype to avoid an error.
18452 Use char because int might match the return type of a GCC
18453 builtin and then its argument prototype would still apply. */
18458 /* The GNU C library defines this for functions which it implements
18459 to always fail with ENOSYS. Some functions are actually named
18460 something starting with __ and the normal name is an alias. */
18461 #if defined __stub_$ac_func || defined __stub___$ac_func
18468 return $ac_func ();
18473 rm -f conftest.
$ac_objext conftest
$ac_exeext
18474 if { (ac_try
="$ac_link"
18475 case "(($ac_try" in
18476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_link") 2>conftest.er1
18482 grep -v '^ *+' conftest.er1 >conftest.err
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } && {
18487 test -z "$ac_c_werror_flag" ||
18488 test ! -s conftest.err
18489 } && test -s conftest$ac_exeext &&
18490 $as_test_x conftest$ac_exeext; then
18491 eval "$as_ac_var=yes"
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 eval "$as_ac_var=no"
18499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18500 conftest$ac_exeext conftest.$ac_ext
18502 ac_res=`eval echo '${'$as_ac_var'}'`
18503 { echo "$as_me:$LINENO: result: $ac_res" >&5
18504 echo "${ECHO_T}$ac_res" >&6; }
18505 if test `eval echo '${'$as_ac_var'}'` = yes; then
18506 cat >>confdefs.h <<_ACEOF
18507 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 #include <unistd.h>
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18528 *) ac_try_echo
=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1
>conftest.err
18535 cat conftest.err
>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest.
$ac_objext; then
18542 cat >>confdefs.h
<<\_ACEOF
18543 #define SETPGRP_HAVE_ARG 1
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.
$ac_ext >&5
18554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18560 for ac_func
in gettimeofday
18562 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18565 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 cat >conftest.
$ac_ext <<_ACEOF
18571 cat confdefs.h
>>conftest.
$ac_ext
18572 cat >>conftest.
$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18576 #define $ac_func innocuous_$ac_func
18578 /* System header to define __stub macros and hopefully few prototypes,
18579 which can conflict with char $ac_func (); below.
18580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18581 <limits.h> exists even on freestanding compilers. */
18584 # include <limits.h>
18586 # include <assert.h>
18591 /* Override any GCC internal prototype to avoid an error.
18592 Use char because int might match the return type of a GCC
18593 builtin and then its argument prototype would still apply. */
18598 /* The GNU C library defines this for functions which it implements
18599 to always fail with ENOSYS. Some functions are actually named
18600 something starting with __ and the normal name is an alias. */
18601 #if defined __stub_$ac_func || defined __stub___$ac_func
18608 return $ac_func ();
18613 rm -f conftest.
$ac_objext conftest
$ac_exeext
18614 if { (ac_try
="$ac_link"
18615 case "(($ac_try" in
18616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest$ac_exeext &&
18630 $as_test_x conftest$ac_exeext; then
18631 eval "$as_ac_var=yes"
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 eval "$as_ac_var=no"
18639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18642 ac_res=`eval echo '${'$as_ac_var'}'`
18643 { echo "$as_me:$LINENO: result: $ac_res" >&5
18644 echo "${ECHO_T}$ac_res" >&6; }
18645 if test `eval echo '${'$as_ac_var'}'` = yes; then
18646 cat >>confdefs.h <<_ACEOF
18647 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18649 cat >conftest.$ac_ext <<_ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18655 #include <sys/time.h>
18659 gettimeofday((struct timeval*)0,(struct timezone*)0);
18664 rm -f conftest.$ac_objext
18665 if { (ac_try="$ac_compile"
18666 case "(($ac_try" in
18667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18668 *) ac_try_echo
=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_compile") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1
>conftest.err
18675 cat conftest.err
>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest.
$ac_objext; then
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.
$ac_ext >&5
18687 cat >>confdefs.h
<<\_ACEOF
18688 #define GETTIMEOFDAY_NO_TZ 1
18694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18700 { echo "$as_me:$LINENO: checking for major" >&5
18701 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18702 cat >conftest.
$ac_ext <<_ACEOF
18705 cat confdefs.h
>>conftest.
$ac_ext
18706 cat >>conftest.
$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18709 #if defined(MAJOR_IN_MKDEV)
18710 #include <sys/mkdev.h>
18711 #elif defined(MAJOR_IN_SYSMACROS)
18712 #include <sys/sysmacros.h>
18714 #include <sys/types.h>
18721 makedev(major(0),minor(0));
18727 rm -f conftest.
$ac_objext conftest
$ac_exeext
18728 if { (ac_try
="$ac_link"
18729 case "(($ac_try" in
18730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_link") 2>conftest.er1
18736 grep -v '^ *+' conftest.er1 >conftest.err
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } && {
18741 test -z "$ac_c_werror_flag" ||
18742 test ! -s conftest.err
18743 } && test -s conftest$ac_exeext &&
18744 $as_test_x conftest$ac_exeext; then
18747 cat >>confdefs.h <<\_ACEOF
18748 #define HAVE_DEVICE_MACROS 1
18751 { echo "$as_me:$LINENO: result: yes" >&5
18752 echo "${ECHO_T}yes" >&6; }
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18759 { echo "$as_me:$LINENO: result: no" >&5
18760 echo "${ECHO_T}no" >&6; }
18764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18765 conftest$ac_exeext conftest.$ac_ext
18767 # On OSF/1 V5.1, getaddrinfo is available, but a define
18768 # for [no]getaddrinfo in netdb.h.
18769 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18770 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18778 #include <sys/types.h>
18779 #include <sys/socket.h>
18787 getaddrinfo(NULL, NULL, NULL, NULL);
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (ac_try="$ac_link"
18795 case "(($ac_try" in
18796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18797 *) ac_try_echo
=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_link") 2>conftest.er1
18802 grep -v '^ *+' conftest.er1
>conftest.err
18804 cat conftest.err
>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } && {
18807 test -z "$ac_c_werror_flag" ||
18808 test ! -s conftest.err
18809 } && test -s conftest
$ac_exeext &&
18810 $as_test_x conftest
$ac_exeext; then
18812 { echo "$as_me:$LINENO: result: yes" >&5
18813 echo "${ECHO_T}yes" >&6; }
18814 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18815 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18816 if test "$cross_compiling" = yes; then
18817 { echo "$as_me:$LINENO: result: buggy" >&5
18818 echo "${ECHO_T}buggy" >&6; }
18819 buggygetaddrinfo
=yes
18821 cat >conftest.
$ac_ext <<_ACEOF
18824 cat confdefs.h
>>conftest.
$ac_ext
18825 cat >>conftest.
$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 #include <sys/types.h>
18830 #include <string.h>
18831 #include <sys/socket.h>
18832 #include <netinet/in.h>
18836 int passive, gaierr, inet4 = 0, inet6 = 0;
18837 struct addrinfo hints, *ai, *aitop;
18838 char straddr[INET6_ADDRSTRLEN], strport[16];
18840 for (passive = 0; passive <= 1; passive++) {
18841 memset(&hints, 0, sizeof(hints));
18842 hints.ai_family = AF_UNSPEC;
18843 hints.ai_flags = passive ? AI_PASSIVE : 0;
18844 hints.ai_socktype = SOCK_STREAM;
18845 hints.ai_protocol = IPPROTO_TCP;
18846 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18847 (void)gai_strerror(gaierr);
18850 for (ai = aitop; ai; ai = ai->ai_next) {
18851 if (ai->ai_addr == NULL ||
18852 ai->ai_addrlen == 0 ||
18853 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18854 straddr, sizeof(straddr), strport, sizeof(strport),
18855 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18858 switch (ai->ai_family) {
18860 if (strcmp(strport, "54321") != 0) {
18864 if (strcmp(straddr, "0.0.0.0") != 0) {
18868 if (strcmp(straddr, "127.0.0.1") != 0) {
18875 if (strcmp(strport, "54321") != 0) {
18879 if (strcmp(straddr, "::") != 0) {
18883 if (strcmp(straddr, "::1") != 0) {
18893 /* another family support? */
18899 if (!(inet4 == 0 || inet4 == 2))
18901 if (!(inet6 == 0 || inet6 == 2))
18905 freeaddrinfo(aitop);
18910 freeaddrinfo(aitop);
18915 rm -f conftest
$ac_exeext
18916 if { (ac_try
="$ac_link"
18917 case "(($ac_try" in
18918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18928 *) ac_try_echo
=$ac_try;;
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 { echo "$as_me:$LINENO: result: good" >&5
18936 echo "${ECHO_T}good" >&6; }
18937 buggygetaddrinfo
=no
18939 echo "$as_me: program exited with status $ac_status" >&5
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.
$ac_ext >&5
18943 ( exit $ac_status )
18944 { echo "$as_me:$LINENO: result: buggy" >&5
18945 echo "${ECHO_T}buggy" >&6; }
18946 buggygetaddrinfo
=yes
18948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.
$ac_ext >&5
18957 { echo "$as_me:$LINENO: result: no" >&5
18958 echo "${ECHO_T}no" >&6; }
18959 buggygetaddrinfo
=yes
18963 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18964 conftest
$ac_exeext conftest.
$ac_ext
18966 if test "$buggygetaddrinfo" = "yes"; then
18967 if test "$ipv6" = "yes"; then
18968 echo 'Fatal: You must get working getaddrinfo() function.'
18969 echo ' or you can specify "--disable-ipv6"'.
18974 cat >>confdefs.h
<<\_ACEOF
18975 #define HAVE_GETADDRINFO 1
18980 for ac_func
in getnameinfo
18982 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18985 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 cat >conftest.
$ac_ext <<_ACEOF
18991 cat confdefs.h
>>conftest.
$ac_ext
18992 cat >>conftest.
$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18996 #define $ac_func innocuous_$ac_func
18998 /* System header to define __stub macros and hopefully few prototypes,
18999 which can conflict with char $ac_func (); below.
19000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19001 <limits.h> exists even on freestanding compilers. */
19004 # include <limits.h>
19006 # include <assert.h>
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19018 /* The GNU C library defines this for functions which it implements
19019 to always fail with ENOSYS. Some functions are actually named
19020 something starting with __ and the normal name is an alias. */
19021 #if defined __stub_$ac_func || defined __stub___$ac_func
19028 return $ac_func ();
19033 rm -f conftest.
$ac_objext conftest
$ac_exeext
19034 if { (ac_try
="$ac_link"
19035 case "(($ac_try" in
19036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext &&
19050 $as_test_x conftest$ac_exeext; then
19051 eval "$as_ac_var=yes"
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 eval "$as_ac_var=no"
19059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060 conftest$ac_exeext conftest.$ac_ext
19062 ac_res=`eval echo '${'$as_ac_var'}'`
19063 { echo "$as_me:$LINENO: result: $ac_res" >&5
19064 echo "${ECHO_T}$ac_res" >&6; }
19065 if test `eval echo '${'$as_ac_var'}'` = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19074 # checks for structures
19075 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19076 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19077 if test "${ac_cv_header_time+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <sys/types.h>
19087 #include <sys/time.h>
19093 if ((struct tm *) 0)
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19103 *) ac_try_echo
=$ac_try;;
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19108 grep -v '^ *+' conftest.er1
>conftest.err
19110 cat conftest.err
>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.
$ac_objext; then
19116 ac_cv_header_time
=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.
$ac_ext >&5
19121 ac_cv_header_time
=no
19124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19126 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19127 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19128 if test $ac_cv_header_time = yes; then
19130 cat >>confdefs.h
<<\_ACEOF
19131 #define TIME_WITH_SYS_TIME 1
19136 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19137 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19138 if test "${ac_cv_struct_tm+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 cat >conftest.
$ac_ext <<_ACEOF
19144 cat confdefs.h
>>conftest.
$ac_ext
19145 cat >>conftest.
$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 #include <sys/types.h>
19154 int *p = &tm.tm_sec;
19160 rm -f conftest.
$ac_objext
19161 if { (ac_try
="$ac_compile"
19162 case "(($ac_try" in
19163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_compile") 2>conftest.er1
19169 grep -v '^ *+' conftest.er1 >conftest.err
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && {
19174 test -z "$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 } && test -s conftest.$ac_objext; then
19177 ac_cv_struct_tm=time.h
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 ac_cv_struct_tm=sys/time.h
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19188 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19189 if test $ac_cv_struct_tm = sys/time.h; then
19191 cat >>confdefs.h <<\_ACEOF
19192 #define TM_IN_SYS_TIME 1
19197 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19198 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19199 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 #include <sys/types.h>
19209 #include <$ac_cv_struct_tm>
19215 static struct tm ac_aggr;
19216 if (ac_aggr.tm_zone)
19222 rm -f conftest.$ac_objext
19223 if { (ac_try="$ac_compile"
19224 case "(($ac_try" in
19225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19226 *) ac_try_echo
=$ac_try;;
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_compile") 2>conftest.er1
19231 grep -v '^ *+' conftest.er1
>conftest.err
19233 cat conftest.err
>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && {
19236 test -z "$ac_c_werror_flag" ||
19237 test ! -s conftest.err
19238 } && test -s conftest.
$ac_objext; then
19239 ac_cv_member_struct_tm_tm_zone
=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.
$ac_ext >&5
19244 cat >conftest.
$ac_ext <<_ACEOF
19247 cat confdefs.h
>>conftest.
$ac_ext
19248 cat >>conftest.
$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 #include <sys/types.h>
19251 #include <$ac_cv_struct_tm>
19257 static struct tm ac_aggr;
19258 if (sizeof ac_aggr.tm_zone)
19264 rm -f conftest.
$ac_objext
19265 if { (ac_try
="$ac_compile"
19266 case "(($ac_try" in
19267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest.$ac_objext; then
19281 ac_cv_member_struct_tm_tm_zone=yes
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_cv_member_struct_tm_tm_zone=no
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19295 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19296 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19298 cat >>confdefs.h <<_ACEOF
19299 #define HAVE_STRUCT_TM_TM_ZONE 1
19305 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19307 cat >>confdefs.h <<\_ACEOF
19308 #define HAVE_TM_ZONE 1
19312 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19313 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19314 if test "${ac_cv_have_decl_tzname+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 cat >conftest.$ac_ext <<_ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19336 rm -f conftest.$ac_objext
19337 if { (ac_try="$ac_compile"
19338 case "(($ac_try" in
19339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19340 *) ac_try_echo
=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1
>conftest.err
19347 cat conftest.err
>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest.
$ac_objext; then
19353 ac_cv_have_decl_tzname
=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.
$ac_ext >&5
19358 ac_cv_have_decl_tzname
=no
19361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19364 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19365 if test $ac_cv_have_decl_tzname = yes; then
19367 cat >>confdefs.h
<<_ACEOF
19368 #define HAVE_DECL_TZNAME 1
19373 cat >>confdefs.h
<<_ACEOF
19374 #define HAVE_DECL_TZNAME 0
19381 { echo "$as_me:$LINENO: checking for tzname" >&5
19382 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19383 if test "${ac_cv_var_tzname+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 cat >conftest.
$ac_ext <<_ACEOF
19389 cat confdefs.h
>>conftest.
$ac_ext
19390 cat >>conftest.
$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19393 #if !HAVE_DECL_TZNAME
19394 extern char *tzname[];
19400 return tzname[0][0];
19405 rm -f conftest.
$ac_objext conftest
$ac_exeext
19406 if { (ac_try
="$ac_link"
19407 case "(($ac_try" in
19408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_link") 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } && {
19419 test -z "$ac_c_werror_flag" ||
19420 test ! -s conftest.err
19421 } && test -s conftest$ac_exeext &&
19422 $as_test_x conftest$ac_exeext; then
19423 ac_cv_var_tzname=yes
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_cv_var_tzname=no
19431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19432 conftest$ac_exeext conftest.$ac_ext
19434 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19435 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19436 if test $ac_cv_var_tzname = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_TZNAME 1
19445 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19446 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19447 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 $ac_includes_default
19460 static struct stat ac_aggr;
19461 if (ac_aggr.st_rdev)
19467 rm -f conftest.$ac_objext
19468 if { (ac_try="$ac_compile"
19469 case "(($ac_try" in
19470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19471 *) ac_try_echo
=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_compile") 2>conftest.er1
19476 grep -v '^ *+' conftest.er1
>conftest.err
19478 cat conftest.err
>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } && {
19481 test -z "$ac_c_werror_flag" ||
19482 test ! -s conftest.err
19483 } && test -s conftest.
$ac_objext; then
19484 ac_cv_member_struct_stat_st_rdev
=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.
$ac_ext >&5
19489 cat >conftest.
$ac_ext <<_ACEOF
19492 cat confdefs.h
>>conftest.
$ac_ext
19493 cat >>conftest.
$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 $ac_includes_default
19499 static struct stat ac_aggr;
19500 if (sizeof ac_aggr.st_rdev)
19506 rm -f conftest.
$ac_objext
19507 if { (ac_try
="$ac_compile"
19508 case "(($ac_try" in
19509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_compile") 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest.$ac_objext; then
19523 ac_cv_member_struct_stat_st_rdev=yes
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 ac_cv_member_struct_stat_st_rdev=no
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19537 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19538 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19540 cat >>confdefs.h <<_ACEOF
19541 #define HAVE_STRUCT_STAT_ST_RDEV 1
19547 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19548 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19549 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 cat >conftest.$ac_ext <<_ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 $ac_includes_default
19562 static struct stat ac_aggr;
19563 if (ac_aggr.st_blksize)
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19573 *) ac_try_echo
=$ac_try;;
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_compile") 2>conftest.er1
19578 grep -v '^ *+' conftest.er1
>conftest.err
19580 cat conftest.err
>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest.
$ac_objext; then
19586 ac_cv_member_struct_stat_st_blksize
=yes
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.
$ac_ext >&5
19591 cat >conftest.
$ac_ext <<_ACEOF
19594 cat confdefs.h
>>conftest.
$ac_ext
19595 cat >>conftest.
$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19597 $ac_includes_default
19601 static struct stat ac_aggr;
19602 if (sizeof ac_aggr.st_blksize)
19608 rm -f conftest.
$ac_objext
19609 if { (ac_try
="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest.$ac_objext; then
19625 ac_cv_member_struct_stat_st_blksize=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_member_struct_stat_st_blksize=no
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19639 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19640 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19642 cat >>confdefs.h <<_ACEOF
19643 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19649 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19650 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19651 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 $ac_includes_default
19664 static struct stat ac_aggr;
19665 if (ac_aggr.st_flags)
19671 rm -f conftest.$ac_objext
19672 if { (ac_try="$ac_compile"
19673 case "(($ac_try" in
19674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19675 *) ac_try_echo
=$ac_try;;
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_compile") 2>conftest.er1
19680 grep -v '^ *+' conftest.er1
>conftest.err
19682 cat conftest.err
>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && {
19685 test -z "$ac_c_werror_flag" ||
19686 test ! -s conftest.err
19687 } && test -s conftest.
$ac_objext; then
19688 ac_cv_member_struct_stat_st_flags
=yes
19690 echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.
$ac_ext >&5
19693 cat >conftest.
$ac_ext <<_ACEOF
19696 cat confdefs.h
>>conftest.
$ac_ext
19697 cat >>conftest.
$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19699 $ac_includes_default
19703 static struct stat ac_aggr;
19704 if (sizeof ac_aggr.st_flags)
19710 rm -f conftest.
$ac_objext
19711 if { (ac_try
="$ac_compile"
19712 case "(($ac_try" in
19713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_cv_member_struct_stat_st_flags=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_member_struct_stat_st_flags=no
19735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19741 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19742 if test $ac_cv_member_struct_stat_st_flags = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19751 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19752 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19753 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 cat >conftest.$ac_ext <<_ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 $ac_includes_default
19766 static struct stat ac_aggr;
19767 if (ac_aggr.st_gen)
19773 rm -f conftest.$ac_objext
19774 if { (ac_try="$ac_compile"
19775 case "(($ac_try" in
19776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19777 *) ac_try_echo
=$ac_try;;
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_compile") 2>conftest.er1
19782 grep -v '^ *+' conftest.er1
>conftest.err
19784 cat conftest.err
>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } && {
19787 test -z "$ac_c_werror_flag" ||
19788 test ! -s conftest.err
19789 } && test -s conftest.
$ac_objext; then
19790 ac_cv_member_struct_stat_st_gen
=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.
$ac_ext >&5
19795 cat >conftest.
$ac_ext <<_ACEOF
19798 cat confdefs.h
>>conftest.
$ac_ext
19799 cat >>conftest.
$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 $ac_includes_default
19805 static struct stat ac_aggr;
19806 if (sizeof ac_aggr.st_gen)
19812 rm -f conftest.
$ac_objext
19813 if { (ac_try
="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19821 grep -v '^ *+' conftest.er1 >conftest.err
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest.$ac_objext; then
19829 ac_cv_member_struct_stat_st_gen=yes
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_member_struct_stat_st_gen=no
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19843 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19844 if test $ac_cv_member_struct_stat_st_gen = yes; then
19846 cat >>confdefs.h <<_ACEOF
19847 #define HAVE_STRUCT_STAT_ST_GEN 1
19853 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19854 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19855 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 $ac_includes_default
19868 static struct stat ac_aggr;
19869 if (ac_aggr.st_birthtime)
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19879 *) ac_try_echo
=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1
>conftest.err
19886 cat conftest.err
>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest.
$ac_objext; then
19892 ac_cv_member_struct_stat_st_birthtime
=yes
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.
$ac_ext >&5
19897 cat >conftest.
$ac_ext <<_ACEOF
19900 cat confdefs.h
>>conftest.
$ac_ext
19901 cat >>conftest.
$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19907 static struct stat ac_aggr;
19908 if (sizeof ac_aggr.st_birthtime)
19914 rm -f conftest.
$ac_objext
19915 if { (ac_try
="$ac_compile"
19916 case "(($ac_try" in
19917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_compile") 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest.$ac_objext; then
19931 ac_cv_member_struct_stat_st_birthtime=yes
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_member_struct_stat_st_birthtime=no
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19945 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19946 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19948 cat >>confdefs.h <<_ACEOF
19949 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19955 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19956 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19957 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19970 static struct stat ac_aggr;
19971 if (ac_aggr.st_blocks)
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19981 *) ac_try_echo
=$ac_try;;
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1
>conftest.err
19988 cat conftest.err
>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest.
$ac_objext; then
19994 ac_cv_member_struct_stat_st_blocks
=yes
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.
$ac_ext >&5
19999 cat >conftest.
$ac_ext <<_ACEOF
20002 cat confdefs.h
>>conftest.
$ac_ext
20003 cat >>conftest.
$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 $ac_includes_default
20009 static struct stat ac_aggr;
20010 if (sizeof ac_aggr.st_blocks)
20016 rm -f conftest.
$ac_objext
20017 if { (ac_try
="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_compile") 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && {
20030 test -z "$ac_c_werror_flag" ||
20031 test ! -s conftest.err
20032 } && test -s conftest.$ac_objext; then
20033 ac_cv_member_struct_stat_st_blocks=yes
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ac_cv_member_struct_stat_st_blocks=no
20041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20047 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20048 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20050 cat >>confdefs.h <<_ACEOF
20051 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20055 cat >>confdefs.h <<\_ACEOF
20056 #define HAVE_ST_BLOCKS 1
20060 case " $LIBOBJS " in
20061 *" fileblocks.$ac_objext "* ) ;;
20062 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20070 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20071 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20072 if test "${ac_cv_header_time_altzone+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 cat >conftest.$ac_ext <<_ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20090 rm -f conftest.$ac_objext
20091 if { (ac_try="$ac_compile"
20092 case "(($ac_try" in
20093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20094 *) ac_try_echo
=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_compile") 2>conftest.er1
20099 grep -v '^ *+' conftest.er1
>conftest.err
20101 cat conftest.err
>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.
$ac_objext; then
20107 ac_cv_header_time_altzone
=yes
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.
$ac_ext >&5
20112 ac_cv_header_time_altzone
=no
20115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20118 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20119 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20120 if test $ac_cv_header_time_altzone = yes; then
20122 cat >>confdefs.h
<<\_ACEOF
20123 #define HAVE_ALTZONE 1
20129 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20130 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20131 cat >conftest.
$ac_ext <<_ACEOF
20134 cat confdefs.h
>>conftest.
$ac_ext
20135 cat >>conftest.
$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20138 #include <sys/types.h>
20139 #include <sys/select.h>
20140 #include <sys/time.h>
20150 rm -f conftest.
$ac_objext
20151 if { (ac_try
="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define SYS_SELECT_WITH_SYS_TIME 1
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20184 echo "${ECHO_T}$was_it_defined" >&6; }
20186 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20187 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20188 if test "${ac_cv_struct_addrinfo+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 # include <netdb.h>
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20211 *) ac_try_echo
=$ac_try;;
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_compile") 2>conftest.er1
20216 grep -v '^ *+' conftest.er1
>conftest.err
20218 cat conftest.err
>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest.
$ac_objext; then
20224 ac_cv_struct_addrinfo
=yes
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.
$ac_ext >&5
20229 ac_cv_struct_addrinfo
=no
20232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20235 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20236 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20237 if test $ac_cv_struct_addrinfo = yes; then
20239 cat >>confdefs.h
<<\_ACEOF
20240 #define HAVE_ADDRINFO 1
20245 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20246 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20247 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 cat >conftest.
$ac_ext <<_ACEOF
20253 cat confdefs.h
>>conftest.
$ac_ext
20254 cat >>conftest.
$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 # include <sys/types.h>
20258 # include <sys/socket.h>
20262 struct sockaddr_storage s
20267 rm -f conftest.
$ac_objext
20268 if { (ac_try
="$ac_compile"
20269 case "(($ac_try" in
20270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_compile") 2>conftest.er1
20276 grep -v '^ *+' conftest.er1 >conftest.err
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } && {
20281 test -z "$ac_c_werror_flag" ||
20282 test ! -s conftest.err
20283 } && test -s conftest.$ac_objext; then
20284 ac_cv_struct_sockaddr_storage=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_struct_sockaddr_storage=no
20292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20296 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20297 if test $ac_cv_struct_sockaddr_storage = yes; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_SOCKADDR_STORAGE 1
20305 # checks for compiler characteristics
20308 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20309 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20310 if test "${ac_cv_c_char_unsigned+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 $ac_includes_default
20323 static int test_array [1 - 2 * !(((char) -1) < 0)];
20330 rm -f conftest.$ac_objext
20331 if { (ac_try="$ac_compile"
20332 case "(($ac_try" in
20333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20334 *) ac_try_echo
=$ac_try;;
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1
>conftest.err
20341 cat conftest.err
>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.
$ac_objext; then
20347 ac_cv_c_char_unsigned
=no
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.
$ac_ext >&5
20352 ac_cv_c_char_unsigned
=yes
20355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20357 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20358 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20359 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20360 cat >>confdefs.h
<<\_ACEOF
20361 #define __CHAR_UNSIGNED__ 1
20366 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20367 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20368 if test "${ac_cv_c_const+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 cat >conftest.
$ac_ext <<_ACEOF
20374 cat confdefs.h
>>conftest.
$ac_ext
20375 cat >>conftest.
$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20381 /* FIXME: Include the comments suggested by Paul. */
20382 #ifndef __cplusplus
20383 /* Ultrix mips cc rejects this. */
20384 typedef int charset[2];
20386 /* SunOS 4.1.1 cc rejects this. */
20387 char const *const *pcpcc;
20389 /* NEC SVR4.0.2 mips cc rejects this. */
20390 struct point {int x, y;};
20391 static struct point const zero = {0,0};
20392 /* AIX XL C 1.02.0.0 rejects this.
20393 It does not let you subtract one const X* pointer from another in
20394 an arm of an if-expression whose if-part is not a constant
20396 const char *g = "string";
20397 pcpcc = &g + (g ? g-g : 0);
20398 /* HPUX 7.0 cc rejects these. */
20400 ppc = (char**) pcpcc;
20401 pcpcc = (char const *const *) ppc;
20402 { /* SCO 3.2v4 cc rejects this. */
20404 char const *s = 0 ? (char *) 0 : (char const *) 0;
20409 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20410 int x[] = {25, 17};
20411 const int *foo = &x[0];
20414 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20415 typedef const int *iptr;
20419 { /* AIX XL C 1.02.0.0 rejects this saying
20420 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20421 struct s { int j; const int *ap[3]; };
20422 struct s *b; b->j = 5;
20424 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20425 const int foo = 10;
20426 if (!foo) return 0;
20428 return !cs[0] && !zero.x;
20435 rm -f conftest.
$ac_objext
20436 if { (ac_try
="$ac_compile"
20437 case "(($ac_try" in
20438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_compile") 2>conftest.er1
20444 grep -v '^ *+' conftest.er1 >conftest.err
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && {
20449 test -z "$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20451 } && test -s conftest.$ac_objext; then
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20463 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20464 if test $ac_cv_c_const = no; then
20466 cat >>confdefs.h <<\_ACEOF
20474 { echo "$as_me:$LINENO: checking for working volatile" >&5
20475 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20486 volatile int x; x = 0;
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20495 *) ac_try_echo
=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20500 grep -v '^ *+' conftest.er1
>conftest.err
20502 cat conftest.err
>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.
$ac_objext; then
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.
$ac_ext >&5
20514 cat >>confdefs.h
<<\_ACEOF
20521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20522 { echo "$as_me:$LINENO: result: $works" >&5
20523 echo "${ECHO_T}$works" >&6; }
20526 { echo "$as_me:$LINENO: checking for working signed char" >&5
20527 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20528 cat >conftest.
$ac_ext <<_ACEOF
20531 cat confdefs.h
>>conftest.
$ac_ext
20532 cat >>conftest.
$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20543 rm -f conftest.
$ac_objext
20544 if { (ac_try
="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1 >conftest.err
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20566 cat >>confdefs.h <<\_ACEOF
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 { echo "$as_me:$LINENO: result: $works" >&5
20575 echo "${ECHO_T}$works" >&6; }
20578 { echo "$as_me:$LINENO: checking for prototypes" >&5
20579 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20580 cat >conftest.$ac_ext <<_ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20586 int foo(int x) { return 0; }
20595 rm -f conftest.$ac_objext
20596 if { (ac_try="$ac_compile"
20597 case "(($ac_try" in
20598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20599 *) ac_try_echo
=$ac_try;;
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_compile") 2>conftest.er1
20604 grep -v '^ *+' conftest.er1
>conftest.err
20606 cat conftest.err
>&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && {
20609 test -z "$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 } && test -s conftest.
$ac_objext; then
20614 cat >>confdefs.h
<<\_ACEOF
20615 #define HAVE_PROTOTYPES 1
20618 have_prototypes
=yes
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.
$ac_ext >&5
20627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20628 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20629 echo "${ECHO_T}$have_prototypes" >&6; }
20632 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20633 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20634 cat >conftest.
$ac_ext <<_ACEOF
20637 cat confdefs.h
>>conftest.
$ac_ext
20638 cat >>conftest.
$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 #include <stdarg.h>
20642 int foo(int x, ...) {
20646 va_arg(va, char *);
20647 va_arg(va, double);
20654 return foo(10, "", 3.14);
20659 rm -f conftest.
$ac_objext
20660 if { (ac_try
="$ac_compile"
20661 case "(($ac_try" in
20662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_compile") 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } && {
20673 test -z "$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 } && test -s conftest.$ac_objext; then
20678 cat >>confdefs.h <<\_ACEOF
20679 #define HAVE_STDARG_PROTOTYPES 1
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 { echo "$as_me:$LINENO: result: $works" >&5
20693 echo "${ECHO_T}$works" >&6; }
20695 # check for socketpair
20696 { echo "$as_me:$LINENO: checking for socketpair" >&5
20697 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 #include <sys/types.h>
20706 #include <sys/socket.h>
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20720 *) ac_try_echo
=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1
>conftest.err
20727 cat conftest.err
>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest.
$ac_objext; then
20734 cat >>confdefs.h
<<\_ACEOF
20735 #define HAVE_SOCKETPAIR 1
20738 { echo "$as_me:$LINENO: result: yes" >&5
20739 echo "${ECHO_T}yes" >&6; }
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.
$ac_ext >&5
20744 { echo "$as_me:$LINENO: result: no" >&5
20745 echo "${ECHO_T}no" >&6; }
20749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20751 # check if sockaddr has sa_len member
20752 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20753 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20754 cat >conftest.
$ac_ext <<_ACEOF
20757 cat confdefs.h
>>conftest.
$ac_ext
20758 cat >>conftest.
$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 #include <sys/types.h>
20761 #include <sys/socket.h>
20771 rm -f conftest.
$ac_objext
20772 if { (ac_try
="$ac_compile"
20773 case "(($ac_try" in
20774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_compile") 2>conftest.er1
20780 grep -v '^ *+' conftest.er1 >conftest.err
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest.$ac_objext; then
20788 { echo "$as_me:$LINENO: result: yes" >&5
20789 echo "${ECHO_T}yes" >&6; }
20791 cat >>confdefs.h <<\_ACEOF
20792 #define HAVE_SOCKADDR_SA_LEN 1
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 { echo "$as_me:$LINENO: result: no" >&5
20800 echo "${ECHO_T}no" >&6; }
20803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805 va_list_is_array=no
20806 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20807 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20815 #ifdef HAVE_STDARG_PROTOTYPES
20816 #include <stdarg.h>
20818 #include <varargs.h>
20824 va_list list1, list2; list1 = list2;
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
20831 case "(($ac_try" in
20832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20833 *) ac_try_echo
=$ac_try;;
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_compile") 2>conftest.er1
20838 grep -v '^ *+' conftest.er1
>conftest.err
20840 cat conftest.err
>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest.
$ac_objext; then
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.
$ac_ext >&5
20853 cat >>confdefs.h
<<\_ACEOF
20854 #define VA_LIST_IS_ARRAY 1
20857 va_list_is_array
=yes
20861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20862 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20863 echo "${ECHO_T}$va_list_is_array" >&6; }
20865 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20869 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20870 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20871 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 cat >conftest.
$ac_ext <<_ACEOF
20877 cat confdefs.h
>>conftest.
$ac_ext
20878 cat >>conftest.
$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20882 #define gethostbyname_r innocuous_gethostbyname_r
20884 /* System header to define __stub macros and hopefully few prototypes,
20885 which can conflict with char gethostbyname_r (); below.
20886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20887 <limits.h> exists even on freestanding compilers. */
20890 # include <limits.h>
20892 # include <assert.h>
20895 #undef gethostbyname_r
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20903 char gethostbyname_r ();
20904 /* The GNU C library defines this for functions which it implements
20905 to always fail with ENOSYS. Some functions are actually named
20906 something starting with __ and the normal name is an alias. */
20907 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20914 return gethostbyname_r ();
20919 rm -f conftest.
$ac_objext conftest
$ac_exeext
20920 if { (ac_try
="$ac_link"
20921 case "(($ac_try" in
20922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_link") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } && {
20933 test -z "$ac_c_werror_flag" ||
20934 test ! -s conftest.err
20935 } && test -s conftest$ac_exeext &&
20936 $as_test_x conftest$ac_exeext; then
20937 ac_cv_func_gethostbyname_r=yes
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_cv_func_gethostbyname_r=no
20945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20946 conftest$ac_exeext conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20949 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20950 if test $ac_cv_func_gethostbyname_r = yes; then
20952 cat >>confdefs.h <<\_ACEOF
20953 #define HAVE_GETHOSTBYNAME_R 1
20956 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20957 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20959 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20960 cat >conftest.$ac_ext <<_ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20967 # include <netdb.h>
20974 struct hostent *he, *res;
20979 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20989 *) ac_try_echo
=$ac_try;;
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_compile") 2>conftest.er1
20994 grep -v '^ *+' conftest.er1
>conftest.err
20996 cat conftest.err
>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest.
$ac_objext; then
21003 cat >>confdefs.h
<<\_ACEOF
21004 #define HAVE_GETHOSTBYNAME_R 1
21008 cat >>confdefs.h
<<\_ACEOF
21009 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21012 { echo "$as_me:$LINENO: result: yes" >&5
21013 echo "${ECHO_T}yes" >&6; }
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.
$ac_ext >&5
21020 { echo "$as_me:$LINENO: result: no" >&5
21021 echo "${ECHO_T}no" >&6; }
21022 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21023 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21024 cat >conftest.
$ac_ext <<_ACEOF
21027 cat confdefs.h
>>conftest.
$ac_ext
21028 cat >>conftest.
$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21031 # include <netdb.h>
21038 struct hostent *he;
21043 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21049 rm -f conftest.
$ac_objext
21050 if { (ac_try
="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_GETHOSTBYNAME_R 1
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21076 { echo "$as_me:$LINENO: result: yes" >&5
21077 echo "${ECHO_T}yes" >&6; }
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21084 { echo "$as_me:$LINENO: result: no" >&5
21085 echo "${ECHO_T}no" >&6; }
21086 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21087 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21095 # include <netdb.h>
21102 struct hostent *he;
21103 struct hostent_data data;
21105 (void) gethostbyname_r(name, he, &data);
21111 rm -f conftest.$ac_objext
21112 if { (ac_try="$ac_compile"
21113 case "(($ac_try" in
21114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21115 *) ac_try_echo
=$ac_try;;
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_compile") 2>conftest.er1
21120 grep -v '^ *+' conftest.er1
>conftest.err
21122 cat conftest.err
>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest.
$ac_objext; then
21129 cat >>confdefs.h
<<\_ACEOF
21130 #define HAVE_GETHOSTBYNAME_R 1
21134 cat >>confdefs.h
<<\_ACEOF
21135 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21138 { echo "$as_me:$LINENO: result: yes" >&5
21139 echo "${ECHO_T}yes" >&6; }
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.
$ac_ext >&5
21146 { echo "$as_me:$LINENO: result: no" >&5
21147 echo "${ECHO_T}no" >&6; }
21151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21165 for ac_func
in gethostbyname
21167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21170 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 cat >conftest.
$ac_ext <<_ACEOF
21176 cat confdefs.h
>>conftest.
$ac_ext
21177 cat >>conftest.
$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21181 #define $ac_func innocuous_$ac_func
21183 /* System header to define __stub macros and hopefully few prototypes,
21184 which can conflict with char $ac_func (); below.
21185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21186 <limits.h> exists even on freestanding compilers. */
21189 # include <limits.h>
21191 # include <assert.h>
21196 /* Override any GCC internal prototype to avoid an error.
21197 Use char because int might match the return type of a GCC
21198 builtin and then its argument prototype would still apply. */
21203 /* The GNU C library defines this for functions which it implements
21204 to always fail with ENOSYS. Some functions are actually named
21205 something starting with __ and the normal name is an alias. */
21206 #if defined __stub_$ac_func || defined __stub___$ac_func
21213 return $ac_func ();
21218 rm -f conftest.
$ac_objext conftest
$ac_exeext
21219 if { (ac_try
="$ac_link"
21220 case "(($ac_try" in
21221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_link") 2>conftest.er1
21227 grep -v '^ *+' conftest.er1 >conftest.err
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest$ac_exeext &&
21235 $as_test_x conftest$ac_exeext; then
21236 eval "$as_ac_var=yes"
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21241 eval "$as_ac_var=no"
21244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21245 conftest$ac_exeext conftest.$ac_ext
21247 ac_res=`eval echo '${'$as_ac_var'}'`
21248 { echo "$as_me:$LINENO: result: $ac_res" >&5
21249 echo "${ECHO_T}$ac_res" >&6; }
21250 if test `eval echo '${'$as_ac_var'}'` = yes; then
21251 cat >>confdefs.h <<_ACEOF
21252 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21267 # checks for system services
21270 # Linux requires this for correct f.p. operations
21271 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21272 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21273 if test "${ac_cv_func___fpu_control+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21284 #define __fpu_control innocuous___fpu_control
21286 /* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char __fpu_control (); below.
21288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21289 <limits.h> exists even on freestanding compilers. */
21292 # include <limits.h>
21294 # include <assert.h>
21297 #undef __fpu_control
21299 /* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21305 char __fpu_control ();
21306 /* The GNU C library defines this for functions which it implements
21307 to always fail with ENOSYS. Some functions are actually named
21308 something starting with __ and the normal name is an alias. */
21309 #if defined __stub___fpu_control || defined __stub_____fpu_control
21316 return __fpu_control ();
21321 rm -f conftest.$ac_objext conftest$ac_exeext
21322 if { (ac_try="$ac_link"
21323 case "(($ac_try" in
21324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21325 *) ac_try_echo
=$ac_try;;
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_link") 2>conftest.er1
21330 grep -v '^ *+' conftest.er1
>conftest.err
21332 cat conftest.err
>&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest
$ac_exeext &&
21338 $as_test_x conftest
$ac_exeext; then
21339 ac_cv_func___fpu_control
=yes
21341 echo "$as_me: failed program was:" >&5
21342 sed 's/^/| /' conftest.
$ac_ext >&5
21344 ac_cv_func___fpu_control
=no
21347 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21348 conftest
$ac_exeext conftest.
$ac_ext
21350 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21351 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21352 if test $ac_cv_func___fpu_control = yes; then
21356 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21357 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21358 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21361 ac_check_lib_save_LIBS
=$LIBS
21362 LIBS
="-lieee $LIBS"
21363 cat >conftest.
$ac_ext <<_ACEOF
21366 cat confdefs.h
>>conftest.
$ac_ext
21367 cat >>conftest.
$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21376 char __fpu_control ();
21380 return __fpu_control ();
21385 rm -f conftest.
$ac_objext conftest
$ac_exeext
21386 if { (ac_try
="$ac_link"
21387 case "(($ac_try" in
21388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext &&
21402 $as_test_x conftest$ac_exeext; then
21403 ac_cv_lib_ieee___fpu_control=yes
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_cv_lib_ieee___fpu_control=no
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21413 LIBS=$ac_check_lib_save_LIBS
21415 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21416 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21417 if test $ac_cv_lib_ieee___fpu_control = yes; then
21418 cat >>confdefs.h <<_ACEOF
21419 #define HAVE_LIBIEEE 1
21422 LIBS="-lieee $LIBS"
21430 # Check for --with-fpectl
21431 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21432 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21434 # Check whether --with-fpectl was given.
21435 if test "${with_fpectl+set}" = set; then
21436 withval=$with_fpectl;
21437 if test "$withval" != no
21440 cat >>confdefs.h <<\_ACEOF
21441 #define WANT_SIGFPE_HANDLER 1
21444 { echo "$as_me:$LINENO: result: yes" >&5
21445 echo "${ECHO_T}yes" >&6; }
21446 else { echo "$as_me:$LINENO: result: no" >&5
21447 echo "${ECHO_T}no" >&6; }
21450 { echo "$as_me:$LINENO: result: no" >&5
21451 echo "${ECHO_T}no" >&6; }
21455 # check for --with-libm=...
21457 case $ac_sys_system in
21462 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21463 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21465 # Check whether --with-libm was given.
21466 if test "${with_libm+set}" = set; then
21467 withval=$with_libm;
21468 if test "$withval" = no
21470 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21471 echo "${ECHO_T}force LIBM empty" >&6; }
21472 elif test "$withval" != yes
21474 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21475 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21476 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21477 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21478 { (exit 1); exit 1; }; }
21481 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21482 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21486 # check for --with-libc=...
21488 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21489 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21491 # Check whether --with-libc was given.
21492 if test "${with_libc+set}" = set; then
21493 withval=$with_libc;
21494 if test "$withval" = no
21496 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21497 echo "${ECHO_T}force LIBC empty" >&6; }
21498 elif test "$withval" != yes
21500 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21501 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21502 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21503 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21504 { (exit 1); exit 1; }; }
21507 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21508 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21512 # ************************************
21513 # * Check for mathematical functions *
21514 # ************************************
21519 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21520 # -0. on some architectures.
21521 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21522 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21523 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 if test "$cross_compiling" = yes; then
21528 ac_cv_tanh_preserves_zero_sign=no
21530 cat >conftest.$ac_ext <<_ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21538 #include <stdlib.h>
21540 /* return 0 if either negative zeros don't exist
21541 on this platform or if negative zeros exist
21542 and tanh(-0.) == -0. */
21543 if (atan2(0., -1.) == atan2(-0., -1.) ||
21544 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21549 rm -f conftest$ac_exeext
21550 if { (ac_try="$ac_link"
21551 case "(($ac_try" in
21552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21553 *) ac_try_echo
=$ac_try;;
21555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_link") 2>&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21560 { (case "(($ac_try" in
21561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_try") 2>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_cv_tanh_preserves_zero_sign=yes
21571 echo "$as_me: program exited with status $ac_status" >&5
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21575 ( exit $ac_status )
21576 ac_cv_tanh_preserves_zero_sign=no
21578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21584 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21585 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21586 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21589 cat >>confdefs.h <<\_ACEOF
21590 #define TANH_PRESERVES_ZERO_SIGN 1
21596 for ac_func in hypot
21598 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21612 #define $ac_func innocuous_$ac_func
21614 /* System header to define __stub macros and hopefully few prototypes,
21615 which can conflict with char $ac_func (); below.
21616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21617 <limits.h> exists even on freestanding compilers. */
21620 # include <limits.h>
21622 # include <assert.h>
21627 /* Override any GCC internal prototype to avoid an error.
21628 Use char because int might match the return type of a GCC
21629 builtin and then its argument prototype would still apply. */
21634 /* The GNU C library defines this for functions which it implements
21635 to always fail with ENOSYS. Some functions are actually named
21636 something starting with __ and the normal name is an alias. */
21637 #if defined __stub_$ac_func || defined __stub___$ac_func
21644 return $ac_func ();
21649 rm -f conftest.$ac_objext conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21653 *) ac_try_echo
=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_link") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1
>conftest.err
21660 cat conftest.err
>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest
$ac_exeext &&
21666 $as_test_x conftest
$ac_exeext; then
21667 eval "$as_ac_var=yes"
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.
$ac_ext >&5
21672 eval "$as_ac_var=no"
21675 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21676 conftest
$ac_exeext conftest.
$ac_ext
21678 ac_res
=`eval echo '${'$as_ac_var'}'`
21679 { echo "$as_me:$LINENO: result: $ac_res" >&5
21680 echo "${ECHO_T}$ac_res" >&6; }
21681 if test `eval echo '${'$as_ac_var'}'` = yes; then
21682 cat >>confdefs.h
<<_ACEOF
21683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21687 case " $LIBOBJS " in
21688 *" $ac_func.$ac_objext "* ) ;;
21689 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21707 for ac_func
in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21709 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21712 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 cat >conftest.
$ac_ext <<_ACEOF
21718 cat confdefs.h
>>conftest.
$ac_ext
21719 cat >>conftest.
$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21723 #define $ac_func innocuous_$ac_func
21725 /* System header to define __stub macros and hopefully few prototypes,
21726 which can conflict with char $ac_func (); below.
21727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21728 <limits.h> exists even on freestanding compilers. */
21731 # include <limits.h>
21733 # include <assert.h>
21738 /* Override any GCC internal prototype to avoid an error.
21739 Use char because int might match the return type of a GCC
21740 builtin and then its argument prototype would still apply. */
21745 /* The GNU C library defines this for functions which it implements
21746 to always fail with ENOSYS. Some functions are actually named
21747 something starting with __ and the normal name is an alias. */
21748 #if defined __stub_$ac_func || defined __stub___$ac_func
21755 return $ac_func ();
21760 rm -f conftest.
$ac_objext conftest
$ac_exeext
21761 if { (ac_try
="$ac_link"
21762 case "(($ac_try" in
21763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_link") 2>conftest.er1
21769 grep -v '^ *+' conftest.er1 >conftest.err
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest$ac_exeext &&
21777 $as_test_x conftest$ac_exeext; then
21778 eval "$as_ac_var=yes"
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 eval "$as_ac_var=no"
21786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787 conftest$ac_exeext conftest.$ac_ext
21789 ac_res=`eval echo '${'$as_ac_var'}'`
21790 { echo "$as_me:$LINENO: result: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21792 if test `eval echo '${'$as_ac_var'}'` = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21803 # check for wchar.h
21804 if test "${ac_cv_header_wchar_h+set}" = set; then
21805 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21806 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21807 if test "${ac_cv_header_wchar_h+set}" = set; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21811 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21813 # Is the header compilable?
21814 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21815 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21825 rm -f conftest.$ac_objext
21826 if { (ac_try="$ac_compile"
21827 case "(($ac_try" in
21828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21829 *) ac_try_echo
=$ac_try;;
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_compile") 2>conftest.er1
21834 grep -v '^ *+' conftest.er1
>conftest.err
21836 cat conftest.err
>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } && {
21839 test -z "$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21841 } && test -s conftest.
$ac_objext; then
21842 ac_header_compiler
=yes
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.
$ac_ext >&5
21847 ac_header_compiler
=no
21850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21852 echo "${ECHO_T}$ac_header_compiler" >&6; }
21854 # Is the header present?
21855 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21856 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21857 cat >conftest.
$ac_ext <<_ACEOF
21860 cat confdefs.h
>>conftest.
$ac_ext
21861 cat >>conftest.
$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21865 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21866 case "(($ac_try" in
21867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21873 grep -v '^ *+' conftest.er1 >conftest.err
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } >/dev/null && {
21878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21881 ac_header_preproc=yes
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_header_preproc=no
21889 rm -f conftest.err conftest.$ac_ext
21890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21891 echo "${ECHO_T}$ac_header_preproc" >&6; }
21893 # So? What about this header?
21894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21896 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21897 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21899 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21900 ac_header_preproc=yes
21903 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21904 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21905 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21906 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21908 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21910 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21912 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21914 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21916 ## ------------------------------------------------ ##
21917 ## Report this to http://www.python.org/python-bugs ##
21918 ## ------------------------------------------------ ##
21920 ) | sed "s/^/$as_me: WARNING: /" >&2
21923 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21924 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21925 if test "${ac_cv_header_wchar_h+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 ac_cv_header_wchar_h=$ac_header_preproc
21930 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21931 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21934 if test $ac_cv_header_wchar_h = yes; then
21937 cat >>confdefs.h <<\_ACEOF
21938 #define HAVE_WCHAR_H 1
21950 # determine wchar_t size
21951 if test "$wchar_h" = yes
21953 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21954 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21955 if test "${ac_cv_type_wchar_t+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21966 typedef wchar_t ac__type_new_;
21970 if ((ac__type_new_ *) 0)
21972 if (sizeof (ac__type_new_))
21978 rm -f conftest.$ac_objext
21979 if { (ac_try="$ac_compile"
21980 case "(($ac_try" in
21981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21982 *) ac_try_echo
=$ac_try;;
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_compile") 2>conftest.er1
21987 grep -v '^ *+' conftest.er1
>conftest.err
21989 cat conftest.err
>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest.
$ac_objext; then
21995 ac_cv_type_wchar_t
=yes
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.
$ac_ext >&5
22000 ac_cv_type_wchar_t
=no
22003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22006 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22008 # The cast to long int works around a bug in the HP C Compiler
22009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22011 # This bug is HP SR number 8606223364.
22012 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22013 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22014 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 if test "$cross_compiling" = yes; then
22018 # Depending upon the size, compute the lo and hi bounds.
22019 cat >conftest.
$ac_ext <<_ACEOF
22022 cat confdefs.h
>>conftest.
$ac_ext
22023 cat >>conftest.
$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22027 typedef wchar_t ac__type_sizeof_;
22031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22038 rm -f conftest.
$ac_objext
22039 if { (ac_try
="$ac_compile"
22040 case "(($ac_try" in
22041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_compile") 2>conftest.er1
22047 grep -v '^ *+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest.$ac_objext; then
22057 cat >conftest.$ac_ext <<_ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22065 typedef wchar_t ac__type_sizeof_;
22069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22080 *) ac_try_echo
=$ac_try;;
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22085 grep -v '^ *+' conftest.er1
>conftest.err
22087 cat conftest.err
>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest.
$ac_objext; then
22093 ac_hi
=$ac_mid; break
22095 echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.
$ac_ext >&5
22098 ac_lo
=`expr $ac_mid + 1`
22099 if test $ac_lo -le $ac_mid; then
22103 ac_mid
=`expr 2 '*' $ac_mid + 1`
22106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.
$ac_ext >&5
22112 cat >conftest.
$ac_ext <<_ACEOF
22115 cat confdefs.h
>>conftest.
$ac_ext
22116 cat >>conftest.
$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22120 typedef wchar_t ac__type_sizeof_;
22124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22131 rm -f conftest.
$ac_objext
22132 if { (ac_try
="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22158 typedef wchar_t ac__type_sizeof_;
22162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22173 *) ac_try_echo
=$ac_try;;
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22178 grep -v '^ *+' conftest.er1
>conftest.err
22180 cat conftest.err
>&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.
$ac_objext; then
22186 ac_lo
=$ac_mid; break
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.
$ac_ext >&5
22191 ac_hi
=`expr '(' $ac_mid ')' - 1`
22192 if test $ac_mid -le $ac_hi; then
22196 ac_mid
=`expr 2 '*' $ac_mid`
22199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.
$ac_ext >&5
22208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22212 # Binary search between lo and hi bounds.
22213 while test "x$ac_lo" != "x$ac_hi"; do
22214 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22215 cat >conftest.
$ac_ext <<_ACEOF
22218 cat confdefs.h
>>conftest.
$ac_ext
22219 cat >>conftest.
$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22223 typedef wchar_t ac__type_sizeof_;
22227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22234 rm -f conftest.
$ac_objext
22235 if { (ac_try
="$ac_compile"
22236 case "(($ac_try" in
22237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_compile") 2>conftest.er1
22243 grep -v '^ *+' conftest.er1 >conftest.err
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } && {
22248 test -z "$ac_c_werror_flag" ||
22249 test ! -s conftest.err
22250 } && test -s conftest.$ac_objext; then
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ac_lo=`expr '(' $ac_mid ')' + 1`
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22263 '') if test "$ac_cv_type_wchar_t" = yes; then
22264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22265 See \`config.log
' for more details." >&5
22266 echo "$as_me: error: cannot compute sizeof (wchar_t)
22267 See \`config.log' for more details.
" >&2;}
22268 { (exit 77); exit 77; }; }
22270 ac_cv_sizeof_wchar_t=0
22274 cat >conftest.$ac_ext <<_ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22282 typedef wchar_t ac__type_sizeof_;
22283 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22284 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22286 #include <stdlib.h>
22291 FILE *f = fopen ("conftest.val
", "w
");
22294 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22296 long int i = longval ();
22297 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22299 fprintf (f, "%ld
\n", i);
22303 unsigned long int i = ulongval ();
22304 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22306 fprintf (f, "%lu
\n", i);
22308 return ferror (f) || fclose (f) != 0;
22314 rm -f conftest$ac_exeext
22315 if { (ac_try="$ac_link"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_link") 2>&5
22323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22325 { (case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_try") 2>&5
22332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22333 (exit $ac_status); }; }; then
22334 ac_cv_sizeof_wchar_t=`cat conftest.val`
22336 echo "$as_me: program exited with status
$ac_status" >&5
22337 echo "$as_me: failed program was
:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22340 ( exit $ac_status )
22341 if test "$ac_cv_type_wchar_t" = yes; then
22342 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22343 See \
`config.log' for more details." >&5
22344 echo "$as_me: error: cannot compute sizeof (wchar_t)
22345 See \`config.log
' for more details." >&2;}
22346 { (exit 77); exit 77; }; }
22348 ac_cv_sizeof_wchar_t=0
22351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22355 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22356 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22360 cat >>confdefs.h <<_ACEOF
22361 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22367 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22368 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22370 cat >conftest.$ac_ext <<_ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22378 #if TCL_UTF_MAX != 6
22379 # error "NOT UCS4_TCL"
22389 rm -f conftest.$ac_objext
22390 if { (ac_try="$ac_compile"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_compile") 2>conftest.er1
22398 grep -v '^
*+' conftest.er1 >conftest.err
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest.$ac_objext; then
22408 cat >>confdefs.h <<\_ACEOF
22409 #define HAVE_UCS4_TCL 1
22415 echo "$as_me: failed program was:" >&5
22416 sed 's
/^
/|
/' conftest.$ac_ext >&5
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22423 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22425 # check whether wchar_t is signed or not
22426 if test "$wchar_h" = yes
22428 # check whether wchar_t is signed or not
22429 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22430 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22431 if test "${ac_cv_wchar_t_signed+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 if test "$cross_compiling" = yes; then
22436 ac_cv_wchar_t_signed=yes
22438 cat >conftest.$ac_ext <<_ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22448 /* Success: exit code 0 */
22449 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22453 rm -f conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_link") 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22464 { (case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_try") 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; }; then
22473 ac_cv_wchar_t_signed=yes
22475 echo "$as_me: program exited with status $ac_status" >&5
22476 echo "$as_me: failed program was:" >&5
22477 sed 's
/^
/|
/' conftest.$ac_ext >&5
22479 ( exit $ac_status )
22480 ac_cv_wchar_t_signed=no
22482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22489 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22492 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22493 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22494 # Check whether --enable-unicode was given.
22495 if test "${enable_unicode+set}" = set; then
22496 enableval=$enable_unicode;
22502 if test $enable_unicode = yes
22504 # Without any arguments, Py_UNICODE defaults to two-byte mode
22505 case "$have_ucs4_tcl" in
22506 yes) enable_unicode="ucs4"
22508 *) enable_unicode="ucs2"
22515 case "$enable_unicode" in
22516 ucs2) unicode_size="2"
22517 cat >>confdefs.h <<\_ACEOF
22518 #define Py_UNICODE_SIZE 2
22522 ucs4) unicode_size="4"
22523 cat >>confdefs.h <<\_ACEOF
22524 #define Py_UNICODE_SIZE 4
22534 if test "$enable_unicode" = "no"
22537 { echo "$as_me:$LINENO: result: not used" >&5
22538 echo "${ECHO_T}not used" >&6; }
22540 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22542 cat >>confdefs.h <<\_ACEOF
22543 #define Py_USING_UNICODE 1
22547 # wchar_t is only usable if it maps to an unsigned type
22548 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22549 -a "$ac_cv_wchar_t_signed" = "no"
22551 PY_UNICODE_TYPE="wchar_t"
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_USABLE_WCHAR_T 1
22557 cat >>confdefs.h <<\_ACEOF
22558 #define PY_UNICODE_TYPE wchar_t
22561 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22563 PY_UNICODE_TYPE="unsigned short"
22564 cat >>confdefs.h <<\_ACEOF
22565 #define PY_UNICODE_TYPE unsigned short
22568 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22570 PY_UNICODE_TYPE="unsigned long"
22571 cat >>confdefs.h <<\_ACEOF
22572 #define PY_UNICODE_TYPE unsigned long
22576 PY_UNICODE_TYPE="no type found"
22578 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22579 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22582 # check for endianness
22583 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22584 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22585 if test "${ac_cv_c_bigendian+set}" = set; then
22586 echo $ECHO_N "(cached) $ECHO_C" >&6
22588 # See if sys/param.h defines the BYTE_ORDER macro.
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 #include <sys/types.h>
22596 #include <sys/param.h>
22601 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22602 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22603 bogus endian macros
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22619 grep -v '^
*+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 # It does; now see whether it defined to BIG_ENDIAN or not.
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 #include <sys/types.h>
22635 #include <sys/param.h>
22640 #if BYTE_ORDER != BIG_ENDIAN
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_compile") 2>conftest.er1
22657 grep -v '^
*+' conftest.er1 >conftest.err
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest.$ac_objext; then
22665 ac_cv_c_bigendian=yes
22667 echo "$as_me: failed program was:" >&5
22668 sed 's
/^
/|
/' conftest.$ac_ext >&5
22670 ac_cv_c_bigendian=no
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675 echo "$as_me: failed program was:" >&5
22676 sed 's
/^
/|
/' conftest.$ac_ext >&5
22678 # It does not; compile a test program.
22679 if test "$cross_compiling" = yes; then
22680 # try to guess the endianness by grepping values into an object file
22681 ac_cv_c_bigendian=unknown
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22689 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22690 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22691 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22692 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22693 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22697 _ascii (); _ebcdic ();
22702 rm -f conftest.$ac_objext
22703 if { (ac_try="$ac_compile"
22704 case "(($ac_try" in
22705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22706 *) ac_try_echo=$ac_try;;
22708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22709 (eval "$ac_compile") 2>conftest.er1
22711 grep -v '^
*+' conftest.er1 >conftest.err
22713 cat conftest.err >&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } && {
22716 test -z "$ac_c_werror_flag" ||
22717 test ! -s conftest.err
22718 } && test -s conftest.$ac_objext; then
22719 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22720 ac_cv_c_bigendian=yes
22722 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22723 if test "$ac_cv_c_bigendian" = unknown; then
22724 ac_cv_c_bigendian=no
22726 # finding both strings is unlikely to happen, but who knows?
22727 ac_cv_c_bigendian=unknown
22731 echo "$as_me: failed program was:" >&5
22732 sed 's
/^
/|
/' conftest.$ac_ext >&5
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 $ac_includes_default
22750 /* Are we little or big endian? From Harbison&Steele. */
22754 char c[sizeof (long int)];
22757 return u.c[sizeof (long int) - 1] == 1;
22763 rm -f conftest$ac_exeext
22764 if { (ac_try="$ac_link"
22765 case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770 (eval "$ac_link") 2>&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22774 { (case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_try") 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ac_cv_c_bigendian=no
22785 echo "$as_me: program exited with status $ac_status" >&5
22786 echo "$as_me: failed program was:" >&5
22787 sed 's
/^
/|
/' conftest.$ac_ext >&5
22789 ( exit $ac_status )
22790 ac_cv_c_bigendian=yes
22792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22801 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22802 case $ac_cv_c_bigendian in
22805 cat >>confdefs.h <<\_ACEOF
22806 #define WORDS_BIGENDIAN 1
22812 { { echo "$as_me:$LINENO: error: unknown endianness
22813 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22814 echo "$as_me: error: unknown endianness
22815 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22816 { (exit 1); exit 1; }; } ;;
22820 # Check whether right shifting a negative integer extends the sign bit
22821 # or fills with zeros (like the Cray J90, according to Tim Peters).
22822 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22823 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22824 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 if test "$cross_compiling" = yes; then
22829 ac_cv_rshift_extends_sign=yes
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22840 exit(((-1)>>3 == -1) ? 0 : 1);
22844 rm -f conftest$ac_exeext
22845 if { (ac_try="$ac_link"
22846 case "(($ac_try" in
22847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851 (eval "$ac_link") 2>&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22855 { (case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_try") 2>&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 ac_cv_rshift_extends_sign=yes
22866 echo "$as_me: program exited with status $ac_status" >&5
22867 echo "$as_me: failed program was:" >&5
22868 sed 's
/^
/|
/' conftest.$ac_ext >&5
22870 ( exit $ac_status )
22871 ac_cv_rshift_extends_sign=no
22873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22879 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22880 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22881 if test "$ac_cv_rshift_extends_sign" = no
22884 cat >>confdefs.h <<\_ACEOF
22885 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22890 # check for getc_unlocked and related locking functions
22891 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22892 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22893 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22908 FILE *f = fopen("/dev/null", "r");
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (ac_try="$ac_link"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_link") 2>conftest.er1
22926 grep -v '^
*+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && {
22931 test -z "$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22933 } && test -s conftest$ac_exeext &&
22934 $as_test_x conftest$ac_exeext; then
22935 ac_cv_have_getc_unlocked=yes
22937 echo "$as_me: failed program was:" >&5
22938 sed 's
/^
/|
/' conftest.$ac_ext >&5
22940 ac_cv_have_getc_unlocked=no
22943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22944 conftest$ac_exeext conftest.$ac_ext
22947 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22948 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22949 if test "$ac_cv_have_getc_unlocked" = yes
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_GETC_UNLOCKED 1
22958 # check where readline lives
22959 # save the value of LIBS so we don't actually link Python with readline
22960 LIBS_no_readline
=$LIBS
22962 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22963 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22964 if test "${ac_cv_lib_readline_readline+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 ac_check_lib_save_LIBS
=$LIBS
22968 LIBS
="-lreadline $LIBS"
22969 cat >conftest.
$ac_ext <<_ACEOF
22972 cat confdefs.h
>>conftest.
$ac_ext
22973 cat >>conftest.
$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22976 /* Override any GCC internal prototype to avoid an error.
22977 Use char because int might match the return type of a GCC
22978 builtin and then its argument prototype would still apply. */
22986 return readline ();
22991 rm -f conftest.
$ac_objext conftest
$ac_exeext
22992 if { (ac_try
="$ac_link"
22993 case "(($ac_try" in
22994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22998 (eval "$ac_link") 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } && {
23005 test -z "$ac_c_werror_flag" ||
23006 test ! -s conftest.err
23007 } && test -s conftest$ac_exeext &&
23008 $as_test_x conftest$ac_exeext; then
23009 ac_cv_lib_readline_readline=yes
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23014 ac_cv_lib_readline_readline=no
23017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23018 conftest$ac_exeext conftest.$ac_ext
23019 LIBS=$ac_check_lib_save_LIBS
23021 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
23022 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
23023 if test $ac_cv_lib_readline_readline = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025 #define HAVE_LIBREADLINE 1
23028 LIBS="-lreadline $LIBS"
23032 if test "$ac_cv_have_readline_readline" = no
23035 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
23036 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
23037 if test "${ac_cv_lib_termcap_readline+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 ac_check_lib_save_LIBS=$LIBS
23041 LIBS="-ltermcap $LIBS"
23042 cat >conftest.$ac_ext <<_ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23049 /* Override any GCC internal prototype to avoid an error.
23050 Use char because int might match the return type of a GCC
23051 builtin and then its argument prototype would still apply. */
23059 return readline ();
23064 rm -f conftest.$ac_objext conftest$ac_exeext
23065 if { (ac_try="$ac_link"
23066 case "(($ac_try" in
23067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23068 *) ac_try_echo
=$ac_try;;
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_link") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1
>conftest.err
23075 cat conftest.err
>&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest
$ac_exeext &&
23081 $as_test_x conftest
$ac_exeext; then
23082 ac_cv_lib_termcap_readline
=yes
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.
$ac_ext >&5
23087 ac_cv_lib_termcap_readline
=no
23090 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23091 conftest
$ac_exeext conftest.
$ac_ext
23092 LIBS
=$ac_check_lib_save_LIBS
23094 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
23095 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
23096 if test $ac_cv_lib_termcap_readline = yes; then
23097 cat >>confdefs.h
<<_ACEOF
23098 #define HAVE_LIBTERMCAP 1
23101 LIBS
="-ltermcap $LIBS"
23107 # check for readline 2.1
23108 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23109 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23110 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 ac_check_lib_save_LIBS
=$LIBS
23114 LIBS
="-lreadline $LIBS"
23115 cat >conftest.
$ac_ext <<_ACEOF
23118 cat confdefs.h
>>conftest.
$ac_ext
23119 cat >>conftest.
$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23122 /* Override any GCC internal prototype to avoid an error.
23123 Use char because int might match the return type of a GCC
23124 builtin and then its argument prototype would still apply. */
23128 char rl_callback_handler_install ();
23132 return rl_callback_handler_install ();
23137 rm -f conftest.
$ac_objext conftest
$ac_exeext
23138 if { (ac_try
="$ac_link"
23139 case "(($ac_try" in
23140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_link") 2>conftest.er1
23146 grep -v '^ *+' conftest.er1 >conftest.err
23148 cat conftest.err >&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest$ac_exeext &&
23154 $as_test_x conftest$ac_exeext; then
23155 ac_cv_lib_readline_rl_callback_handler_install=yes
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ac_cv_lib_readline_rl_callback_handler_install=no
23163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23164 conftest$ac_exeext conftest.$ac_ext
23165 LIBS=$ac_check_lib_save_LIBS
23167 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23168 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23169 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23171 cat >>confdefs.h <<\_ACEOF
23172 #define HAVE_RL_CALLBACK 1
23178 # check for readline 2.2
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 #include <readline/readline.h>
23187 if { (ac_try="$ac_cpp conftest.$ac_ext"
23188 case "(($ac_try" in
23189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23190 *) ac_try_echo
=$ac_try;;
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23195 grep -v '^ *+' conftest.er1
>conftest.err
23197 cat conftest.err
>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } >/dev
/null
&& {
23200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23201 test ! -s conftest.err
23205 echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.
$ac_ext >&5
23211 rm -f conftest.err conftest.
$ac_ext
23212 if test $have_readline = yes
23214 cat >conftest.
$ac_ext <<_ACEOF
23217 cat confdefs.h
>>conftest.
$ac_ext
23218 cat >>conftest.
$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 #include <readline/readline.h>
23223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23224 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
23226 cat >>confdefs.h
<<\_ACEOF
23227 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23235 # check for readline 4.0
23236 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23237 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23238 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 ac_check_lib_save_LIBS
=$LIBS
23242 LIBS
="-lreadline $LIBS"
23243 cat >conftest.
$ac_ext <<_ACEOF
23246 cat confdefs.h
>>conftest.
$ac_ext
23247 cat >>conftest.
$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 /* Override any GCC internal prototype to avoid an error.
23251 Use char because int might match the return type of a GCC
23252 builtin and then its argument prototype would still apply. */
23256 char rl_pre_input_hook ();
23260 return rl_pre_input_hook ();
23265 rm -f conftest.
$ac_objext conftest
$ac_exeext
23266 if { (ac_try
="$ac_link"
23267 case "(($ac_try" in
23268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23269 *) ac_try_echo=$ac_try;;
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272 (eval "$ac_link") 2>conftest.er1
23274 grep -v '^ *+' conftest.er1 >conftest.err
23276 cat conftest.err >&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } && {
23279 test -z "$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23281 } && test -s conftest$ac_exeext &&
23282 $as_test_x conftest$ac_exeext; then
23283 ac_cv_lib_readline_rl_pre_input_hook=yes
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23288 ac_cv_lib_readline_rl_pre_input_hook=no
23291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23292 conftest$ac_exeext conftest.$ac_ext
23293 LIBS=$ac_check_lib_save_LIBS
23295 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23296 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23297 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23299 cat >>confdefs.h <<\_ACEOF
23300 #define HAVE_RL_PRE_INPUT_HOOK 1
23307 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23308 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23309 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 ac_check_lib_save_LIBS=$LIBS
23313 LIBS="-lreadline $LIBS"
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23321 /* Override any GCC internal prototype to avoid an error.
23322 Use char because int might match the return type of a GCC
23323 builtin and then its argument prototype would still apply. */
23327 char rl_completion_display_matches_hook ();
23331 return rl_completion_display_matches_hook ();
23336 rm -f conftest.$ac_objext conftest$ac_exeext
23337 if { (ac_try="$ac_link"
23338 case "(($ac_try" in
23339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23340 *) ac_try_echo
=$ac_try;;
23342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23343 (eval "$ac_link") 2>conftest.er1
23345 grep -v '^ *+' conftest.er1
>conftest.err
23347 cat conftest.err
>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } && {
23350 test -z "$ac_c_werror_flag" ||
23351 test ! -s conftest.err
23352 } && test -s conftest
$ac_exeext &&
23353 $as_test_x conftest
$ac_exeext; then
23354 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.
$ac_ext >&5
23359 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
23362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23363 conftest
$ac_exeext conftest.
$ac_ext
23364 LIBS
=$ac_check_lib_save_LIBS
23366 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23367 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23368 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23370 cat >>confdefs.h
<<\_ACEOF
23371 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23377 # check for readline 4.2
23378 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23379 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23380 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 ac_check_lib_save_LIBS
=$LIBS
23384 LIBS
="-lreadline $LIBS"
23385 cat >conftest.
$ac_ext <<_ACEOF
23388 cat confdefs.h
>>conftest.
$ac_ext
23389 cat >>conftest.
$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23392 /* Override any GCC internal prototype to avoid an error.
23393 Use char because int might match the return type of a GCC
23394 builtin and then its argument prototype would still apply. */
23398 char rl_completion_matches ();
23402 return rl_completion_matches ();
23407 rm -f conftest.
$ac_objext conftest
$ac_exeext
23408 if { (ac_try
="$ac_link"
23409 case "(($ac_try" in
23410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_link") 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && {
23421 test -z "$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 } && test -s conftest$ac_exeext &&
23424 $as_test_x conftest$ac_exeext; then
23425 ac_cv_lib_readline_rl_completion_matches=yes
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430 ac_cv_lib_readline_rl_completion_matches=no
23433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23434 conftest$ac_exeext conftest.$ac_ext
23435 LIBS=$ac_check_lib_save_LIBS
23437 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23438 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23439 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23441 cat >>confdefs.h <<\_ACEOF
23442 #define HAVE_RL_COMPLETION_MATCHES 1
23448 # also in readline 4.2
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <readline/readline.h>
23457 if { (ac_try="$ac_cpp conftest.$ac_ext"
23458 case "(($ac_try" in
23459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23460 *) ac_try_echo
=$ac_try;;
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23465 grep -v '^ *+' conftest.er1
>conftest.err
23467 cat conftest.err
>&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } >/dev
/null
&& {
23470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23471 test ! -s conftest.err
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.
$ac_ext >&5
23481 rm -f conftest.err conftest.
$ac_ext
23482 if test $have_readline = yes
23484 cat >conftest.
$ac_ext <<_ACEOF
23487 cat confdefs.h
>>conftest.
$ac_ext
23488 cat >>conftest.
$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 #include <readline/readline.h>
23493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23494 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
23496 cat >>confdefs.h
<<\_ACEOF
23497 #define HAVE_RL_CATCH_SIGNAL 1
23505 # End of readline checks: restore LIBS
23506 LIBS
=$LIBS_no_readline
23508 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23509 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23510 if test "${ac_cv_broken_nice+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 if test "$cross_compiling" = yes; then
23515 ac_cv_broken_nice
=no
23517 cat >conftest.
$ac_ext <<_ACEOF
23520 cat confdefs.h
>>conftest.
$ac_ext
23521 cat >>conftest.
$ac_ext <<_ACEOF
23522 /* end confdefs.h. */
23526 int val1 = nice(1);
23527 if (val1 != -1 && val1 == nice(2))
23533 rm -f conftest
$ac_exeext
23534 if { (ac_try
="$ac_link"
23535 case "(($ac_try" in
23536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_link") 2>&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23544 { (case "(($ac_try" in
23545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23546 *) ac_try_echo
=$ac_try;;
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549 (eval "$ac_try") 2>&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; }; then
23553 ac_cv_broken_nice
=yes
23555 echo "$as_me: program exited with status $ac_status" >&5
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.
$ac_ext >&5
23559 ( exit $ac_status )
23560 ac_cv_broken_nice
=no
23562 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23568 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23569 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23570 if test "$ac_cv_broken_nice" = yes
23573 cat >>confdefs.h
<<\_ACEOF
23574 #define HAVE_BROKEN_NICE 1
23579 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23580 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23581 if test "$cross_compiling" = yes; then
23582 ac_cv_broken_poll
=no
23584 cat >conftest.
$ac_ext <<_ACEOF
23587 cat confdefs.h
>>conftest.
$ac_ext
23588 cat >>conftest.
$ac_ext <<_ACEOF
23589 /* end confdefs.h. */
23595 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23599 int poll_test = poll (&poll_struct, 1, 0);
23605 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23616 rm -f conftest
$ac_exeext
23617 if { (ac_try
="$ac_link"
23618 case "(($ac_try" in
23619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_link") 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23627 { (case "(($ac_try" in
23628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23629 *) ac_try_echo
=$ac_try;;
23631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23632 (eval "$ac_try") 2>&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; }; then
23636 ac_cv_broken_poll
=yes
23638 echo "$as_me: program exited with status $ac_status" >&5
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.
$ac_ext >&5
23642 ( exit $ac_status )
23643 ac_cv_broken_poll
=no
23645 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23649 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23650 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23651 if test "$ac_cv_broken_poll" = yes
23654 cat >>confdefs.h
<<\_ACEOF
23655 #define HAVE_BROKEN_POLL 1
23660 # Before we can test tzset, we need to check if struct tm has a tm_zone
23661 # (which is not required by ISO C or UNIX spec) and/or if we support
23663 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23664 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23665 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 cat >conftest.
$ac_ext <<_ACEOF
23671 cat confdefs.h
>>conftest.
$ac_ext
23672 cat >>conftest.
$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 #include <sys/types.h>
23675 #include <$ac_cv_struct_tm>
23681 static struct tm ac_aggr;
23682 if (ac_aggr.tm_zone)
23688 rm -f conftest.
$ac_objext
23689 if { (ac_try
="$ac_compile"
23690 case "(($ac_try" in
23691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23705 ac_cv_member_struct_tm_tm_zone=yes
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23716 #include <sys/types.h>
23717 #include <$ac_cv_struct_tm>
23723 static struct tm ac_aggr;
23724 if (sizeof ac_aggr.tm_zone)
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23734 *) ac_try_echo
=$ac_try;;
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_compile") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1
>conftest.err
23741 cat conftest.err
>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest.
$ac_objext; then
23747 ac_cv_member_struct_tm_tm_zone
=yes
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.
$ac_ext >&5
23752 ac_cv_member_struct_tm_tm_zone
=no
23755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23760 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23761 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23762 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23764 cat >>confdefs.h
<<_ACEOF
23765 #define HAVE_STRUCT_TM_TM_ZONE 1
23771 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23773 cat >>confdefs.h
<<\_ACEOF
23774 #define HAVE_TM_ZONE 1
23778 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23779 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23780 if test "${ac_cv_have_decl_tzname+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 cat >conftest.
$ac_ext <<_ACEOF
23786 cat confdefs.h
>>conftest.
$ac_ext
23787 cat >>conftest.
$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23802 rm -f conftest.
$ac_objext
23803 if { (ac_try
="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23811 grep -v '^ *+' conftest.er1 >conftest.err
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest.$ac_objext; then
23819 ac_cv_have_decl_tzname=yes
23821 echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ac_cv_have_decl_tzname=no
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23830 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23831 if test $ac_cv_have_decl_tzname = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834 #define HAVE_DECL_TZNAME 1
23839 cat >>confdefs.h <<_ACEOF
23840 #define HAVE_DECL_TZNAME 0
23847 { echo "$as_me:$LINENO: checking for tzname" >&5
23848 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23849 if test "${ac_cv_var_tzname+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23852 cat >conftest.$ac_ext <<_ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h. */
23859 #if !HAVE_DECL_TZNAME
23860 extern char *tzname[];
23866 return tzname[0][0];
23871 rm -f conftest.$ac_objext conftest$ac_exeext
23872 if { (ac_try="$ac_link"
23873 case "(($ac_try" in
23874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23875 *) ac_try_echo
=$ac_try;;
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_link") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1
>conftest.err
23882 cat conftest.err
>&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest
$ac_exeext &&
23888 $as_test_x conftest
$ac_exeext; then
23889 ac_cv_var_tzname
=yes
23891 echo "$as_me: failed program was:" >&5
23892 sed 's/^/| /' conftest.
$ac_ext >&5
23894 ac_cv_var_tzname
=no
23897 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23898 conftest
$ac_exeext conftest.
$ac_ext
23900 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23901 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23902 if test $ac_cv_var_tzname = yes; then
23904 cat >>confdefs.h
<<\_ACEOF
23905 #define HAVE_TZNAME 1
23912 # check tzset(3) exists and works like we expect it to
23913 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23914 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23915 if test "${ac_cv_working_tzset+set}" = set; then
23916 echo $ECHO_N "(cached) $ECHO_C" >&6
23919 if test "$cross_compiling" = yes; then
23920 ac_cv_working_tzset
=no
23922 cat >conftest.
$ac_ext <<_ACEOF
23925 cat confdefs.h
>>conftest.
$ac_ext
23926 cat >>conftest.
$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23929 #include <stdlib.h>
23931 #include <string.h>
23934 extern char *tzname[];
23939 /* Note that we need to ensure that not only does tzset(3)
23940 do 'something' with localtime, but it works as documented
23941 in the library reference and as expected by the test suite.
23942 This includes making sure that tzname is set properly if
23943 tm->tm_zone does not exist since it is the alternative way
23944 of getting timezone info.
23946 Red Hat 6.2 doesn't understand the southern hemisphere
23947 after New Year's Day.
23950 time_t groundhogday = 1044144000; /* GMT-based */
23951 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23953 putenv("TZ=UTC+0");
23955 if (localtime(&groundhogday)->tm_hour != 0)
23958 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23959 if (strcmp(tzname[0], "UTC") ||
23960 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23964 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23966 if (localtime(&groundhogday)->tm_hour != 19)
23969 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23973 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23975 if (localtime(&groundhogday)->tm_hour != 11)
23978 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23982 #if HAVE_STRUCT_TM_TM_ZONE
23983 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23985 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23993 rm -f conftest
$ac_exeext
23994 if { (ac_try
="$ac_link"
23995 case "(($ac_try" in
23996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_link") 2>&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24004 { (case "(($ac_try" in
24005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24006 *) ac_try_echo
=$ac_try;;
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_try") 2>&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; }; then
24013 ac_cv_working_tzset
=yes
24015 echo "$as_me: program exited with status $ac_status" >&5
24016 echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.
$ac_ext >&5
24019 ( exit $ac_status )
24020 ac_cv_working_tzset
=no
24022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24028 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24029 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24030 if test "$ac_cv_working_tzset" = yes
24033 cat >>confdefs.h
<<\_ACEOF
24034 #define HAVE_WORKING_TZSET 1
24039 # Look for subsecond timestamps in struct stat
24040 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24041 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24042 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
24045 cat >conftest.
$ac_ext <<_ACEOF
24048 cat confdefs.h
>>conftest.
$ac_ext
24049 cat >>conftest.
$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24051 #include <sys/stat.h>
24057 st.st_mtim.tv_nsec = 1;
24063 rm -f conftest.
$ac_objext
24064 if { (ac_try
="$ac_compile"
24065 case "(($ac_try" in
24066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24067 *) ac_try_echo=$ac_try;;
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070 (eval "$ac_compile") 2>conftest.er1
24072 grep -v '^ *+' conftest.er1 >conftest.err
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest.$ac_objext; then
24080 ac_cv_stat_tv_nsec=yes
24082 echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24085 ac_cv_stat_tv_nsec=no
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24091 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24092 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24093 if test "$ac_cv_stat_tv_nsec" = yes
24096 cat >>confdefs.h <<\_ACEOF
24097 #define HAVE_STAT_TV_NSEC 1
24102 # Look for BSD style subsecond timestamps in struct stat
24103 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24104 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24105 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24108 cat >conftest.$ac_ext <<_ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 #include <sys/stat.h>
24120 st.st_mtimespec.tv_nsec = 1;
24126 rm -f conftest.$ac_objext
24127 if { (ac_try="$ac_compile"
24128 case "(($ac_try" in
24129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24130 *) ac_try_echo
=$ac_try;;
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24135 grep -v '^ *+' conftest.er1
>conftest.err
24137 cat conftest.err
>&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.
$ac_objext; then
24143 ac_cv_stat_tv_nsec2
=yes
24145 echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.
$ac_ext >&5
24148 ac_cv_stat_tv_nsec2
=no
24151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24154 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24155 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24156 if test "$ac_cv_stat_tv_nsec2" = yes
24159 cat >>confdefs.h
<<\_ACEOF
24160 #define HAVE_STAT_TV_NSEC2 1
24165 # On HP/UX 11.0, mvwdelch is a block with a return statement
24166 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24167 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24168 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24171 cat >conftest.
$ac_ext <<_ACEOF
24174 cat confdefs.h
>>conftest.
$ac_ext
24175 cat >>conftest.
$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 #include <curses.h>
24183 rtn = mvwdelch(0,0,0);
24189 rm -f conftest.
$ac_objext
24190 if { (ac_try
="$ac_compile"
24191 case "(($ac_try" in
24192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_compile") 2>conftest.er1
24198 grep -v '^ *+' conftest.er1 >conftest.err
24200 cat conftest.err >&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } && {
24203 test -z "$ac_c_werror_flag" ||
24204 test ! -s conftest.err
24205 } && test -s conftest.$ac_objext; then
24206 ac_cv_mvwdelch_is_expression=yes
24208 echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24211 ac_cv_mvwdelch_is_expression=no
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24218 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24220 if test "$ac_cv_mvwdelch_is_expression" = yes
24223 cat >>confdefs.h <<\_ACEOF
24224 #define MVWDELCH_IS_EXPRESSION 1
24229 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24230 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24231 if test "${ac_cv_window_has_flags+set}" = set; then
24232 echo $ECHO_N "(cached) $ECHO_C" >&6
24234 cat >conftest.$ac_ext <<_ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 #include <curses.h>
24252 rm -f conftest.$ac_objext
24253 if { (ac_try="$ac_compile"
24254 case "(($ac_try" in
24255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24256 *) ac_try_echo
=$ac_try;;
24258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24259 (eval "$ac_compile") 2>conftest.er1
24261 grep -v '^ *+' conftest.er1
>conftest.err
24263 cat conftest.err
>&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } && {
24266 test -z "$ac_c_werror_flag" ||
24267 test ! -s conftest.err
24268 } && test -s conftest.
$ac_objext; then
24269 ac_cv_window_has_flags
=yes
24271 echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.
$ac_ext >&5
24274 ac_cv_window_has_flags
=no
24277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24280 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24281 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24284 if test "$ac_cv_window_has_flags" = yes
24287 cat >>confdefs.h
<<\_ACEOF
24288 #define WINDOW_HAS_FLAGS 1
24293 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24294 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24295 cat >conftest.
$ac_ext <<_ACEOF
24298 cat confdefs.h
>>conftest.
$ac_ext
24299 cat >>conftest.
$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 #include <curses.h>
24305 void *x=is_term_resized
24310 rm -f conftest.
$ac_objext
24311 if { (ac_try
="$ac_compile"
24312 case "(($ac_try" in
24313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24314 *) ac_try_echo=$ac_try;;
24316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24317 (eval "$ac_compile") 2>conftest.er1
24319 grep -v '^ *+' conftest.er1 >conftest.err
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest.$ac_objext; then
24328 cat >>confdefs.h <<\_ACEOF
24329 #define HAVE_CURSES_IS_TERM_RESIZED 1
24332 { echo "$as_me:$LINENO: result: yes" >&5
24333 echo "${ECHO_T}yes" >&6; }
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 { echo "$as_me:$LINENO: result: no" >&5
24339 echo "${ECHO_T}no" >&6; }
24343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 { echo "$as_me:$LINENO: checking for resize_term" >&5
24346 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24347 cat >conftest.$ac_ext <<_ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <curses.h>
24357 void *x=resize_term
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24366 *) ac_try_echo
=$ac_try;;
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_compile") 2>conftest.er1
24371 grep -v '^ *+' conftest.er1
>conftest.err
24373 cat conftest.err
>&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } && {
24376 test -z "$ac_c_werror_flag" ||
24377 test ! -s conftest.err
24378 } && test -s conftest.
$ac_objext; then
24380 cat >>confdefs.h
<<\_ACEOF
24381 #define HAVE_CURSES_RESIZE_TERM 1
24384 { echo "$as_me:$LINENO: result: yes" >&5
24385 echo "${ECHO_T}yes" >&6; }
24387 echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.
$ac_ext >&5
24390 { echo "$as_me:$LINENO: result: no" >&5
24391 echo "${ECHO_T}no" >&6; }
24395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24397 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24398 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24399 cat >conftest.
$ac_ext <<_ACEOF
24402 cat confdefs.h
>>conftest.
$ac_ext
24403 cat >>conftest.
$ac_ext <<_ACEOF
24404 /* end confdefs.h. */
24405 #include <curses.h>
24414 rm -f conftest.
$ac_objext
24415 if { (ac_try
="$ac_compile"
24416 case "(($ac_try" in
24417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421 (eval "$ac_compile") 2>conftest.er1
24423 grep -v '^ *+' conftest.er1 >conftest.err
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } && {
24428 test -z "$ac_c_werror_flag" ||
24429 test ! -s conftest.err
24430 } && test -s conftest.$ac_objext; then
24432 cat >>confdefs.h <<\_ACEOF
24433 #define HAVE_CURSES_RESIZETERM 1
24436 { echo "$as_me:$LINENO: result: yes" >&5
24437 echo "${ECHO_T}yes" >&6; }
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 { echo "$as_me:$LINENO: result: no" >&5
24443 echo "${ECHO_T}no" >&6; }
24447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24449 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24450 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24452 if test -r /dev/ptmx
24454 { echo "$as_me:$LINENO: result: yes" >&5
24455 echo "${ECHO_T}yes" >&6; }
24457 cat >>confdefs.h <<\_ACEOF
24458 #define HAVE_DEV_PTMX 1
24462 { echo "$as_me:$LINENO: result: no" >&5
24463 echo "${ECHO_T}no" >&6; }
24466 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24467 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24469 if test -r /dev/ptc
24471 { echo "$as_me:$LINENO: result: yes" >&5
24472 echo "${ECHO_T}yes" >&6; }
24474 cat >>confdefs.h <<\_ACEOF
24475 #define HAVE_DEV_PTC 1
24479 { echo "$as_me:$LINENO: result: no" >&5
24480 echo "${ECHO_T}no" >&6; }
24483 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24484 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24485 if test "$cross_compiling" = yes; then
24486 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24487 See \`config.log
' for more details." >&5
24488 echo "$as_me: error: cannot run test program while cross compiling
24489 See \`config.log' for more details.
" >&2;}
24490 { (exit 1); exit 1; }; }
24492 cat >conftest.$ac_ext <<_ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h. */
24499 #include <stddef.h>
24500 #include <string.h>
24502 #ifdef HAVE_SYS_TYPES_H
24503 #include <sys/types.h>
24506 #ifdef HAVE_SSIZE_T
24507 typedef ssize_t Py_ssize_t;
24508 #elif SIZEOF_VOID_P == SIZEOF_LONG
24509 typedef long Py_ssize_t;
24511 typedef int Py_ssize_t;
24518 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
24521 if (strcmp(buffer, "123"))
24524 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
24527 if (strcmp(buffer, "-123"))
24533 rm -f conftest$ac_exeext
24534 if { (ac_try="$ac_link"
24535 case "(($ac_try" in
24536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24537 *) ac_try_echo=$ac_try;;
24539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24540 (eval "$ac_link") 2>&5
24542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24544 { (case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_try") 2>&5
24551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 { echo "$as_me:$LINENO: result
: yes" >&5
24554 echo "${ECHO_T}yes" >&6; }
24556 cat >>confdefs.h <<\_ACEOF
24557 #define PY_FORMAT_SIZE_T "z
"
24561 echo "$as_me: program exited with status
$ac_status" >&5
24562 echo "$as_me: failed program was
:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 ( exit $ac_status )
24566 { echo "$as_me:$LINENO: result
: no
" >&5
24567 echo "${ECHO_T}no
" >&6; }
24569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24574 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
24575 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
24576 if test "${ac_cv_type_socklen_t+set}" = set; then
24577 echo $ECHO_N "(cached
) $ECHO_C" >&6
24579 cat >conftest.$ac_ext <<_ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24586 #ifdef HAVE_SYS_TYPES_H
24587 #include <sys/types.h>
24589 #ifdef HAVE_SYS_SOCKET_H
24590 #include <sys/socket.h>
24594 typedef socklen_t ac__type_new_;
24598 if ((ac__type_new_ *) 0)
24600 if (sizeof (ac__type_new_))
24606 rm -f conftest.$ac_objext
24607 if { (ac_try="$ac_compile"
24608 case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_compile") 2>conftest.er1
24615 grep -v '^ *+' conftest.er1 >conftest.err
24617 cat conftest.err >&5
24618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24619 (exit $ac_status); } && {
24620 test -z "$ac_c_werror_flag" ||
24621 test ! -s conftest.err
24622 } && test -s conftest.$ac_objext; then
24623 ac_cv_type_socklen_t=yes
24625 echo "$as_me: failed program was
:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24628 ac_cv_type_socklen_t=no
24631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
24634 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24635 if test $ac_cv_type_socklen_t = yes; then
24639 cat >>confdefs.h <<\_ACEOF
24640 #define socklen_t int
24648 for h in `(cd $srcdir;echo Python/thread_*.h)`
24650 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
24654 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
24655 { echo "$as_me:$LINENO: checking
for build directories
" >&5
24656 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
24657 for dir in $SRCDIRS; do
24658 if test ! -d $dir; then
24662 { echo "$as_me:$LINENO: result
: done" >&5
24663 echo "${ECHO_T}done" >&6; }
24665 # generate output files
24666 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config
"
24668 cat >confcache <<\_ACEOF
24669 # This file is a shell script that caches the results of configure
24670 # tests run on this system so they can be shared between configure
24671 # scripts and configure runs, see configure's option --config-cache.
24672 # It is not useful on other systems. If it contains results you don't
24673 # want to keep, you may remove or edit it.
24675 # config.status only pays attention to the cache file if you give it
24676 # the --recheck option to rerun configure.
24678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24680 # following values.
24684 # The following way of writing the cache mishandles newlines in values,
24685 # but we know of no workaround that is simple, portable, and efficient.
24686 # So, we kill variables containing newlines.
24687 # Ultrix sh set writes to stderr and can't be redirected directly,
24688 # and sets the high bit in the cache file unless we assign to the vars.
24690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24691 eval ac_val=\$$ac_var
24695 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24696 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24699 _ | IFS | as_nl) ;; #(
24700 *) $as_unset $ac_var ;;
24706 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24707 *${as_nl}ac_space=\ *)
24708 # `set' does not quote correctly, so add quotes (double-quote
24709 # substitution turns \\\\ into \\, and sed turns \\ into \).
24712 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24715 # `set' quotes correctly as required by POSIX, so do not add quotes.
24716 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24730 if test -w "$cache_file"; then
24731 test "x
$cache_file" != "x
/dev
/null
" &&
24732 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24733 echo "$as_me: updating cache
$cache_file" >&6;}
24734 cat confcache >$cache_file
24736 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24737 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24742 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24743 # Let make expand exec_prefix.
24744 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24746 DEFS=-DHAVE_CONFIG_H
24750 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24751 # 1. Remove the extension, and $U if already installed.
24752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24753 ac_i=`echo "$ac_i" | sed "$ac_script"`
24754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24755 # will be set to the directory where LIBOBJS objects are built.
24756 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24757 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24759 LIBOBJS=$ac_libobjs
24761 LTLIBOBJS=$ac_ltlibobjs
24765 : ${CONFIG_STATUS=./config.status}
24766 ac_clean_files_save=$ac_clean_files
24767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24768 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24769 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24770 cat >$CONFIG_STATUS <<_ACEOF
24772 # Generated by $as_me.
24773 # Run this file to recreate the current configuration.
24774 # Compiler output produced by configure, useful for debugging
24775 # configure, is in config.log if it exists.
24778 ac_cs_recheck=false
24780 SHELL=\${CONFIG_SHELL-$SHELL}
24783 cat >>$CONFIG_STATUS <<\_ACEOF
24784 ## --------------------- ##
24785 ## M4sh Initialization. ##
24786 ## --------------------- ##
24788 # Be more Bourne compatible
24789 DUALCASE=1; export DUALCASE # for MKS sh
24790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24793 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24794 # is contrary to our usage. Disable this feature.
24795 alias -g '${1+"$@"}'='"$@
"'
24796 setopt NO_GLOB_SUBST
24798 case `(set -o) 2>/dev/null` in
24799 *posix*) set -o posix ;;
24808 # Avoid depending upon Character Ranges.
24809 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24810 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24811 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24812 as_cr_digits='0123456789'
24813 as_cr_alnum=$as_cr_Letters$as_cr_digits
24815 # The user is always right.
24816 if test "${PATH_SEPARATOR+set}" != set; then
24817 echo "#! /bin/sh" >conf$$.sh
24818 echo "exit 0" >>conf$$.sh
24820 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24828 # Support unset when possible.
24829 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24837 # We need space, tab and new line, in precisely that order. Quoting is
24838 # there to prevent editors from complaining about space-tab.
24839 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24840 # splitting by setting IFS to empty value.)
24845 # Find who we are. Look in the path if we contain no directory separator.
24847 *[\\/]* ) as_myself
=$0 ;;
24848 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24849 for as_dir
in $PATH
24852 test -z "$as_dir" && as_dir
=.
24853 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24859 # We did not find ourselves, most probably we were run as `sh COMMAND'
24860 # in which case we are not to be found in the path.
24861 if test "x$as_myself" = x
; then
24864 if test ! -f "$as_myself"; then
24865 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24866 { (exit 1); exit 1; }
24869 # Work around bugs in pre-3.0 UWIN ksh.
24870 for as_var
in ENV MAIL MAILPATH
24871 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24879 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24880 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24881 LC_TELEPHONE LC_TIME
24883 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24884 eval $as_var=C
; export $as_var
24886 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24890 # Required to use basename.
24891 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24892 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24898 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24899 as_basename
=basename
24905 # Name of the executable.
24906 as_me
=`$as_basename -- "$0" ||
24907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24908 X"$0" : 'X\(//\)$' \| \
24909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24911 sed '/^.*\/\([^/][^/]*\)\/*$/{
24930 as_lineno_1
=$LINENO
24931 as_lineno_2
=$LINENO
24932 test "x$as_lineno_1" != "x$as_lineno_2" &&
24933 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24935 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24936 # uniformly replaced by the line number. The first 'sed' inserts a
24937 # line-number line after each line using $LINENO; the second 'sed'
24938 # does the real work. The second script uses 'N' to pair each
24939 # line-number line with the line containing $LINENO, and appends
24940 # trailing '-' during substitution so that $LINENO is not a special
24941 # case at line end.
24942 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24943 # scripts with optimization help from Paolo Bonzini. Blame Lee
24944 # E. McMahon (1931-1989) for sed's syntax. :-)
24956 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24959 ' >$as_me.lineno
&&
24960 chmod +x
"$as_me.lineno" ||
24961 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24962 { (exit 1); exit 1; }; }
24964 # Don't try to exec as it changes $[0], causing all sort of problems
24965 # (the dirname of $[0] is not the place where we might find the
24966 # original and so on. Autoconf is especially sensitive to this).
24967 .
"./$as_me.lineno"
24968 # Exit status is that of the last command.
24973 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24979 ECHO_C
= ECHO_N
= ECHO_T
=
24980 case `echo -n x` in
24982 case `echo 'x\c'` in
24983 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24990 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24991 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24997 rm -f conf$$ conf$$.exe conf$$.
file
24998 if test -d conf$$.dir
; then
24999 rm -f conf$$.dir
/conf$$.
file
25005 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25007 # ... but there are two gotchas:
25008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25010 # In both cases, we have to default to `cp -p'.
25011 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25013 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25018 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25019 rmdir conf$$.dir
2>/dev
/null
25021 if mkdir
-p .
2>/dev
/null
; then
25024 test -d .
/-p && rmdir .
/-p
25028 if test -x / >/dev
/null
2>&1; then
25029 as_test_x
='test -x'
25031 if ls -dL / >/dev
/null
2>&1; then
25038 if test -d "$1"; then
25044 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25045 ???[sx]*):;;*)false;;esac;fi
25049 as_executable_p
=$as_test_x
25051 # Sed expression to map a string onto a valid CPP name.
25052 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25054 # Sed expression to map a string onto a valid variable name.
25055 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25060 # Save the log message, to keep $[0] and so on meaningful, and to
25061 # report actual input values of CONFIG_FILES etc. instead of their
25062 # values after options handling.
25064 This file was extended by python $as_me 2.6, which was
25065 generated by GNU Autoconf 2.61. Invocation command line was
25067 CONFIG_FILES = $CONFIG_FILES
25068 CONFIG_HEADERS = $CONFIG_HEADERS
25069 CONFIG_LINKS = $CONFIG_LINKS
25070 CONFIG_COMMANDS = $CONFIG_COMMANDS
25073 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25078 cat >>$CONFIG_STATUS <<_ACEOF
25079 # Files that config.status was made for.
25080 config_files="$ac_config_files"
25081 config_headers="$ac_config_headers"
25085 cat >>$CONFIG_STATUS <<\_ACEOF
25087 \`$as_me' instantiates files from templates according to the
25088 current configuration.
25090 Usage: $0 [OPTIONS] [FILE]...
25092 -h, --help print this help, then exit
25093 -V, --version print version number and configuration settings, then exit
25094 -q, --quiet do not print progress messages
25095 -d, --debug don't remove temporary files
25096 --recheck update $as_me by reconfiguring in the same conditions
25097 --file=FILE[:TEMPLATE]
25098 instantiate the configuration file FILE
25099 --header=FILE[:TEMPLATE]
25100 instantiate the configuration header FILE
25102 Configuration files:
25105 Configuration headers:
25108 Report bugs to <bug-autoconf@gnu.org>."
25111 cat >>$CONFIG_STATUS <<_ACEOF
25113 python config.status 2.6
25114 configured by $0, generated by GNU Autoconf 2.61,
25115 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25117 Copyright (C) 2006 Free Software Foundation, Inc.
25118 This config.status script is free software; the Free Software Foundation
25119 gives unlimited permission to copy, distribute and modify it."
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 # If no file are specified by the user, then we need to provide default
25128 # value. By we need to know if files were specified by the user.
25134 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25135 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25146 # Handling of the options.
25147 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25149 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25150 echo "$ac_cs_version"; exit ;;
25151 --debug |
--debu |
--deb |
--de |
--d |
-d )
25153 --file |
--fil |
--fi |
--f )
25155 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25156 ac_need_defaults
=false
;;
25157 --header |
--heade |
--head |
--hea )
25159 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25160 ac_need_defaults
=false
;;
25162 # Conflict between --help and --header
25163 { echo "$as_me: error: ambiguous option: $1
25164 Try \`$0 --help' for more information." >&2
25165 { (exit 1); exit 1; }; };;
25166 --help |
--hel |
-h )
25167 echo "$ac_cs_usage"; exit ;;
25168 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25169 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25172 # This is an error.
25173 -*) { echo "$as_me: error: unrecognized option: $1
25174 Try \`$0 --help' for more information." >&2
25175 { (exit 1); exit 1; }; } ;;
25177 *) ac_config_targets
="$ac_config_targets $1"
25178 ac_need_defaults
=false
;;
25184 ac_configure_extra_args
=
25186 if $ac_cs_silent; then
25188 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25192 cat >>$CONFIG_STATUS <<_ACEOF
25193 if \$ac_cs_recheck; then
25194 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25195 CONFIG_SHELL=$SHELL
25196 export CONFIG_SHELL
25197 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25201 cat >>$CONFIG_STATUS <<\_ACEOF
25205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25206 ## Running $as_me. ##
25212 cat >>$CONFIG_STATUS <<_ACEOF
25215 cat >>$CONFIG_STATUS <<\_ACEOF
25217 # Handling of arguments.
25218 for ac_config_target
in $ac_config_targets
25220 case $ac_config_target in
25221 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25222 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25223 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25224 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25225 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25226 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25227 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25228 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25230 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25231 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25232 { (exit 1); exit 1; }; };;
25237 # If the user did not use the arguments to specify the items to instantiate,
25238 # then the envvar interface is used. Set only those that are not.
25239 # We use the long form for the default assignment because of an extremely
25240 # bizarre bug on SunOS 4.1.3.
25241 if $ac_need_defaults; then
25242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25246 # Have a temporary directory for convenience. Make it in the build tree
25247 # simply because there is no reason against having it here, and in addition,
25248 # creating and moving files from /tmp can sometimes cause problems.
25249 # Hook for its removal unless debugging.
25250 # Note that there is a small window in which the directory will not be cleaned:
25251 # after its creation but before its name has been assigned to `$tmp'.
25255 trap 'exit_status=$?
25256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25258 trap '{ (exit 1); exit 1; }' 1 2 13 15
25260 # Create a (secure) tmp directory for tmp files.
25263 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25264 test -n "$tmp" && test -d "$tmp"
25267 tmp
=.
/conf$$
-$RANDOM
25268 (umask 077 && mkdir
"$tmp")
25271 echo "$me: cannot create a temporary directory in ." >&2
25272 { (exit 1); exit 1; }
25276 # Set up the sed scripts for CONFIG_FILES section.
25279 # No need to generate the scripts if there are no CONFIG_FILES.
25280 # This happens for instance when ./config.status config.h
25281 if test -n "$CONFIG_FILES"; then
25288 for ac_last_try
in false false false false false
:; do
25289 cat >conf$
$subs.
sed <<_ACEOF
25290 SHELL!$SHELL$ac_delim
25291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25297 exec_prefix!$exec_prefix$ac_delim
25298 prefix!$prefix$ac_delim
25299 program_transform_name!$program_transform_name$ac_delim
25300 bindir!$bindir$ac_delim
25301 sbindir!$sbindir$ac_delim
25302 libexecdir!$libexecdir$ac_delim
25303 datarootdir!$datarootdir$ac_delim
25304 datadir!$datadir$ac_delim
25305 sysconfdir!$sysconfdir$ac_delim
25306 sharedstatedir!$sharedstatedir$ac_delim
25307 localstatedir!$localstatedir$ac_delim
25308 includedir!$includedir$ac_delim
25309 oldincludedir!$oldincludedir$ac_delim
25310 docdir!$docdir$ac_delim
25311 infodir!$infodir$ac_delim
25312 htmldir!$htmldir$ac_delim
25313 dvidir!$dvidir$ac_delim
25314 pdfdir!$pdfdir$ac_delim
25315 psdir!$psdir$ac_delim
25316 libdir!$libdir$ac_delim
25317 localedir!$localedir$ac_delim
25318 mandir!$mandir$ac_delim
25319 DEFS!$DEFS$ac_delim
25320 ECHO_C!$ECHO_C$ac_delim
25321 ECHO_N!$ECHO_N$ac_delim
25322 ECHO_T!$ECHO_T$ac_delim
25323 LIBS!$LIBS$ac_delim
25324 build_alias!$build_alias$ac_delim
25325 host_alias!$host_alias$ac_delim
25326 target_alias!$target_alias$ac_delim
25327 VERSION!$VERSION$ac_delim
25328 SOVERSION!$SOVERSION$ac_delim
25329 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25330 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25331 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25332 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25333 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25334 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25335 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25336 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25337 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25338 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25339 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25340 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25341 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25342 MACHDEP!$MACHDEP$ac_delim
25343 SGI_ABI!$SGI_ABI$ac_delim
25344 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25345 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25346 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25347 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25349 CFLAGS!$CFLAGS$ac_delim
25350 LDFLAGS!$LDFLAGS$ac_delim
25351 CPPFLAGS!$CPPFLAGS$ac_delim
25352 ac_ct_CC!$ac_ct_CC$ac_delim
25353 EXEEXT!$EXEEXT$ac_delim
25354 OBJEXT!$OBJEXT$ac_delim
25356 MAINCC!$MAINCC$ac_delim
25358 GREP!$GREP$ac_delim
25359 EGREP!$EGREP$ac_delim
25360 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25361 LIBRARY!$LIBRARY$ac_delim
25362 LDLIBRARY!$LDLIBRARY$ac_delim
25363 DLLLIBRARY!$DLLLIBRARY$ac_delim
25364 BLDLIBRARY!$BLDLIBRARY$ac_delim
25365 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25366 INSTSONAME!$INSTSONAME$ac_delim
25367 RUNSHARED!$RUNSHARED$ac_delim
25368 LINKCC!$LINKCC$ac_delim
25369 RANLIB!$RANLIB$ac_delim
25371 SVNVERSION!$SVNVERSION$ac_delim
25372 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25373 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25374 INSTALL_DATA!$INSTALL_DATA$ac_delim
25377 BASECFLAGS!$BASECFLAGS$ac_delim
25378 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25379 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25380 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25382 LDSHARED!$LDSHARED$ac_delim
25383 BLDSHARED!$BLDSHARED$ac_delim
25384 CCSHARED!$CCSHARED$ac_delim
25385 LINKFORSHARED!$LINKFORSHARED$ac_delim
25386 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25391 elif $ac_last_try; then
25392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25394 { (exit 1); exit 1; }; }
25396 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25400 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25401 if test -n "$ac_eof"; then
25402 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25403 ac_eof
=`expr $ac_eof + 1`
25406 cat >>$CONFIG_STATUS <<_ACEOF
25407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25412 s/^/s,@/; s/!/@,|#_!!_#|/
25415 s/'"$ac_delim"'$/,g/; t
25417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25418 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25419 rm -f conf$
$subs.
sed
25420 cat >>$CONFIG_STATUS <<_ACEOF
25426 for ac_last_try
in false false false false false
:; do
25427 cat >conf$
$subs.
sed <<_ACEOF
25428 SHLIBS!$SHLIBS$ac_delim
25429 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25430 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25431 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25432 LDLAST!$LDLAST$ac_delim
25433 THREADOBJ!$THREADOBJ$ac_delim
25434 DLINCLDIR!$DLINCLDIR$ac_delim
25435 DYNLOADFILE!$DYNLOADFILE$ac_delim
25436 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25437 TRUE!$TRUE$ac_delim
25438 LIBOBJS!$LIBOBJS$ac_delim
25439 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25440 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25441 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25442 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25443 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25444 LIBM!$LIBM$ac_delim
25445 LIBC!$LIBC$ac_delim
25446 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25447 THREADHEADERS!$THREADHEADERS$ac_delim
25448 SRCDIRS!$SRCDIRS$ac_delim
25449 LTLIBOBJS!$LTLIBOBJS$ac_delim
25452 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25454 elif $ac_last_try; then
25455 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25456 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25457 { (exit 1); exit 1; }; }
25459 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25463 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25464 if test -n "$ac_eof"; then
25465 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25466 ac_eof
=`expr $ac_eof + 1`
25469 cat >>$CONFIG_STATUS <<_ACEOF
25470 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25474 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25475 s/^/s,@/; s/!/@,|#_!!_#|/
25478 s/'"$ac_delim"'$/,g/; t
25480 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25481 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25482 rm -f conf$
$subs.
sed
25483 cat >>$CONFIG_STATUS <<_ACEOF
25490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25492 # trailing colons and then remove the whole line if VPATH becomes empty
25493 # (actually we leave an empty line to preserve line numbers).
25494 if test "x$srcdir" = x.
; then
25495 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25496 s/:*\$(srcdir):*/:/
25497 s/:*\${srcdir}:*/:/
25499 s/^\([^=]*=[ ]*\):*/\1/
25505 cat >>$CONFIG_STATUS <<\_ACEOF
25506 fi # test -n "$CONFIG_FILES"
25509 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
25512 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25514 case $ac_mode$ac_tag in
25516 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25517 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25518 { (exit 1); exit 1; }; };;
25519 :[FH
]-) ac_tag
=-:-;;
25520 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25537 -) ac_f
="$tmp/stdin";;
25538 *) # Look for the file first in the build tree, then in the source tree
25539 # (if the path is not absolute). The absolute path cannot be DOS-style,
25540 # because $ac_f cannot contain `:'.
25544 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25546 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25547 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25548 { (exit 1); exit 1; }; };;
25550 ac_file_inputs
="$ac_file_inputs $ac_f"
25553 # Let's still pretend it is `configure' which instantiates (i.e., don't
25554 # use $as_me), people would be surprised to read:
25555 # /* config.h. Generated by config.status. */
25556 configure_input
="Generated from "`IFS=:
25557 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25558 if test x
"$ac_file" != x-
; then
25559 configure_input
="$ac_file. $configure_input"
25560 { echo "$as_me:$LINENO: creating $ac_file" >&5
25561 echo "$as_me: creating $ac_file" >&6;}
25565 *:-:* |
*:-) cat >"$tmp/stdin";;
25570 ac_dir
=`$as_dirname -- "$ac_file" ||
25571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25572 X"$ac_file" : 'X\(//\)[^/]' \| \
25573 X"$ac_file" : 'X\(//\)$' \| \
25574 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25580 /^X\(\/\/\)[^/].*/{
25595 -*) as_dir
=.
/$as_dir;;
25597 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25601 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25602 *) as_qdir
=$as_dir;;
25604 as_dirs
="'$as_qdir' $as_dirs"
25605 as_dir
=`$as_dirname -- "$as_dir" ||
25606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25607 X"$as_dir" : 'X\(//\)[^/]' \| \
25608 X"$as_dir" : 'X\(//\)$' \| \
25609 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25615 /^X\(\/\/\)[^/].*/{
25628 test -d "$as_dir" && break
25630 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25631 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25632 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25633 { (exit 1); exit 1; }; }; }
25637 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25639 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25640 # A ".." for each directory in $ac_dir_suffix.
25641 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25642 case $ac_top_builddir_sub in
25643 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25644 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25647 ac_abs_top_builddir
=$ac_pwd
25648 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25649 # for backward compatibility:
25650 ac_top_builddir
=$ac_top_build_prefix
25653 .
) # We are building in place.
25655 ac_top_srcdir
=$ac_top_builddir_sub
25656 ac_abs_top_srcdir
=$ac_pwd ;;
25657 [\\/]* | ?
:[\\/]* ) # Absolute name.
25658 ac_srcdir
=$srcdir$ac_dir_suffix;
25659 ac_top_srcdir
=$srcdir
25660 ac_abs_top_srcdir
=$srcdir ;;
25661 *) # Relative name.
25662 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25663 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25664 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25666 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25676 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25677 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25681 cat >>$CONFIG_STATUS <<\_ACEOF
25682 # If the template does not know about datarootdir, expand it.
25683 # FIXME: This hack should be removed a few years after 2.60.
25684 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25686 case `sed -n '/datarootdir/ {
25695 ' $ac_file_inputs` in
25696 *datarootdir
*) ac_datarootdir_seen
=yes;;
25697 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25698 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25699 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25701 cat >>$CONFIG_STATUS <<_ACEOF
25702 ac_datarootdir_hack='
25703 s&@datadir@&$datadir&g
25704 s&@docdir@&$docdir&g
25705 s&@infodir@&$infodir&g
25706 s&@localedir@&$localedir&g
25707 s&@mandir@&$mandir&g
25708 s&\\\${datarootdir}&$datarootdir&g' ;;
25712 # Neutralize VPATH when `$srcdir' = `.'.
25713 # Shell code in configure.ac might set extrasub.
25714 # FIXME: do we really want to maintain this feature?
25715 cat >>$CONFIG_STATUS <<_ACEOF
25719 cat >>$CONFIG_STATUS <<\_ACEOF
25721 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25722 s
&@configure_input@
&$configure_input&;t t
25723 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25724 s
&@srcdir@
&$ac_srcdir&;t t
25725 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25726 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25727 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25728 s
&@builddir@
&$ac_builddir&;t t
25729 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25730 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25731 s
&@INSTALL@
&$ac_INSTALL&;t t
25732 $ac_datarootdir_hack
25733 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25735 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25736 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25738 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25739 which seems to be undefined. Please make sure it is defined." >&5
25740 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25741 which seems to be undefined. Please make sure it is defined." >&2;}
25745 -) cat "$tmp/out"; rm -f "$tmp/out";;
25746 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25755 # Transform confdefs.h into a sed script `conftest.defines', that
25756 # substitutes the proper values into config.h.in to produce config.h.
25757 rm -f conftest.defines conftest.
tail
25758 # First, append a space to every undef/define line, to ease matching.
25759 echo 's/$/ /' >conftest.defines
25760 # Then, protect against being on the right side of a sed subst, or in
25761 # an unquoted here document, in config.status. If some macros were
25762 # called several times there might be several #defines for the same
25763 # symbol, which is useless. But do not sort them, since the last
25764 # AC_DEFINE must be honored.
25765 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25766 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25767 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25768 # PARAMS is the parameter list in the macro definition--in most cases, it's
25769 # just an empty string.
25770 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25771 ac_dB
='\\)[ (].*,\\1define\\2'
25779 s/^[ ]*#[ ]*define[ ][ ]*//
25784 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25785 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25786 ' >>conftest.defines
25788 # Remove the space that was appended to ease matching.
25789 # Then replace #undef with comments. This is necessary, for
25790 # example, in the case of _POSIX_SOURCE, which is predefined and required
25791 # on some systems where configure will not decide to define it.
25792 # (The regexp can be short, since the line contains either #define or #undef.)
25794 s,^[ #]*u.*,/* & */,' >>conftest.defines
25796 # Break up conftest.defines:
25797 ac_max_sed_lines
=50
25799 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25800 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25801 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25803 ac_in
='$ac_file_inputs'
25804 ac_out
='"$tmp/out1"'
25805 ac_nxt
='"$tmp/out2"'
25809 # Write a here document:
25810 cat >>$CONFIG_STATUS <<_ACEOF
25811 # First, check the format of the line:
25812 cat >"\$tmp/defines.sed" <<\\CEOF
25813 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25814 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25818 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25820 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25821 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25822 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25823 grep . conftest.
tail >/dev
/null ||
break
25824 rm -f conftest.defines
25825 mv conftest.
tail conftest.defines
25827 rm -f conftest.defines conftest.
tail
25829 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25830 cat >>$CONFIG_STATUS <<\_ACEOF
25831 if test x
"$ac_file" != x-
; then
25832 echo "/* $configure_input */" >"$tmp/config.h"
25833 cat "$ac_result" >>"$tmp/config.h"
25834 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25835 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25836 echo "$as_me: $ac_file is unchanged" >&6;}
25839 mv "$tmp/config.h" $ac_file
25842 echo "/* $configure_input */"
25854 { (exit 0); exit 0; }
25856 chmod +x
$CONFIG_STATUS
25857 ac_clean_files
=$ac_clean_files_save
25860 # configure is writing to config.log, and then calls config.status.
25861 # config.status does its own redirection, appending to config.log.
25862 # Unfortunately, on DOS this fails, as config.log is still kept open
25863 # by configure, so config.status won't be able to write to it; its
25864 # output is simply discarded. So we exec the FD to /dev/null,
25865 # effectively closing config.log, so it can be properly (re)opened and
25866 # appended to by config.status. When coming back to configure, we
25867 # need to make the FD available again.
25868 if test "$no_create" != yes; then
25870 ac_config_status_args
=
25871 test "$silent" = yes &&
25872 ac_config_status_args
="$ac_config_status_args --quiet"
25874 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25876 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25877 # would make configure fail if this is the last instruction.
25878 $ac_cs_success ||
{ (exit 1); exit 1; }
25882 echo "creating Modules/Setup"
25883 if test ! -f Modules
/Setup
25885 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25888 echo "creating Modules/Setup.local"
25889 if test ! -f Modules
/Setup.
local
25891 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25894 echo "creating Makefile"
25895 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25896 -s Modules Modules
/Setup.config \
25897 Modules
/Setup.
local Modules
/Setup
25899 case $ac_sys_system in
25901 { echo "$as_me:$LINENO: WARNING:
25903 Support for BeOS is deprecated as of Python 2.6.
25904 See PEP 11 for the gory details.
25906 echo "$as_me: WARNING:
25908 Support for BeOS is deprecated as of Python 2.6.
25909 See PEP 11 for the gory details.
25915 mv config.c Modules