2 # From configure.in Revision: 42437 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.5'
274 PACKAGE_STRING
='python 2.5'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.5:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-framework[=INSTALLDIR
]
849 Build
(MacOSX|Darwin
) framework
850 --enable-shared disable
/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
853 --enable-ipv6 Enable ipv6
(with ipv4
) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs
[24]]
856 Enable Unicode
strings (default is
yes)
859 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
860 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
861 --without-gcc never use gcc
862 --with-cxx=<compiler
> enable C
++ support
863 --with-suffix=.exe
set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable
/enable signal module
867 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
868 --with(out
)-threads[=DIRECTORY
]
869 disable
/enable thread support
870 --with(out
)-thread[=DIRECTORY
]
871 deprecated
; use
--with(out
)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out
)-doc-strings disable
/enable documentation
strings
874 --with(out
)-tsc enable
/disable timestamp counter profile
875 --with(out
)-pymalloc disable
/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo
&& pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1016 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1017 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1018 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1019 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1022 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1024 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1026 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1027 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1028 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1030 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close
' the trap.
1110 trap 'exit_status
=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core
*.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's
/^
/|
/' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1278 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1303 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables
, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1352 mv confdefs.h.new confdefs.h
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h
<<\_ACEOF
1364 #define _GNU_SOURCE 1
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1372 cat >>confdefs.h
<<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define __BSD_VISIBLE 1
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h
<<\_ACEOF
1390 #define _BSD_TYPES 1
1394 define_xopen_source
=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS
="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval
="$enable_framework"
1406 enableval
=/Library
/Frameworks
1411 PYTHONFRAMEWORKDIR
=no-framework
1412 PYTHONFRAMEWORKPREFIX
=
1413 PYTHONFRAMEWORKINSTALLDIR
=
1417 PYTHONFRAMEWORK
=Python
1418 PYTHONFRAMEWORKDIR
=Python.framework
1419 PYTHONFRAMEWORKPREFIX
=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1427 PYTHONFRAMEWORKDIR
=no-framework
1428 PYTHONFRAMEWORKPREFIX
=
1429 PYTHONFRAMEWORKINSTALLDIR
=
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1448 ac_sys_system
=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release
=`uname -v`
1453 ac_sys_release
=`uname -r`
1455 ac_md_system
=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release
=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP
="$ac_md_system$ac_md_release"
1462 cygwin
*) MACHDEP
="cygwin";;
1463 darwin
*) MACHDEP
="darwin";;
1464 atheos
*) MACHDEP
="atheos";;
1465 irix646
) MACHDEP
="irix6";;
1466 '') MACHDEP
="unknown";;
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD
/2.
* | OpenBSD
/3.
[012345678])
1484 define_xopen_source
=no
;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1488 define_xopen_source
=no
;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1493 define_xopen_source
=no
;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1497 define_xopen_source
=no
;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD
/4.8* | Darwin
/6* )
1503 define_xopen_source
=no
;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1508 define_xopen_source
=no
;;
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source
=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1517 define_xopen_source
=no
1522 if test $define_xopen_source = yes
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1528 case $ac_sys_system/$ac_sys_release in
1529 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1531 cat >>confdefs.h
<<\_ACEOF
1532 #define _XOPEN_SOURCE 500
1538 cat >>confdefs.h
<<\_ACEOF
1539 #define _XOPEN_SOURCE 600
1545 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1546 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1547 # several APIs are not declared. Since this is also needed in some
1548 # cases for HP-UX, we define it globally.
1549 # except for Solaris 10, where it must not be defined,
1550 # as it implies XPG4.2
1551 case $ac_sys_system/$ac_sys_release in
1556 cat >>confdefs.h
<<\_ACEOF
1557 #define _XOPEN_SOURCE_EXTENDED 1
1564 cat >>confdefs.h
<<\_ACEOF
1565 #define _POSIX_C_SOURCE 200112L
1572 # SGI compilers allow the specification of the both the ABI and the
1573 # ISA on the command line. Depending on the values of these switches,
1574 # different and often incompatable code will be generated.
1576 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1577 # thus supply support for various ABI/ISA combinations. The MACHDEP
1578 # variable is also adjusted.
1581 if test ! -z "$SGI_ABI"
1584 LDFLAGS
="$SGI_ABI $LDFLAGS"
1585 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1587 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1588 echo "${ECHO_T}$MACHDEP" >&6
1590 # And add extra plat-mac for darwin
1593 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1594 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1595 if test -z "$EXTRAPLATDIR"
1599 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1600 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1608 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1609 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1611 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1612 # it may influence the way we can build extensions, so distutils
1615 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1617 # checks for alternative programs
1619 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1620 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1621 # just to get things to compile and link. Users are free to override OPT
1622 # when running configure or make. The build should not break if they do.
1623 # BASECFLAGS should generally not be messed with, however.
1625 # XXX shouldn't some/most/all of this code be merged with the stuff later
1626 # on that fiddles with OPT and BASECFLAGS?
1627 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1628 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1630 # Check whether --with-gcc or --without-gcc was given.
1631 if test "${with_gcc+set}" = set; then
1640 without_gcc
=$withval;;
1644 case $ac_sys_system in
1648 case $BE_HOST_CPU in
1652 BASECFLAGS
="$BASECFLAGS -export pragma"
1654 LDFLAGS
="$LDFLAGS -nodup"
1662 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1663 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1664 { (exit 1); exit 1; }; }
1667 AR
="\$(srcdir)/Modules/ar_beos"
1676 echo "$as_me:$LINENO: result: $without_gcc" >&5
1677 echo "${ECHO_T}$without_gcc" >&6
1682 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1683 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1685 # Check whether --with-cxx or --without-cxx was given.
1686 if test "${with_cxx+set}" = set; then
1703 echo "$as_me:$LINENO: result: $with_cxx" >&5
1704 echo "${ECHO_T}$with_cxx" >&6
1706 if test "$with_cxx" = "yes"
1708 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1709 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1710 { (exit 1); exit 1; }; }
1716 if test "$check_cxx" = "yes"
1718 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy
$ac_prog; ac_word
=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir
=.
1735 for ac_exec_ext
in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX
="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$CXX" && break
1757 test -n "$CXX" || CXX
="notfound"
1759 if test "$CXX" = "notfound"
1764 ac_cpp
='$CXXCPP $CPPFLAGS'
1765 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1768 cat >conftest.
$ac_ext <<_ACEOF
1771 cat confdefs.h
>>conftest.
$ac_ext
1772 cat >>conftest.
$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1783 ac_clean_files_save
=$ac_clean_files
1784 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1788 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1789 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1790 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 # b.out is created by i960 compilers.
1804 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1806 test -f "$ac_file" ||
continue
1808 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1811 # This is the source file.
1814 # We found the default executable, but exeext='' is most
1818 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.
$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext
=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1846 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try
='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1858 if test "$cross_compiling" = maybe
; then
1861 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1875 ac_clean_files
=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 for ac_file
in conftest.exe conftest conftest.
*; do
1895 test -f "$ac_file" ||
continue
1897 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1898 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest
$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.
$ac_ext
1917 EXEEXT
=$ac_cv_exeext
1921 ac_cpp
='$CPP $CPPFLAGS'
1922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1931 # If the user switches compilers, we can't believe the cache
1932 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1934 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1935 (it is also a good idea to do 'make clean' before compiling)" >&5
1936 echo "$as_me: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1938 { (exit 1); exit 1; }; }
1942 ac_cpp
='$CPP $CPPFLAGS'
1943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1946 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1948 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC
="$CC" # Let the user override the test.
1957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1961 test -z "$as_dir" && as_dir
=.
1962 for ac_exec_ext
in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$ac_cv_prog_CC"; then
1985 # Extract the first word of "gcc", so it can be a program name with args.
1986 set dummy gcc
; ac_word
=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 for ac_exec_ext
in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC
="gcc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2028 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC
="$CC" # Let the user override the test.
2037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir
=.
2042 for ac_exec_ext
in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$ac_cv_prog_CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc
; ac_word
=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir
=.
2080 for ac_exec_ext
in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC
="cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc
; ac_word
=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC
="$CC" # Let the user override the test.
2118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir
=.
2123 for ac_exec_ext
in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126 ac_prog_rejected
=yes
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 if test $ac_prog_rejected = yes; then
2137 # We found a bogon in the path, so make sure we never use it.
2138 set dummy
$ac_cv_prog_CC
2140 if test $# != 0; then
2141 # We chose a different compiler from the bogus one.
2142 # However, it has the same basename, so the bogon will be chosen
2143 # first if we set CC to just the basename; use the full file name.
2145 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2151 if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153 echo "${ECHO_T}$CC" >&6
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC
="$CC" # Let the user override the test.
2174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir
=.
2179 for ac_exec_ext
in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 if test -n "$CC"; then
2192 echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$CC" && break
2202 if test -z "$CC"; then
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy
$ac_prog; ac_word
=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir
=.
2221 for ac_exec_ext
in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC
="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$ac_ct_CC" && break
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO:" \
2258 "checking for C compiler version" >&5
2259 ac_compiler
=`set X $ac_compile; echo $2`
2260 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2261 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }
2265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2266 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2271 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2276 cat >conftest.
$ac_ext <<_ACEOF
2279 cat confdefs.h
>>conftest.
$ac_ext
2280 cat >>conftest.
$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2291 ac_clean_files_save
=$ac_clean_files
2292 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2311 # b.out is created by i960 compilers.
2312 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2314 test -f "$ac_file" ||
continue
2316 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2319 # This is the source file.
2322 # We found the default executable, but exeext='' is most
2326 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.
$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2347 ac_exeext
=$ac_cv_exeext
2348 echo "$as_me:$LINENO: result: $ac_file" >&5
2349 echo "${ECHO_T}$ac_file" >&6
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2356 # If not cross compiling, check that we can run a simple program.
2357 if test "$cross_compiling" != yes; then
2358 if { ac_try
='./$ac_file'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 if test "$cross_compiling" = maybe
; then
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2383 ac_clean_files
=$ac_clean_files_save
2384 # Check the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2388 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6
2391 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2400 # work properly (i.e., refer to `conftest.exe'), while it won't with
2402 for ac_file
in conftest.exe conftest conftest.
*; do
2403 test -f "$ac_file" ||
continue
2405 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2406 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2420 rm -f conftest
$ac_cv_exeext
2421 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422 echo "${ECHO_T}$ac_cv_exeext" >&6
2424 rm -f conftest.
$ac_ext
2425 EXEEXT
=$ac_cv_exeext
2427 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2429 if test "${ac_cv_objext+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cat >conftest.
$ac_ext <<_ACEOF
2435 cat confdefs.h
>>conftest.
$ac_ext
2436 cat >>conftest.
$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2447 rm -f conftest.o conftest.obj
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2455 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2456 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.
$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2474 echo "${ECHO_T}$ac_cv_objext" >&6
2475 OBJEXT
=$ac_cv_objext
2477 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 cat >conftest.
$ac_ext <<_ACEOF
2485 cat confdefs.h
>>conftest.
$ac_ext
2486 cat >>conftest.
$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2500 rm -f conftest.
$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1
>conftest.err
2506 cat conftest.err
>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try
='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try
='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.
$ac_ext >&5
2529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2530 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2533 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2534 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2535 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2536 ac_test_CFLAGS
=${CFLAGS+set}
2537 ac_save_CFLAGS
=$CFLAGS
2539 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_g+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.
$ac_ext <<_ACEOF
2547 cat confdefs.h
>>conftest.
$ac_ext
2548 cat >>conftest.
$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.
$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2563 grep -v '^ *+' conftest.er1
>conftest.err
2565 cat conftest.err
>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try
='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try
='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.
$ac_ext >&5
2588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS
=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2601 if test "$GCC" = yes; then
2607 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 ac_cv_prog_cc_stdc
=no
2614 cat >conftest.
$ac_ext <<_ACEOF
2617 cat confdefs.h
>>conftest.
$ac_ext
2618 cat >>conftest.
$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2638 s = g (p, va_arg (v,int));
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not '\xHH' hex character constants.
2645 These don't provoke an error unfortunately, instead are silently treated
2646 as 'x'. The following induces an error, until -std1 is added to get
2647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648 array size at least. It's necessary to write '\x00'==0 to get something
2649 that's true only with -std1. */
2650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2666 # Don't try gcc -ansi; that turns off useful extensions and
2667 # breaks some systems' header files.
2668 # AIX -qlanglvl=ansi
2669 # Ultrix and OSF/1 -std1
2670 # HP-UX 10.20 and later -Ae
2671 # HP-UX older versions -Aa -D_HPUX_SOURCE
2672 # SVR4 -Xc -D__EXTENSIONS__
2673 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675 CC
="$ac_save_CC $ac_arg"
2676 rm -f conftest.
$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2680 grep -v '^ *+' conftest.er1
>conftest.err
2682 cat conftest.err
>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try
='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try
='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_stdc
=$ac_arg
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.
$ac_ext >&5
2705 rm -f conftest.err conftest.
$ac_objext
2707 rm -f conftest.
$ac_ext conftest.
$ac_objext
2712 case "x$ac_cv_prog_cc_stdc" in
2714 echo "$as_me:$LINENO: result: none needed" >&5
2715 echo "${ECHO_T}none needed" >&6 ;;
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2718 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2719 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2722 # Some people use a C++ compiler to compile C. Since we use `exit',
2723 # in C++ we need to declare it. In case someone uses the same compiler
2724 # for both compiling C and C++ we need to have the C++ compiler decide
2725 # the declaration of exit, since it's the most demanding environment.
2726 cat >conftest.
$ac_ext <<_ACEOF
2731 rm -f conftest.
$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1
>conftest.err
2737 cat conftest.err
>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try
='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try
='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration
in \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2761 cat >conftest.
$ac_ext <<_ACEOF
2764 cat confdefs.h
>>conftest.
$ac_ext
2765 cat >>conftest.
$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2777 rm -f conftest.
$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1
>conftest.err
2783 cat conftest.err
>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try
='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try
='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.
$ac_ext >&5
2806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2807 cat >conftest.
$ac_ext <<_ACEOF
2810 cat confdefs.h
>>conftest.
$ac_ext
2811 cat >>conftest.
$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 rm -f conftest.
$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2826 grep -v '^ *+' conftest.er1
>conftest.err
2828 cat conftest.err
>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try
='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try
='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.
$ac_ext >&5
2850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2853 if test -n "$ac_declaration"; then
2854 echo '#ifdef __cplusplus' >>confdefs.h
2855 echo $ac_declaration >>confdefs.h
2856 echo '#endif' >>confdefs.h
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2866 ac_cpp
='$CPP $CPPFLAGS'
2867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2872 # checks for UNIX variants that set C preprocessor variables
2875 ac_cpp
='$CPP $CPPFLAGS'
2876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 # Double quotes because CPP needs to be expanded
2890 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 for ac_c_preproc_warn_flag
in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.
$ac_ext <<_ACEOF
2904 cat confdefs.h
>>conftest.
$ac_ext
2905 cat >>conftest.
$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 # include <limits.h>
2910 # include <assert.h>
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1
>conftest.err
2919 cat conftest.err
>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev
/null
; then
2922 if test -s conftest.err
; then
2923 ac_cpp_err
=$ac_c_preproc_warn_flag
2924 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.
$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.
$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.
$ac_ext <<_ACEOF
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1
>conftest.err
2957 cat conftest.err
>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev
/null
; then
2960 if test -s conftest.err
; then
2961 ac_cpp_err
=$ac_c_preproc_warn_flag
2962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.
$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.
$ac_ext
2985 if $ac_preproc_ok; then
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
3000 for ac_c_preproc_warn_flag
in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3015 # include <limits.h>
3017 # include <assert.h>
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3024 grep -v '^ *+' conftest.er1
>conftest.err
3026 cat conftest.err
>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev
/null
; then
3029 if test -s conftest.err
; then
3030 ac_cpp_err
=$ac_c_preproc_warn_flag
3031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3038 if test -z "$ac_cpp_err"; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.
$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.
$ac_ext <<_ACEOF
3054 cat confdefs.h
>>conftest.
$ac_ext
3055 cat >>conftest.
$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1
>conftest.err
3064 cat conftest.err
>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev
/null
; then
3067 if test -s conftest.err
; then
3068 ac_cpp_err
=$ac_c_preproc_warn_flag
3069 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3083 # Passes both tests.
3087 rm -f conftest.err conftest.
$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.
$ac_ext
3092 if $ac_preproc_ok; then
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 ac_cpp
='$CPP $CPPFLAGS'
3104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3115 then ac_cv_prog_egrep
='grep -E'
3116 else ac_cv_prog_egrep
='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP
=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for AIX" >&5
3126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "yes" >/dev
/null
2>&1; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 cat >>confdefs.h
<<\_ACEOF
3143 #define _ALL_SOURCE 1
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3154 # Check for unsupported systems
3155 case $ac_sys_system/$ac_sys_release in
3157 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3158 echo See README
for details.
3163 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3164 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3166 # Check whether --with-suffix or --without-suffix was given.
3167 if test "${with_suffix+set}" = set; then
3168 withval
="$with_suffix"
3173 *) EXEEXT
=$withval;;
3176 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3177 echo "${ECHO_T}$EXEEXT" >&6
3179 # Test whether we're running on a non-case-sensitive system, in which
3180 # case we give a warning if no ext is given
3182 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3183 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3184 if test ! -d CaseSensitiveTestDir
; then
3185 mkdir CaseSensitiveTestDir
3188 if test -d casesensitivetestdir
3190 echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3198 rmdir CaseSensitiveTestDir
3203 gcc
) CC
="$CC -D_HAVE_BSDI";;
3207 case $ac_sys_system in
3210 cc|
*/cc
) CC
="$CC -Ae";;
3214 cc
) CC
="$CC -Wl,-Bexport";;
3217 # Some functions have a prototype only with that define, e.g. confstr
3219 cat >>confdefs.h
<<\_ACEOF
3220 #define __EXTENSIONS__ 1
3228 echo "$as_me:$LINENO: checking LIBRARY" >&5
3229 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3230 if test -z "$LIBRARY"
3232 LIBRARY
='libpython$(VERSION).a'
3234 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3235 echo "${ECHO_T}$LIBRARY" >&6
3237 # LDLIBRARY is the name of the library to link against (as opposed to the
3238 # name of the library into which to insert object files). BLDLIBRARY is also
3239 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3240 # is blank as the main program is not linked directly against LDLIBRARY.
3241 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3242 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3243 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3244 # DLLLIBRARY is the shared (i.e., DLL) library.
3246 # RUNSHARED is used to run shared python without installed libraries
3248 # INSTSONAME is the name of the shared library that will be use to install
3249 # on the system - some systems like version suffix, others don't
3256 LDLIBRARY
="$LIBRARY"
3257 BLDLIBRARY
='$(LDLIBRARY)'
3258 INSTSONAME
='$(LDLIBRARY)'
3263 # LINKCC is the command that links the python executable -- default is $(CC).
3264 # If CXX is set, and if it is needed to link a main function that was
3265 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3266 # python might then depend on the C++ runtime
3267 # This is altered for AIX in order to build the export list before
3270 echo "$as_me:$LINENO: checking LINKCC" >&5
3271 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3272 if test -z "$LINKCC"
3274 if test -z "$CXX"; then
3275 LINKCC
="\$(PURIFY) \$(CC)"
3277 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3278 $CXX -c conftest_a.cc
# 2>&5
3279 echo 'void foo(){}' > conftest_b.
$ac_ext
3280 $CC -c conftest_b.
$ac_ext # 2>&5
3281 if $CC -o conftest
$ac_exeext conftest_a.
$ac_objext conftest_b.
$ac_objext 2>&5 \
3282 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3284 LINKCC
="\$(PURIFY) \$(CC)"
3286 LINKCC
="\$(PURIFY) \$(CXX)"
3290 case $ac_sys_system in
3293 if test $ac_sys_release -ge 5 -o \
3294 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3297 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3299 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3302 echo "$as_me:$LINENO: result: $LINKCC" >&5
3303 echo "${ECHO_T}$LINKCC" >&6
3305 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3306 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3307 # Check whether --enable-shared or --disable-shared was given.
3308 if test "${enable_shared+set}" = set; then
3309 enableval
="$enable_shared"
3313 if test -z "$enable_shared"
3315 case $ac_sys_system in
3317 enable_shared
="yes";;
3319 enable_shared
="no";;
3322 echo "$as_me:$LINENO: result: $enable_shared" >&5
3323 echo "${ECHO_T}$enable_shared" >&6
3325 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3326 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3327 # Check whether --enable-profiling or --disable-profiling was given.
3328 if test "${enable_profiling+set}" = set; then
3329 enableval
="$enable_profiling"
3332 if test "$cross_compiling" = yes; then
3333 ac_enable_profiling
="no"
3335 cat >conftest.
$ac_ext <<_ACEOF
3338 cat confdefs.h
>>conftest.
$ac_ext
3339 cat >>conftest.
$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 int main() { return 0; }
3343 rm -f conftest
$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_enable_profiling
="yes"
3356 echo "$as_me: program exited with status $ac_status" >&5
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.
$ac_ext >&5
3361 ac_enable_profiling
="no"
3363 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3368 echo "${ECHO_T}$ac_enable_profiling" >&6
3370 case "$ac_enable_profiling" in
3372 BASECFLAGS
="-pg $BASECFLAGS"
3373 LDFLAGS
="-pg $LDFLAGS"
3377 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3378 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3380 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3381 # library that we build, but we do not want to link against it (we
3382 # will find it with a -framework option). For this reason there is an
3383 # extra variable BLDLIBRARY against which Python and the extension
3384 # modules are linked, BLDLIBRARY. This is normally the same as
3385 # LDLIBRARY, but empty for MacOSX framework builds.
3386 if test "$enable_framework"
3388 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3389 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3392 BLDLIBRARY
='$(LDLIBRARY)'
3395 # Other platforms follow
3396 if test $enable_shared = "yes"; then
3398 cat >>confdefs.h
<<\_ACEOF
3399 #define Py_ENABLE_SHARED 1
3402 case $ac_sys_system in
3404 LDLIBRARY
='libpython$(VERSION).so'
3407 LDLIBRARY
='libpython$(VERSION).dll.a'
3408 DLLLIBRARY
='libpython$(VERSION).dll'
3411 LDLIBRARY
='libpython$(VERSION).so'
3412 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3413 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3414 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3416 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3417 LDLIBRARY
='libpython$(VERSION).so'
3418 BLDLIBRARY
='-L. -lpython$(VERSION)'
3419 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3420 case $ac_sys_system in
3422 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3425 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3428 LDLIBRARY
='libpython$(VERSION).sl'
3429 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3430 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3433 LDLIBRARY
='libpython$(VERSION).so'
3434 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3435 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3438 LDLIBRARY
='libpython$(VERSION).so'
3439 BLDLIBRARY
='-L. -lpython$(VERSION)'
3440 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3443 else # shared is disabled
3444 case $ac_sys_system in
3446 BLDLIBRARY
='$(LIBRARY)'
3447 LDLIBRARY
='libpython$(VERSION).dll.a'
3452 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3453 echo "${ECHO_T}$LDLIBRARY" >&6
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3457 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_prog_RANLIB+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 if test -n "$RANLIB"; then
3464 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_exec_ext
in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 RANLIB
=$ac_cv_prog_RANLIB
3483 if test -n "$RANLIB"; then
3484 echo "$as_me:$LINENO: result: $RANLIB" >&5
3485 echo "${ECHO_T}$RANLIB" >&6
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3492 if test -z "$ac_cv_prog_RANLIB"; then
3493 ac_ct_RANLIB
=$RANLIB
3494 # Extract the first word of "ranlib", so it can be a program name with args.
3495 set dummy ranlib
; ac_word
=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if test -n "$ac_ct_RANLIB"; then
3502 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3521 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3522 if test -n "$ac_ct_RANLIB"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 RANLIB
=$ac_ct_RANLIB
3532 RANLIB
="$ac_cv_prog_RANLIB"
3536 for ac_prog
in ar aal
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy
$ac_prog; ac_word
=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -n "$AR"; then
3546 ac_cv_prog_AR
="$AR" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir
=.
3553 for ac_exec_ext
in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_AR
="$ac_prog"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$AR"; then
3566 echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$AR" && break
3575 test -n "$AR" || AR
="ar"
3579 # Extract the first word of "svnversion", so it can be a program name with args.
3580 set dummy svnversion
; ac_word
=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test -n "$SVNVERSION"; then
3587 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir
=.
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_SVNVERSION
="found"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 SVNVERSION
=$ac_cv_prog_SVNVERSION
3606 if test -n "$SVNVERSION"; then
3607 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3608 echo "${ECHO_T}$SVNVERSION" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 if test $SVNVERSION = found
3616 SVNVERSION
="svnversion \$(srcdir)"
3618 SVNVERSION
="echo exported"
3623 # install -d does not work on BSDI or HP-UX
3624 if test -z "$INSTALL"
3626 INSTALL
="${srcdir}/install-sh -c"
3630 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3631 if test -f $ac_dir/install-sh
; then
3633 ac_install_sh
="$ac_aux_dir/install-sh -c"
3635 elif test -f $ac_dir/install.sh
; then
3637 ac_install_sh
="$ac_aux_dir/install.sh -c"
3639 elif test -f $ac_dir/shtool
; then
3641 ac_install_sh
="$ac_aux_dir/shtool install -c"
3645 if test -z "$ac_aux_dir"; then
3646 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3647 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3648 { (exit 1); exit 1; }; }
3650 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3651 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3652 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3654 # Find a good install program. We prefer a C program (faster),
3655 # so one script is as good as another. But avoid the broken or
3656 # incompatible versions:
3657 # SysV /etc/install, /usr/sbin/install
3658 # SunOS /usr/etc/install
3659 # IRIX /sbin/install
3661 # AmigaOS /C/install, which installs bootblocks on floppy discs
3662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3665 # OS/2's system install, which has a completely different semantic
3666 # ./install, which can be erroneously created by make from ./install.sh.
3667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3669 if test -z "$INSTALL"; then
3670 if test "${ac_cv_path_install+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir
=.
3678 # Account for people who put trailing slashes in PATH elements.
3680 .
/ | .
// |
/cC
/* | \
3681 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3682 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3685 # OSF1 and SCO ODT 3.0 have their own names for install.
3686 # Don't use installbsd from OSF since it installs stuff as root
3688 for ac_prog
in ginstall scoinst
install; do
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3691 if test $ac_prog = install &&
3692 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3693 # AIX install. It has an incompatible calling convention.
3695 elif test $ac_prog = install &&
3696 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3697 # program-specific install script used by HP pwplus--don't use.
3700 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL
=$ac_cv_path_install
3715 # As a last resort, use the slow shell script. We don't cache a
3716 # path for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the path is relative.
3719 INSTALL
=$ac_install_sh
3722 echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 echo "${ECHO_T}$INSTALL" >&6
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3731 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3734 # Not every filesystem supports hard links
3736 if test -z "$LN" ; then
3737 case $ac_sys_system in
3739 CYGWIN
*) LN
="ln -s";;
3740 atheos
*) LN
="ln -s";;
3745 # Check for --with-pydebug
3746 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3747 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3749 # Check whether --with-pydebug or --without-pydebug was given.
3750 if test "${with_pydebug+set}" = set; then
3751 withval
="$with_pydebug"
3753 if test "$withval" != no
3756 cat >>confdefs.h
<<\_ACEOF
3760 echo "$as_me:$LINENO: result: yes" >&5
3761 echo "${ECHO_T}yes" >&6;
3763 else echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3772 # merged with this chunk of code?
3774 # Optimizer/debugger flags
3775 # ------------------------
3776 # (The following bit of code is complicated enough - please keep things
3777 # indented properly. Just pretend you're editing Python code. ;-)
3779 # There are two parallel sets of case statements below, one that checks to
3780 # see if OPT was set and one that does BASECFLAGS setting based upon
3781 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3784 # tweak OPT based on compiler and platform, only if the user didn't set
3785 # it on the command line
3791 case $ac_cv_prog_cc_g in
3793 if test "$Py_DEBUG" = 'true' ; then
3794 # Optimization messes up debuggers, so turn it off for
3796 OPT
="-g -Wall -Wstrict-prototypes"
3798 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3802 OPT
="-O3 -Wall -Wstrict-prototypes"
3805 case $ac_sys_system in
3806 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3816 # The current (beta) Monterey compiler dies with optimizations
3817 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3818 case $ac_sys_system in
3827 # tweak BASECFLAGS based on compiler and platform
3830 # Python violates C99 rules, by casting between incompatible
3831 # pointer types. GCC may generate bad code as a result of that,
3832 # so use -fno-strict-aliasing if supported.
3833 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3834 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3836 CC
="$CC -fno-strict-aliasing"
3837 if test "$cross_compiling" = yes; then
3838 ac_cv_no_strict_aliasing_ok
=no
3840 cat >conftest.
$ac_ext <<_ACEOF
3843 cat confdefs.h
>>conftest.
$ac_ext
3844 cat >>conftest.
$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 int main() { return 0; }
3848 rm -f conftest
$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_no_strict_aliasing_ok
=yes
3861 echo "$as_me: program exited with status $ac_status" >&5
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3866 ac_cv_no_strict_aliasing_ok
=no
3868 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3871 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3872 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3873 if test $ac_cv_no_strict_aliasing_ok = yes
3875 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3877 case $ac_sys_system in
3879 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3881 # is there any other compiler on Darwin besides gcc?
3883 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 case $ac_sys_system in
3890 OpenUNIX
*|UnixWare
*)
3891 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3894 BASECFLAGS
="$BASECFLAGS -ieee -std"
3897 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3903 if test "$Py_DEBUG" = 'true'; then
3909 if test "$ac_arch_flags"
3911 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3914 # disable check for icc since it seems to pass, but generates a warning
3917 ac_cv_opt_olimit_ok
=no
3920 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3921 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3922 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 CC
="$CC -OPT:Olimit=0"
3927 if test "$cross_compiling" = yes; then
3928 ac_cv_opt_olimit_ok
=no
3930 cat >conftest.
$ac_ext <<_ACEOF
3933 cat confdefs.h
>>conftest.
$ac_ext
3934 cat >>conftest.
$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 int main() { return 0; }
3938 rm -f conftest
$ac_exeext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_opt_olimit_ok
=yes
3951 echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3956 ac_cv_opt_olimit_ok
=no
3958 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3964 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3965 if test $ac_cv_opt_olimit_ok = yes; then
3966 case $ac_sys_system in
3967 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3968 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3973 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3977 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3978 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3979 if test "${ac_cv_olimit_ok+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 CC
="$CC -Olimit 1500"
3984 if test "$cross_compiling" = yes; then
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 int main() { return 0; }
3995 rm -f conftest
$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4008 echo "$as_me: program exited with status $ac_status" >&5
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.
$ac_ext >&5
4015 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4020 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4021 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4022 if test $ac_cv_olimit_ok = yes; then
4023 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4027 # On some compilers, pthreads are available without further options
4028 # (e.g. MacOS X). On some of these systems, the compiler will not
4029 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4030 # So we have to see first whether pthreads are available without
4031 # options before we can check whether -Kpthread improves anything.
4032 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4033 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4034 if test "${ac_cv_pthread_is_default+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_pthread_is_default
=no
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 #include <pthread.h>
4049 void* routine(void* p){return NULL;}
4053 if(pthread_create(&p,NULL,routine,NULL)!=0)
4055 (void)pthread_detach(p);
4060 rm -f conftest
$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4072 ac_cv_pthread_is_default
=yes
4077 echo "$as_me: program exited with status $ac_status" >&5
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.
$ac_ext >&5
4082 ac_cv_pthread_is_default
=no
4084 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4090 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4093 if test $ac_cv_pthread_is_default = yes
4097 # -Kpthread, if available, provides the right #defines
4098 # and linker options to make pthread_create available
4099 # Some compilers won't report that they do not support -Kpthread,
4100 # so we need to run a program to see whether it really made the
4101 # function available.
4102 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4103 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4104 if test "${ac_cv_kpthread+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 if test "$cross_compiling" = yes; then
4112 cat >conftest.
$ac_ext <<_ACEOF
4115 cat confdefs.h
>>conftest.
$ac_ext
4116 cat >>conftest.
$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #include <pthread.h>
4121 void* routine(void* p){return NULL;}
4125 if(pthread_create(&p,NULL,routine,NULL)!=0)
4127 (void)pthread_detach(p);
4132 rm -f conftest
$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4145 echo "$as_me: program exited with status $ac_status" >&5
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.
$ac_ext >&5
4152 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4157 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4158 echo "${ECHO_T}$ac_cv_kpthread" >&6
4161 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4163 # -Kthread, if available, provides the right #defines
4164 # and linker options to make pthread_create available
4165 # Some compilers won't report that they do not support -Kthread,
4166 # so we need to run a program to see whether it really made the
4167 # function available.
4168 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4169 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4170 if test "${ac_cv_kthread+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 if test "$cross_compiling" = yes; then
4178 cat >conftest.
$ac_ext <<_ACEOF
4181 cat confdefs.h
>>conftest.
$ac_ext
4182 cat >>conftest.
$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 #include <pthread.h>
4187 void* routine(void* p){return NULL;}
4191 if(pthread_create(&p,NULL,routine,NULL)!=0)
4193 (void)pthread_detach(p);
4198 rm -f conftest
$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4211 echo "$as_me: program exited with status $ac_status" >&5
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.
$ac_ext >&5
4218 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4223 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4224 echo "${ECHO_T}$ac_cv_kthread" >&6
4227 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4229 # -pthread, if available, provides the right #defines
4230 # and linker options to make pthread_create available
4231 # Some compilers won't report that they do not support -pthread,
4232 # so we need to run a program to see whether it really made the
4233 # function available.
4234 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4236 if test "${ac_cv_thread+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test "$cross_compiling" = yes; then
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 #include <pthread.h>
4253 void* routine(void* p){return NULL;}
4257 if(pthread_create(&p,NULL,routine,NULL)!=0)
4259 (void)pthread_detach(p);
4264 rm -f conftest
$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.
$ac_ext >&5
4284 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4289 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4290 echo "${ECHO_T}$ac_cv_pthread" >&6
4293 # If we have set a CC compiler flag for thread support then
4294 # check if it works for CXX, too.
4298 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4299 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4302 if test "$ac_cv_kpthread" = "yes"
4304 CXX
="$CXX -Kpthread"
4305 ac_cv_cxx_thread
=yes
4306 elif test "$ac_cv_kthread" = "yes"
4309 ac_cv_cxx_thread
=yes
4310 elif test "$ac_cv_pthread" = "yes"
4313 ac_cv_cxx_thread
=yes
4316 if test $ac_cv_cxx_thread = yes
4318 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4319 $CXX -c conftest.
$ac_ext 2>&5
4320 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4321 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4323 ac_cv_cxx_thread
=yes
4329 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4330 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4335 # checks for header files
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.
$ac_ext <<_ACEOF
4344 cat confdefs.h
>>conftest.
$ac_ext
4345 cat >>conftest.
$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4360 rm -f conftest.
$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1
>conftest.err
4366 cat conftest.err
>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try
='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try
='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_stdc
=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.
$ac_ext >&5
4387 ac_cv_header_stdc
=no
4389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.
$ac_ext <<_ACEOF
4396 cat confdefs.h
>>conftest.
$ac_ext
4397 cat >>conftest.
$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev
/null
2>&1; then
4406 ac_cv_header_stdc
=no
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.
$ac_ext <<_ACEOF
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev
/null
2>&1; then
4427 ac_cv_header_stdc
=no
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4438 cat >conftest.
$ac_ext <<_ACEOF
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4468 rm -f conftest
$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.
$ac_ext >&5
4486 ac_cv_header_stdc
=no
4488 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4496 cat >>confdefs.h
<<\_ACEOF
4497 #define STDC_HEADERS 1
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 cat >conftest.
$ac_ext <<_ACEOF
4524 cat confdefs.h
>>conftest.
$ac_ext
4525 cat >>conftest.
$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4531 rm -f conftest.
$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1
>conftest.err
4537 cat conftest.err
>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try
='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try
='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 eval "$as_ac_Header=no"
4560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h
<<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4614 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4615 stropts.h termios.h thread.h \
4617 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4619 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4620 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4621 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4622 bluetooth
/bluetooth.h
4624 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626 echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634 # Is the header compilable?
4635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 cat confdefs.h
>>conftest.
$ac_ext
4641 cat >>conftest.
$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4644 #include <$ac_header>
4646 rm -f conftest.
$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4650 grep -v '^ *+' conftest.er1
>conftest.err
4652 cat conftest.err
>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try
='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try
='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_header_compiler
=yes
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.
$ac_ext >&5
4673 ac_header_compiler
=no
4675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4677 echo "${ECHO_T}$ac_header_compiler" >&6
4679 # Is the header present?
4680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4682 cat >conftest.
$ac_ext <<_ACEOF
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <$ac_header>
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4693 grep -v '^ *+' conftest.er1
>conftest.err
4695 cat conftest.err
>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev
/null
; then
4698 if test -s conftest.err
; then
4699 ac_cpp_err
=$ac_c_preproc_warn_flag
4700 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4707 if test -z "$ac_cpp_err"; then
4708 ac_header_preproc
=yes
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.
$ac_ext >&5
4713 ac_header_preproc
=no
4715 rm -f conftest.err conftest.
$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4717 echo "${ECHO_T}$ac_header_preproc" >&6
4719 # So? What about this header?
4720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4726 ac_header_preproc
=yes
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4743 ## ------------------------------------------------ ##
4744 ## Report this to http://www.python.org/python-bugs ##
4745 ## ------------------------------------------------ ##
4748 sed "s/^/$as_me: WARNING: /" >&2
4751 echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 eval "$as_ac_Header=\$ac_header_preproc"
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h
<<_ACEOF
4764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4778 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.
$ac_ext <<_ACEOF
4787 cat confdefs.h
>>conftest.
$ac_ext
4788 cat >>conftest.
$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4802 rm -f conftest.
$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try
='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try
='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_Header=yes"
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.
$ac_ext >&5
4829 eval "$as_ac_Header=no"
4831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h
<<_ACEOF
4837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4840 ac_header_dirent
=$ac_hdr; break
4844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4845 if test $ac_header_dirent = dirent.h
; then
4846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4848 if test "${ac_cv_search_opendir+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_func_search_save_LIBS
=$LIBS
4852 ac_cv_search_opendir
=no
4853 cat >conftest.
$ac_ext <<_ACEOF
4856 cat confdefs.h
>>conftest.
$ac_ext
4857 cat >>conftest.
$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4875 rm -f conftest.
$ac_objext conftest
$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1
>conftest.err
4881 cat conftest.err
>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try
='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try
='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_search_opendir
="none required"
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.
$ac_ext >&5
4903 rm -f conftest.err conftest.
$ac_objext \
4904 conftest
$ac_exeext conftest.
$ac_ext
4905 if test "$ac_cv_search_opendir" = no
; then
4906 for ac_lib
in dir
; do
4907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4908 cat >conftest.
$ac_ext <<_ACEOF
4911 cat confdefs.h
>>conftest.
$ac_ext
4912 cat >>conftest.
$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4930 rm -f conftest.
$ac_objext conftest
$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1
>conftest.err
4936 cat conftest.err
>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try
='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try
='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_search_opendir
="-l$ac_lib"
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.
$ac_ext >&5
4959 rm -f conftest.err conftest.
$ac_objext \
4960 conftest
$ac_exeext conftest.
$ac_ext
4963 LIBS
=$ac_func_search_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4967 if test "$ac_cv_search_opendir" != no
; then
4968 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4975 if test "${ac_cv_search_opendir+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_func_search_save_LIBS
=$LIBS
4979 ac_cv_search_opendir
=no
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
5002 rm -f conftest.
$ac_objext conftest
$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try
='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_search_opendir
="none required"
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5030 rm -f conftest.err conftest.
$ac_objext \
5031 conftest
$ac_exeext conftest.
$ac_ext
5032 if test "$ac_cv_search_opendir" = no
; then
5034 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5057 rm -f conftest.
$ac_objext conftest
$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1
>conftest.err
5063 cat conftest.err
>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try
='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try
='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_search_opendir
="-l$ac_lib"
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.
$ac_ext >&5
5086 rm -f conftest.err conftest.
$ac_objext \
5087 conftest
$ac_exeext conftest.
$ac_ext
5090 LIBS
=$ac_func_search_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5094 if test "$ac_cv_search_opendir" != no
; then
5095 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5101 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5102 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5103 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.
$ac_ext <<_ACEOF
5109 cat confdefs.h
>>conftest.
$ac_ext
5110 cat >>conftest.
$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5116 return makedev(0, 0);
5121 rm -f conftest.
$ac_objext conftest
$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5125 grep -v '^ *+' conftest.er1
>conftest.err
5127 cat conftest.err
>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try
='test -z "$ac_c_werror_flag"
5131 || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try
='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_header_sys_types_h_makedev
=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.
$ac_ext >&5
5148 ac_cv_header_sys_types_h_makedev
=no
5150 rm -f conftest.err conftest.
$ac_objext \
5151 conftest
$ac_exeext conftest.
$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5155 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5157 if test $ac_cv_header_sys_types_h_makedev = no
; then
5158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5159 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5160 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5161 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5167 # Is the header compilable?
5168 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5169 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5170 cat >conftest.
$ac_ext <<_ACEOF
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <sys/mkdev.h>
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1
>conftest.err
5185 cat conftest.err
>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try
='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try
='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler
=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.
$ac_ext >&5
5206 ac_header_compiler
=no
5208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5214 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5215 cat >conftest.
$ac_ext <<_ACEOF
5218 cat confdefs.h
>>conftest.
$ac_ext
5219 cat >>conftest.
$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <sys/mkdev.h>
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev
/null
; then
5231 if test -s conftest.err
; then
5232 ac_cpp_err
=$ac_c_preproc_warn_flag
5233 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5240 if test -z "$ac_cpp_err"; then
5241 ac_header_preproc
=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.
$ac_ext >&5
5246 ac_header_preproc
=no
5248 rm -f conftest.err conftest.
$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250 echo "${ECHO_T}$ac_header_preproc" >&6
5252 # So? What about this header?
5253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5259 ac_header_preproc
=yes
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5265 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5267 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5276 ## ------------------------------------------------ ##
5277 ## Report this to http://www.python.org/python-bugs ##
5278 ## ------------------------------------------------ ##
5281 sed "s/^/$as_me: WARNING: /" >&2
5284 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5285 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5286 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5292 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5295 if test $ac_cv_header_sys_mkdev_h = yes; then
5297 cat >>confdefs.h
<<\_ACEOF
5298 #define MAJOR_IN_MKDEV 1
5305 if test $ac_cv_header_sys_mkdev_h = no
; then
5306 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5307 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5308 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5315 # Is the header compilable?
5316 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5317 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5318 cat >conftest.
$ac_ext <<_ACEOF
5321 cat confdefs.h
>>conftest.
$ac_ext
5322 cat >>conftest.
$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5325 #include <sys/sysmacros.h>
5327 rm -f conftest.
$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5331 grep -v '^ *+' conftest.er1
>conftest.err
5333 cat conftest.err
>&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try
='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try
='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler
=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.
$ac_ext >&5
5354 ac_header_compiler
=no
5356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5362 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <sys/sysmacros.h>
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1
>conftest.err
5376 cat conftest.err
>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev
/null
; then
5379 if test -s conftest.err
; then
5380 ac_cpp_err
=$ac_c_preproc_warn_flag
5381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc
=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.
$ac_ext >&5
5394 ac_header_preproc
=no
5396 rm -f conftest.err conftest.
$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc
=yes
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5424 ## ------------------------------------------------ ##
5425 ## Report this to http://www.python.org/python-bugs ##
5426 ## ------------------------------------------------ ##
5429 sed "s/^/$as_me: WARNING: /" >&2
5432 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5433 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5440 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5443 if test $ac_cv_header_sys_sysmacros_h = yes; then
5445 cat >>confdefs.h
<<\_ACEOF
5446 #define MAJOR_IN_SYSMACROS 1
5456 # On Solaris, term.h requires curses.h
5458 for ac_header
in term.h
5460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #ifdef HAVE_CURSES_H
5478 #include <$ac_header>
5480 rm -f conftest.
$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try
='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try
='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 eval "$as_ac_Header=yes"
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 eval "$as_ac_Header=no"
5509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
5523 # On Linux, netlink.h requires asm/types.h
5525 for ac_header
in linux
/netlink.h
5527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 cat >conftest.
$ac_ext <<_ACEOF
5536 cat confdefs.h
>>conftest.
$ac_ext
5537 cat >>conftest.
$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 #ifdef HAVE_ASM_TYPES_H
5541 #include <asm/types.h>
5543 #ifdef HAVE_SYS_SOCKET_H
5544 #include <sys/socket.h>
5548 #include <$ac_header>
5550 rm -f conftest.
$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5554 grep -v '^ *+' conftest.er1
>conftest.err
5556 cat conftest.err
>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try
='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try
='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_Header=yes"
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.
$ac_ext >&5
5577 eval "$as_ac_Header=no"
5579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h
<<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5593 # checks for typedefs
5595 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5596 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5597 cat >conftest.
$ac_ext <<_ACEOF
5600 cat confdefs.h
>>conftest.
$ac_ext
5601 cat >>conftest.
$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "clock_t" >/dev
/null
2>&1; then
5612 cat >>confdefs.h
<<\_ACEOF
5613 #define clock_t long
5620 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5621 echo "${ECHO_T}$was_it_defined" >&6
5623 # Check whether using makedev requires defining _OSF_SOURCE
5624 echo "$as_me:$LINENO: checking for makedev" >&5
5625 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5626 cat >conftest.
$ac_ext <<_ACEOF
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5641 rm -f conftest.
$ac_objext conftest
$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1
>conftest.err
5647 cat conftest.err
>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try
='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try
='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_has_makedev
=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.
$ac_ext >&5
5668 ac_cv_has_makedev
=no
5670 rm -f conftest.err conftest.
$ac_objext \
5671 conftest
$ac_exeext conftest.
$ac_ext
5672 if test "$ac_cv_has_makedev" = "no"; then
5673 # we didn't link, try if _OSF_SOURCE will allow us to link
5674 cat >conftest.
$ac_ext <<_ACEOF
5677 cat confdefs.h
>>conftest.
$ac_ext
5678 cat >>conftest.
$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 #define _OSF_SOURCE 1
5682 #include <sys/types.h>
5692 rm -f conftest.
$ac_objext conftest
$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1
>conftest.err
5698 cat conftest.err
>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try
='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try
='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_has_makedev
=yes
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.
$ac_ext >&5
5719 ac_cv_has_makedev
=no
5721 rm -f conftest.err conftest.
$ac_objext \
5722 conftest
$ac_exeext conftest.
$ac_ext
5723 if test "$ac_cv_has_makedev" = "yes"; then
5725 cat >>confdefs.h
<<\_ACEOF
5726 #define _OSF_SOURCE 1
5731 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5732 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h
<<\_ACEOF
5736 #define HAVE_MAKEDEV 1
5741 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5742 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5743 # defined, but the compiler does not support pragma redefine_extname,
5744 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5745 # structures (such as rlimit64) without declaring them. As a
5746 # work-around, disable LFS on such configurations
5749 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5750 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5751 cat >conftest.
$ac_ext <<_ACEOF
5754 cat confdefs.h
>>conftest.
$ac_ext
5755 cat >>conftest.
$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5758 #define _LARGEFILE_SOURCE 1
5759 #define _FILE_OFFSET_BITS 64
5760 #include <sys/resource.h>
5770 rm -f conftest.
$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>conftest.er1
5774 grep -v '^ *+' conftest.er1
>conftest.err
5776 cat conftest.err
>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try
='test -z "$ac_c_werror_flag"
5780 || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try
='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.
$ac_ext >&5
5799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5800 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5801 echo "${ECHO_T}$sol_lfs_bug" >&6
5802 if test "$sol_lfs_bug" = "yes"; then
5806 if test "$use_lfs" = "yes"; then
5807 # Two defines needed to enable largefile support on various platforms
5808 # These may affect some typedefs
5810 cat >>confdefs.h
<<\_ACEOF
5811 #define _LARGEFILE_SOURCE 1
5815 cat >>confdefs.h
<<\_ACEOF
5816 #define _FILE_OFFSET_BITS 64
5821 # Add some code to confdefs.h so that the test for off_t works on SCO
5822 cat >> confdefs.h
<<\EOF
5828 # Type availability checks
5829 echo "$as_me:$LINENO: checking for mode_t" >&5
5830 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5831 if test "${ac_cv_type_mode_t+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.
$ac_ext <<_ACEOF
5837 cat confdefs.h
>>conftest.
$ac_ext
5838 cat >>conftest.
$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5846 if (sizeof (mode_t))
5852 rm -f conftest.
$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5856 grep -v '^ *+' conftest.er1
>conftest.err
5858 cat conftest.err
>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try
='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try
='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_type_mode_t
=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 ac_cv_type_mode_t
=no
5881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5885 if test $ac_cv_type_mode_t = yes; then
5889 cat >>confdefs.h
<<_ACEOF
5895 echo "$as_me:$LINENO: checking for off_t" >&5
5896 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5897 if test "${ac_cv_type_off_t+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5918 rm -f conftest.
$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
5924 cat conftest.err
>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try
='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try
='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t
=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5955 cat >>confdefs.h
<<_ACEOF
5961 echo "$as_me:$LINENO: checking for pid_t" >&5
5962 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_pid_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5984 rm -f conftest.
$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5988 grep -v '^ *+' conftest.er1
>conftest.err
5990 cat conftest.err
>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try
='test -z "$ac_c_werror_flag"
5994 || test ! -s conftest.err'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try
='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_type_pid_t
=yes
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.
$ac_ext >&5
6013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6017 if test $ac_cv_type_pid_t = yes; then
6021 cat >>confdefs.h
<<_ACEOF
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6046 void (*signal ()) ();
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try
='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal
=void
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6084 ac_cv_type_signal
=int
6086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h
<<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6096 echo "$as_me:$LINENO: checking for size_t" >&5
6097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_size_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6113 if (sizeof (size_t))
6119 rm -f conftest.
$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try
='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_type_size_t
=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6146 ac_cv_type_size_t
=no
6148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6152 if test $ac_cv_type_size_t = yes; then
6156 cat >>confdefs.h
<<_ACEOF
6157 #define size_t unsigned
6162 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6163 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6164 if test "${ac_cv_type_uid_t+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat >conftest.
$ac_ext <<_ACEOF
6170 cat confdefs.h
>>conftest.
$ac_ext
6171 cat >>conftest.
$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <sys/types.h>
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "uid_t" >/dev
/null
2>&1; then
6178 ac_cv_type_uid_t
=yes
6185 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6187 if test $ac_cv_type_uid_t = no
; then
6189 cat >>confdefs.h
<<\_ACEOF
6194 cat >>confdefs.h
<<\_ACEOF
6200 echo "$as_me:$LINENO: checking for ssize_t" >&5
6201 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6202 if test "${ac_cv_type_ssize_t+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 cat >conftest.
$ac_ext <<_ACEOF
6208 cat confdefs.h
>>conftest.
$ac_ext
6209 cat >>conftest.
$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6217 if (sizeof (ssize_t))
6223 rm -f conftest.
$ac_objext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225 (eval $ac_compile) 2>conftest.er1
6227 grep -v '^ *+' conftest.er1
>conftest.err
6229 cat conftest.err
>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try
='test -z "$ac_c_werror_flag"
6233 || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try
='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 ac_cv_type_ssize_t
=yes
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.
$ac_ext >&5
6250 ac_cv_type_ssize_t
=no
6252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6255 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6256 if test $ac_cv_type_ssize_t = yes; then
6258 cat >>confdefs.h
<<\_ACEOF
6259 #define HAVE_SSIZE_T 1
6265 # Sizes of various common basic types
6266 # ANSI C requires sizeof(char) == 1, so no need to check it
6267 echo "$as_me:$LINENO: checking for int" >&5
6268 echo $ECHO_N "checking for int... $ECHO_C" >&6
6269 if test "${ac_cv_type_int+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 cat >conftest.
$ac_ext <<_ACEOF
6275 cat confdefs.h
>>conftest.
$ac_ext
6276 cat >>conftest.
$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 $ac_includes_default
6290 rm -f conftest.
$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292 (eval $ac_compile) 2>conftest.er1
6294 grep -v '^ *+' conftest.er1
>conftest.err
6296 cat conftest.err
>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try
='test -z "$ac_c_werror_flag"
6300 || test ! -s conftest.err'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; } &&
6306 { ac_try
='test -s conftest.$ac_objext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.
$ac_ext >&5
6319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6321 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6322 echo "${ECHO_T}$ac_cv_type_int" >&6
6324 echo "$as_me:$LINENO: checking size of int" >&5
6325 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6326 if test "${ac_cv_sizeof_int+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 if test "$ac_cv_type_int" = yes; then
6330 # The cast to unsigned long works around a bug in the HP C Compiler
6331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6333 # This bug is HP SR number 8606223364.
6334 if test "$cross_compiling" = yes; then
6335 # Depending upon the size, compute the lo and hi bounds.
6336 cat >conftest.
$ac_ext <<_ACEOF
6339 cat confdefs.h
>>conftest.
$ac_ext
6340 cat >>conftest.
$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 $ac_includes_default
6346 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6353 rm -f conftest.
$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>conftest.er1
6357 grep -v '^ *+' conftest.er1
>conftest.err
6359 cat conftest.err
>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try
='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try
='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6377 cat >conftest.
$ac_ext <<_ACEOF
6380 cat confdefs.h
>>conftest.
$ac_ext
6381 cat >>conftest.
$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6387 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6394 rm -f conftest.
$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6398 grep -v '^ *+' conftest.er1
>conftest.err
6400 cat conftest.err
>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try
='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try
='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_hi
=$ac_mid; break
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.
$ac_ext >&5
6421 ac_lo
=`expr $ac_mid + 1`
6422 if test $ac_lo -le $ac_mid; then
6426 ac_mid
=`expr 2 '*' $ac_mid + 1`
6428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6434 cat >conftest.
$ac_ext <<_ACEOF
6437 cat confdefs.h
>>conftest.
$ac_ext
6438 cat >>conftest.
$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 $ac_includes_default
6444 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6451 rm -f conftest.
$ac_objext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453 (eval $ac_compile) 2>conftest.er1
6455 grep -v '^ *+' conftest.er1
>conftest.err
6457 cat conftest.err
>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try
='test -z "$ac_c_werror_flag"
6461 || test ! -s conftest.err'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; } &&
6467 { ac_try
='test -s conftest.$ac_objext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6475 cat >conftest.
$ac_ext <<_ACEOF
6478 cat confdefs.h
>>conftest.
$ac_ext
6479 cat >>conftest.
$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 $ac_includes_default
6485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6492 rm -f conftest.
$ac_objext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494 (eval $ac_compile) 2>conftest.er1
6496 grep -v '^ *+' conftest.er1
>conftest.err
6498 cat conftest.err
>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try
='test -z "$ac_c_werror_flag"
6502 || test ! -s conftest.err'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try
='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_lo
=$ac_mid; break
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.
$ac_ext >&5
6519 ac_hi
=`expr '(' $ac_mid ')' - 1`
6520 if test $ac_mid -le $ac_hi; then
6524 ac_mid
=`expr 2 '*' $ac_mid`
6526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.
$ac_ext >&5
6534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6537 # Binary search between lo and hi bounds.
6538 while test "x$ac_lo" != "x$ac_hi"; do
6539 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6550 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6557 rm -f conftest.
$ac_objext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6559 (eval $ac_compile) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1
>conftest.err
6563 cat conftest.err
>&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try
='test -z "$ac_c_werror_flag"
6567 || test ! -s conftest.err'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try
='test -s conftest.$ac_objext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.
$ac_ext >&5
6584 ac_lo
=`expr '(' $ac_mid ')' + 1`
6586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6589 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6591 See \`config.log' for more details." >&5
6592 echo "$as_me: error: cannot compute sizeof (int), 77
6593 See \`config.log' for more details." >&2;}
6594 { (exit 1); exit 1; }; } ;;
6597 if test "$cross_compiling" = yes; then
6598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6599 See \`config.log' for more details." >&5
6600 echo "$as_me: error: cannot run test program while cross compiling
6601 See \`config.log' for more details." >&2;}
6602 { (exit 1); exit 1; }; }
6604 cat >conftest.
$ac_ext <<_ACEOF
6607 cat confdefs.h
>>conftest.
$ac_ext
6608 cat >>conftest.
$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 long longval () { return (long) (sizeof (int)); }
6612 unsigned long ulongval () { return (long) (sizeof (int)); }
6619 FILE *f = fopen ("conftest.val", "w");
6622 if (((long) (sizeof (int))) < 0)
6624 long i = longval ();
6625 if (i != ((long) (sizeof (int))))
6627 fprintf (f, "%ld\n", i);
6631 unsigned long i = ulongval ();
6632 if (i != ((long) (sizeof (int))))
6634 fprintf (f, "%lu\n", i);
6636 exit (ferror (f) || fclose (f) != 0);
6642 rm -f conftest
$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_cv_sizeof_int
=`cat conftest.val`
6655 echo "$as_me: program exited with status $ac_status" >&5
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.
$ac_ext >&5
6660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6661 See \`config.log' for more details." >&5
6662 echo "$as_me: error: cannot compute sizeof (int), 77
6663 See \`config.log' for more details." >&2;}
6664 { (exit 1); exit 1; }; }
6666 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6675 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6676 cat >>confdefs.h
<<_ACEOF
6677 #define SIZEOF_INT $ac_cv_sizeof_int
6681 echo "$as_me:$LINENO: checking for long" >&5
6682 echo $ECHO_N "checking for long... $ECHO_C" >&6
6683 if test "${ac_cv_type_long+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6704 rm -f conftest.
$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6708 grep -v '^ *+' conftest.er1
>conftest.err
6710 cat conftest.err
>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try
='test -z "$ac_c_werror_flag"
6714 || test ! -s conftest.err'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; } &&
6720 { ac_try
='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.
$ac_ext >&5
6733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6736 echo "${ECHO_T}$ac_cv_type_long" >&6
6738 echo "$as_me:$LINENO: checking size of long" >&5
6739 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6740 if test "${ac_cv_sizeof_long+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 if test "$ac_cv_type_long" = yes; then
6744 # The cast to unsigned long works around a bug in the HP C Compiler
6745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6747 # This bug is HP SR number 8606223364.
6748 if test "$cross_compiling" = yes; then
6749 # Depending upon the size, compute the lo and hi bounds.
6750 cat >conftest.
$ac_ext <<_ACEOF
6753 cat confdefs.h
>>conftest.
$ac_ext
6754 cat >>conftest.
$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6760 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6767 rm -f conftest.
$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>conftest.er1
6771 grep -v '^ *+' conftest.er1
>conftest.err
6773 cat conftest.err
>&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try
='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try
='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6791 cat >conftest.
$ac_ext <<_ACEOF
6794 cat confdefs.h
>>conftest.
$ac_ext
6795 cat >>conftest.
$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 $ac_includes_default
6801 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6808 rm -f conftest.
$ac_objext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810 (eval $ac_compile) 2>conftest.er1
6812 grep -v '^ *+' conftest.er1
>conftest.err
6814 cat conftest.err
>&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try
='test -z "$ac_c_werror_flag"
6818 || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try
='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_hi
=$ac_mid; break
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.
$ac_ext >&5
6835 ac_lo
=`expr $ac_mid + 1`
6836 if test $ac_lo -le $ac_mid; then
6840 ac_mid
=`expr 2 '*' $ac_mid + 1`
6842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.
$ac_ext >&5
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6858 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6865 rm -f conftest.
$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867 (eval $ac_compile) 2>conftest.er1
6869 grep -v '^ *+' conftest.er1
>conftest.err
6871 cat conftest.err
>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try
='test -z "$ac_c_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try
='test -s conftest.$ac_objext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6889 cat >conftest.
$ac_ext <<_ACEOF
6892 cat confdefs.h
>>conftest.
$ac_ext
6893 cat >>conftest.
$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 $ac_includes_default
6899 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6906 rm -f conftest.
$ac_objext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6908 (eval $ac_compile) 2>conftest.er1
6910 grep -v '^ *+' conftest.er1
>conftest.err
6912 cat conftest.err
>&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try
='test -z "$ac_c_werror_flag"
6916 || test ! -s conftest.err'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; } &&
6922 { ac_try
='test -s conftest.$ac_objext'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6928 ac_lo
=$ac_mid; break
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.
$ac_ext >&5
6933 ac_hi
=`expr '(' $ac_mid ')' - 1`
6934 if test $ac_mid -le $ac_hi; then
6938 ac_mid
=`expr 2 '*' $ac_mid`
6940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.
$ac_ext >&5
6948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6951 # Binary search between lo and hi bounds.
6952 while test "x$ac_lo" != "x$ac_hi"; do
6953 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6954 cat >conftest.
$ac_ext <<_ACEOF
6957 cat confdefs.h
>>conftest.
$ac_ext
6958 cat >>conftest.
$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6964 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6971 rm -f conftest.
$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>conftest.er1
6975 grep -v '^ *+' conftest.er1
>conftest.err
6977 cat conftest.err
>&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try
='test -z "$ac_c_werror_flag"
6981 || test ! -s conftest.err'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; } &&
6987 { ac_try
='test -s conftest.$ac_objext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.
$ac_ext >&5
6998 ac_lo
=`expr '(' $ac_mid ')' + 1`
7000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7003 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7005 See \`config.log' for more details." >&5
7006 echo "$as_me: error: cannot compute sizeof (long), 77
7007 See \`config.log' for more details." >&2;}
7008 { (exit 1); exit 1; }; } ;;
7011 if test "$cross_compiling" = yes; then
7012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7013 See \`config.log' for more details." >&5
7014 echo "$as_me: error: cannot run test program while cross compiling
7015 See \`config.log' for more details." >&2;}
7016 { (exit 1); exit 1; }; }
7018 cat >conftest.
$ac_ext <<_ACEOF
7021 cat confdefs.h
>>conftest.
$ac_ext
7022 cat >>conftest.
$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7025 long longval () { return (long) (sizeof (long)); }
7026 unsigned long ulongval () { return (long) (sizeof (long)); }
7033 FILE *f = fopen ("conftest.val", "w");
7036 if (((long) (sizeof (long))) < 0)
7038 long i = longval ();
7039 if (i != ((long) (sizeof (long))))
7041 fprintf (f, "%ld\n", i);
7045 unsigned long i = ulongval ();
7046 if (i != ((long) (sizeof (long))))
7048 fprintf (f, "%lu\n", i);
7050 exit (ferror (f) || fclose (f) != 0);
7056 rm -f conftest
$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 ac_cv_sizeof_long
=`cat conftest.val`
7069 echo "$as_me: program exited with status $ac_status" >&5
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.
$ac_ext >&5
7074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7075 See \`config.log' for more details." >&5
7076 echo "$as_me: error: cannot compute sizeof (long), 77
7077 See \`config.log' for more details." >&2;}
7078 { (exit 1); exit 1; }; }
7080 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7089 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7090 cat >>confdefs.h
<<_ACEOF
7091 #define SIZEOF_LONG $ac_cv_sizeof_long
7095 echo "$as_me:$LINENO: checking for void *" >&5
7096 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7097 if test "${ac_cv_type_void_p+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 cat >conftest.
$ac_ext <<_ACEOF
7103 cat confdefs.h
>>conftest.
$ac_ext
7104 cat >>conftest.
$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7112 if (sizeof (void *))
7118 rm -f conftest.
$ac_objext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120 (eval $ac_compile) 2>conftest.er1
7122 grep -v '^ *+' conftest.er1
>conftest.err
7124 cat conftest.err
>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try
='test -z "$ac_c_werror_flag"
7128 || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try
='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_type_void_p
=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.
$ac_ext >&5
7145 ac_cv_type_void_p
=no
7147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7149 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7150 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7152 echo "$as_me:$LINENO: checking size of void *" >&5
7153 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7154 if test "${ac_cv_sizeof_void_p+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 if test "$ac_cv_type_void_p" = yes; then
7158 # The cast to unsigned long works around a bug in the HP C Compiler
7159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7161 # This bug is HP SR number 8606223364.
7162 if test "$cross_compiling" = yes; then
7163 # Depending upon the size, compute the lo and hi bounds.
7164 cat >conftest.
$ac_ext <<_ACEOF
7167 cat confdefs.h
>>conftest.
$ac_ext
7168 cat >>conftest.
$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 $ac_includes_default
7174 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7181 rm -f conftest.
$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>conftest.er1
7185 grep -v '^ *+' conftest.er1
>conftest.err
7187 cat conftest.err
>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try
='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try
='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7205 cat >conftest.
$ac_ext <<_ACEOF
7208 cat confdefs.h
>>conftest.
$ac_ext
7209 cat >>conftest.
$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 $ac_includes_default
7215 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7222 rm -f conftest.
$ac_objext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>conftest.er1
7226 grep -v '^ *+' conftest.er1
>conftest.err
7228 cat conftest.err
>&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try
='test -z "$ac_c_werror_flag"
7232 || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try
='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 ac_hi
=$ac_mid; break
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.
$ac_ext >&5
7249 ac_lo
=`expr $ac_mid + 1`
7250 if test $ac_lo -le $ac_mid; then
7254 ac_mid
=`expr 2 '*' $ac_mid + 1`
7256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.
$ac_ext >&5
7262 cat >conftest.
$ac_ext <<_ACEOF
7265 cat confdefs.h
>>conftest.
$ac_ext
7266 cat >>conftest.
$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7272 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7279 rm -f conftest.
$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7283 grep -v '^ *+' conftest.er1
>conftest.err
7285 cat conftest.err
>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try
='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try
='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7313 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7320 rm -f conftest.
$ac_objext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322 (eval $ac_compile) 2>conftest.er1
7324 grep -v '^ *+' conftest.er1
>conftest.err
7326 cat conftest.err
>&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try
='test -z "$ac_c_werror_flag"
7330 || test ! -s conftest.err'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; } &&
7336 { ac_try
='test -s conftest.$ac_objext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_lo
=$ac_mid; break
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.
$ac_ext >&5
7347 ac_hi
=`expr '(' $ac_mid ')' - 1`
7348 if test $ac_mid -le $ac_hi; then
7352 ac_mid
=`expr 2 '*' $ac_mid`
7354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7365 # Binary search between lo and hi bounds.
7366 while test "x$ac_lo" != "x$ac_hi"; do
7367 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7368 cat >conftest.
$ac_ext <<_ACEOF
7371 cat confdefs.h
>>conftest.
$ac_ext
7372 cat >>conftest.
$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7378 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7385 rm -f conftest.
$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7389 grep -v '^ *+' conftest.er1
>conftest.err
7391 cat conftest.err
>&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try
='test -z "$ac_c_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try
='test -s conftest.$ac_objext'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.
$ac_ext >&5
7412 ac_lo
=`expr '(' $ac_mid ')' + 1`
7414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7417 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7418 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7419 See \`config.log' for more details." >&5
7420 echo "$as_me: error: cannot compute sizeof (void *), 77
7421 See \`config.log' for more details." >&2;}
7422 { (exit 1); exit 1; }; } ;;
7425 if test "$cross_compiling" = yes; then
7426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7427 See \`config.log' for more details." >&5
7428 echo "$as_me: error: cannot run test program while cross compiling
7429 See \`config.log' for more details." >&2;}
7430 { (exit 1); exit 1; }; }
7432 cat >conftest.
$ac_ext <<_ACEOF
7435 cat confdefs.h
>>conftest.
$ac_ext
7436 cat >>conftest.
$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 long longval () { return (long) (sizeof (void *)); }
7440 unsigned long ulongval () { return (long) (sizeof (void *)); }
7447 FILE *f = fopen ("conftest.val", "w");
7450 if (((long) (sizeof (void *))) < 0)
7452 long i = longval ();
7453 if (i != ((long) (sizeof (void *))))
7455 fprintf (f, "%ld\n", i);
7459 unsigned long i = ulongval ();
7460 if (i != ((long) (sizeof (void *))))
7462 fprintf (f, "%lu\n", i);
7464 exit (ferror (f) || fclose (f) != 0);
7470 rm -f conftest
$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_sizeof_void_p
=`cat conftest.val`
7483 echo "$as_me: program exited with status $ac_status" >&5
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.
$ac_ext >&5
7488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7489 See \`config.log' for more details." >&5
7490 echo "$as_me: error: cannot compute sizeof (void *), 77
7491 See \`config.log' for more details." >&2;}
7492 { (exit 1); exit 1; }; }
7494 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7499 ac_cv_sizeof_void_p
=0
7502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7503 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7504 cat >>confdefs.h
<<_ACEOF
7505 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7509 echo "$as_me:$LINENO: checking for short" >&5
7510 echo $ECHO_N "checking for short... $ECHO_C" >&6
7511 if test "${ac_cv_type_short+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.
$ac_ext <<_ACEOF
7517 cat confdefs.h
>>conftest.
$ac_ext
7518 cat >>conftest.
$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7532 rm -f conftest.
$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7536 grep -v '^ *+' conftest.er1
>conftest.err
7538 cat conftest.err
>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try
='test -z "$ac_c_werror_flag"
7542 || test ! -s conftest.err'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; } &&
7548 { ac_try
='test -s conftest.$ac_objext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_type_short
=yes
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.
$ac_ext >&5
7561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7563 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7564 echo "${ECHO_T}$ac_cv_type_short" >&6
7566 echo "$as_me:$LINENO: checking size of short" >&5
7567 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7568 if test "${ac_cv_sizeof_short+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 if test "$ac_cv_type_short" = yes; then
7572 # The cast to unsigned long works around a bug in the HP C Compiler
7573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7575 # This bug is HP SR number 8606223364.
7576 if test "$cross_compiling" = yes; then
7577 # Depending upon the size, compute the lo and hi bounds.
7578 cat >conftest.
$ac_ext <<_ACEOF
7581 cat confdefs.h
>>conftest.
$ac_ext
7582 cat >>conftest.
$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 $ac_includes_default
7588 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7595 rm -f conftest.
$ac_objext
7596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7597 (eval $ac_compile) 2>conftest.er1
7599 grep -v '^ *+' conftest.er1
>conftest.err
7601 cat conftest.err
>&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try
='test -z "$ac_c_werror_flag"
7605 || test ! -s conftest.err'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; } &&
7611 { ac_try
='test -s conftest.$ac_objext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7619 cat >conftest.
$ac_ext <<_ACEOF
7622 cat confdefs.h
>>conftest.
$ac_ext
7623 cat >>conftest.
$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 $ac_includes_default
7629 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7636 rm -f conftest.
$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>conftest.er1
7640 grep -v '^ *+' conftest.er1
>conftest.err
7642 cat conftest.err
>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try
='test -z "$ac_c_werror_flag"
7646 || test ! -s conftest.err'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } &&
7652 { ac_try
='test -s conftest.$ac_objext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 ac_hi
=$ac_mid; break
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.
$ac_ext >&5
7663 ac_lo
=`expr $ac_mid + 1`
7664 if test $ac_lo -le $ac_mid; then
7668 ac_mid
=`expr 2 '*' $ac_mid + 1`
7670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.
$ac_ext >&5
7676 cat >conftest.
$ac_ext <<_ACEOF
7679 cat confdefs.h
>>conftest.
$ac_ext
7680 cat >>conftest.
$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7686 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7693 rm -f conftest.
$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7697 grep -v '^ *+' conftest.er1
>conftest.err
7699 cat conftest.err
>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try
='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try
='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7717 cat >conftest.
$ac_ext <<_ACEOF
7720 cat confdefs.h
>>conftest.
$ac_ext
7721 cat >>conftest.
$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7727 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7734 rm -f conftest.
$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>conftest.er1
7738 grep -v '^ *+' conftest.er1
>conftest.err
7740 cat conftest.err
>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try
='test -z "$ac_c_werror_flag"
7744 || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try
='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_lo
=$ac_mid; break
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.
$ac_ext >&5
7761 ac_hi
=`expr '(' $ac_mid ')' - 1`
7762 if test $ac_mid -le $ac_hi; then
7766 ac_mid
=`expr 2 '*' $ac_mid`
7768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.
$ac_ext >&5
7776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7779 # Binary search between lo and hi bounds.
7780 while test "x$ac_lo" != "x$ac_hi"; do
7781 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7782 cat >conftest.
$ac_ext <<_ACEOF
7785 cat confdefs.h
>>conftest.
$ac_ext
7786 cat >>conftest.
$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7792 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7799 rm -f conftest.
$ac_objext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801 (eval $ac_compile) 2>conftest.er1
7803 grep -v '^ *+' conftest.er1
>conftest.err
7805 cat conftest.err
>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try
='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try
='test -s conftest.$ac_objext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.
$ac_ext >&5
7826 ac_lo
=`expr '(' $ac_mid ')' + 1`
7828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7831 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7832 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7833 See \`config.log' for more details." >&5
7834 echo "$as_me: error: cannot compute sizeof (short), 77
7835 See \`config.log' for more details." >&2;}
7836 { (exit 1); exit 1; }; } ;;
7839 if test "$cross_compiling" = yes; then
7840 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7841 See \`config.log' for more details." >&5
7842 echo "$as_me: error: cannot run test program while cross compiling
7843 See \`config.log' for more details." >&2;}
7844 { (exit 1); exit 1; }; }
7846 cat >conftest.
$ac_ext <<_ACEOF
7849 cat confdefs.h
>>conftest.
$ac_ext
7850 cat >>conftest.
$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 $ac_includes_default
7853 long longval () { return (long) (sizeof (short)); }
7854 unsigned long ulongval () { return (long) (sizeof (short)); }
7861 FILE *f = fopen ("conftest.val", "w");
7864 if (((long) (sizeof (short))) < 0)
7866 long i = longval ();
7867 if (i != ((long) (sizeof (short))))
7869 fprintf (f, "%ld\n", i);
7873 unsigned long i = ulongval ();
7874 if (i != ((long) (sizeof (short))))
7876 fprintf (f, "%lu\n", i);
7878 exit (ferror (f) || fclose (f) != 0);
7884 rm -f conftest
$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_sizeof_short
=`cat conftest.val`
7897 echo "$as_me: program exited with status $ac_status" >&5
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.
$ac_ext >&5
7902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7903 See \`config.log' for more details." >&5
7904 echo "$as_me: error: cannot compute sizeof (short), 77
7905 See \`config.log' for more details." >&2;}
7906 { (exit 1); exit 1; }; }
7908 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7913 ac_cv_sizeof_short
=0
7916 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7917 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7918 cat >>confdefs.h
<<_ACEOF
7919 #define SIZEOF_SHORT $ac_cv_sizeof_short
7923 echo "$as_me:$LINENO: checking for float" >&5
7924 echo $ECHO_N "checking for float... $ECHO_C" >&6
7925 if test "${ac_cv_type_float+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.
$ac_ext <<_ACEOF
7931 cat confdefs.h
>>conftest.
$ac_ext
7932 cat >>conftest.
$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7946 rm -f conftest.
$ac_objext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>conftest.er1
7950 grep -v '^ *+' conftest.er1
>conftest.err
7952 cat conftest.err
>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try
='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try
='test -s conftest.$ac_objext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_type_float
=yes
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.
$ac_ext >&5
7975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7978 echo "${ECHO_T}$ac_cv_type_float" >&6
7980 echo "$as_me:$LINENO: checking size of float" >&5
7981 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7982 if test "${ac_cv_sizeof_float+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 if test "$ac_cv_type_float" = yes; then
7986 # The cast to unsigned long works around a bug in the HP C Compiler
7987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7989 # This bug is HP SR number 8606223364.
7990 if test "$cross_compiling" = yes; then
7991 # Depending upon the size, compute the lo and hi bounds.
7992 cat >conftest.
$ac_ext <<_ACEOF
7995 cat confdefs.h
>>conftest.
$ac_ext
7996 cat >>conftest.
$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
8002 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8009 rm -f conftest.
$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>conftest.er1
8013 grep -v '^ *+' conftest.er1
>conftest.err
8015 cat conftest.err
>&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try
='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try
='test -s conftest.$ac_objext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8033 cat >conftest.
$ac_ext <<_ACEOF
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8043 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8050 rm -f conftest.
$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>conftest.er1
8054 grep -v '^ *+' conftest.er1
>conftest.err
8056 cat conftest.err
>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try
='test -z "$ac_c_werror_flag"
8060 || test ! -s conftest.err'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try
='test -s conftest.$ac_objext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 ac_hi
=$ac_mid; break
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.
$ac_ext >&5
8077 ac_lo
=`expr $ac_mid + 1`
8078 if test $ac_lo -le $ac_mid; then
8082 ac_mid
=`expr 2 '*' $ac_mid + 1`
8084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.
$ac_ext >&5
8090 cat >conftest.
$ac_ext <<_ACEOF
8093 cat confdefs.h
>>conftest.
$ac_ext
8094 cat >>conftest.
$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 $ac_includes_default
8100 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8107 rm -f conftest.
$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>conftest.er1
8111 grep -v '^ *+' conftest.er1
>conftest.err
8113 cat conftest.err
>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try
='test -z "$ac_c_werror_flag"
8117 || test ! -s conftest.err'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try
='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8131 cat >conftest.
$ac_ext <<_ACEOF
8134 cat confdefs.h
>>conftest.
$ac_ext
8135 cat >>conftest.
$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8141 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8148 rm -f conftest.
$ac_objext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8150 (eval $ac_compile) 2>conftest.er1
8152 grep -v '^ *+' conftest.er1
>conftest.err
8154 cat conftest.err
>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try
='test -z "$ac_c_werror_flag"
8158 || test ! -s conftest.err'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try
='test -s conftest.$ac_objext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_lo
=$ac_mid; break
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.
$ac_ext >&5
8175 ac_hi
=`expr '(' $ac_mid ')' - 1`
8176 if test $ac_mid -le $ac_hi; then
8180 ac_mid
=`expr 2 '*' $ac_mid`
8182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.
$ac_ext >&5
8190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8193 # Binary search between lo and hi bounds.
8194 while test "x$ac_lo" != "x$ac_hi"; do
8195 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8196 cat >conftest.
$ac_ext <<_ACEOF
8199 cat confdefs.h
>>conftest.
$ac_ext
8200 cat >>conftest.
$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8206 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8213 rm -f conftest.
$ac_objext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8215 (eval $ac_compile) 2>conftest.er1
8217 grep -v '^ *+' conftest.er1
>conftest.err
8219 cat conftest.err
>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try
='test -z "$ac_c_werror_flag"
8223 || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try
='test -s conftest.$ac_objext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.
$ac_ext >&5
8240 ac_lo
=`expr '(' $ac_mid ')' + 1`
8242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8245 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8246 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8247 See \`config.log' for more details." >&5
8248 echo "$as_me: error: cannot compute sizeof (float), 77
8249 See \`config.log' for more details." >&2;}
8250 { (exit 1); exit 1; }; } ;;
8253 if test "$cross_compiling" = yes; then
8254 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8255 See \`config.log' for more details." >&5
8256 echo "$as_me: error: cannot run test program while cross compiling
8257 See \`config.log' for more details." >&2;}
8258 { (exit 1); exit 1; }; }
8260 cat >conftest.
$ac_ext <<_ACEOF
8263 cat confdefs.h
>>conftest.
$ac_ext
8264 cat >>conftest.
$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8267 long longval () { return (long) (sizeof (float)); }
8268 unsigned long ulongval () { return (long) (sizeof (float)); }
8275 FILE *f = fopen ("conftest.val", "w");
8278 if (((long) (sizeof (float))) < 0)
8280 long i = longval ();
8281 if (i != ((long) (sizeof (float))))
8283 fprintf (f, "%ld\n", i);
8287 unsigned long i = ulongval ();
8288 if (i != ((long) (sizeof (float))))
8290 fprintf (f, "%lu\n", i);
8292 exit (ferror (f) || fclose (f) != 0);
8298 rm -f conftest
$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_sizeof_float
=`cat conftest.val`
8311 echo "$as_me: program exited with status $ac_status" >&5
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.
$ac_ext >&5
8316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8317 See \`config.log' for more details." >&5
8318 echo "$as_me: error: cannot compute sizeof (float), 77
8319 See \`config.log' for more details." >&2;}
8320 { (exit 1); exit 1; }; }
8322 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8327 ac_cv_sizeof_float
=0
8330 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8331 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8332 cat >>confdefs.h
<<_ACEOF
8333 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8337 echo "$as_me:$LINENO: checking for double" >&5
8338 echo $ECHO_N "checking for double... $ECHO_C" >&6
8339 if test "${ac_cv_type_double+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 cat >conftest.
$ac_ext <<_ACEOF
8345 cat confdefs.h
>>conftest.
$ac_ext
8346 cat >>conftest.
$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8354 if (sizeof (double))
8360 rm -f conftest.
$ac_objext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>conftest.er1
8364 grep -v '^ *+' conftest.er1
>conftest.err
8366 cat conftest.err
>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try
='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try
='test -s conftest.$ac_objext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_type_double
=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.
$ac_ext >&5
8387 ac_cv_type_double
=no
8389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8392 echo "${ECHO_T}$ac_cv_type_double" >&6
8394 echo "$as_me:$LINENO: checking size of double" >&5
8395 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8396 if test "${ac_cv_sizeof_double+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 if test "$ac_cv_type_double" = yes; then
8400 # The cast to unsigned long works around a bug in the HP C Compiler
8401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8403 # This bug is HP SR number 8606223364.
8404 if test "$cross_compiling" = yes; then
8405 # Depending upon the size, compute the lo and hi bounds.
8406 cat >conftest.
$ac_ext <<_ACEOF
8409 cat confdefs.h
>>conftest.
$ac_ext
8410 cat >>conftest.
$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8416 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8423 rm -f conftest.
$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>conftest.er1
8427 grep -v '^ *+' conftest.er1
>conftest.err
8429 cat conftest.err
>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try
='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try
='test -s conftest.$ac_objext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8447 cat >conftest.
$ac_ext <<_ACEOF
8450 cat confdefs.h
>>conftest.
$ac_ext
8451 cat >>conftest.
$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 $ac_includes_default
8457 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8464 rm -f conftest.
$ac_objext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8466 (eval $ac_compile) 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try
='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try
='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_hi
=$ac_mid; break
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.
$ac_ext >&5
8491 ac_lo
=`expr $ac_mid + 1`
8492 if test $ac_lo -le $ac_mid; then
8496 ac_mid
=`expr 2 '*' $ac_mid + 1`
8498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.
$ac_ext >&5
8504 cat >conftest.
$ac_ext <<_ACEOF
8507 cat confdefs.h
>>conftest.
$ac_ext
8508 cat >>conftest.
$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 $ac_includes_default
8514 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8521 rm -f conftest.
$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523 (eval $ac_compile) 2>conftest.er1
8525 grep -v '^ *+' conftest.er1
>conftest.err
8527 cat conftest.err
>&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try
='test -z "$ac_c_werror_flag"
8531 || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try
='test -s conftest.$ac_objext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8545 cat >conftest.
$ac_ext <<_ACEOF
8548 cat confdefs.h
>>conftest.
$ac_ext
8549 cat >>conftest.
$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 $ac_includes_default
8555 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8562 rm -f conftest.
$ac_objext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564 (eval $ac_compile) 2>conftest.er1
8566 grep -v '^ *+' conftest.er1
>conftest.err
8568 cat conftest.err
>&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try
='test -z "$ac_c_werror_flag"
8572 || test ! -s conftest.err'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try
='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_lo
=$ac_mid; break
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.
$ac_ext >&5
8589 ac_hi
=`expr '(' $ac_mid ')' - 1`
8590 if test $ac_mid -le $ac_hi; then
8594 ac_mid
=`expr 2 '*' $ac_mid`
8596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.
$ac_ext >&5
8604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8607 # Binary search between lo and hi bounds.
8608 while test "x$ac_lo" != "x$ac_hi"; do
8609 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8610 cat >conftest.
$ac_ext <<_ACEOF
8613 cat confdefs.h
>>conftest.
$ac_ext
8614 cat >>conftest.
$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8620 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8627 rm -f conftest.
$ac_objext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>conftest.er1
8631 grep -v '^ *+' conftest.er1
>conftest.err
8633 cat conftest.err
>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try
='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try
='test -s conftest.$ac_objext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.
$ac_ext >&5
8654 ac_lo
=`expr '(' $ac_mid ')' + 1`
8656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8659 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8660 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8661 See \`config.log' for more details." >&5
8662 echo "$as_me: error: cannot compute sizeof (double), 77
8663 See \`config.log' for more details." >&2;}
8664 { (exit 1); exit 1; }; } ;;
8667 if test "$cross_compiling" = yes; then
8668 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8669 See \`config.log' for more details." >&5
8670 echo "$as_me: error: cannot run test program while cross compiling
8671 See \`config.log' for more details." >&2;}
8672 { (exit 1); exit 1; }; }
8674 cat >conftest.
$ac_ext <<_ACEOF
8677 cat confdefs.h
>>conftest.
$ac_ext
8678 cat >>conftest.
$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 $ac_includes_default
8681 long longval () { return (long) (sizeof (double)); }
8682 unsigned long ulongval () { return (long) (sizeof (double)); }
8689 FILE *f = fopen ("conftest.val", "w");
8692 if (((long) (sizeof (double))) < 0)
8694 long i = longval ();
8695 if (i != ((long) (sizeof (double))))
8697 fprintf (f, "%ld\n", i);
8701 unsigned long i = ulongval ();
8702 if (i != ((long) (sizeof (double))))
8704 fprintf (f, "%lu\n", i);
8706 exit (ferror (f) || fclose (f) != 0);
8712 rm -f conftest
$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_sizeof_double
=`cat conftest.val`
8725 echo "$as_me: program exited with status $ac_status" >&5
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.
$ac_ext >&5
8730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8731 See \`config.log' for more details." >&5
8732 echo "$as_me: error: cannot compute sizeof (double), 77
8733 See \`config.log' for more details." >&2;}
8734 { (exit 1); exit 1; }; }
8736 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8741 ac_cv_sizeof_double
=0
8744 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8745 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8746 cat >>confdefs.h
<<_ACEOF
8747 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8751 echo "$as_me:$LINENO: checking for fpos_t" >&5
8752 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8753 if test "${ac_cv_type_fpos_t+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 cat >conftest.
$ac_ext <<_ACEOF
8759 cat confdefs.h
>>conftest.
$ac_ext
8760 cat >>conftest.
$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8768 if (sizeof (fpos_t))
8774 rm -f conftest.
$ac_objext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8776 (eval $ac_compile) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1
>conftest.err
8780 cat conftest.err
>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try
='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try
='test -s conftest.$ac_objext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 ac_cv_type_fpos_t
=yes
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.
$ac_ext >&5
8801 ac_cv_type_fpos_t
=no
8803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8806 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8808 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8809 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8810 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 if test "$ac_cv_type_fpos_t" = yes; then
8814 # The cast to unsigned long works around a bug in the HP C Compiler
8815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8817 # This bug is HP SR number 8606223364.
8818 if test "$cross_compiling" = yes; then
8819 # Depending upon the size, compute the lo and hi bounds.
8820 cat >conftest.
$ac_ext <<_ACEOF
8823 cat confdefs.h
>>conftest.
$ac_ext
8824 cat >>conftest.
$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 $ac_includes_default
8830 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8837 rm -f conftest.
$ac_objext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8839 (eval $ac_compile) 2>conftest.er1
8841 grep -v '^ *+' conftest.er1
>conftest.err
8843 cat conftest.err
>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try
='test -z "$ac_c_werror_flag"
8847 || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try
='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8861 cat >conftest.
$ac_ext <<_ACEOF
8864 cat confdefs.h
>>conftest.
$ac_ext
8865 cat >>conftest.
$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8867 $ac_includes_default
8871 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8878 rm -f conftest.
$ac_objext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 { ac_try
='test -z "$ac_c_werror_flag"
8888 || test ! -s conftest.err'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try
='test -s conftest.$ac_objext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 ac_hi
=$ac_mid; break
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.
$ac_ext >&5
8905 ac_lo
=`expr $ac_mid + 1`
8906 if test $ac_lo -le $ac_mid; then
8910 ac_mid
=`expr 2 '*' $ac_mid + 1`
8912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.
$ac_ext >&5
8918 cat >conftest.
$ac_ext <<_ACEOF
8921 cat confdefs.h
>>conftest.
$ac_ext
8922 cat >>conftest.
$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8928 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8935 rm -f conftest.
$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1
>conftest.err
8941 cat conftest.err
>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try
='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try
='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8959 cat >conftest.
$ac_ext <<_ACEOF
8962 cat confdefs.h
>>conftest.
$ac_ext
8963 cat >>conftest.
$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 $ac_includes_default
8969 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8976 rm -f conftest.
$ac_objext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978 (eval $ac_compile) 2>conftest.er1
8980 grep -v '^ *+' conftest.er1
>conftest.err
8982 cat conftest.err
>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try
='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try
='test -s conftest.$ac_objext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_lo
=$ac_mid; break
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.
$ac_ext >&5
9003 ac_hi
=`expr '(' $ac_mid ')' - 1`
9004 if test $ac_mid -le $ac_hi; then
9008 ac_mid
=`expr 2 '*' $ac_mid`
9010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.
$ac_ext >&5
9018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9021 # Binary search between lo and hi bounds.
9022 while test "x$ac_lo" != "x$ac_hi"; do
9023 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9024 cat >conftest.
$ac_ext <<_ACEOF
9027 cat confdefs.h
>>conftest.
$ac_ext
9028 cat >>conftest.
$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 $ac_includes_default
9034 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9041 rm -f conftest.
$ac_objext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9043 (eval $ac_compile) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1
>conftest.err
9047 cat conftest.err
>&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try
='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try
='test -s conftest.$ac_objext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.
$ac_ext >&5
9068 ac_lo
=`expr '(' $ac_mid ')' + 1`
9070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9073 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9074 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9075 See \`config.log' for more details." >&5
9076 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9077 See \`config.log' for more details." >&2;}
9078 { (exit 1); exit 1; }; } ;;
9081 if test "$cross_compiling" = yes; then
9082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9083 See \`config.log' for more details." >&5
9084 echo "$as_me: error: cannot run test program while cross compiling
9085 See \`config.log' for more details." >&2;}
9086 { (exit 1); exit 1; }; }
9088 cat >conftest.
$ac_ext <<_ACEOF
9091 cat confdefs.h
>>conftest.
$ac_ext
9092 cat >>conftest.
$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9095 long longval () { return (long) (sizeof (fpos_t)); }
9096 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9103 FILE *f = fopen ("conftest.val", "w");
9106 if (((long) (sizeof (fpos_t))) < 0)
9108 long i = longval ();
9109 if (i != ((long) (sizeof (fpos_t))))
9111 fprintf (f, "%ld\n", i);
9115 unsigned long i = ulongval ();
9116 if (i != ((long) (sizeof (fpos_t))))
9118 fprintf (f, "%lu\n", i);
9120 exit (ferror (f) || fclose (f) != 0);
9126 rm -f conftest
$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9139 echo "$as_me: program exited with status $ac_status" >&5
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.
$ac_ext >&5
9144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9145 See \`config.log' for more details." >&5
9146 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9147 See \`config.log' for more details." >&2;}
9148 { (exit 1); exit 1; }; }
9150 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9155 ac_cv_sizeof_fpos_t
=0
9158 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9159 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9160 cat >>confdefs.h
<<_ACEOF
9161 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9165 echo "$as_me:$LINENO: checking for size_t" >&5
9166 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9167 if test "${ac_cv_type_size_t+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 cat >conftest.
$ac_ext <<_ACEOF
9173 cat confdefs.h
>>conftest.
$ac_ext
9174 cat >>conftest.
$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 $ac_includes_default
9182 if (sizeof (size_t))
9188 rm -f conftest.
$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>conftest.er1
9192 grep -v '^ *+' conftest.er1
>conftest.err
9194 cat conftest.err
>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try
='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try
='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_type_size_t
=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.
$ac_ext >&5
9215 ac_cv_type_size_t
=no
9217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9220 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9222 echo "$as_me:$LINENO: checking size of size_t" >&5
9223 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9224 if test "${ac_cv_sizeof_size_t+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 if test "$ac_cv_type_size_t" = yes; then
9228 # The cast to unsigned long works around a bug in the HP C Compiler
9229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9231 # This bug is HP SR number 8606223364.
9232 if test "$cross_compiling" = yes; then
9233 # Depending upon the size, compute the lo and hi bounds.
9234 cat >conftest.
$ac_ext <<_ACEOF
9237 cat confdefs.h
>>conftest.
$ac_ext
9238 cat >>conftest.
$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9244 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9251 rm -f conftest.
$ac_objext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253 (eval $ac_compile) 2>conftest.er1
9255 grep -v '^ *+' conftest.er1
>conftest.err
9257 cat conftest.err
>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try
='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try
='test -s conftest.$ac_objext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9275 cat >conftest.
$ac_ext <<_ACEOF
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9285 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9292 rm -f conftest.
$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294 (eval $ac_compile) 2>conftest.er1
9296 grep -v '^ *+' conftest.er1
>conftest.err
9298 cat conftest.err
>&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try
='test -z "$ac_c_werror_flag"
9302 || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try
='test -s conftest.$ac_objext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 ac_hi
=$ac_mid; break
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.
$ac_ext >&5
9319 ac_lo
=`expr $ac_mid + 1`
9320 if test $ac_lo -le $ac_mid; then
9324 ac_mid
=`expr 2 '*' $ac_mid + 1`
9326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.
$ac_ext >&5
9332 cat >conftest.
$ac_ext <<_ACEOF
9335 cat confdefs.h
>>conftest.
$ac_ext
9336 cat >>conftest.
$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9342 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9349 rm -f conftest.
$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try
='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try
='test -s conftest.$ac_objext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9373 cat >conftest.
$ac_ext <<_ACEOF
9376 cat confdefs.h
>>conftest.
$ac_ext
9377 cat >>conftest.
$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 $ac_includes_default
9383 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9390 rm -f conftest.
$ac_objext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>conftest.er1
9394 grep -v '^ *+' conftest.er1
>conftest.err
9396 cat conftest.err
>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try
='test -z "$ac_c_werror_flag"
9400 || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try
='test -s conftest.$ac_objext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_lo
=$ac_mid; break
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.
$ac_ext >&5
9417 ac_hi
=`expr '(' $ac_mid ')' - 1`
9418 if test $ac_mid -le $ac_hi; then
9422 ac_mid
=`expr 2 '*' $ac_mid`
9424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.
$ac_ext >&5
9432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9435 # Binary search between lo and hi bounds.
9436 while test "x$ac_lo" != "x$ac_hi"; do
9437 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9438 cat >conftest.
$ac_ext <<_ACEOF
9441 cat confdefs.h
>>conftest.
$ac_ext
9442 cat >>conftest.
$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 $ac_includes_default
9448 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9455 rm -f conftest.
$ac_objext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>conftest.er1
9459 grep -v '^ *+' conftest.er1
>conftest.err
9461 cat conftest.err
>&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try
='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try
='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.
$ac_ext >&5
9482 ac_lo
=`expr '(' $ac_mid ')' + 1`
9484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9487 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9488 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9489 See \`config.log' for more details." >&5
9490 echo "$as_me: error: cannot compute sizeof (size_t), 77
9491 See \`config.log' for more details." >&2;}
9492 { (exit 1); exit 1; }; } ;;
9495 if test "$cross_compiling" = yes; then
9496 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9497 See \`config.log' for more details." >&5
9498 echo "$as_me: error: cannot run test program while cross compiling
9499 See \`config.log' for more details." >&2;}
9500 { (exit 1); exit 1; }; }
9502 cat >conftest.
$ac_ext <<_ACEOF
9505 cat confdefs.h
>>conftest.
$ac_ext
9506 cat >>conftest.
$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 $ac_includes_default
9509 long longval () { return (long) (sizeof (size_t)); }
9510 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9517 FILE *f = fopen ("conftest.val", "w");
9520 if (((long) (sizeof (size_t))) < 0)
9522 long i = longval ();
9523 if (i != ((long) (sizeof (size_t))))
9525 fprintf (f, "%ld\n", i);
9529 unsigned long i = ulongval ();
9530 if (i != ((long) (sizeof (size_t))))
9532 fprintf (f, "%lu\n", i);
9534 exit (ferror (f) || fclose (f) != 0);
9540 rm -f conftest
$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_sizeof_size_t
=`cat conftest.val`
9553 echo "$as_me: program exited with status $ac_status" >&5
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.
$ac_ext >&5
9558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9559 See \`config.log' for more details." >&5
9560 echo "$as_me: error: cannot compute sizeof (size_t), 77
9561 See \`config.log' for more details." >&2;}
9562 { (exit 1); exit 1; }; }
9564 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9569 ac_cv_sizeof_size_t
=0
9572 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9573 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9574 cat >>confdefs.h
<<_ACEOF
9575 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9580 echo "$as_me:$LINENO: checking for long long support" >&5
9581 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9583 cat >conftest.
$ac_ext <<_ACEOF
9586 cat confdefs.h
>>conftest.
$ac_ext
9587 cat >>conftest.
$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9593 long long x; x = (long long)0;
9598 rm -f conftest.
$ac_objext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>conftest.er1
9602 grep -v '^ *+' conftest.er1
>conftest.err
9604 cat conftest.err
>&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try
='test -z "$ac_c_werror_flag"
9608 || test ! -s conftest.err'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try
='test -s conftest.$ac_objext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9622 cat >>confdefs.h
<<\_ACEOF
9623 #define HAVE_LONG_LONG 1
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.
$ac_ext >&5
9633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9634 echo "$as_me:$LINENO: result: $have_long_long" >&5
9635 echo "${ECHO_T}$have_long_long" >&6
9636 if test "$have_long_long" = yes ; then
9637 echo "$as_me:$LINENO: checking for long long" >&5
9638 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9639 if test "${ac_cv_type_long_long+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 cat >conftest.
$ac_ext <<_ACEOF
9645 cat confdefs.h
>>conftest.
$ac_ext
9646 cat >>conftest.
$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 $ac_includes_default
9652 if ((long long *) 0)
9654 if (sizeof (long long))
9660 rm -f conftest.
$ac_objext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9662 (eval $ac_compile) 2>conftest.er1
9664 grep -v '^ *+' conftest.er1
>conftest.err
9666 cat conftest.err
>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try
='test -z "$ac_c_werror_flag"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try
='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_cv_type_long_long
=yes
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.
$ac_ext >&5
9687 ac_cv_type_long_long
=no
9689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9692 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9694 echo "$as_me:$LINENO: checking size of long long" >&5
9695 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9696 if test "${ac_cv_sizeof_long_long+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 if test "$ac_cv_type_long_long" = yes; then
9700 # The cast to unsigned long works around a bug in the HP C Compiler
9701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9703 # This bug is HP SR number 8606223364.
9704 if test "$cross_compiling" = yes; then
9705 # Depending upon the size, compute the lo and hi bounds.
9706 cat >conftest.
$ac_ext <<_ACEOF
9709 cat confdefs.h
>>conftest.
$ac_ext
9710 cat >>conftest.
$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 $ac_includes_default
9716 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9723 rm -f conftest.
$ac_objext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1
>conftest.err
9729 cat conftest.err
>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try
='test -z "$ac_c_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try
='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9747 cat >conftest.
$ac_ext <<_ACEOF
9750 cat confdefs.h
>>conftest.
$ac_ext
9751 cat >>conftest.
$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9757 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9764 rm -f conftest.
$ac_objext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766 (eval $ac_compile) 2>conftest.er1
9768 grep -v '^ *+' conftest.er1
>conftest.err
9770 cat conftest.err
>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try
='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try
='test -s conftest.$ac_objext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_hi
=$ac_mid; break
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9791 ac_lo
=`expr $ac_mid + 1`
9792 if test $ac_lo -le $ac_mid; then
9796 ac_mid
=`expr 2 '*' $ac_mid + 1`
9798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.
$ac_ext >&5
9804 cat >conftest.
$ac_ext <<_ACEOF
9807 cat confdefs.h
>>conftest.
$ac_ext
9808 cat >>conftest.
$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9814 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9821 rm -f conftest.
$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1
>conftest.err
9827 cat conftest.err
>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try
='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try
='test -s conftest.$ac_objext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9845 cat >conftest.
$ac_ext <<_ACEOF
9848 cat confdefs.h
>>conftest.
$ac_ext
9849 cat >>conftest.
$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 $ac_includes_default
9855 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9862 rm -f conftest.
$ac_objext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9864 (eval $ac_compile) 2>conftest.er1
9866 grep -v '^ *+' conftest.er1
>conftest.err
9868 cat conftest.err
>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try
='test -z "$ac_c_werror_flag"
9872 || test ! -s conftest.err'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try
='test -s conftest.$ac_objext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_lo
=$ac_mid; break
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.
$ac_ext >&5
9889 ac_hi
=`expr '(' $ac_mid ')' - 1`
9890 if test $ac_mid -le $ac_hi; then
9894 ac_mid
=`expr 2 '*' $ac_mid`
9896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.
$ac_ext >&5
9904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9907 # Binary search between lo and hi bounds.
9908 while test "x$ac_lo" != "x$ac_hi"; do
9909 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9910 cat >conftest.
$ac_ext <<_ACEOF
9913 cat confdefs.h
>>conftest.
$ac_ext
9914 cat >>conftest.
$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 $ac_includes_default
9920 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9927 rm -f conftest.
$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>conftest.er1
9931 grep -v '^ *+' conftest.er1
>conftest.err
9933 cat conftest.err
>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try
='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try
='test -s conftest.$ac_objext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.
$ac_ext >&5
9954 ac_lo
=`expr '(' $ac_mid ')' + 1`
9956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9959 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9961 See \`config.log' for more details." >&5
9962 echo "$as_me: error: cannot compute sizeof (long long), 77
9963 See \`config.log' for more details." >&2;}
9964 { (exit 1); exit 1; }; } ;;
9967 if test "$cross_compiling" = yes; then
9968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9969 See \`config.log' for more details." >&5
9970 echo "$as_me: error: cannot run test program while cross compiling
9971 See \`config.log' for more details." >&2;}
9972 { (exit 1); exit 1; }; }
9974 cat >conftest.
$ac_ext <<_ACEOF
9977 cat confdefs.h
>>conftest.
$ac_ext
9978 cat >>conftest.
$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 $ac_includes_default
9981 long longval () { return (long) (sizeof (long long)); }
9982 unsigned long ulongval () { return (long) (sizeof (long long)); }
9989 FILE *f = fopen ("conftest.val", "w");
9992 if (((long) (sizeof (long long))) < 0)
9994 long i = longval ();
9995 if (i != ((long) (sizeof (long long))))
9997 fprintf (f, "%ld\n", i);
10001 unsigned long i = ulongval ();
10002 if (i != ((long) (sizeof (long long))))
10004 fprintf (f, "%lu\n", i);
10006 exit (ferror (f) || fclose (f) != 0);
10012 rm -f conftest
$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_sizeof_long_long
=`cat conftest.val`
10025 echo "$as_me: program exited with status $ac_status" >&5
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.
$ac_ext >&5
10029 ( exit $ac_status )
10030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10031 See \`config.log' for more details." >&5
10032 echo "$as_me: error: cannot compute sizeof (long long), 77
10033 See \`config.log' for more details." >&2;}
10034 { (exit 1); exit 1; }; }
10036 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10041 ac_cv_sizeof_long_long
=0
10044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10045 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10046 cat >>confdefs.h
<<_ACEOF
10047 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10053 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10054 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10056 cat >conftest.
$ac_ext <<_ACEOF
10059 cat confdefs.h
>>conftest.
$ac_ext
10060 cat >>conftest.
$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10066 uintptr_t x; x = (uintptr_t)0;
10071 rm -f conftest.
$ac_objext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073 (eval $ac_compile) 2>conftest.er1
10075 grep -v '^ *+' conftest.er1
>conftest.err
10077 cat conftest.err
>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try
='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try
='test -s conftest.$ac_objext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10095 cat >>confdefs.h
<<\_ACEOF
10096 #define HAVE_UINTPTR_T 1
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.
$ac_ext >&5
10106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10107 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10108 echo "${ECHO_T}$have_uintptr_t" >&6
10109 if test "$have_uintptr_t" = yes ; then
10110 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10111 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10112 if test "${ac_cv_type_uintptr_t+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.
$ac_ext <<_ACEOF
10118 cat confdefs.h
>>conftest.
$ac_ext
10119 cat >>conftest.
$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 $ac_includes_default
10125 if ((uintptr_t *) 0)
10127 if (sizeof (uintptr_t))
10133 rm -f conftest.
$ac_objext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10135 (eval $ac_compile) 2>conftest.er1
10137 grep -v '^ *+' conftest.er1
>conftest.err
10139 cat conftest.err
>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try
='test -z "$ac_c_werror_flag"
10143 || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try
='test -s conftest.$ac_objext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_type_uintptr_t
=yes
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.
$ac_ext >&5
10160 ac_cv_type_uintptr_t
=no
10162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10164 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10165 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10167 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10168 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10169 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 if test "$ac_cv_type_uintptr_t" = yes; then
10173 # The cast to unsigned long works around a bug in the HP C Compiler
10174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10176 # This bug is HP SR number 8606223364.
10177 if test "$cross_compiling" = yes; then
10178 # Depending upon the size, compute the lo and hi bounds.
10179 cat >conftest.
$ac_ext <<_ACEOF
10182 cat confdefs.h
>>conftest.
$ac_ext
10183 cat >>conftest.
$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 $ac_includes_default
10189 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10196 rm -f conftest.
$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>conftest.er1
10200 grep -v '^ *+' conftest.er1
>conftest.err
10202 cat conftest.err
>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try
='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try
='test -s conftest.$ac_objext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10220 cat >conftest.
$ac_ext <<_ACEOF
10223 cat confdefs.h
>>conftest.
$ac_ext
10224 cat >>conftest.
$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226 $ac_includes_default
10230 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10237 rm -f conftest.
$ac_objext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10239 (eval $ac_compile) 2>conftest.er1
10241 grep -v '^ *+' conftest.er1
>conftest.err
10243 cat conftest.err
>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try
='test -z "$ac_c_werror_flag"
10247 || test ! -s conftest.err'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try
='test -s conftest.$ac_objext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_hi
=$ac_mid; break
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.
$ac_ext >&5
10264 ac_lo
=`expr $ac_mid + 1`
10265 if test $ac_lo -le $ac_mid; then
10269 ac_mid
=`expr 2 '*' $ac_mid + 1`
10271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.
$ac_ext >&5
10277 cat >conftest.
$ac_ext <<_ACEOF
10280 cat confdefs.h
>>conftest.
$ac_ext
10281 cat >>conftest.
$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 $ac_includes_default
10287 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10294 rm -f conftest.
$ac_objext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>conftest.er1
10298 grep -v '^ *+' conftest.er1
>conftest.err
10300 cat conftest.err
>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try
='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try
='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10318 cat >conftest.
$ac_ext <<_ACEOF
10321 cat confdefs.h
>>conftest.
$ac_ext
10322 cat >>conftest.
$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10328 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10335 rm -f conftest.
$ac_objext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>conftest.er1
10339 grep -v '^ *+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try
='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try
='test -s conftest.$ac_objext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_lo
=$ac_mid; break
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.
$ac_ext >&5
10362 ac_hi
=`expr '(' $ac_mid ')' - 1`
10363 if test $ac_mid -le $ac_hi; then
10367 ac_mid
=`expr 2 '*' $ac_mid`
10369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.
$ac_ext >&5
10377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10380 # Binary search between lo and hi bounds.
10381 while test "x$ac_lo" != "x$ac_hi"; do
10382 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10383 cat >conftest.
$ac_ext <<_ACEOF
10386 cat confdefs.h
>>conftest.
$ac_ext
10387 cat >>conftest.
$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389 $ac_includes_default
10393 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10400 rm -f conftest.
$ac_objext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>conftest.er1
10404 grep -v '^ *+' conftest.er1
>conftest.err
10406 cat conftest.err
>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try
='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try
='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.
$ac_ext >&5
10427 ac_lo
=`expr '(' $ac_mid ')' + 1`
10429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10432 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10433 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10434 See \`config.log' for more details." >&5
10435 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10436 See \`config.log' for more details." >&2;}
10437 { (exit 1); exit 1; }; } ;;
10440 if test "$cross_compiling" = yes; then
10441 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10442 See \`config.log' for more details." >&5
10443 echo "$as_me: error: cannot run test program while cross compiling
10444 See \`config.log' for more details." >&2;}
10445 { (exit 1); exit 1; }; }
10447 cat >conftest.
$ac_ext <<_ACEOF
10450 cat confdefs.h
>>conftest.
$ac_ext
10451 cat >>conftest.
$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 $ac_includes_default
10454 long longval () { return (long) (sizeof (uintptr_t)); }
10455 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10457 #include <stdlib.h>
10462 FILE *f = fopen ("conftest.val", "w");
10465 if (((long) (sizeof (uintptr_t))) < 0)
10467 long i = longval ();
10468 if (i != ((long) (sizeof (uintptr_t))))
10470 fprintf (f, "%ld\n", i);
10474 unsigned long i = ulongval ();
10475 if (i != ((long) (sizeof (uintptr_t))))
10477 fprintf (f, "%lu\n", i);
10479 exit (ferror (f) || fclose (f) != 0);
10485 rm -f conftest
$ac_exeext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10498 echo "$as_me: program exited with status $ac_status" >&5
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.
$ac_ext >&5
10502 ( exit $ac_status )
10503 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10504 See \`config.log' for more details." >&5
10505 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10506 See \`config.log' for more details." >&2;}
10507 { (exit 1); exit 1; }; }
10509 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10514 ac_cv_sizeof_uintptr_t
=0
10517 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10518 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10519 cat >>confdefs.h
<<_ACEOF
10520 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10526 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10527 echo "$as_me:$LINENO: checking size of off_t" >&5
10528 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10529 if test "${ac_cv_sizeof_off_t+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 if test "$cross_compiling" = yes; then
10533 ac_cv_sizeof_off_t
=4
10535 cat >conftest.
$ac_ext <<_ACEOF
10538 cat confdefs.h
>>conftest.
$ac_ext
10539 cat >>conftest.
$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 #include <sys/types.h>
10545 FILE *f=fopen("conftestval", "w");
10547 fprintf(f, "%d\n", sizeof(off_t));
10551 rm -f conftest
$ac_exeext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553 (eval $ac_link) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ac_cv_sizeof_off_t
=`cat conftestval`
10564 echo "$as_me: program exited with status $ac_status" >&5
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.
$ac_ext >&5
10568 ( exit $ac_status )
10569 ac_cv_sizeof_off_t
=0
10571 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10576 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10577 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10579 cat >>confdefs.h
<<_ACEOF
10580 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10584 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10585 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10586 if test "$have_long_long" = yes -a \
10587 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10588 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10590 cat >>confdefs.h
<<\_ACEOF
10591 #define HAVE_LARGEFILE_SUPPORT 1
10594 echo "$as_me:$LINENO: result: yes" >&5
10595 echo "${ECHO_T}yes" >&6
10597 echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6
10601 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10602 echo "$as_me:$LINENO: checking size of time_t" >&5
10603 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10604 if test "${ac_cv_sizeof_time_t+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 if test "$cross_compiling" = yes; then
10608 ac_cv_sizeof_time_t
=4
10610 cat >conftest.
$ac_ext <<_ACEOF
10613 cat confdefs.h
>>conftest.
$ac_ext
10614 cat >>conftest.
$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10620 FILE *f=fopen("conftestval", "w");
10622 fprintf(f, "%d\n", sizeof(time_t));
10626 rm -f conftest
$ac_exeext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_sizeof_time_t
=`cat conftestval`
10639 echo "$as_me: program exited with status $ac_status" >&5
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.
$ac_ext >&5
10643 ( exit $ac_status )
10644 ac_cv_sizeof_time_t
=0
10646 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10651 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10652 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10654 cat >>confdefs.h
<<_ACEOF
10655 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10660 # if have pthread_t then define SIZEOF_PTHREAD_T
10662 if test "$ac_cv_kpthread" = "yes"
10663 then CC
="$CC -Kpthread"
10664 elif test "$ac_cv_kthread" = "yes"
10665 then CC
="$CC -Kthread"
10666 elif test "$ac_cv_pthread" = "yes"
10667 then CC
="$CC -pthread"
10669 echo "$as_me:$LINENO: checking for pthread_t" >&5
10670 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10672 cat >conftest.
$ac_ext <<_ACEOF
10675 cat confdefs.h
>>conftest.
$ac_ext
10676 cat >>conftest.
$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 #include <pthread.h>
10682 pthread_t x; x = *(pthread_t*)0;
10687 rm -f conftest.
$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689 (eval $ac_compile) 2>conftest.er1
10691 grep -v '^ *+' conftest.er1
>conftest.err
10693 cat conftest.err
>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try
='test -z "$ac_c_werror_flag"
10697 || test ! -s conftest.err'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try
='test -s conftest.$ac_objext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.
$ac_ext >&5
10715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10716 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10717 echo "${ECHO_T}$have_pthread_t" >&6
10718 if test "$have_pthread_t" = yes ; then
10719 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10720 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10721 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10722 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 if test "$cross_compiling" = yes; then
10726 ac_cv_sizeof_pthread_t
=4
10728 cat >conftest.
$ac_ext <<_ACEOF
10731 cat confdefs.h
>>conftest.
$ac_ext
10732 cat >>conftest.
$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10735 #include <pthread.h>
10738 FILE *f=fopen("conftestval", "w");
10740 fprintf(f, "%d\n", sizeof(pthread_t));
10744 rm -f conftest
$ac_exeext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10746 (eval $ac_link) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_cv_sizeof_pthread_t
=`cat conftestval`
10757 echo "$as_me: program exited with status $ac_status" >&5
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.
$ac_ext >&5
10761 ( exit $ac_status )
10762 ac_cv_sizeof_pthread_t
=0
10764 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10770 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10772 cat >>confdefs.h
<<_ACEOF
10773 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10779 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10780 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10781 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10782 if test "${enable_toolbox_glue+set}" = set; then
10783 enableval
="$enable_toolbox_glue"
10787 if test -z "$enable_toolbox_glue"
10789 case $ac_sys_system/$ac_sys_release in
10791 enable_toolbox_glue
="yes";;
10793 enable_toolbox_glue
="no";;
10796 case "$enable_toolbox_glue" in
10798 extra_machdep_objs
="Python/mactoolboxglue.o"
10799 extra_undefs
="-u _PyMac_Error"
10801 cat >>confdefs.h
<<\_ACEOF
10802 #define USE_TOOLBOX_OBJECT_GLUE 1
10807 extra_machdep_objs
=""
10811 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10812 echo "${ECHO_T}$enable_toolbox_glue" >&6
10815 case $ac_sys_system/$ac_sys_release in
10816 Darwin
/[01234567].
*)
10817 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10820 OTHER_LIBTOOL_OPT
=""
10825 case $ac_sys_system/$ac_sys_release in
10826 Darwin
/[01234567].
*)
10827 LIBTOOL_CRUFT
="-framework System -lcc_dynamic -arch_only `arch`"
10828 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10829 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10831 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10832 if test ${gcc_version} '<' 4.0
10834 LIBTOOL_CRUFT
="-lcc_dynamic"
10838 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10839 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10840 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10843 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10844 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10845 if test "$enable_framework"
10847 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10848 # -F. is needed to allow linking to the framework while
10849 # in the build location.
10851 cat >>confdefs.h
<<\_ACEOF
10852 #define WITH_NEXT_FRAMEWORK 1
10855 echo "$as_me:$LINENO: result: yes" >&5
10856 echo "${ECHO_T}yes" >&6
10858 echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6
10862 echo "$as_me:$LINENO: checking for dyld" >&5
10863 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10864 case $ac_sys_system/$ac_sys_release in
10867 cat >>confdefs.h
<<\_ACEOF
10868 #define WITH_DYLD 1
10871 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10872 echo "${ECHO_T}always on for Darwin" >&6
10875 echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6
10880 # Set info about shared libraries.
10886 # SO is the extension of shared libraries `(including the dot!)
10887 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10888 echo "$as_me:$LINENO: checking SO" >&5
10889 echo $ECHO_N "checking SO... $ECHO_C" >&6
10892 case $ac_sys_system in
10898 # this might also be a termcap variable, see #610332
10900 echo '====================================================================='
10902 echo '+ WARNING: You have set SO in your environment. +'
10903 echo '+ Do you really mean to change the extension for shared libraries? +'
10904 echo '+ Continuing in 10 seconds to let you to ponder. +'
10906 echo '====================================================================='
10909 echo "$as_me:$LINENO: result: $SO" >&5
10910 echo "${ECHO_T}$SO" >&6
10911 # LDSHARED is the ld *command* used to create shared library
10912 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10913 # (Shared libraries in this instance are shared modules to be loaded into
10914 # Python, as opposed to building Python itself as a shared library.)
10915 echo "$as_me:$LINENO: checking LDSHARED" >&5
10916 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10917 if test -z "$LDSHARED"
10919 case $ac_sys_system/$ac_sys_release in
10921 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10922 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10925 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10926 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10928 IRIX
/5*) LDSHARED
="ld -shared";;
10929 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10931 if test "$GCC" = "yes"
10932 then LDSHARED
='$(CC) -shared'
10933 else LDSHARED
='$(CC) -G';
10935 hp
*|HP
*) LDSHARED
="ld -b";;
10936 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10938 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10939 if test "$enable_framework" ; then
10940 # Link against the framework. All externals should be defined.
10941 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10942 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10944 # No framework. Ignore undefined symbols, assuming they come from Python
10945 LDSHARED
="$LDSHARED -undefined suppress"
10947 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10948 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10949 if test "$enable_framework" ; then
10950 # Link against the framework. All externals should be defined.
10951 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10952 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10954 # No framework, use the Python app as bundle-loader
10955 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10956 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10959 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10960 # This allows an extension to be used in any Python
10961 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10962 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10963 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10965 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10966 BLDSHARED
="$LDSHARED"
10968 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10969 if test "$enable_framework" ; then
10970 # Link against the framework. All externals should be defined.
10971 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10972 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10974 # No framework, use the Python app as bundle-loader
10975 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10976 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10980 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10981 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10983 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10985 LDSHARED
="$CC -shared ${LDFLAGS}"
10987 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10989 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
10990 OpenUNIX
*|UnixWare
*)
10991 if test "$GCC" = "yes"
10992 then LDSHARED
='$(CC) -shared'
10993 else LDSHARED
='$(CC) -G'
10995 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
10996 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10997 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
10998 atheos
*) LDSHARED
="gcc -shared";;
11002 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11003 echo "${ECHO_T}$LDSHARED" >&6
11004 BLDSHARED
=${BLDSHARED-$LDSHARED}
11005 # CCSHARED are the C *flags* used to create objects to go into a shared
11006 # library (module) -- this is only needed for a few systems
11007 echo "$as_me:$LINENO: checking CCSHARED" >&5
11008 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11009 if test -z "$CCSHARED"
11011 case $ac_sys_system/$ac_sys_release in
11012 SunOS
*) if test "$GCC" = yes;
11013 then CCSHARED
="-fPIC";
11014 else CCSHARED
="-xcode=pic32";
11016 hp
*|HP
*) if test "$GCC" = yes;
11017 then CCSHARED
="-fPIC";
11018 else CCSHARED
="+z";
11020 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11021 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11022 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11023 OpenUNIX
*|UnixWare
*)
11024 if test "$GCC" = "yes"
11025 then CCSHARED
="-fPIC"
11026 else CCSHARED
="-KPIC"
11029 if test "$GCC" = "yes"
11030 then CCSHARED
="-fPIC"
11031 else CCSHARED
="-Kpic -belf"
11033 Monterey
*) CCSHARED
="-G";;
11034 IRIX
*/6*) case $CC in
11035 *gcc
*) CCSHARED
="-shared";;
11038 atheos
*) CCSHARED
="-fPIC";;
11041 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11042 echo "${ECHO_T}$CCSHARED" >&6
11043 # LINKFORSHARED are the flags passed to the $(CC) command that links
11044 # the python executable -- this is only needed for a few systems
11045 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11046 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11047 if test -z "$LINKFORSHARED"
11049 case $ac_sys_system/$ac_sys_release in
11050 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11052 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11053 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11054 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11055 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11056 # -u libsys_s pulls in all symbols in libsys
11058 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11060 # not used by the core itself but which needs to be in the core so
11061 # that dynamically loaded extension modules have access to it.
11062 # -prebind is no longer used, because it actually seems to give a
11063 # slowdown in stead of a speedup, maybe due to the large number of
11064 # dynamic loads Python does.
11066 LINKFORSHARED
="$extra_undefs"
11067 if test "$enable_framework"
11069 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11071 LINKFORSHARED
="$LINKFORSHARED";;
11072 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11073 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11074 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11075 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11076 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11078 LINKFORSHARED
="-Wl,--export-dynamic"
11080 SunOS
/5*) case $CC in
11082 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11084 LINKFORSHARED
="-Xlinker --export-dynamic"
11088 if test $enable_shared = "no"
11090 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11094 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11095 echo "${ECHO_T}$LINKFORSHARED" >&6
11098 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11099 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11100 if test ! "$LIBRARY" = "$LDLIBRARY"
11102 case $ac_sys_system in
11104 # Cygwin needs CCSHARED when building extension DLLs
11105 # but not when building the interpreter DLL.
11106 CFLAGSFORSHARED
='';;
11108 CFLAGSFORSHARED
='$(CCSHARED)'
11111 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11112 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11114 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11115 # library (with --enable-shared).
11116 # For platforms on which shared libraries are not allowed to have unresolved
11117 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11118 # if it is not required, since it creates a dependency of the shared library
11119 # to LIBS. This, in turn, means that applications linking the shared libpython
11120 # don't need to link LIBS explicitly. The default should be only changed
11121 # on systems where this approach causes problems.
11123 echo "$as_me:$LINENO: checking SHLIBS" >&5
11124 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11125 case "$ac_sys_system" in
11129 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11130 echo "${ECHO_T}$SHLIBS" >&6
11133 # checks for libraries
11135 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11136 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11137 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 ac_check_lib_save_LIBS
=$LIBS
11142 cat >conftest.
$ac_ext <<_ACEOF
11145 cat confdefs.h
>>conftest.
$ac_ext
11146 cat >>conftest.
$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 /* Override any gcc2 internal prototype to avoid an error. */
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11164 rm -f conftest.
$ac_objext conftest
$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>conftest.er1
11168 grep -v '^ *+' conftest.er1
>conftest.err
11170 cat conftest.err
>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } &&
11173 { ac_try
='test -z "$ac_c_werror_flag"
11174 || test ! -s conftest.err'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try
='test -s conftest$ac_exeext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_lib_dl_dlopen
=yes
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.
$ac_ext >&5
11191 ac_cv_lib_dl_dlopen
=no
11193 rm -f conftest.err conftest.
$ac_objext \
11194 conftest
$ac_exeext conftest.
$ac_ext
11195 LIBS
=$ac_check_lib_save_LIBS
11197 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11198 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11199 if test $ac_cv_lib_dl_dlopen = yes; then
11200 cat >>confdefs.h
<<_ACEOF
11201 #define HAVE_LIBDL 1
11207 # Dynamic linking for SunOS/Solaris and SYSV
11209 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11210 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 ac_check_lib_save_LIBS
=$LIBS
11216 cat >conftest.
$ac_ext <<_ACEOF
11219 cat confdefs.h
>>conftest.
$ac_ext
11220 cat >>conftest.
$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11223 /* Override any gcc2 internal prototype to avoid an error. */
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11238 rm -f conftest.
$ac_objext conftest
$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 (eval $ac_link) 2>conftest.er1
11242 grep -v '^ *+' conftest.er1
>conftest.err
11244 cat conftest.err
>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try
='test -z "$ac_c_werror_flag"
11248 || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try
='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_dld_shl_load
=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.
$ac_ext >&5
11265 ac_cv_lib_dld_shl_load
=no
11267 rm -f conftest.err conftest.
$ac_objext \
11268 conftest
$ac_exeext conftest.
$ac_ext
11269 LIBS
=$ac_check_lib_save_LIBS
11271 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11273 if test $ac_cv_lib_dld_shl_load = yes; then
11274 cat >>confdefs.h
<<_ACEOF
11275 #define HAVE_LIBDLD 1
11281 # Dynamic linking for HP-UX
11283 # only check for sem_ini if thread support is requested
11284 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11285 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11286 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11287 if test "${ac_cv_search_sem_init+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 ac_func_search_save_LIBS
=$LIBS
11291 ac_cv_search_sem_init
=no
11292 cat >conftest.
$ac_ext <<_ACEOF
11295 cat confdefs.h
>>conftest.
$ac_ext
11296 cat >>conftest.
$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11299 /* Override any gcc2 internal prototype to avoid an error. */
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11314 rm -f conftest.
$ac_objext conftest
$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>conftest.er1
11318 grep -v '^ *+' conftest.er1
>conftest.err
11320 cat conftest.err
>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try
='test -z "$ac_c_werror_flag"
11324 || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try
='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_search_sem_init
="none required"
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.
$ac_ext >&5
11342 rm -f conftest.err conftest.
$ac_objext \
11343 conftest
$ac_exeext conftest.
$ac_ext
11344 if test "$ac_cv_search_sem_init" = no
; then
11345 for ac_lib
in pthread rt posix4
; do
11346 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11347 cat >conftest.
$ac_ext <<_ACEOF
11350 cat confdefs.h
>>conftest.
$ac_ext
11351 cat >>conftest.
$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11354 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11369 rm -f conftest.
$ac_objext conftest
$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>conftest.er1
11373 grep -v '^ *+' conftest.er1
>conftest.err
11375 cat conftest.err
>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try
='test -z "$ac_c_werror_flag"
11379 || test ! -s conftest.err'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try
='test -s conftest$ac_exeext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 ac_cv_search_sem_init
="-l$ac_lib"
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.
$ac_ext >&5
11398 rm -f conftest.err conftest.
$ac_objext \
11399 conftest
$ac_exeext conftest.
$ac_ext
11402 LIBS
=$ac_func_search_save_LIBS
11404 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11405 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11406 if test "$ac_cv_search_sem_init" != no
; then
11407 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11410 # 'Real Time' functions on Solaris
11411 # posix4 on Solaris 2.6
11412 # pthread (first!) on Linux
11415 # check if we need libintl for locale functions
11416 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11417 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11418 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 ac_check_lib_save_LIBS
=$LIBS
11422 LIBS
="-lintl $LIBS"
11423 cat >conftest.
$ac_ext <<_ACEOF
11426 cat confdefs.h
>>conftest.
$ac_ext
11427 cat >>conftest.
$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11430 /* Override any gcc2 internal prototype to avoid an error. */
11434 /* We use char because int might match the return type of a gcc2
11435 builtin and then its argument prototype would still apply. */
11436 char textdomain ();
11445 rm -f conftest.
$ac_objext conftest
$ac_exeext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>conftest.er1
11449 grep -v '^ *+' conftest.er1
>conftest.err
11451 cat conftest.err
>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try
='test -z "$ac_c_werror_flag"
11455 || test ! -s conftest.err'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try
='test -s conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_cv_lib_intl_textdomain
=yes
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.
$ac_ext >&5
11472 ac_cv_lib_intl_textdomain
=no
11474 rm -f conftest.err conftest.
$ac_objext \
11475 conftest
$ac_exeext conftest.
$ac_ext
11476 LIBS
=$ac_check_lib_save_LIBS
11478 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11479 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11480 if test $ac_cv_lib_intl_textdomain = yes; then
11482 cat >>confdefs.h
<<\_ACEOF
11483 #define WITH_LIBINTL 1
11489 # checks for system dependent C++ extensions support
11490 case "$ac_sys_system" in
11491 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11492 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11493 cat >conftest.
$ac_ext <<_ACEOF
11496 cat confdefs.h
>>conftest.
$ac_ext
11497 cat >>conftest.
$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 #include "/usr/lpp/xlC/include/load.h"
11503 loadAndInit("", 0, "")
11508 rm -f conftest.
$ac_objext conftest
$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>conftest.er1
11512 grep -v '^ *+' conftest.er1
>conftest.err
11514 cat conftest.err
>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try
='test -z "$ac_c_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try
='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11531 cat >>confdefs.h
<<\_ACEOF
11532 #define AIX_GENUINE_CPLUSPLUS 1
11535 echo "$as_me:$LINENO: result: yes" >&5
11536 echo "${ECHO_T}yes" >&6
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.
$ac_ext >&5
11541 echo "$as_me:$LINENO: result: no" >&5
11542 echo "${ECHO_T}no" >&6
11544 rm -f conftest.err conftest.
$ac_objext \
11545 conftest
$ac_exeext conftest.
$ac_ext;;
11549 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11550 # BeOS' sockets are stashed in libnet.
11551 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11552 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11553 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 ac_check_lib_save_LIBS
=$LIBS
11558 cat >conftest.
$ac_ext <<_ACEOF
11561 cat confdefs.h
>>conftest.
$ac_ext
11562 cat >>conftest.
$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11565 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11580 rm -f conftest.
$ac_objext conftest
$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>conftest.er1
11584 grep -v '^ *+' conftest.er1
>conftest.err
11586 cat conftest.err
>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try
='test -z "$ac_c_werror_flag"
11590 || test ! -s conftest.err'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try
='test -s conftest$ac_exeext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_lib_nsl_t_open
=yes
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.
$ac_ext >&5
11607 ac_cv_lib_nsl_t_open
=no
11609 rm -f conftest.err conftest.
$ac_objext \
11610 conftest
$ac_exeext conftest.
$ac_ext
11611 LIBS
=$ac_check_lib_save_LIBS
11613 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11614 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11615 if test $ac_cv_lib_nsl_t_open = yes; then
11619 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11620 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11621 if test "${ac_cv_lib_socket_socket+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_check_lib_save_LIBS
=$LIBS
11625 LIBS
="-lsocket $LIBS $LIBS"
11626 cat >conftest.
$ac_ext <<_ACEOF
11629 cat confdefs.h
>>conftest.
$ac_ext
11630 cat >>conftest.
$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any gcc2 internal prototype to avoid an error. */
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11648 rm -f conftest.
$ac_objext conftest
$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>conftest.er1
11652 grep -v '^ *+' conftest.er1
>conftest.err
11654 cat conftest.err
>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try
='test -z "$ac_c_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try
='test -s conftest$ac_exeext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_cv_lib_socket_socket
=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.
$ac_ext >&5
11675 ac_cv_lib_socket_socket
=no
11677 rm -f conftest.err conftest.
$ac_objext \
11678 conftest
$ac_exeext conftest.
$ac_ext
11679 LIBS
=$ac_check_lib_save_LIBS
11681 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11682 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11683 if test $ac_cv_lib_socket_socket = yes; then
11684 LIBS
="-lsocket $LIBS"
11688 case "$ac_sys_system" in
11690 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11691 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11692 if test "${ac_cv_lib_net_socket+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 ac_check_lib_save_LIBS
=$LIBS
11696 LIBS
="-lnet $LIBS $LIBS"
11697 cat >conftest.
$ac_ext <<_ACEOF
11700 cat confdefs.h
>>conftest.
$ac_ext
11701 cat >>conftest.
$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11704 /* Override any gcc2 internal prototype to avoid an error. */
11708 /* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11719 rm -f conftest.
$ac_objext conftest
$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>conftest.er1
11723 grep -v '^ *+' conftest.er1
>conftest.err
11725 cat conftest.err
>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try
='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try
='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_lib_net_socket
=yes
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.
$ac_ext >&5
11746 ac_cv_lib_net_socket
=no
11748 rm -f conftest.err conftest.
$ac_objext \
11749 conftest
$ac_exeext conftest.
$ac_ext
11750 LIBS
=$ac_check_lib_save_LIBS
11752 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11753 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11754 if test $ac_cv_lib_net_socket = yes; then
11761 echo "$as_me:$LINENO: checking for --with-libs" >&5
11762 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11764 # Check whether --with-libs or --without-libs was given.
11765 if test "${with_libs+set}" = set; then
11766 withval
="$with_libs"
11768 echo "$as_me:$LINENO: result: $withval" >&5
11769 echo "${ECHO_T}$withval" >&6
11770 LIBS
="$withval $LIBS"
11773 echo "$as_me:$LINENO: result: no" >&5
11774 echo "${ECHO_T}no" >&6
11777 # Determine if signalmodule should be used.
11780 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11781 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11783 # Check whether --with-signal-module or --without-signal-module was given.
11784 if test "${with_signal_module+set}" = set; then
11785 withval
="$with_signal_module"
11789 if test -z "$with_signal_module"
11790 then with_signal_module
="yes"
11792 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11793 echo "${ECHO_T}$with_signal_module" >&6
11795 if test "${with_signal_module}" = "yes"; then
11796 USE_SIGNAL_MODULE
=""
11799 USE_SIGNAL_MODULE
="#"
11800 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11803 # This is used to generate Setup.config
11805 USE_THREAD_MODULE
=""
11807 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11808 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11811 # Check whether --with-dec-threads or --without-dec-threads was given.
11812 if test "${with_dec_threads+set}" = set; then
11813 withval
="$with_dec_threads"
11815 echo "$as_me:$LINENO: result: $withval" >&5
11816 echo "${ECHO_T}$withval" >&6
11818 if test "${with_thread+set}" != set; then
11819 with_thread
="$withval";
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11826 # Templates for things AC_DEFINEd more than once.
11827 # For a single AC_DEFINE, no template is needed.
11835 echo "$as_me:$LINENO: checking for --with-threads" >&5
11836 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11838 # Check whether --with-threads or --without-threads was given.
11839 if test "${with_threads+set}" = set; then
11840 withval
="$with_threads"
11844 # --with-thread is deprecated, but check for it anyway
11846 # Check whether --with-thread or --without-thread was given.
11847 if test "${with_thread+set}" = set; then
11848 withval
="$with_thread"
11849 with_threads
=$with_thread
11852 if test -z "$with_threads"
11853 then with_threads
="yes"
11855 echo "$as_me:$LINENO: result: $with_threads" >&5
11856 echo "${ECHO_T}$with_threads" >&6
11859 if test "$with_threads" = "no"
11861 USE_THREAD_MODULE
="#"
11862 elif test "$ac_cv_pthread_is_default" = yes
11864 cat >>confdefs.h
<<\_ACEOF
11865 #define WITH_THREAD 1
11868 # Defining _REENTRANT on system with POSIX threads should not hurt.
11869 cat >>confdefs.h
<<\_ACEOF
11870 #define _REENTRANT 1
11874 THREADOBJ
="Python/thread.o"
11875 elif test "$ac_cv_kpthread" = "yes"
11878 if test "$ac_cv_cxx_thread" = "yes"; then
11879 CXX
="$CXX -Kpthread"
11881 cat >>confdefs.h
<<\_ACEOF
11882 #define WITH_THREAD 1
11886 THREADOBJ
="Python/thread.o"
11887 elif test "$ac_cv_kthread" = "yes"
11890 if test "$ac_cv_cxx_thread" = "yes"; then
11891 CXX
="$CXX -Kthread"
11893 cat >>confdefs.h
<<\_ACEOF
11894 #define WITH_THREAD 1
11898 THREADOBJ
="Python/thread.o"
11899 elif test "$ac_cv_pthread" = "yes"
11902 if test "$ac_cv_cxx_thread" = "yes"; then
11903 CXX
="$CXX -pthread"
11905 cat >>confdefs.h
<<\_ACEOF
11906 #define WITH_THREAD 1
11910 THREADOBJ
="Python/thread.o"
11912 if test ! -z "$with_threads" -a -d "$with_threads"
11913 then LDFLAGS
="$LDFLAGS -L$with_threads"
11915 if test ! -z "$withval" -a -d "$withval"
11916 then LDFLAGS
="$LDFLAGS -L$withval"
11919 # According to the POSIX spec, a pthreads implementation must
11920 # define _POSIX_THREADS in unistd.h. Some apparently don't
11921 # (e.g. gnu pth with pthread emulation)
11922 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11923 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11924 cat >conftest.
$ac_ext <<_ACEOF
11927 cat confdefs.h
>>conftest.
$ac_ext
11928 cat >>conftest.
$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11931 #include <unistd.h>
11932 #ifdef _POSIX_THREADS
11937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11938 $EGREP "yes" >/dev
/null
2>&1; then
11939 unistd_defines_pthreads
=yes
11941 unistd_defines_pthreads
=no
11945 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11946 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11948 cat >>confdefs.h
<<\_ACEOF
11949 #define _REENTRANT 1
11952 if test "${ac_cv_header_cthreads_h+set}" = set; then
11953 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11954 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11955 if test "${ac_cv_header_cthreads_h+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11959 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11961 # Is the header compilable?
11962 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11963 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11964 cat >conftest.
$ac_ext <<_ACEOF
11967 cat confdefs.h
>>conftest.
$ac_ext
11968 cat >>conftest.
$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 $ac_includes_default
11971 #include <cthreads.h>
11973 rm -f conftest.
$ac_objext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>conftest.er1
11977 grep -v '^ *+' conftest.er1
>conftest.err
11979 cat conftest.err
>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try
='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try
='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_header_compiler
=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.
$ac_ext >&5
12000 ac_header_compiler
=no
12002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12004 echo "${ECHO_T}$ac_header_compiler" >&6
12006 # Is the header present?
12007 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12008 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 #include <cthreads.h>
12017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12020 grep -v '^ *+' conftest.er1
>conftest.err
12022 cat conftest.err
>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } >/dev
/null
; then
12025 if test -s conftest.err
; then
12026 ac_cpp_err
=$ac_c_preproc_warn_flag
12027 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12034 if test -z "$ac_cpp_err"; then
12035 ac_header_preproc
=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.
$ac_ext >&5
12040 ac_header_preproc
=no
12042 rm -f conftest.err conftest.
$ac_ext
12043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044 echo "${ECHO_T}$ac_header_preproc" >&6
12046 # So? What about this header?
12047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12049 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12050 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12052 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12053 ac_header_preproc
=yes
12056 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12057 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12059 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12061 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12063 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12065 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12067 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12070 ## ------------------------------------------------ ##
12071 ## Report this to http://www.python.org/python-bugs ##
12072 ## ------------------------------------------------ ##
12075 sed "s/^/$as_me: WARNING: /" >&2
12078 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12079 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12080 if test "${ac_cv_header_cthreads_h+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 ac_cv_header_cthreads_h
=$ac_header_preproc
12085 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12086 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12089 if test $ac_cv_header_cthreads_h = yes; then
12090 cat >>confdefs.h
<<\_ACEOF
12091 #define WITH_THREAD 1
12094 cat >>confdefs.h
<<\_ACEOF
12095 #define C_THREADS 1
12099 cat >>confdefs.h
<<\_ACEOF
12100 #define HURD_C_THREADS 1
12103 LIBS
="$LIBS -lthreads"
12104 THREADOBJ
="Python/thread.o"
12107 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12108 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12109 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12110 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12114 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12116 # Is the header compilable?
12117 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12118 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12119 cat >conftest.
$ac_ext <<_ACEOF
12122 cat confdefs.h
>>conftest.
$ac_ext
12123 cat >>conftest.
$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 $ac_includes_default
12126 #include <mach/cthreads.h>
12128 rm -f conftest.
$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>conftest.er1
12132 grep -v '^ *+' conftest.er1
>conftest.err
12134 cat conftest.err
>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try
='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try
='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_header_compiler
=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.
$ac_ext >&5
12155 ac_header_compiler
=no
12157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12159 echo "${ECHO_T}$ac_header_compiler" >&6
12161 # Is the header present?
12162 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12163 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12164 cat >conftest.
$ac_ext <<_ACEOF
12167 cat confdefs.h
>>conftest.
$ac_ext
12168 cat >>conftest.
$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <mach/cthreads.h>
12172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12175 grep -v '^ *+' conftest.er1
>conftest.err
12177 cat conftest.err
>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev
/null
; then
12180 if test -s conftest.err
; then
12181 ac_cpp_err
=$ac_c_preproc_warn_flag
12182 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12189 if test -z "$ac_cpp_err"; then
12190 ac_header_preproc
=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.
$ac_ext >&5
12195 ac_header_preproc
=no
12197 rm -f conftest.err conftest.
$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12204 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12207 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12208 ac_header_preproc
=yes
12211 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12212 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12214 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12216 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12218 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12220 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12222 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12225 ## ------------------------------------------------ ##
12226 ## Report this to http://www.python.org/python-bugs ##
12227 ## ------------------------------------------------ ##
12230 sed "s/^/$as_me: WARNING: /" >&2
12233 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12234 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12235 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12240 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12241 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12244 if test $ac_cv_header_mach_cthreads_h = yes; then
12245 cat >>confdefs.h
<<\_ACEOF
12246 #define WITH_THREAD 1
12249 cat >>confdefs.h
<<\_ACEOF
12250 #define C_THREADS 1
12254 cat >>confdefs.h
<<\_ACEOF
12255 #define MACH_C_THREADS 1
12258 THREADOBJ
="Python/thread.o"
12261 echo "$as_me:$LINENO: checking for --with-pth" >&5
12262 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12264 # Check whether --with-pth or --without-pth was given.
12265 if test "${with_pth+set}" = set; then
12266 withval
="$with_pth"
12267 echo "$as_me:$LINENO: result: $withval" >&5
12268 echo "${ECHO_T}$withval" >&6
12269 cat >>confdefs.h
<<\_ACEOF
12270 #define WITH_THREAD 1
12274 cat >>confdefs.h
<<\_ACEOF
12279 THREADOBJ
="Python/thread.o"
12281 echo "$as_me:$LINENO: result: no" >&5
12282 echo "${ECHO_T}no" >&6
12284 # Just looking for pthread_create in libpthread is not enough:
12285 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12286 # So we really have to include pthread.h, and then link.
12288 LIBS
="$LIBS -lpthread"
12289 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12290 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12291 cat >conftest.
$ac_ext <<_ACEOF
12294 cat confdefs.h
>>conftest.
$ac_ext
12295 cat >>conftest.
$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 #include <pthread.h>
12299 void * start_routine (void *arg) { exit (0); }
12304 pthread_create (NULL, NULL, start_routine, NULL)
12309 rm -f conftest.
$ac_objext conftest
$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>conftest.er1
12313 grep -v '^ *+' conftest.er1
>conftest.err
12315 cat conftest.err
>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try
='test -z "$ac_c_werror_flag"
12319 || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try
='test -s conftest$ac_exeext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12332 echo "$as_me:$LINENO: result: yes" >&5
12333 echo "${ECHO_T}yes" >&6
12334 cat >>confdefs.h
<<\_ACEOF
12335 #define WITH_THREAD 1
12339 THREADOBJ
="Python/thread.o"
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.
$ac_ext >&5
12346 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12347 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12348 if test "${ac_cv_func_pthread_detach+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 cat >conftest.
$ac_ext <<_ACEOF
12354 cat confdefs.h
>>conftest.
$ac_ext
12355 cat >>conftest.
$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12359 #define pthread_detach innocuous_pthread_detach
12361 /* System header to define __stub macros and hopefully few prototypes,
12362 which can conflict with char pthread_detach (); below.
12363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12364 <limits.h> exists even on freestanding compilers. */
12367 # include <limits.h>
12369 # include <assert.h>
12372 #undef pthread_detach
12374 /* Override any gcc2 internal prototype to avoid an error. */
12379 /* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12381 char pthread_detach ();
12382 /* The GNU C library defines this for functions which it implements
12383 to always fail with ENOSYS. Some functions are actually named
12384 something starting with __ and the normal name is an alias. */
12385 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12388 char (*f) () = pthread_detach;
12397 return f != pthread_detach;
12402 rm -f conftest.
$ac_objext conftest
$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12406 grep -v '^ *+' conftest.er1
>conftest.err
12408 cat conftest.err
>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try
='test -z "$ac_c_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try
='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_func_pthread_detach
=yes
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.
$ac_ext >&5
12429 ac_cv_func_pthread_detach
=no
12431 rm -f conftest.err conftest.
$ac_objext \
12432 conftest
$ac_exeext conftest.
$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12435 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12436 if test $ac_cv_func_pthread_detach = yes; then
12437 cat >>confdefs.h
<<\_ACEOF
12438 #define WITH_THREAD 1
12442 THREADOBJ
="Python/thread.o"
12445 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12446 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12447 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12448 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12452 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12454 # Is the header compilable?
12455 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12456 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12457 cat >conftest.
$ac_ext <<_ACEOF
12460 cat confdefs.h
>>conftest.
$ac_ext
12461 cat >>conftest.
$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12464 #include <atheos/threads.h>
12466 rm -f conftest.
$ac_objext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468 (eval $ac_compile) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1
>conftest.err
12472 cat conftest.err
>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try
='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try
='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_header_compiler
=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.
$ac_ext >&5
12493 ac_header_compiler
=no
12495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12497 echo "${ECHO_T}$ac_header_compiler" >&6
12499 # Is the header present?
12500 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12501 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12502 cat >conftest.
$ac_ext <<_ACEOF
12505 cat confdefs.h
>>conftest.
$ac_ext
12506 cat >>conftest.
$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 #include <atheos/threads.h>
12510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12511 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12513 grep -v '^ *+' conftest.er1
>conftest.err
12515 cat conftest.err
>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } >/dev
/null
; then
12518 if test -s conftest.err
; then
12519 ac_cpp_err
=$ac_c_preproc_warn_flag
12520 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12527 if test -z "$ac_cpp_err"; then
12528 ac_header_preproc
=yes
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.
$ac_ext >&5
12533 ac_header_preproc
=no
12535 rm -f conftest.err conftest.
$ac_ext
12536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12537 echo "${ECHO_T}$ac_header_preproc" >&6
12539 # So? What about this header?
12540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12542 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12543 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12545 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12546 ac_header_preproc
=yes
12549 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12550 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12552 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12554 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12555 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12556 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12558 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12560 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12563 ## ------------------------------------------------ ##
12564 ## Report this to http://www.python.org/python-bugs ##
12565 ## ------------------------------------------------ ##
12568 sed "s/^/$as_me: WARNING: /" >&2
12571 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12572 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12573 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12578 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12579 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12582 if test $ac_cv_header_atheos_threads_h = yes; then
12583 cat >>confdefs.h
<<\_ACEOF
12584 #define WITH_THREAD 1
12588 cat >>confdefs.h
<<\_ACEOF
12589 #define ATHEOS_THREADS 1
12592 THREADOBJ
="Python/thread.o"
12595 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12596 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12597 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12598 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12602 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12604 # Is the header compilable?
12605 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12606 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12607 cat >conftest.
$ac_ext <<_ACEOF
12610 cat confdefs.h
>>conftest.
$ac_ext
12611 cat >>conftest.
$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 $ac_includes_default
12614 #include <kernel/OS.h>
12616 rm -f conftest.
$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1
>conftest.err
12622 cat conftest.err
>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try
='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try
='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_header_compiler
=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.
$ac_ext >&5
12643 ac_header_compiler
=no
12645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12647 echo "${ECHO_T}$ac_header_compiler" >&6
12649 # Is the header present?
12650 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12651 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12652 cat >conftest.
$ac_ext <<_ACEOF
12655 cat confdefs.h
>>conftest.
$ac_ext
12656 cat >>conftest.
$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 #include <kernel/OS.h>
12660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12663 grep -v '^ *+' conftest.er1
>conftest.err
12665 cat conftest.err
>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } >/dev
/null
; then
12668 if test -s conftest.err
; then
12669 ac_cpp_err
=$ac_c_preproc_warn_flag
12670 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12677 if test -z "$ac_cpp_err"; then
12678 ac_header_preproc
=yes
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.
$ac_ext >&5
12683 ac_header_preproc
=no
12685 rm -f conftest.err conftest.
$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 echo "${ECHO_T}$ac_header_preproc" >&6
12689 # So? What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12692 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12693 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12695 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12696 ac_header_preproc
=yes
12699 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12700 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12702 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12704 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12706 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12708 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12710 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12713 ## ------------------------------------------------ ##
12714 ## Report this to http://www.python.org/python-bugs ##
12715 ## ------------------------------------------------ ##
12718 sed "s/^/$as_me: WARNING: /" >&2
12721 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12722 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12723 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12728 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12729 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12732 if test $ac_cv_header_kernel_OS_h = yes; then
12733 cat >>confdefs.h
<<\_ACEOF
12734 #define WITH_THREAD 1
12738 cat >>confdefs.h
<<\_ACEOF
12739 #define BEOS_THREADS 1
12742 THREADOBJ
="Python/thread.o"
12745 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12746 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12747 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_check_lib_save_LIBS
=$LIBS
12751 LIBS
="-lpthreads $LIBS"
12752 cat >conftest.
$ac_ext <<_ACEOF
12755 cat confdefs.h
>>conftest.
$ac_ext
12756 cat >>conftest.
$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any gcc2 internal prototype to avoid an error. */
12763 /* We use char because int might match the return type of a gcc2
12764 builtin and then its argument prototype would still apply. */
12765 char pthread_create ();
12774 rm -f conftest.
$ac_objext conftest
$ac_exeext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>conftest.er1
12778 grep -v '^ *+' conftest.er1
>conftest.err
12780 cat conftest.err
>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try
='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try
='test -s conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_cv_lib_pthreads_pthread_create
=yes
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.
$ac_ext >&5
12801 ac_cv_lib_pthreads_pthread_create
=no
12803 rm -f conftest.err conftest.
$ac_objext \
12804 conftest
$ac_exeext conftest.
$ac_ext
12805 LIBS
=$ac_check_lib_save_LIBS
12807 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12808 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12809 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12810 cat >>confdefs.h
<<\_ACEOF
12811 #define WITH_THREAD 1
12815 LIBS
="$LIBS -lpthreads"
12816 THREADOBJ
="Python/thread.o"
12819 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12820 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12821 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 ac_check_lib_save_LIBS
=$LIBS
12826 cat >conftest.
$ac_ext <<_ACEOF
12829 cat confdefs.h
>>conftest.
$ac_ext
12830 cat >>conftest.
$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12833 /* Override any gcc2 internal prototype to avoid an error. */
12837 /* We use char because int might match the return type of a gcc2
12838 builtin and then its argument prototype would still apply. */
12839 char pthread_create ();
12848 rm -f conftest.
$ac_objext conftest
$ac_exeext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850 (eval $ac_link) 2>conftest.er1
12852 grep -v '^ *+' conftest.er1
>conftest.err
12854 cat conftest.err
>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try
='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try
='test -s conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_lib_c_r_pthread_create
=yes
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.
$ac_ext >&5
12875 ac_cv_lib_c_r_pthread_create
=no
12877 rm -f conftest.err conftest.
$ac_objext \
12878 conftest
$ac_exeext conftest.
$ac_ext
12879 LIBS
=$ac_check_lib_save_LIBS
12881 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12882 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12883 if test $ac_cv_lib_c_r_pthread_create = yes; then
12884 cat >>confdefs.h
<<\_ACEOF
12885 #define WITH_THREAD 1
12890 THREADOBJ
="Python/thread.o"
12893 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12894 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12895 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 ac_check_lib_save_LIBS
=$LIBS
12899 LIBS
="-lpthread $LIBS"
12900 cat >conftest.
$ac_ext <<_ACEOF
12903 cat confdefs.h
>>conftest.
$ac_ext
12904 cat >>conftest.
$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* Override any gcc2 internal prototype to avoid an error. */
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12913 char __pthread_create_system ();
12917 __pthread_create_system ();
12922 rm -f conftest.
$ac_objext conftest
$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>conftest.er1
12926 grep -v '^ *+' conftest.er1
>conftest.err
12928 cat conftest.err
>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try
='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try
='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_lib_pthread___pthread_create_system
=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.
$ac_ext >&5
12949 ac_cv_lib_pthread___pthread_create_system
=no
12951 rm -f conftest.err conftest.
$ac_objext \
12952 conftest
$ac_exeext conftest.
$ac_ext
12953 LIBS
=$ac_check_lib_save_LIBS
12955 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12956 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12957 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12958 cat >>confdefs.h
<<\_ACEOF
12959 #define WITH_THREAD 1
12963 LIBS
="$LIBS -lpthread"
12964 THREADOBJ
="Python/thread.o"
12967 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12968 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12969 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 ac_check_lib_save_LIBS
=$LIBS
12974 cat >conftest.
$ac_ext <<_ACEOF
12977 cat confdefs.h
>>conftest.
$ac_ext
12978 cat >>conftest.
$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12981 /* Override any gcc2 internal prototype to avoid an error. */
12985 /* We use char because int might match the return type of a gcc2
12986 builtin and then its argument prototype would still apply. */
12987 char pthread_create ();
12996 rm -f conftest.
$ac_objext conftest
$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
13000 grep -v '^ *+' conftest.er1
>conftest.err
13002 cat conftest.err
>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try
='test -z "$ac_c_werror_flag"
13006 || test ! -s conftest.err'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try
='test -s conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_lib_cma_pthread_create
=yes
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.
$ac_ext >&5
13023 ac_cv_lib_cma_pthread_create
=no
13025 rm -f conftest.err conftest.
$ac_objext \
13026 conftest
$ac_exeext conftest.
$ac_ext
13027 LIBS
=$ac_check_lib_save_LIBS
13029 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13030 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13031 if test $ac_cv_lib_cma_pthread_create = yes; then
13032 cat >>confdefs.h
<<\_ACEOF
13033 #define WITH_THREAD 1
13038 THREADOBJ
="Python/thread.o"
13041 USE_THREAD_MODULE
="#"
13060 rm -f conftest.err conftest.
$ac_objext \
13061 conftest
$ac_exeext conftest.
$ac_ext
13070 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13071 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13072 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 ac_check_lib_save_LIBS
=$LIBS
13077 cat >conftest.
$ac_ext <<_ACEOF
13080 cat confdefs.h
>>conftest.
$ac_ext
13081 cat >>conftest.
$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13084 /* Override any gcc2 internal prototype to avoid an error. */
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13099 rm -f conftest.
$ac_objext conftest
$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>conftest.er1
13103 grep -v '^ *+' conftest.er1
>conftest.err
13105 cat conftest.err
>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try
='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try
='test -s conftest$ac_exeext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_lib_mpc_usconfig
=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.
$ac_ext >&5
13126 ac_cv_lib_mpc_usconfig
=no
13128 rm -f conftest.err conftest.
$ac_objext \
13129 conftest
$ac_exeext conftest.
$ac_ext
13130 LIBS
=$ac_check_lib_save_LIBS
13132 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13133 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13134 if test $ac_cv_lib_mpc_usconfig = yes; then
13135 cat >>confdefs.h
<<\_ACEOF
13136 #define WITH_THREAD 1
13140 THREADOBJ
="Python/thread.o"
13141 USE_THREAD_MODULE
=""
13145 if test "$posix_threads" != "yes"; then
13146 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13147 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13148 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 ac_check_lib_save_LIBS
=$LIBS
13152 LIBS
="-lthread $LIBS"
13153 cat >conftest.
$ac_ext <<_ACEOF
13156 cat confdefs.h
>>conftest.
$ac_ext
13157 cat >>conftest.
$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13160 /* Override any gcc2 internal prototype to avoid an error. */
13164 /* We use char because int might match the return type of a gcc2
13165 builtin and then its argument prototype would still apply. */
13166 char thr_create ();
13175 rm -f conftest.
$ac_objext conftest
$ac_exeext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13177 (eval $ac_link) 2>conftest.er1
13179 grep -v '^ *+' conftest.er1
>conftest.err
13181 cat conftest.err
>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try
='test -z "$ac_c_werror_flag"
13185 || test ! -s conftest.err'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try
='test -s conftest$ac_exeext'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13197 ac_cv_lib_thread_thr_create
=yes
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.
$ac_ext >&5
13202 ac_cv_lib_thread_thr_create
=no
13204 rm -f conftest.err conftest.
$ac_objext \
13205 conftest
$ac_exeext conftest.
$ac_ext
13206 LIBS
=$ac_check_lib_save_LIBS
13208 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13209 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13210 if test $ac_cv_lib_thread_thr_create = yes; then
13211 cat >>confdefs.h
<<\_ACEOF
13212 #define WITH_THREAD 1
13215 LIBS
="$LIBS -lthread"
13216 THREADOBJ
="Python/thread.o"
13217 USE_THREAD_MODULE
=""
13222 if test "$USE_THREAD_MODULE" != "#"
13224 # If the above checks didn't disable threads, (at least) OSF1
13225 # needs this '-threads' argument during linking.
13226 case $ac_sys_system in
13227 OSF1
) LDLAST
=-threads;;
13232 if test "$posix_threads" = "yes"; then
13233 if test "$unistd_defines_pthreads" = "no"; then
13235 cat >>confdefs.h
<<\_ACEOF
13236 #define _POSIX_THREADS 1
13241 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13242 case $ac_sys_system/$ac_sys_release in
13244 cat >>confdefs.h
<<\_ACEOF
13245 #define HAVE_PTHREAD_DESTRUCTOR 1
13250 cat >>confdefs.h
<<\_ACEOF
13251 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13257 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13258 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13259 if test "${ac_cv_pthread_system_supported+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 if test "$cross_compiling" = yes; then
13263 ac_cv_pthread_system_supported
=no
13265 cat >conftest.
$ac_ext <<_ACEOF
13268 cat confdefs.h
>>conftest.
$ac_ext
13269 cat >>conftest.
$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 #include <pthread.h>
13272 void *foo(void *parm) {
13276 pthread_attr_t attr;
13278 if (pthread_attr_init(&attr)) exit(-1);
13279 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13280 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13284 rm -f conftest
$ac_exeext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13286 (eval $ac_link) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_pthread_system_supported
=yes
13297 echo "$as_me: program exited with status $ac_status" >&5
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.
$ac_ext >&5
13301 ( exit $ac_status )
13302 ac_cv_pthread_system_supported
=no
13304 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13309 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13310 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13311 if test "$ac_cv_pthread_system_supported" = "yes"; then
13313 cat >>confdefs.h
<<\_ACEOF
13314 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13319 for ac_func
in pthread_sigmask
13321 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13322 echo "$as_me:$LINENO: checking for $ac_func" >&5
13323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13324 if eval "test \"\${$as_ac_var+set}\" = set"; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 cat >conftest.
$ac_ext <<_ACEOF
13330 cat confdefs.h
>>conftest.
$ac_ext
13331 cat >>conftest.
$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13335 #define $ac_func innocuous_$ac_func
13337 /* System header to define __stub macros and hopefully few prototypes,
13338 which can conflict with char $ac_func (); below.
13339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13340 <limits.h> exists even on freestanding compilers. */
13343 # include <limits.h>
13345 # include <assert.h>
13350 /* Override any gcc2 internal prototype to avoid an error. */
13355 /* We use char because int might match the return type of a gcc2
13356 builtin and then its argument prototype would still apply. */
13358 /* The GNU C library defines this for functions which it implements
13359 to always fail with ENOSYS. Some functions are actually named
13360 something starting with __ and the normal name is an alias. */
13361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13364 char (*f) () = $ac_func;
13373 return f != $ac_func;
13378 rm -f conftest.
$ac_objext conftest
$ac_exeext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>conftest.er1
13382 grep -v '^ *+' conftest.er1
>conftest.err
13384 cat conftest.err
>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try
='test -z "$ac_c_werror_flag"
13388 || test ! -s conftest.err'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; } &&
13394 { ac_try
='test -s conftest$ac_exeext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 eval "$as_ac_var=yes"
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.
$ac_ext >&5
13405 eval "$as_ac_var=no"
13407 rm -f conftest.err conftest.
$ac_objext \
13408 conftest
$ac_exeext conftest.
$ac_ext
13410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13412 if test `eval echo '${'$as_ac_var'}'` = yes; then
13413 cat >>confdefs.h
<<_ACEOF
13414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13416 case $ac_sys_system in
13419 cat >>confdefs.h
<<\_ACEOF
13420 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13431 # Check for enable-ipv6
13434 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13435 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13436 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13437 if test "${enable_ipv6+set}" = set; then
13438 enableval
="$enable_ipv6"
13439 case "$enableval" in
13441 echo "$as_me:$LINENO: result: no" >&5
13442 echo "${ECHO_T}no" >&6
13445 *) echo "$as_me:$LINENO: result: yes" >&5
13446 echo "${ECHO_T}yes" >&6
13447 cat >>confdefs.h
<<\_ACEOF
13448 #define ENABLE_IPV6 1
13456 if test "$cross_compiling" = yes; then
13457 echo "$as_me:$LINENO: result: no" >&5
13458 echo "${ECHO_T}no" >&6
13462 cat >conftest.
$ac_ext <<_ACEOF
13465 cat confdefs.h
>>conftest.
$ac_ext
13466 cat >>conftest.
$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 /* AF_INET6 available check */
13469 #include <sys/types.h>
13470 #include <sys/socket.h>
13473 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13480 rm -f conftest
$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 echo "$as_me:$LINENO: result: yes" >&5
13492 echo "${ECHO_T}yes" >&6
13495 echo "$as_me: program exited with status $ac_status" >&5
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.
$ac_ext >&5
13499 ( exit $ac_status )
13500 echo "$as_me:$LINENO: result: no" >&5
13501 echo "${ECHO_T}no" >&6
13504 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13507 if test "$ipv6" = "yes"; then
13508 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13509 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13510 cat >conftest.
$ac_ext <<_ACEOF
13513 cat confdefs.h
>>conftest.
$ac_ext
13514 cat >>conftest.
$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <sys/types.h>
13517 #include <netinet/in.h>
13521 struct sockaddr_in6 x;
13527 rm -f conftest.
$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13531 grep -v '^ *+' conftest.er1
>conftest.err
13533 cat conftest.err
>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try
='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try
='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 echo "$as_me:$LINENO: result: yes" >&5
13550 echo "${ECHO_T}yes" >&6
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.
$ac_ext >&5
13556 echo "$as_me:$LINENO: result: no" >&5
13557 echo "${ECHO_T}no" >&6
13560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13563 if test "$ipv6" = "yes"; then
13564 cat >>confdefs.h
<<\_ACEOF
13565 #define ENABLE_IPV6 1
13576 if test "$ipv6" = "yes"; then
13577 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13578 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13579 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13583 cat >conftest.
$ac_ext <<_ACEOF
13586 cat confdefs.h
>>conftest.
$ac_ext
13587 cat >>conftest.
$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 #include <netinet/in.h>
13591 #ifdef IPV6_INRIA_VERSION
13595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13596 $EGREP "yes" >/dev
/null
2>&1; then
13603 cat >conftest.
$ac_ext <<_ACEOF
13606 cat confdefs.h
>>conftest.
$ac_ext
13607 cat >>conftest.
$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 #include <netinet/in.h>
13615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616 $EGREP "yes" >/dev
/null
2>&1; then
13619 ipv6libdir
=/usr
/local
/v
6/lib
13626 cat >conftest.
$ac_ext <<_ACEOF
13629 cat confdefs.h
>>conftest.
$ac_ext
13630 cat >>conftest.
$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 #include <features.h>
13634 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13639 $EGREP "yes" >/dev
/null
2>&1; then
13647 if test -d /usr
/inet6
; then
13650 ipv6libdir
=/usr
/inet
6/lib
13651 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13655 if test -f /etc
/netconfig
; then
13656 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13663 cat >conftest.
$ac_ext <<_ACEOF
13666 cat confdefs.h
>>conftest.
$ac_ext
13667 cat >>conftest.
$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13670 #include <sys/param.h>
13671 #ifdef _TOSHIBA_INET6
13675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13676 $EGREP "yes" >/dev
/null
2>&1; then
13679 ipv6libdir
=/usr
/local
/v
6/lib
13685 cat >conftest.
$ac_ext <<_ACEOF
13688 cat confdefs.h
>>conftest.
$ac_ext
13689 cat >>conftest.
$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13692 #include </usr/local/v6/include/sys/v6config.h>
13697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13698 $EGREP "yes" >/dev
/null
2>&1; then
13701 ipv6libdir
=/usr
/local
/v
6/lib
;
13702 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13708 cat >conftest.
$ac_ext <<_ACEOF
13711 cat confdefs.h
>>conftest.
$ac_ext
13712 cat >>conftest.
$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 #include <sys/param.h>
13716 #ifdef _ZETA_MINAMI_INET6
13720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13721 $EGREP "yes" >/dev
/null
2>&1; then
13724 ipv6libdir
=/usr
/local
/v
6/lib
13730 if test "$ipv6type" != "unknown"; then
13734 echo "$as_me:$LINENO: result: $ipv6type" >&5
13735 echo "${ECHO_T}$ipv6type" >&6
13738 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13739 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13740 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13741 echo "using lib$ipv6lib"
13743 if test $ipv6trylibc = "yes"; then
13746 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13747 echo "You need to fetch lib$ipv6lib.a from appropriate"
13748 echo 'ipv6 kit and compile beforehand.'
13754 # Check for --with-doc-strings
13755 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13756 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13758 # Check whether --with-doc-strings or --without-doc-strings was given.
13759 if test "${with_doc_strings+set}" = set; then
13760 withval
="$with_doc_strings"
13764 if test -z "$with_doc_strings"
13765 then with_doc_strings
="yes"
13767 if test "$with_doc_strings" != "no"
13770 cat >>confdefs.h
<<\_ACEOF
13771 #define WITH_DOC_STRINGS 1
13775 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13776 echo "${ECHO_T}$with_doc_strings" >&6
13778 # Check for Python-specific malloc support
13779 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13780 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13782 # Check whether --with-tsc or --without-tsc was given.
13783 if test "${with_tsc+set}" = set; then
13784 withval
="$with_tsc"
13786 if test "$withval" != no
13789 cat >>confdefs.h
<<\_ACEOF
13793 echo "$as_me:$LINENO: result: yes" >&5
13794 echo "${ECHO_T}yes" >&6
13795 else echo "$as_me:$LINENO: result: no" >&5
13796 echo "${ECHO_T}no" >&6
13799 echo "$as_me:$LINENO: result: no" >&5
13800 echo "${ECHO_T}no" >&6
13803 # Check for Python-specific malloc support
13804 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13805 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13807 # Check whether --with-pymalloc or --without-pymalloc was given.
13808 if test "${with_pymalloc+set}" = set; then
13809 withval
="$with_pymalloc"
13813 if test -z "$with_pymalloc"
13814 then with_pymalloc
="yes"
13816 if test "$with_pymalloc" != "no"
13819 cat >>confdefs.h
<<\_ACEOF
13820 #define WITH_PYMALLOC 1
13824 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13825 echo "${ECHO_T}$with_pymalloc" >&6
13827 # Check for --with-wctype-functions
13828 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13829 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13831 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13832 if test "${with_wctype_functions+set}" = set; then
13833 withval
="$with_wctype_functions"
13835 if test "$withval" != no
13838 cat >>confdefs.h
<<\_ACEOF
13839 #define WANT_WCTYPE_FUNCTIONS 1
13842 echo "$as_me:$LINENO: result: yes" >&5
13843 echo "${ECHO_T}yes" >&6
13844 else echo "$as_me:$LINENO: result: no" >&5
13845 echo "${ECHO_T}no" >&6
13848 echo "$as_me:$LINENO: result: no" >&5
13849 echo "${ECHO_T}no" >&6
13852 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13856 # the dlopen() function means we might want to use dynload_shlib.o. some
13857 # platforms, such as AIX, have dlopen(), but don't want to use it.
13859 for ac_func
in dlopen
13861 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13862 echo "$as_me:$LINENO: checking for $ac_func" >&5
13863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13864 if eval "test \"\${$as_ac_var+set}\" = set"; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 cat >conftest.
$ac_ext <<_ACEOF
13870 cat confdefs.h
>>conftest.
$ac_ext
13871 cat >>conftest.
$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13875 #define $ac_func innocuous_$ac_func
13877 /* System header to define __stub macros and hopefully few prototypes,
13878 which can conflict with char $ac_func (); below.
13879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13880 <limits.h> exists even on freestanding compilers. */
13883 # include <limits.h>
13885 # include <assert.h>
13890 /* Override any gcc2 internal prototype to avoid an error. */
13895 /* We use char because int might match the return type of a gcc2
13896 builtin and then its argument prototype would still apply. */
13898 /* The GNU C library defines this for functions which it implements
13899 to always fail with ENOSYS. Some functions are actually named
13900 something starting with __ and the normal name is an alias. */
13901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13904 char (*f) () = $ac_func;
13913 return f != $ac_func;
13918 rm -f conftest.
$ac_objext conftest
$ac_exeext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920 (eval $ac_link) 2>conftest.er1
13922 grep -v '^ *+' conftest.er1
>conftest.err
13924 cat conftest.err
>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try
='test -z "$ac_c_werror_flag"
13928 || test ! -s conftest.err'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; } &&
13934 { ac_try
='test -s conftest$ac_exeext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 eval "$as_ac_var=yes"
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.
$ac_ext >&5
13945 eval "$as_ac_var=no"
13947 rm -f conftest.err conftest.
$ac_objext \
13948 conftest
$ac_exeext conftest.
$ac_ext
13950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13952 if test `eval echo '${'$as_ac_var'}'` = yes; then
13953 cat >>confdefs.h
<<_ACEOF
13954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13961 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13962 # loading of modules.
13964 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13965 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13966 if test -z "$DYNLOADFILE"
13968 case $ac_sys_system/$ac_sys_release in
13969 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13970 if test "$ac_cv_func_dlopen" = yes
13971 then DYNLOADFILE
="dynload_shlib.o"
13972 else DYNLOADFILE
="dynload_aix.o"
13975 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
13976 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
13977 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
13978 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
13980 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13981 # out any dynamic loading
13982 if test "$ac_cv_func_dlopen" = yes
13983 then DYNLOADFILE
="dynload_shlib.o"
13984 else DYNLOADFILE
="dynload_stub.o"
13989 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13990 echo "${ECHO_T}$DYNLOADFILE" >&6
13991 if test "$DYNLOADFILE" != "dynload_stub.o"
13994 cat >>confdefs.h
<<\_ACEOF
13995 #define HAVE_DYNAMIC_LOADING 1
14000 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14003 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14004 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14005 if test -z "$MACHDEP_OBJS"
14007 MACHDEP_OBJS
=$extra_machdep_objs
14009 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14011 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14012 echo "${ECHO_T}MACHDEP_OBJS" >&6
14014 # checks for library functions
14089 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14090 execv fork fpathconf ftime ftruncate \
14091 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14092 getpriority getpwent getspnam getspent getsid getwd \
14093 kill killpg lchown lstat
mkfifo mknod mktime \
14094 mremap nice pathconf pause plock poll pthread_init \
14095 putenv readlink realpath \
14096 select setegid seteuid setgid \
14097 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14098 sigaction siginterrupt sigrelse strftime \
14099 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14100 truncate uname unsetenv utimes waitpid wcscoll _getpty
14102 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_var+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 cat >conftest.
$ac_ext <<_ACEOF
14111 cat confdefs.h
>>conftest.
$ac_ext
14112 cat >>conftest.
$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14116 #define $ac_func innocuous_$ac_func
14118 /* System header to define __stub macros and hopefully few prototypes,
14119 which can conflict with char $ac_func (); below.
14120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14121 <limits.h> exists even on freestanding compilers. */
14124 # include <limits.h>
14126 # include <assert.h>
14131 /* Override any gcc2 internal prototype to avoid an error. */
14136 /* We use char because int might match the return type of a gcc2
14137 builtin and then its argument prototype would still apply. */
14139 /* The GNU C library defines this for functions which it implements
14140 to always fail with ENOSYS. Some functions are actually named
14141 something starting with __ and the normal name is an alias. */
14142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14145 char (*f) () = $ac_func;
14154 return f != $ac_func;
14159 rm -f conftest.
$ac_objext conftest
$ac_exeext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14161 (eval $ac_link) 2>conftest.er1
14163 grep -v '^ *+' conftest.er1
>conftest.err
14165 cat conftest.err
>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try
='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try
='test -s conftest$ac_exeext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 eval "$as_ac_var=yes"
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.
$ac_ext >&5
14186 eval "$as_ac_var=no"
14188 rm -f conftest.err conftest.
$ac_objext \
14189 conftest
$ac_exeext conftest.
$ac_ext
14191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14193 if test `eval echo '${'$as_ac_var'}'` = yes; then
14194 cat >>confdefs.h
<<_ACEOF
14195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14202 # For some functions, having a definition is not sufficient, since
14203 # we want to take their address.
14204 echo "$as_me:$LINENO: checking for chroot" >&5
14205 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14206 cat >conftest.
$ac_ext <<_ACEOF
14209 cat confdefs.h
>>conftest.
$ac_ext
14210 cat >>conftest.
$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 #include <unistd.h>
14221 rm -f conftest.
$ac_objext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14225 grep -v '^ *+' conftest.er1
>conftest.err
14227 cat conftest.err
>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try
='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try
='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14244 cat >>confdefs.h
<<\_ACEOF
14245 #define HAVE_CHROOT 1
14248 echo "$as_me:$LINENO: result: yes" >&5
14249 echo "${ECHO_T}yes" >&6
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.
$ac_ext >&5
14254 echo "$as_me:$LINENO: result: no" >&5
14255 echo "${ECHO_T}no" >&6
14258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14259 echo "$as_me:$LINENO: checking for link" >&5
14260 echo $ECHO_N "checking for link... $ECHO_C" >&6
14261 cat >conftest.
$ac_ext <<_ACEOF
14264 cat confdefs.h
>>conftest.
$ac_ext
14265 cat >>conftest.
$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <unistd.h>
14276 rm -f conftest.
$ac_objext
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278 (eval $ac_compile) 2>conftest.er1
14280 grep -v '^ *+' conftest.er1
>conftest.err
14282 cat conftest.err
>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try
='test -z "$ac_c_werror_flag"
14286 || test ! -s conftest.err'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try
='test -s conftest.$ac_objext'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14299 cat >>confdefs.h
<<\_ACEOF
14300 #define HAVE_LINK 1
14303 echo "$as_me:$LINENO: result: yes" >&5
14304 echo "${ECHO_T}yes" >&6
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.
$ac_ext >&5
14309 echo "$as_me:$LINENO: result: no" >&5
14310 echo "${ECHO_T}no" >&6
14313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14314 echo "$as_me:$LINENO: checking for symlink" >&5
14315 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14316 cat >conftest.
$ac_ext <<_ACEOF
14319 cat confdefs.h
>>conftest.
$ac_ext
14320 cat >>conftest.
$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <unistd.h>
14331 rm -f conftest.
$ac_objext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14333 (eval $ac_compile) 2>conftest.er1
14335 grep -v '^ *+' conftest.er1
>conftest.err
14337 cat conftest.err
>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try
='test -z "$ac_c_werror_flag"
14341 || test ! -s conftest.err'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try
='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14354 cat >>confdefs.h
<<\_ACEOF
14355 #define HAVE_SYMLINK 1
14358 echo "$as_me:$LINENO: result: yes" >&5
14359 echo "${ECHO_T}yes" >&6
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.
$ac_ext >&5
14364 echo "$as_me:$LINENO: result: no" >&5
14365 echo "${ECHO_T}no" >&6
14368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14369 echo "$as_me:$LINENO: checking for fchdir" >&5
14370 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14371 cat >conftest.
$ac_ext <<_ACEOF
14374 cat confdefs.h
>>conftest.
$ac_ext
14375 cat >>conftest.
$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 #include <unistd.h>
14386 rm -f conftest.
$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388 (eval $ac_compile) 2>conftest.er1
14390 grep -v '^ *+' conftest.er1
>conftest.err
14392 cat conftest.err
>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try
='test -z "$ac_c_werror_flag"
14396 || test ! -s conftest.err'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try
='test -s conftest.$ac_objext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14409 cat >>confdefs.h
<<\_ACEOF
14410 #define HAVE_FCHDIR 1
14413 echo "$as_me:$LINENO: result: yes" >&5
14414 echo "${ECHO_T}yes" >&6
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.
$ac_ext >&5
14419 echo "$as_me:$LINENO: result: no" >&5
14420 echo "${ECHO_T}no" >&6
14423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14424 echo "$as_me:$LINENO: checking for fsync" >&5
14425 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14426 cat >conftest.
$ac_ext <<_ACEOF
14429 cat confdefs.h
>>conftest.
$ac_ext
14430 cat >>conftest.
$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 #include <unistd.h>
14441 rm -f conftest.
$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443 (eval $ac_compile) 2>conftest.er1
14445 grep -v '^ *+' conftest.er1
>conftest.err
14447 cat conftest.err
>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try
='test -z "$ac_c_werror_flag"
14451 || test ! -s conftest.err'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; } &&
14457 { ac_try
='test -s conftest.$ac_objext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14464 cat >>confdefs.h
<<\_ACEOF
14465 #define HAVE_FSYNC 1
14468 echo "$as_me:$LINENO: result: yes" >&5
14469 echo "${ECHO_T}yes" >&6
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.
$ac_ext >&5
14474 echo "$as_me:$LINENO: result: no" >&5
14475 echo "${ECHO_T}no" >&6
14478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14479 echo "$as_me:$LINENO: checking for fdatasync" >&5
14480 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14481 cat >conftest.
$ac_ext <<_ACEOF
14484 cat confdefs.h
>>conftest.
$ac_ext
14485 cat >>conftest.
$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 #include <unistd.h>
14496 rm -f conftest.
$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>conftest.er1
14500 grep -v '^ *+' conftest.er1
>conftest.err
14502 cat conftest.err
>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try
='test -z "$ac_c_werror_flag"
14506 || test ! -s conftest.err'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try
='test -s conftest.$ac_objext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14519 cat >>confdefs.h
<<\_ACEOF
14520 #define HAVE_FDATASYNC 1
14523 echo "$as_me:$LINENO: result: yes" >&5
14524 echo "${ECHO_T}yes" >&6
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.
$ac_ext >&5
14529 echo "$as_me:$LINENO: result: no" >&5
14530 echo "${ECHO_T}no" >&6
14533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14535 # On some systems (eg. FreeBSD 5), we would find a definition of the
14536 # functions ctermid_r, setgroups in the library, but no prototype
14537 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14538 # address to avoid compiler warnings and potential miscompilations
14539 # because of the missing prototypes.
14541 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14542 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14543 cat >conftest.
$ac_ext <<_ACEOF
14546 cat confdefs.h
>>conftest.
$ac_ext
14547 cat >>conftest.
$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14550 #include "confdefs.h"
14556 void* p = ctermid_r
14561 rm -f conftest.
$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>conftest.er1
14565 grep -v '^ *+' conftest.er1
>conftest.err
14567 cat conftest.err
>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try
='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try
='test -s conftest.$ac_objext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14584 cat >>confdefs.h
<<\_ACEOF
14585 #define HAVE_CTERMID_R 1
14588 echo "$as_me:$LINENO: result: yes" >&5
14589 echo "${ECHO_T}yes" >&6
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.
$ac_ext >&5
14594 echo "$as_me:$LINENO: result: no" >&5
14595 echo "${ECHO_T}no" >&6
14598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14600 echo "$as_me:$LINENO: checking for flock" >&5
14601 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14602 cat >conftest.
$ac_ext <<_ACEOF
14605 cat confdefs.h
>>conftest.
$ac_ext
14606 cat >>conftest.
$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 #include "confdefs.h"
14610 #include <sys/file.h>
14620 rm -f conftest.
$ac_objext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14622 (eval $ac_compile) 2>conftest.er1
14624 grep -v '^ *+' conftest.er1
>conftest.err
14626 cat conftest.err
>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try
='test -z "$ac_c_werror_flag"
14630 || test ! -s conftest.err'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; } &&
14636 { ac_try
='test -s conftest.$ac_objext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14643 cat >>confdefs.h
<<\_ACEOF
14644 #define HAVE_FLOCK 1
14647 echo "$as_me:$LINENO: result: yes" >&5
14648 echo "${ECHO_T}yes" >&6
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.
$ac_ext >&5
14653 echo "$as_me:$LINENO: result: no" >&5
14654 echo "${ECHO_T}no" >&6
14657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14659 echo "$as_me:$LINENO: checking for getpagesize" >&5
14660 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14661 cat >conftest.
$ac_ext <<_ACEOF
14664 cat confdefs.h
>>conftest.
$ac_ext
14665 cat >>conftest.
$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14668 #include "confdefs.h"
14669 #include <unistd.h>
14674 void* p = getpagesize
14679 rm -f conftest.
$ac_objext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14681 (eval $ac_compile) 2>conftest.er1
14683 grep -v '^ *+' conftest.er1
>conftest.err
14685 cat conftest.err
>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try
='test -z "$ac_c_werror_flag"
14689 || test ! -s conftest.err'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; } &&
14695 { ac_try
='test -s conftest.$ac_objext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14702 cat >>confdefs.h
<<\_ACEOF
14703 #define HAVE_GETPAGESIZE 1
14706 echo "$as_me:$LINENO: result: yes" >&5
14707 echo "${ECHO_T}yes" >&6
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.
$ac_ext >&5
14712 echo "$as_me:$LINENO: result: no" >&5
14713 echo "${ECHO_T}no" >&6
14716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14718 for ac_prog
in true
14720 # Extract the first word of "$ac_prog", so it can be a program name with args.
14721 set dummy
$ac_prog; ac_word
=$2
14722 echo "$as_me:$LINENO: checking for $ac_word" >&5
14723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14724 if test "${ac_cv_prog_TRUE+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 if test -n "$TRUE"; then
14728 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14731 for as_dir
in $PATH
14734 test -z "$as_dir" && as_dir
=.
14735 for ac_exec_ext
in '' $ac_executable_extensions; do
14736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14737 ac_cv_prog_TRUE
="$ac_prog"
14738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14746 TRUE
=$ac_cv_prog_TRUE
14747 if test -n "$TRUE"; then
14748 echo "$as_me:$LINENO: result: $TRUE" >&5
14749 echo "${ECHO_T}$TRUE" >&6
14751 echo "$as_me:$LINENO: result: no" >&5
14752 echo "${ECHO_T}no" >&6
14755 test -n "$TRUE" && break
14757 test -n "$TRUE" || TRUE
="/bin/true"
14760 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14761 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14762 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 ac_check_lib_save_LIBS
=$LIBS
14767 cat >conftest.
$ac_ext <<_ACEOF
14770 cat confdefs.h
>>conftest.
$ac_ext
14771 cat >>conftest.
$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14774 /* Override any gcc2 internal prototype to avoid an error. */
14778 /* We use char because int might match the return type of a gcc2
14779 builtin and then its argument prototype would still apply. */
14789 rm -f conftest.
$ac_objext conftest
$ac_exeext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14791 (eval $ac_link) 2>conftest.er1
14793 grep -v '^ *+' conftest.er1
>conftest.err
14795 cat conftest.err
>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try
='test -z "$ac_c_werror_flag"
14799 || test ! -s conftest.err'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; } &&
14805 { ac_try
='test -s conftest$ac_exeext'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14811 ac_cv_lib_c_inet_aton
=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.
$ac_ext >&5
14816 ac_cv_lib_c_inet_aton
=no
14818 rm -f conftest.err conftest.
$ac_objext \
14819 conftest
$ac_exeext conftest.
$ac_ext
14820 LIBS
=$ac_check_lib_save_LIBS
14822 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14823 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14824 if test $ac_cv_lib_c_inet_aton = yes; then
14828 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14829 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14830 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 ac_check_lib_save_LIBS
=$LIBS
14834 LIBS
="-lresolv $LIBS"
14835 cat >conftest.
$ac_ext <<_ACEOF
14838 cat confdefs.h
>>conftest.
$ac_ext
14839 cat >>conftest.
$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14842 /* Override any gcc2 internal prototype to avoid an error. */
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14857 rm -f conftest.
$ac_objext conftest
$ac_exeext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>conftest.er1
14861 grep -v '^ *+' conftest.er1
>conftest.err
14863 cat conftest.err
>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try
='test -z "$ac_c_werror_flag"
14867 || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try
='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_lib_resolv_inet_aton
=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.
$ac_ext >&5
14884 ac_cv_lib_resolv_inet_aton
=no
14886 rm -f conftest.err conftest.
$ac_objext \
14887 conftest
$ac_exeext conftest.
$ac_ext
14888 LIBS
=$ac_check_lib_save_LIBS
14890 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14891 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14892 if test $ac_cv_lib_resolv_inet_aton = yes; then
14893 cat >>confdefs.h
<<_ACEOF
14894 #define HAVE_LIBRESOLV 1
14897 LIBS
="-lresolv $LIBS"
14905 echo "$as_me:$LINENO: checking for hstrerror" >&5
14906 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14907 cat >conftest.
$ac_ext <<_ACEOF
14910 cat confdefs.h
>>conftest.
$ac_ext
14911 cat >>conftest.
$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14914 #include "confdefs.h"
14920 void* p = hstrerror; hstrerror(0)
14925 rm -f conftest.
$ac_objext conftest
$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14929 grep -v '^ *+' conftest.er1
>conftest.err
14931 cat conftest.err
>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try
='test -z "$ac_c_werror_flag"
14935 || test ! -s conftest.err'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try
='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14948 cat >>confdefs.h
<<\_ACEOF
14949 #define HAVE_HSTRERROR 1
14952 echo "$as_me:$LINENO: result: yes" >&5
14953 echo "${ECHO_T}yes" >&6
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.
$ac_ext >&5
14958 echo "$as_me:$LINENO: result: no" >&5
14959 echo "${ECHO_T}no" >&6
14962 rm -f conftest.err conftest.
$ac_objext \
14963 conftest
$ac_exeext conftest.
$ac_ext
14965 echo "$as_me:$LINENO: checking for inet_aton" >&5
14966 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14967 cat >conftest.
$ac_ext <<_ACEOF
14970 cat confdefs.h
>>conftest.
$ac_ext
14971 cat >>conftest.
$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14974 #include "confdefs.h"
14975 #include <sys/types.h>
14976 #include <sys/socket.h>
14977 #include <netinet/in.h>
14978 #include <arpa/inet.h>
14983 void* p = inet_aton;inet_aton(0,0)
14988 rm -f conftest.
$ac_objext conftest
$ac_exeext
14989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14990 (eval $ac_link) 2>conftest.er1
14992 grep -v '^ *+' conftest.er1
>conftest.err
14994 cat conftest.err
>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try
='test -z "$ac_c_werror_flag"
14998 || test ! -s conftest.err'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try
='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15011 cat >>confdefs.h
<<\_ACEOF
15012 #define HAVE_INET_ATON 1
15015 echo "$as_me:$LINENO: result: yes" >&5
15016 echo "${ECHO_T}yes" >&6
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.
$ac_ext >&5
15021 echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6
15025 rm -f conftest.err conftest.
$ac_objext \
15026 conftest
$ac_exeext conftest.
$ac_ext
15028 echo "$as_me:$LINENO: checking for inet_pton" >&5
15029 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15030 cat >conftest.
$ac_ext <<_ACEOF
15033 cat confdefs.h
>>conftest.
$ac_ext
15034 cat >>conftest.
$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15037 #include "confdefs.h"
15038 #include <sys/types.h>
15039 #include <sys/socket.h>
15040 #include <netinet/in.h>
15041 #include <arpa/inet.h>
15046 void* p = inet_pton
15051 rm -f conftest.
$ac_objext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053 (eval $ac_compile) 2>conftest.er1
15055 grep -v '^ *+' conftest.er1
>conftest.err
15057 cat conftest.err
>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } &&
15060 { ac_try
='test -z "$ac_c_werror_flag"
15061 || test ! -s conftest.err'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try
='test -s conftest.$ac_objext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15074 cat >>confdefs.h
<<\_ACEOF
15075 #define HAVE_INET_PTON 1
15078 echo "$as_me:$LINENO: result: yes" >&5
15079 echo "${ECHO_T}yes" >&6
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.
$ac_ext >&5
15084 echo "$as_me:$LINENO: result: no" >&5
15085 echo "${ECHO_T}no" >&6
15088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15090 # On some systems, setgroups is in unistd.h, on others, in grp.h
15091 echo "$as_me:$LINENO: checking for setgroups" >&5
15092 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15093 cat >conftest.
$ac_ext <<_ACEOF
15096 cat confdefs.h
>>conftest.
$ac_ext
15097 cat >>conftest.
$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15100 #include "confdefs.h"
15101 #include <unistd.h>
15109 void* p = setgroups
15114 rm -f conftest.
$ac_objext
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>conftest.er1
15118 grep -v '^ *+' conftest.er1
>conftest.err
15120 cat conftest.err
>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try
='test -z "$ac_c_werror_flag"
15124 || test ! -s conftest.err'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try
='test -s conftest.$ac_objext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15137 cat >>confdefs.h
<<\_ACEOF
15138 #define HAVE_SETGROUPS 1
15141 echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.
$ac_ext >&5
15147 echo "$as_me:$LINENO: result: no" >&5
15148 echo "${ECHO_T}no" >&6
15151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15153 # check for openpty and forkpty
15156 for ac_func
in openpty
15158 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161 if eval "test \"\${$as_ac_var+set}\" = set"; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 cat >conftest.
$ac_ext <<_ACEOF
15167 cat confdefs.h
>>conftest.
$ac_ext
15168 cat >>conftest.
$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15172 #define $ac_func innocuous_$ac_func
15174 /* System header to define __stub macros and hopefully few prototypes,
15175 which can conflict with char $ac_func (); below.
15176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15177 <limits.h> exists even on freestanding compilers. */
15180 # include <limits.h>
15182 # include <assert.h>
15187 /* Override any gcc2 internal prototype to avoid an error. */
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15195 /* The GNU C library defines this for functions which it implements
15196 to always fail with ENOSYS. Some functions are actually named
15197 something starting with __ and the normal name is an alias. */
15198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15201 char (*f) () = $ac_func;
15210 return f != $ac_func;
15215 rm -f conftest.
$ac_objext conftest
$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15219 grep -v '^ *+' conftest.er1
>conftest.err
15221 cat conftest.err
>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try
='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try
='test -s conftest$ac_exeext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 eval "$as_ac_var=yes"
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.
$ac_ext >&5
15242 eval "$as_ac_var=no"
15244 rm -f conftest.err conftest.
$ac_objext \
15245 conftest
$ac_exeext conftest.
$ac_ext
15247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15249 if test `eval echo '${'$as_ac_var'}'` = yes; then
15250 cat >>confdefs.h
<<_ACEOF
15251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15256 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15257 if test "${ac_cv_lib_util_openpty+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 ac_check_lib_save_LIBS
=$LIBS
15261 LIBS
="-lutil $LIBS"
15262 cat >conftest.
$ac_ext <<_ACEOF
15265 cat confdefs.h
>>conftest.
$ac_ext
15266 cat >>conftest.
$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15269 /* Override any gcc2 internal prototype to avoid an error. */
15273 /* We use char because int might match the return type of a gcc2
15274 builtin and then its argument prototype would still apply. */
15284 rm -f conftest.
$ac_objext conftest
$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286 (eval $ac_link) 2>conftest.er1
15288 grep -v '^ *+' conftest.er1
>conftest.err
15290 cat conftest.err
>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try
='test -z "$ac_c_werror_flag"
15294 || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try
='test -s conftest$ac_exeext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_cv_lib_util_openpty
=yes
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.
$ac_ext >&5
15311 ac_cv_lib_util_openpty
=no
15313 rm -f conftest.err conftest.
$ac_objext \
15314 conftest
$ac_exeext conftest.
$ac_ext
15315 LIBS
=$ac_check_lib_save_LIBS
15317 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15318 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15319 if test $ac_cv_lib_util_openpty = yes; then
15320 cat >>confdefs.h
<<\_ACEOF
15321 #define HAVE_OPENPTY 1
15323 LIBS
="$LIBS -lutil"
15325 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15326 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15327 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 ac_check_lib_save_LIBS
=$LIBS
15332 cat >conftest.
$ac_ext <<_ACEOF
15335 cat confdefs.h
>>conftest.
$ac_ext
15336 cat >>conftest.
$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15339 /* Override any gcc2 internal prototype to avoid an error. */
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15354 rm -f conftest.
$ac_objext conftest
$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15358 grep -v '^ *+' conftest.er1
>conftest.err
15360 cat conftest.err
>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try
='test -z "$ac_c_werror_flag"
15364 || test ! -s conftest.err'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try
='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_bsd_openpty
=yes
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.
$ac_ext >&5
15381 ac_cv_lib_bsd_openpty
=no
15383 rm -f conftest.err conftest.
$ac_objext \
15384 conftest
$ac_exeext conftest.
$ac_ext
15385 LIBS
=$ac_check_lib_save_LIBS
15387 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15388 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15389 if test $ac_cv_lib_bsd_openpty = yes; then
15390 cat >>confdefs.h
<<\_ACEOF
15391 #define HAVE_OPENPTY 1
15404 for ac_func
in forkpty
15406 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15409 if eval "test \"\${$as_ac_var+set}\" = set"; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 cat >conftest.
$ac_ext <<_ACEOF
15415 cat confdefs.h
>>conftest.
$ac_ext
15416 cat >>conftest.
$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define $ac_func innocuous_$ac_func
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15428 # include <limits.h>
15430 # include <assert.h>
15435 /* Override any gcc2 internal prototype to avoid an error. */
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15443 /* The GNU C library defines this for functions which it implements
15444 to always fail with ENOSYS. Some functions are actually named
15445 something starting with __ and the normal name is an alias. */
15446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15449 char (*f) () = $ac_func;
15458 return f != $ac_func;
15463 rm -f conftest.
$ac_objext conftest
$ac_exeext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465 (eval $ac_link) 2>conftest.er1
15467 grep -v '^ *+' conftest.er1
>conftest.err
15469 cat conftest.err
>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try
='test -z "$ac_c_werror_flag"
15473 || test ! -s conftest.err'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; } &&
15479 { ac_try
='test -s conftest$ac_exeext'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 eval "$as_ac_var=yes"
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.
$ac_ext >&5
15490 eval "$as_ac_var=no"
15492 rm -f conftest.err conftest.
$ac_objext \
15493 conftest
$ac_exeext conftest.
$ac_ext
15495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15497 if test `eval echo '${'$as_ac_var'}'` = yes; then
15498 cat >>confdefs.h
<<_ACEOF
15499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15503 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15504 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15505 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 ac_check_lib_save_LIBS
=$LIBS
15509 LIBS
="-lutil $LIBS"
15510 cat >conftest.
$ac_ext <<_ACEOF
15513 cat confdefs.h
>>conftest.
$ac_ext
15514 cat >>conftest.
$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15517 /* Override any gcc2 internal prototype to avoid an error. */
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15532 rm -f conftest.
$ac_objext conftest
$ac_exeext
15533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15534 (eval $ac_link) 2>conftest.er1
15536 grep -v '^ *+' conftest.er1
>conftest.err
15538 cat conftest.err
>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try
='test -z "$ac_c_werror_flag"
15542 || test ! -s conftest.err'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try
='test -s conftest$ac_exeext'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_cv_lib_util_forkpty
=yes
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.
$ac_ext >&5
15559 ac_cv_lib_util_forkpty
=no
15561 rm -f conftest.err conftest.
$ac_objext \
15562 conftest
$ac_exeext conftest.
$ac_ext
15563 LIBS
=$ac_check_lib_save_LIBS
15565 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15566 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15567 if test $ac_cv_lib_util_forkpty = yes; then
15568 cat >>confdefs.h
<<\_ACEOF
15569 #define HAVE_FORKPTY 1
15571 LIBS
="$LIBS -lutil"
15573 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15574 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15575 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 ac_check_lib_save_LIBS
=$LIBS
15580 cat >conftest.
$ac_ext <<_ACEOF
15583 cat confdefs.h
>>conftest.
$ac_ext
15584 cat >>conftest.
$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15587 /* Override any gcc2 internal prototype to avoid an error. */
15591 /* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15602 rm -f conftest.
$ac_objext conftest
$ac_exeext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>conftest.er1
15606 grep -v '^ *+' conftest.er1
>conftest.err
15608 cat conftest.err
>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try
='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try
='test -s conftest$ac_exeext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_cv_lib_bsd_forkpty
=yes
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.
$ac_ext >&5
15629 ac_cv_lib_bsd_forkpty
=no
15631 rm -f conftest.err conftest.
$ac_objext \
15632 conftest
$ac_exeext conftest.
$ac_ext
15633 LIBS
=$ac_check_lib_save_LIBS
15635 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15636 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15637 if test $ac_cv_lib_bsd_forkpty = yes; then
15638 cat >>confdefs.h
<<\_ACEOF
15639 #define HAVE_FORKPTY 1
15652 # check for long file support functions
15659 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15661 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15662 echo "$as_me:$LINENO: checking for $ac_func" >&5
15663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15664 if eval "test \"\${$as_ac_var+set}\" = set"; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 cat >conftest.
$ac_ext <<_ACEOF
15670 cat confdefs.h
>>conftest.
$ac_ext
15671 cat >>conftest.
$ac_ext <<_ACEOF
15672 /* end confdefs.h. */
15673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15675 #define $ac_func innocuous_$ac_func
15677 /* System header to define __stub macros and hopefully few prototypes,
15678 which can conflict with char $ac_func (); below.
15679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15680 <limits.h> exists even on freestanding compilers. */
15683 # include <limits.h>
15685 # include <assert.h>
15690 /* Override any gcc2 internal prototype to avoid an error. */
15695 /* We use char because int might match the return type of a gcc2
15696 builtin and then its argument prototype would still apply. */
15698 /* The GNU C library defines this for functions which it implements
15699 to always fail with ENOSYS. Some functions are actually named
15700 something starting with __ and the normal name is an alias. */
15701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15704 char (*f) () = $ac_func;
15713 return f != $ac_func;
15718 rm -f conftest.
$ac_objext conftest
$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>conftest.er1
15722 grep -v '^ *+' conftest.er1
>conftest.err
15724 cat conftest.err
>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try
='test -z "$ac_c_werror_flag"
15728 || test ! -s conftest.err'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try
='test -s conftest$ac_exeext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 eval "$as_ac_var=yes"
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 eval "$as_ac_var=no"
15747 rm -f conftest.err conftest.
$ac_objext \
15748 conftest
$ac_exeext conftest.
$ac_ext
15750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15752 if test `eval echo '${'$as_ac_var'}'` = yes; then
15753 cat >>confdefs.h
<<_ACEOF
15754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15766 for ac_func
in dup2 getcwd strdup strerror memmove
15768 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15769 echo "$as_me:$LINENO: checking for $ac_func" >&5
15770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15771 if eval "test \"\${$as_ac_var+set}\" = set"; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 cat >conftest.
$ac_ext <<_ACEOF
15777 cat confdefs.h
>>conftest.
$ac_ext
15778 cat >>conftest.
$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15782 #define $ac_func innocuous_$ac_func
15784 /* System header to define __stub macros and hopefully few prototypes,
15785 which can conflict with char $ac_func (); below.
15786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15787 <limits.h> exists even on freestanding compilers. */
15790 # include <limits.h>
15792 # include <assert.h>
15797 /* Override any gcc2 internal prototype to avoid an error. */
15802 /* We use char because int might match the return type of a gcc2
15803 builtin and then its argument prototype would still apply. */
15805 /* The GNU C library defines this for functions which it implements
15806 to always fail with ENOSYS. Some functions are actually named
15807 something starting with __ and the normal name is an alias. */
15808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15811 char (*f) () = $ac_func;
15820 return f != $ac_func;
15825 rm -f conftest.
$ac_objext conftest
$ac_exeext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15827 (eval $ac_link) 2>conftest.er1
15829 grep -v '^ *+' conftest.er1
>conftest.err
15831 cat conftest.err
>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try
='test -z "$ac_c_werror_flag"
15835 || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try
='test -s conftest$ac_exeext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 eval "$as_ac_var=yes"
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.
$ac_ext >&5
15852 eval "$as_ac_var=no"
15854 rm -f conftest.err conftest.
$ac_objext \
15855 conftest
$ac_exeext conftest.
$ac_ext
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15859 if test `eval echo '${'$as_ac_var'}'` = yes; then
15860 cat >>confdefs.h
<<_ACEOF
15861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15866 "$ac_func.$ac_objext" | \
15867 *" $ac_func.$ac_objext" | \
15868 "$ac_func.$ac_objext "* | \
15869 *" $ac_func.$ac_objext "* ) ;;
15870 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15878 for ac_func
in getpgrp
15880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15881 echo "$as_me:$LINENO: checking for $ac_func" >&5
15882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15883 if eval "test \"\${$as_ac_var+set}\" = set"; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 cat >conftest.
$ac_ext <<_ACEOF
15889 cat confdefs.h
>>conftest.
$ac_ext
15890 cat >>conftest.
$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15894 #define $ac_func innocuous_$ac_func
15896 /* System header to define __stub macros and hopefully few prototypes,
15897 which can conflict with char $ac_func (); below.
15898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15899 <limits.h> exists even on freestanding compilers. */
15902 # include <limits.h>
15904 # include <assert.h>
15909 /* Override any gcc2 internal prototype to avoid an error. */
15914 /* We use char because int might match the return type of a gcc2
15915 builtin and then its argument prototype would still apply. */
15917 /* The GNU C library defines this for functions which it implements
15918 to always fail with ENOSYS. Some functions are actually named
15919 something starting with __ and the normal name is an alias. */
15920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15923 char (*f) () = $ac_func;
15932 return f != $ac_func;
15937 rm -f conftest.
$ac_objext conftest
$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1
>conftest.err
15943 cat conftest.err
>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try
='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try
='test -s conftest$ac_exeext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 eval "$as_ac_var=yes"
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.
$ac_ext >&5
15964 eval "$as_ac_var=no"
15966 rm -f conftest.err conftest.
$ac_objext \
15967 conftest
$ac_exeext conftest.
$ac_ext
15969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15971 if test `eval echo '${'$as_ac_var'}'` = yes; then
15972 cat >>confdefs.h
<<_ACEOF
15973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15975 cat >conftest.
$ac_ext <<_ACEOF
15978 cat confdefs.h
>>conftest.
$ac_ext
15979 cat >>conftest.
$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #include <unistd.h>
15990 rm -f conftest.
$ac_objext
15991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15992 (eval $ac_compile) 2>conftest.er1
15994 grep -v '^ *+' conftest.er1
>conftest.err
15996 cat conftest.err
>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
15999 { ac_try
='test -z "$ac_c_werror_flag"
16000 || test ! -s conftest.err'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; } &&
16006 { ac_try
='test -s conftest.$ac_objext'
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16013 cat >>confdefs.h
<<\_ACEOF
16014 #define GETPGRP_HAVE_ARG 1
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.
$ac_ext >&5
16023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16029 for ac_func
in setpgrp
16031 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16032 echo "$as_me:$LINENO: checking for $ac_func" >&5
16033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16034 if eval "test \"\${$as_ac_var+set}\" = set"; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 cat >conftest.
$ac_ext <<_ACEOF
16040 cat confdefs.h
>>conftest.
$ac_ext
16041 cat >>conftest.
$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16045 #define $ac_func innocuous_$ac_func
16047 /* System header to define __stub macros and hopefully few prototypes,
16048 which can conflict with char $ac_func (); below.
16049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16050 <limits.h> exists even on freestanding compilers. */
16053 # include <limits.h>
16055 # include <assert.h>
16060 /* Override any gcc2 internal prototype to avoid an error. */
16065 /* We use char because int might match the return type of a gcc2
16066 builtin and then its argument prototype would still apply. */
16068 /* The GNU C library defines this for functions which it implements
16069 to always fail with ENOSYS. Some functions are actually named
16070 something starting with __ and the normal name is an alias. */
16071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16074 char (*f) () = $ac_func;
16083 return f != $ac_func;
16088 rm -f conftest.
$ac_objext conftest
$ac_exeext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16090 (eval $ac_link) 2>conftest.er1
16092 grep -v '^ *+' conftest.er1
>conftest.err
16094 cat conftest.err
>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try
='test -z "$ac_c_werror_flag"
16098 || test ! -s conftest.err'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try
='test -s conftest$ac_exeext'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 eval "$as_ac_var=yes"
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.
$ac_ext >&5
16115 eval "$as_ac_var=no"
16117 rm -f conftest.err conftest.
$ac_objext \
16118 conftest
$ac_exeext conftest.
$ac_ext
16120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16122 if test `eval echo '${'$as_ac_var'}'` = yes; then
16123 cat >>confdefs.h
<<_ACEOF
16124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16126 cat >conftest.
$ac_ext <<_ACEOF
16129 cat confdefs.h
>>conftest.
$ac_ext
16130 cat >>conftest.
$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <unistd.h>
16141 rm -f conftest.
$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>conftest.er1
16145 grep -v '^ *+' conftest.er1
>conftest.err
16147 cat conftest.err
>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try
='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try
='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16164 cat >>confdefs.h
<<\_ACEOF
16165 #define SETPGRP_HAVE_ARG 1
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.
$ac_ext >&5
16174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16180 for ac_func
in gettimeofday
16182 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16183 echo "$as_me:$LINENO: checking for $ac_func" >&5
16184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_var+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 cat >conftest.
$ac_ext <<_ACEOF
16191 cat confdefs.h
>>conftest.
$ac_ext
16192 cat >>conftest.
$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16196 #define $ac_func innocuous_$ac_func
16198 /* System header to define __stub macros and hopefully few prototypes,
16199 which can conflict with char $ac_func (); below.
16200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16201 <limits.h> exists even on freestanding compilers. */
16204 # include <limits.h>
16206 # include <assert.h>
16211 /* Override any gcc2 internal prototype to avoid an error. */
16216 /* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16219 /* The GNU C library defines this for functions which it implements
16220 to always fail with ENOSYS. Some functions are actually named
16221 something starting with __ and the normal name is an alias. */
16222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16225 char (*f) () = $ac_func;
16234 return f != $ac_func;
16239 rm -f conftest.
$ac_objext conftest
$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>conftest.er1
16243 grep -v '^ *+' conftest.er1
>conftest.err
16245 cat conftest.err
>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try
='test -z "$ac_c_werror_flag"
16249 || test ! -s conftest.err'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try
='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 eval "$as_ac_var=yes"
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.
$ac_ext >&5
16266 eval "$as_ac_var=no"
16268 rm -f conftest.err conftest.
$ac_objext \
16269 conftest
$ac_exeext conftest.
$ac_ext
16271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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
16277 cat >conftest.
$ac_ext <<_ACEOF
16280 cat confdefs.h
>>conftest.
$ac_ext
16281 cat >>conftest.
$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <sys/time.h>
16287 gettimeofday((struct timeval*)0,(struct timezone*)0);
16292 rm -f conftest.
$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16296 grep -v '^ *+' conftest.er1
>conftest.err
16298 cat conftest.err
>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try
='test -z "$ac_c_werror_flag"
16302 || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try
='test -s conftest.$ac_objext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.
$ac_ext >&5
16320 cat >>confdefs.h
<<\_ACEOF
16321 #define GETTIMEOFDAY_NO_TZ 1
16326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16332 echo "$as_me:$LINENO: checking for major" >&5
16333 echo $ECHO_N "checking for major... $ECHO_C" >&6
16334 cat >conftest.
$ac_ext <<_ACEOF
16337 cat confdefs.h
>>conftest.
$ac_ext
16338 cat >>conftest.
$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16341 #if defined(MAJOR_IN_MKDEV)
16342 #include <sys/mkdev.h>
16343 #elif defined(MAJOR_IN_SYSMACROS)
16344 #include <sys/sysmacros.h>
16346 #include <sys/types.h>
16353 makedev(major(0),minor(0));
16359 rm -f conftest.
$ac_objext conftest
$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16363 grep -v '^ *+' conftest.er1
>conftest.err
16365 cat conftest.err
>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try
='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try
='test -s conftest$ac_exeext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16383 cat >>confdefs.h
<<\_ACEOF
16384 #define HAVE_DEVICE_MACROS 1
16387 echo "$as_me:$LINENO: result: yes" >&5
16388 echo "${ECHO_T}yes" >&6
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.
$ac_ext >&5
16395 echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6
16399 rm -f conftest.err conftest.
$ac_objext \
16400 conftest
$ac_exeext conftest.
$ac_ext
16402 # On OSF/1 V5.1, getaddrinfo is available, but a define
16403 # for [no]getaddrinfo in netdb.h.
16404 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16405 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16406 cat >conftest.
$ac_ext <<_ACEOF
16409 cat confdefs.h
>>conftest.
$ac_ext
16410 cat >>conftest.
$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16413 #include <sys/types.h>
16414 #include <sys/socket.h>
16422 getaddrinfo(NULL, NULL, NULL, NULL);
16428 rm -f conftest.
$ac_objext conftest
$ac_exeext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430 (eval $ac_link) 2>conftest.er1
16432 grep -v '^ *+' conftest.er1
>conftest.err
16434 cat conftest.err
>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try
='test -z "$ac_c_werror_flag"
16438 || test ! -s conftest.err'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try
='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16451 echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6
16453 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16454 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16455 if test "$cross_compiling" = yes; then
16456 echo "$as_me:$LINENO: result: buggy" >&5
16457 echo "${ECHO_T}buggy" >&6
16458 buggygetaddrinfo
=yes
16460 cat >conftest.
$ac_ext <<_ACEOF
16463 cat confdefs.h
>>conftest.
$ac_ext
16464 cat >>conftest.
$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16467 #include <sys/types.h>
16469 #include <string.h>
16470 #include <sys/socket.h>
16471 #include <netinet/in.h>
16475 int passive, gaierr, inet4 = 0, inet6 = 0;
16476 struct addrinfo hints, *ai, *aitop;
16477 char straddr[INET6_ADDRSTRLEN], strport[16];
16479 for (passive = 0; passive <= 1; passive++) {
16480 memset(&hints, 0, sizeof(hints));
16481 hints.ai_family = AF_UNSPEC;
16482 hints.ai_flags = passive ? AI_PASSIVE : 0;
16483 hints.ai_socktype = SOCK_STREAM;
16484 hints.ai_protocol = IPPROTO_TCP;
16485 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16486 (void)gai_strerror(gaierr);
16489 for (ai = aitop; ai; ai = ai->ai_next) {
16490 if (ai->ai_addr == NULL ||
16491 ai->ai_addrlen == 0 ||
16492 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16493 straddr, sizeof(straddr), strport, sizeof(strport),
16494 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16497 switch (ai->ai_family) {
16499 if (strcmp(strport, "54321") != 0) {
16503 if (strcmp(straddr, "0.0.0.0") != 0) {
16507 if (strcmp(straddr, "127.0.0.1") != 0) {
16514 if (strcmp(strport, "54321") != 0) {
16518 if (strcmp(straddr, "::") != 0) {
16522 if (strcmp(straddr, "::1") != 0) {
16532 /* another family support? */
16538 if (!(inet4 == 0 || inet4 == 2))
16540 if (!(inet6 == 0 || inet6 == 2))
16544 freeaddrinfo(aitop);
16549 freeaddrinfo(aitop);
16554 rm -f conftest
$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 echo "$as_me:$LINENO: result: good" >&5
16566 echo "${ECHO_T}good" >&6
16567 buggygetaddrinfo
=no
16569 echo "$as_me: program exited with status $ac_status" >&5
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.
$ac_ext >&5
16573 ( exit $ac_status )
16574 echo "$as_me:$LINENO: result: buggy" >&5
16575 echo "${ECHO_T}buggy" >&6
16576 buggygetaddrinfo
=yes
16578 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.
$ac_ext >&5
16585 echo "$as_me:$LINENO: result: no" >&5
16586 echo "${ECHO_T}no" >&6
16587 buggygetaddrinfo
=yes
16590 rm -f conftest.err conftest.
$ac_objext \
16591 conftest
$ac_exeext conftest.
$ac_ext
16593 if test "$buggygetaddrinfo" = "yes"; then
16594 if test "$ipv6" = "yes"; then
16595 echo 'Fatal: You must get working getaddrinfo() function.'
16596 echo ' or you can specify "--disable-ipv6"'.
16601 cat >>confdefs.h
<<\_ACEOF
16602 #define HAVE_GETADDRINFO 1
16607 for ac_func
in getnameinfo
16609 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16610 echo "$as_me:$LINENO: checking for $ac_func" >&5
16611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16612 if eval "test \"\${$as_ac_var+set}\" = set"; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 cat >conftest.
$ac_ext <<_ACEOF
16618 cat confdefs.h
>>conftest.
$ac_ext
16619 cat >>conftest.
$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16623 #define $ac_func innocuous_$ac_func
16625 /* System header to define __stub macros and hopefully few prototypes,
16626 which can conflict with char $ac_func (); below.
16627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16628 <limits.h> exists even on freestanding compilers. */
16631 # include <limits.h>
16633 # include <assert.h>
16638 /* Override any gcc2 internal prototype to avoid an error. */
16643 /* We use char because int might match the return type of a gcc2
16644 builtin and then its argument prototype would still apply. */
16646 /* The GNU C library defines this for functions which it implements
16647 to always fail with ENOSYS. Some functions are actually named
16648 something starting with __ and the normal name is an alias. */
16649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16652 char (*f) () = $ac_func;
16661 return f != $ac_func;
16666 rm -f conftest.
$ac_objext conftest
$ac_exeext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668 (eval $ac_link) 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 { ac_try
='test -z "$ac_c_werror_flag"
16676 || test ! -s conftest.err'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; } &&
16682 { ac_try
='test -s conftest$ac_exeext'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688 eval "$as_ac_var=yes"
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.
$ac_ext >&5
16693 eval "$as_ac_var=no"
16695 rm -f conftest.err conftest.
$ac_objext \
16696 conftest
$ac_exeext conftest.
$ac_ext
16698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16700 if test `eval echo '${'$as_ac_var'}'` = yes; then
16701 cat >>confdefs.h
<<_ACEOF
16702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16709 # checks for structures
16710 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16711 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16712 if test "${ac_cv_header_time+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 cat >conftest.
$ac_ext <<_ACEOF
16718 cat confdefs.h
>>conftest.
$ac_ext
16719 cat >>conftest.
$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721 #include <sys/types.h>
16722 #include <sys/time.h>
16728 if ((struct tm *) 0)
16734 rm -f conftest.
$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>conftest.er1
16738 grep -v '^ *+' conftest.er1
>conftest.err
16740 cat conftest.err
>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try
='test -z "$ac_c_werror_flag"
16744 || test ! -s conftest.err'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try
='test -s conftest.$ac_objext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_header_time
=yes
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.
$ac_ext >&5
16761 ac_cv_header_time
=no
16763 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16765 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16766 echo "${ECHO_T}$ac_cv_header_time" >&6
16767 if test $ac_cv_header_time = yes; then
16769 cat >>confdefs.h
<<\_ACEOF
16770 #define TIME_WITH_SYS_TIME 1
16775 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16776 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16777 if test "${ac_cv_struct_tm+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 cat >conftest.
$ac_ext <<_ACEOF
16783 cat confdefs.h
>>conftest.
$ac_ext
16784 cat >>conftest.
$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 #include <sys/types.h>
16792 struct tm *tp; tp->tm_sec;
16797 rm -f conftest.
$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>conftest.er1
16801 grep -v '^ *+' conftest.er1
>conftest.err
16803 cat conftest.err
>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try
='test -z "$ac_c_werror_flag"
16807 || test ! -s conftest.err'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; } &&
16813 { ac_try
='test -s conftest.$ac_objext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_struct_tm
=time.h
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.
$ac_ext >&5
16824 ac_cv_struct_tm
=sys
/time.h
16826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16828 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16829 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16830 if test $ac_cv_struct_tm = sys
/time.h
; then
16832 cat >>confdefs.h
<<\_ACEOF
16833 #define TM_IN_SYS_TIME 1
16838 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16839 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16840 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 cat >conftest.
$ac_ext <<_ACEOF
16846 cat confdefs.h
>>conftest.
$ac_ext
16847 cat >>conftest.
$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <sys/types.h>
16850 #include <$ac_cv_struct_tm>
16856 static struct tm ac_aggr;
16857 if (ac_aggr.tm_zone)
16863 rm -f conftest.
$ac_objext
16864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16865 (eval $ac_compile) 2>conftest.er1
16867 grep -v '^ *+' conftest.er1
>conftest.err
16869 cat conftest.err
>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try
='test -z "$ac_c_werror_flag"
16873 || test ! -s conftest.err'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try
='test -s conftest.$ac_objext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_member_struct_tm_tm_zone
=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.
$ac_ext >&5
16890 cat >conftest.
$ac_ext <<_ACEOF
16893 cat confdefs.h
>>conftest.
$ac_ext
16894 cat >>conftest.
$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16896 #include <sys/types.h>
16897 #include <$ac_cv_struct_tm>
16903 static struct tm ac_aggr;
16904 if (sizeof ac_aggr.tm_zone)
16910 rm -f conftest.
$ac_objext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16912 (eval $ac_compile) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1
>conftest.err
16916 cat conftest.err
>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try
='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try
='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_member_struct_tm_tm_zone
=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.
$ac_ext >&5
16937 ac_cv_member_struct_tm_tm_zone
=no
16939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16944 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16945 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16947 cat >>confdefs.h
<<_ACEOF
16948 #define HAVE_STRUCT_TM_TM_ZONE 1
16954 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16956 cat >>confdefs.h
<<\_ACEOF
16957 #define HAVE_TM_ZONE 1
16961 echo "$as_me:$LINENO: checking for tzname" >&5
16962 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16963 if test "${ac_cv_var_tzname+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 cat >conftest.
$ac_ext <<_ACEOF
16969 cat confdefs.h
>>conftest.
$ac_ext
16970 cat >>conftest.
$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16973 #ifndef tzname /* For SGI. */
16974 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16985 rm -f conftest.
$ac_objext conftest
$ac_exeext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987 (eval $ac_link) 2>conftest.er1
16989 grep -v '^ *+' conftest.er1
>conftest.err
16991 cat conftest.err
>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try
='test -z "$ac_c_werror_flag"
16995 || test ! -s conftest.err'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try
='test -s conftest$ac_exeext'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 ac_cv_var_tzname
=yes
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.
$ac_ext >&5
17012 ac_cv_var_tzname
=no
17014 rm -f conftest.err conftest.
$ac_objext \
17015 conftest
$ac_exeext conftest.
$ac_ext
17017 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17018 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17019 if test $ac_cv_var_tzname = yes; then
17021 cat >>confdefs.h
<<\_ACEOF
17022 #define HAVE_TZNAME 1
17028 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17029 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17030 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 cat >conftest.
$ac_ext <<_ACEOF
17036 cat confdefs.h
>>conftest.
$ac_ext
17037 cat >>conftest.
$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 $ac_includes_default
17043 static struct stat ac_aggr;
17044 if (ac_aggr.st_rdev)
17050 rm -f conftest.
$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>conftest.er1
17054 grep -v '^ *+' conftest.er1
>conftest.err
17056 cat conftest.err
>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try
='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try
='test -s conftest.$ac_objext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_member_struct_stat_st_rdev
=yes
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.
$ac_ext >&5
17077 cat >conftest.
$ac_ext <<_ACEOF
17080 cat confdefs.h
>>conftest.
$ac_ext
17081 cat >>conftest.
$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 $ac_includes_default
17087 static struct stat ac_aggr;
17088 if (sizeof ac_aggr.st_rdev)
17094 rm -f conftest.
$ac_objext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17096 (eval $ac_compile) 2>conftest.er1
17098 grep -v '^ *+' conftest.er1
>conftest.err
17100 cat conftest.err
>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try
='test -z "$ac_c_werror_flag"
17104 || test ! -s conftest.err'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try
='test -s conftest.$ac_objext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_member_struct_stat_st_rdev
=yes
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.
$ac_ext >&5
17121 ac_cv_member_struct_stat_st_rdev
=no
17123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17128 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17129 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17131 cat >>confdefs.h
<<_ACEOF
17132 #define HAVE_STRUCT_STAT_ST_RDEV 1
17138 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17139 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17140 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 cat >conftest.
$ac_ext <<_ACEOF
17146 cat confdefs.h
>>conftest.
$ac_ext
17147 cat >>conftest.
$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 $ac_includes_default
17153 static struct stat ac_aggr;
17154 if (ac_aggr.st_blksize)
17160 rm -f conftest.
$ac_objext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17162 (eval $ac_compile) 2>conftest.er1
17164 grep -v '^ *+' conftest.er1
>conftest.err
17166 cat conftest.err
>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try
='test -z "$ac_c_werror_flag"
17170 || test ! -s conftest.err'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try
='test -s conftest.$ac_objext'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_cv_member_struct_stat_st_blksize
=yes
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.
$ac_ext >&5
17187 cat >conftest.
$ac_ext <<_ACEOF
17190 cat confdefs.h
>>conftest.
$ac_ext
17191 cat >>conftest.
$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 $ac_includes_default
17197 static struct stat ac_aggr;
17198 if (sizeof ac_aggr.st_blksize)
17204 rm -f conftest.
$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>conftest.er1
17208 grep -v '^ *+' conftest.er1
>conftest.err
17210 cat conftest.err
>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try
='test -z "$ac_c_werror_flag"
17214 || test ! -s conftest.err'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try
='test -s conftest.$ac_objext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_cv_member_struct_stat_st_blksize
=yes
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.
$ac_ext >&5
17231 ac_cv_member_struct_stat_st_blksize
=no
17233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17238 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17239 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17241 cat >>confdefs.h
<<_ACEOF
17242 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17248 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17249 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17250 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 cat >conftest.
$ac_ext <<_ACEOF
17256 cat confdefs.h
>>conftest.
$ac_ext
17257 cat >>conftest.
$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 $ac_includes_default
17263 static struct stat ac_aggr;
17264 if (ac_aggr.st_flags)
17270 rm -f conftest.
$ac_objext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>conftest.er1
17274 grep -v '^ *+' conftest.er1
>conftest.err
17276 cat conftest.err
>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try
='test -z "$ac_c_werror_flag"
17280 || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try
='test -s conftest.$ac_objext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_cv_member_struct_stat_st_flags
=yes
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.
$ac_ext >&5
17297 cat >conftest.
$ac_ext <<_ACEOF
17300 cat confdefs.h
>>conftest.
$ac_ext
17301 cat >>conftest.
$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17307 static struct stat ac_aggr;
17308 if (sizeof ac_aggr.st_flags)
17314 rm -f conftest.
$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17318 grep -v '^ *+' conftest.er1
>conftest.err
17320 cat conftest.err
>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try
='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try
='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_member_struct_stat_st_flags
=yes
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.
$ac_ext >&5
17341 ac_cv_member_struct_stat_st_flags
=no
17343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17347 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17348 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17349 if test $ac_cv_member_struct_stat_st_flags = yes; then
17351 cat >>confdefs.h
<<_ACEOF
17352 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17358 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17359 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17360 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 cat >conftest.
$ac_ext <<_ACEOF
17366 cat confdefs.h
>>conftest.
$ac_ext
17367 cat >>conftest.
$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 $ac_includes_default
17373 static struct stat ac_aggr;
17374 if (ac_aggr.st_gen)
17380 rm -f conftest.
$ac_objext
17381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17382 (eval $ac_compile) 2>conftest.er1
17384 grep -v '^ *+' conftest.er1
>conftest.err
17386 cat conftest.err
>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try
='test -z "$ac_c_werror_flag"
17390 || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try
='test -s conftest.$ac_objext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_member_struct_stat_st_gen
=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.
$ac_ext >&5
17407 cat >conftest.
$ac_ext <<_ACEOF
17410 cat confdefs.h
>>conftest.
$ac_ext
17411 cat >>conftest.
$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17417 static struct stat ac_aggr;
17418 if (sizeof ac_aggr.st_gen)
17424 rm -f conftest.
$ac_objext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17426 (eval $ac_compile) 2>conftest.er1
17428 grep -v '^ *+' conftest.er1
>conftest.err
17430 cat conftest.err
>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try
='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try
='test -s conftest.$ac_objext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_member_struct_stat_st_gen
=yes
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.
$ac_ext >&5
17451 ac_cv_member_struct_stat_st_gen
=no
17453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17457 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17458 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17459 if test $ac_cv_member_struct_stat_st_gen = yes; then
17461 cat >>confdefs.h
<<_ACEOF
17462 #define HAVE_STRUCT_STAT_ST_GEN 1
17468 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17469 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17470 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 cat >conftest.
$ac_ext <<_ACEOF
17476 cat confdefs.h
>>conftest.
$ac_ext
17477 cat >>conftest.
$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17483 static struct stat ac_aggr;
17484 if (ac_aggr.st_birthtime)
17490 rm -f conftest.
$ac_objext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492 (eval $ac_compile) 2>conftest.er1
17494 grep -v '^ *+' conftest.er1
>conftest.err
17496 cat conftest.err
>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try
='test -z "$ac_c_werror_flag"
17500 || test ! -s conftest.err'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try
='test -s conftest.$ac_objext'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17512 ac_cv_member_struct_stat_st_birthtime
=yes
17514 echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.
$ac_ext >&5
17517 cat >conftest.
$ac_ext <<_ACEOF
17520 cat confdefs.h
>>conftest.
$ac_ext
17521 cat >>conftest.
$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17527 static struct stat ac_aggr;
17528 if (sizeof ac_aggr.st_birthtime)
17534 rm -f conftest.
$ac_objext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17536 (eval $ac_compile) 2>conftest.er1
17538 grep -v '^ *+' conftest.er1
>conftest.err
17540 cat conftest.err
>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try
='test -z "$ac_c_werror_flag"
17544 || test ! -s conftest.err'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; } &&
17550 { ac_try
='test -s conftest.$ac_objext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_member_struct_stat_st_birthtime
=yes
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.
$ac_ext >&5
17561 ac_cv_member_struct_stat_st_birthtime
=no
17563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17568 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17569 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17571 cat >>confdefs.h
<<_ACEOF
17572 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17578 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17579 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17580 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 cat >conftest.
$ac_ext <<_ACEOF
17586 cat confdefs.h
>>conftest.
$ac_ext
17587 cat >>conftest.
$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 $ac_includes_default
17593 static struct stat ac_aggr;
17594 if (ac_aggr.st_blocks)
17600 rm -f conftest.
$ac_objext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17602 (eval $ac_compile) 2>conftest.er1
17604 grep -v '^ *+' conftest.er1
>conftest.err
17606 cat conftest.err
>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try
='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try
='test -s conftest.$ac_objext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_member_struct_stat_st_blocks
=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.
$ac_ext >&5
17627 cat >conftest.
$ac_ext <<_ACEOF
17630 cat confdefs.h
>>conftest.
$ac_ext
17631 cat >>conftest.
$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17637 static struct stat ac_aggr;
17638 if (sizeof ac_aggr.st_blocks)
17644 rm -f conftest.
$ac_objext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646 (eval $ac_compile) 2>conftest.er1
17648 grep -v '^ *+' conftest.er1
>conftest.err
17650 cat conftest.err
>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try
='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try
='test -s conftest.$ac_objext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_member_struct_stat_st_blocks
=yes
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.
$ac_ext >&5
17671 ac_cv_member_struct_stat_st_blocks
=no
17673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17677 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17678 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17679 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17681 cat >>confdefs.h
<<_ACEOF
17682 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17686 cat >>confdefs.h
<<\_ACEOF
17687 #define HAVE_ST_BLOCKS 1
17692 "fileblocks.$ac_objext" | \
17693 *" fileblocks.$ac_objext" | \
17694 "fileblocks.$ac_objext "* | \
17695 *" fileblocks.$ac_objext "* ) ;;
17696 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17703 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17704 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17705 if test "${ac_cv_header_time_altzone+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 cat >conftest.
$ac_ext <<_ACEOF
17711 cat confdefs.h
>>conftest.
$ac_ext
17712 cat >>conftest.
$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17723 rm -f conftest.
$ac_objext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17725 (eval $ac_compile) 2>conftest.er1
17727 grep -v '^ *+' conftest.er1
>conftest.err
17729 cat conftest.err
>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try
='test -z "$ac_c_werror_flag"
17733 || test ! -s conftest.err'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try
='test -s conftest.$ac_objext'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_header_time_altzone
=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.
$ac_ext >&5
17750 ac_cv_header_time_altzone
=no
17752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17755 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17756 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17757 if test $ac_cv_header_time_altzone = yes; then
17759 cat >>confdefs.h
<<\_ACEOF
17760 #define HAVE_ALTZONE 1
17766 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17767 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17768 cat >conftest.
$ac_ext <<_ACEOF
17771 cat confdefs.h
>>conftest.
$ac_ext
17772 cat >>conftest.
$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17775 #include <sys/types.h>
17776 #include <sys/select.h>
17777 #include <sys/time.h>
17787 rm -f conftest.
$ac_objext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17789 (eval $ac_compile) 2>conftest.er1
17791 grep -v '^ *+' conftest.er1
>conftest.err
17793 cat conftest.err
>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try
='test -z "$ac_c_werror_flag"
17797 || test ! -s conftest.err'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; } &&
17803 { ac_try
='test -s conftest.$ac_objext'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17811 cat >>confdefs.h
<<\_ACEOF
17812 #define SYS_SELECT_WITH_SYS_TIME 1
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.
$ac_ext >&5
17822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17823 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17824 echo "${ECHO_T}$was_it_defined" >&6
17826 echo "$as_me:$LINENO: checking for addrinfo" >&5
17827 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17828 if test "${ac_cv_struct_addrinfo+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 cat >conftest.
$ac_ext <<_ACEOF
17834 cat confdefs.h
>>conftest.
$ac_ext
17835 cat >>conftest.
$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17838 # include <netdb.h>
17847 rm -f conftest.
$ac_objext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17849 (eval $ac_compile) 2>conftest.er1
17851 grep -v '^ *+' conftest.er1
>conftest.err
17853 cat conftest.err
>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try
='test -z "$ac_c_werror_flag"
17857 || test ! -s conftest.err'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try
='test -s conftest.$ac_objext'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_struct_addrinfo
=yes
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.
$ac_ext >&5
17874 ac_cv_struct_addrinfo
=no
17876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17879 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17880 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17881 if test $ac_cv_struct_addrinfo = yes; then
17883 cat >>confdefs.h
<<\_ACEOF
17884 #define HAVE_ADDRINFO 1
17889 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17890 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17891 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 cat >conftest.
$ac_ext <<_ACEOF
17897 cat confdefs.h
>>conftest.
$ac_ext
17898 cat >>conftest.
$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17901 # include <sys/types.h>
17902 # include <sys/socket.h>
17906 struct sockaddr_storage s
17911 rm -f conftest.
$ac_objext
17912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17913 (eval $ac_compile) 2>conftest.er1
17915 grep -v '^ *+' conftest.er1
>conftest.err
17917 cat conftest.err
>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try
='test -z "$ac_c_werror_flag"
17921 || test ! -s conftest.err'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try
='test -s conftest.$ac_objext'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17933 ac_cv_struct_sockaddr_storage
=yes
17935 echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.
$ac_ext >&5
17938 ac_cv_struct_sockaddr_storage
=no
17940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17943 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17944 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17945 if test $ac_cv_struct_sockaddr_storage = yes; then
17947 cat >>confdefs.h
<<\_ACEOF
17948 #define HAVE_SOCKADDR_STORAGE 1
17953 # checks for compiler characteristics
17956 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17957 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17958 if test "${ac_cv_c_char_unsigned+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 cat >conftest.
$ac_ext <<_ACEOF
17964 cat confdefs.h
>>conftest.
$ac_ext
17965 cat >>conftest.
$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 $ac_includes_default
17971 static int test_array [1 - 2 * !(((char) -1) < 0)];
17978 rm -f conftest.
$ac_objext
17979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17980 (eval $ac_compile) 2>conftest.er1
17982 grep -v '^ *+' conftest.er1
>conftest.err
17984 cat conftest.err
>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try
='test -z "$ac_c_werror_flag"
17988 || test ! -s conftest.err'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try
='test -s conftest.$ac_objext'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_c_char_unsigned
=no
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.
$ac_ext >&5
18005 ac_cv_c_char_unsigned
=yes
18007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18009 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18010 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18011 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18012 cat >>confdefs.h
<<\_ACEOF
18013 #define __CHAR_UNSIGNED__ 1
18018 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18019 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18020 if test "${ac_cv_c_const+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 cat >conftest.
$ac_ext <<_ACEOF
18026 cat confdefs.h
>>conftest.
$ac_ext
18027 cat >>conftest.
$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18033 /* FIXME: Include the comments suggested by Paul. */
18034 #ifndef __cplusplus
18035 /* Ultrix mips cc rejects this. */
18036 typedef int charset[2];
18038 /* SunOS 4.1.1 cc rejects this. */
18039 char const *const *ccp;
18041 /* NEC SVR4.0.2 mips cc rejects this. */
18042 struct point {int x, y;};
18043 static struct point const zero = {0,0};
18044 /* AIX XL C 1.02.0.0 rejects this.
18045 It does not let you subtract one const X* pointer from another in
18046 an arm of an if-expression whose if-part is not a constant
18048 const char *g = "string";
18049 ccp = &g + (g ? g-g : 0);
18050 /* HPUX 7.0 cc rejects these. */
18053 ccp = (char const *const *) p;
18054 { /* SCO 3.2v4 cc rejects this. */
18056 char const *s = 0 ? (char *) 0 : (char const *) 0;
18060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18061 int x[] = {25, 17};
18062 const int *foo = &x[0];
18065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18066 typedef const int *iptr;
18070 { /* AIX XL C 1.02.0.0 rejects this saying
18071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18072 struct s { int j; const int *ap[3]; };
18073 struct s *b; b->j = 5;
18075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18076 const int foo = 10;
18084 rm -f conftest.
$ac_objext
18085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18086 (eval $ac_compile) 2>conftest.er1
18088 grep -v '^ *+' conftest.er1
>conftest.err
18090 cat conftest.err
>&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try
='test -z "$ac_c_werror_flag"
18094 || test ! -s conftest.err'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
18100 { ac_try
='test -s conftest.$ac_objext'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.
$ac_ext >&5
18113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18115 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18116 echo "${ECHO_T}$ac_cv_c_const" >&6
18117 if test $ac_cv_c_const = no
; then
18119 cat >>confdefs.h
<<\_ACEOF
18127 echo "$as_me:$LINENO: checking for working volatile" >&5
18128 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18129 cat >conftest.
$ac_ext <<_ACEOF
18132 cat confdefs.h
>>conftest.
$ac_ext
18133 cat >>conftest.
$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18139 volatile int x; x = 0;
18144 rm -f conftest.
$ac_objext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146 (eval $ac_compile) 2>conftest.er1
18148 grep -v '^ *+' conftest.er1
>conftest.err
18150 cat conftest.err
>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try
='test -z "$ac_c_werror_flag"
18154 || test ! -s conftest.err'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try
='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.
$ac_ext >&5
18172 cat >>confdefs.h
<<\_ACEOF
18178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18179 echo "$as_me:$LINENO: result: $works" >&5
18180 echo "${ECHO_T}$works" >&6
18183 echo "$as_me:$LINENO: checking for working signed char" >&5
18184 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18185 cat >conftest.
$ac_ext <<_ACEOF
18188 cat confdefs.h
>>conftest.
$ac_ext
18189 cat >>conftest.
$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18200 rm -f conftest.
$ac_objext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18202 (eval $ac_compile) 2>conftest.er1
18204 grep -v '^ *+' conftest.er1
>conftest.err
18206 cat conftest.err
>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try
='test -z "$ac_c_werror_flag"
18210 || test ! -s conftest.err'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try
='test -s conftest.$ac_objext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.
$ac_ext >&5
18228 cat >>confdefs.h
<<\_ACEOF
18234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18235 echo "$as_me:$LINENO: result: $works" >&5
18236 echo "${ECHO_T}$works" >&6
18239 echo "$as_me:$LINENO: checking for prototypes" >&5
18240 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18241 cat >conftest.
$ac_ext <<_ACEOF
18244 cat confdefs.h
>>conftest.
$ac_ext
18245 cat >>conftest.
$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18247 int foo(int x) { return 0; }
18256 rm -f conftest.
$ac_objext
18257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258 (eval $ac_compile) 2>conftest.er1
18260 grep -v '^ *+' conftest.er1
>conftest.err
18262 cat conftest.err
>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
18265 { ac_try
='test -z "$ac_c_werror_flag"
18266 || test ! -s conftest.err'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try
='test -s conftest.$ac_objext'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18280 cat >>confdefs.h
<<\_ACEOF
18281 #define HAVE_PROTOTYPES 1
18284 have_prototypes
=yes
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.
$ac_ext >&5
18291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18292 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18293 echo "${ECHO_T}$have_prototypes" >&6
18296 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18297 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18298 cat >conftest.
$ac_ext <<_ACEOF
18301 cat confdefs.h
>>conftest.
$ac_ext
18302 cat >>conftest.
$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18305 #include <stdarg.h>
18306 int foo(int x, ...) {
18310 va_arg(va, char *);
18311 va_arg(va, double);
18318 return foo(10, "", 3.14);
18323 rm -f conftest.
$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1
>conftest.err
18329 cat conftest.err
>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try
='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try
='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18347 cat >>confdefs.h
<<\_ACEOF
18348 #define HAVE_STDARG_PROTOTYPES 1
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.
$ac_ext >&5
18358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18359 echo "$as_me:$LINENO: result: $works" >&5
18360 echo "${ECHO_T}$works" >&6
18362 # check for socketpair
18363 echo "$as_me:$LINENO: checking for socketpair" >&5
18364 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18365 cat >conftest.
$ac_ext <<_ACEOF
18368 cat confdefs.h
>>conftest.
$ac_ext
18369 cat >>conftest.
$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 #include <sys/types.h>
18373 #include <sys/socket.h>
18383 rm -f conftest.
$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385 (eval $ac_compile) 2>conftest.er1
18387 grep -v '^ *+' conftest.er1
>conftest.err
18389 cat conftest.err
>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try
='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try
='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18406 cat >>confdefs.h
<<\_ACEOF
18407 #define HAVE_SOCKETPAIR 1
18410 echo "$as_me:$LINENO: result: yes" >&5
18411 echo "${ECHO_T}yes" >&6
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.
$ac_ext >&5
18416 echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6
18420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18422 # check if sockaddr has sa_len member
18423 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18424 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18425 cat >conftest.
$ac_ext <<_ACEOF
18428 cat confdefs.h
>>conftest.
$ac_ext
18429 cat >>conftest.
$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <sys/types.h>
18432 #include <sys/socket.h>
18442 rm -f conftest.
$ac_objext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18444 (eval $ac_compile) 2>conftest.er1
18446 grep -v '^ *+' conftest.er1
>conftest.err
18448 cat conftest.err
>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try
='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try
='test -s conftest.$ac_objext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 echo "$as_me:$LINENO: result: yes" >&5
18465 echo "${ECHO_T}yes" >&6
18467 cat >>confdefs.h
<<\_ACEOF
18468 #define HAVE_SOCKADDR_SA_LEN 1
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.
$ac_ext >&5
18475 echo "$as_me:$LINENO: result: no" >&5
18476 echo "${ECHO_T}no" >&6
18478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18480 va_list_is_array
=no
18481 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18482 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18483 cat >conftest.
$ac_ext <<_ACEOF
18486 cat confdefs.h
>>conftest.
$ac_ext
18487 cat >>conftest.
$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 #ifdef HAVE_STDARG_PROTOTYPES
18491 #include <stdarg.h>
18493 #include <varargs.h>
18499 va_list list1, list2; list1 = list2;
18504 rm -f conftest.
$ac_objext
18505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18506 (eval $ac_compile) 2>conftest.er1
18508 grep -v '^ *+' conftest.er1
>conftest.err
18510 cat conftest.err
>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try
='test -z "$ac_c_werror_flag"
18514 || test ! -s conftest.err'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try
='test -s conftest.$ac_objext'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18528 echo "$as_me: failed program was:" >&5
18529 sed 's/^/| /' conftest.
$ac_ext >&5
18533 cat >>confdefs.h
<<\_ACEOF
18534 #define VA_LIST_IS_ARRAY 1
18537 va_list_is_array
=yes
18540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18541 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18542 echo "${ECHO_T}$va_list_is_array" >&6
18544 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18548 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18549 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18550 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 cat >conftest.
$ac_ext <<_ACEOF
18556 cat confdefs.h
>>conftest.
$ac_ext
18557 cat >>conftest.
$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18559 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18561 #define gethostbyname_r innocuous_gethostbyname_r
18563 /* System header to define __stub macros and hopefully few prototypes,
18564 which can conflict with char gethostbyname_r (); below.
18565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18566 <limits.h> exists even on freestanding compilers. */
18569 # include <limits.h>
18571 # include <assert.h>
18574 #undef gethostbyname_r
18576 /* Override any gcc2 internal prototype to avoid an error. */
18581 /* We use char because int might match the return type of a gcc2
18582 builtin and then its argument prototype would still apply. */
18583 char gethostbyname_r ();
18584 /* The GNU C library defines this for functions which it implements
18585 to always fail with ENOSYS. Some functions are actually named
18586 something starting with __ and the normal name is an alias. */
18587 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18590 char (*f) () = gethostbyname_r;
18599 return f != gethostbyname_r;
18604 rm -f conftest.
$ac_objext conftest
$ac_exeext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606 (eval $ac_link) 2>conftest.er1
18608 grep -v '^ *+' conftest.er1
>conftest.err
18610 cat conftest.err
>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try
='test -z "$ac_c_werror_flag"
18614 || test ! -s conftest.err'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try
='test -s conftest$ac_exeext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_func_gethostbyname_r
=yes
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.
$ac_ext >&5
18631 ac_cv_func_gethostbyname_r
=no
18633 rm -f conftest.err conftest.
$ac_objext \
18634 conftest
$ac_exeext conftest.
$ac_ext
18636 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18637 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18638 if test $ac_cv_func_gethostbyname_r = yes; then
18640 cat >>confdefs.h
<<\_ACEOF
18641 #define HAVE_GETHOSTBYNAME_R 1
18644 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18645 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18647 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18648 cat >conftest.
$ac_ext <<_ACEOF
18651 cat confdefs.h
>>conftest.
$ac_ext
18652 cat >>conftest.
$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18655 # include <netdb.h>
18662 struct hostent *he, *res;
18667 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18673 rm -f conftest.
$ac_objext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18675 (eval $ac_compile) 2>conftest.er1
18677 grep -v '^ *+' conftest.er1
>conftest.err
18679 cat conftest.err
>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try
='test -z "$ac_c_werror_flag"
18683 || test ! -s conftest.err'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try
='test -s conftest.$ac_objext'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18696 cat >>confdefs.h
<<\_ACEOF
18697 #define HAVE_GETHOSTBYNAME_R 1
18701 cat >>confdefs.h
<<\_ACEOF
18702 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18705 echo "$as_me:$LINENO: result: yes" >&5
18706 echo "${ECHO_T}yes" >&6
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.
$ac_ext >&5
18713 echo "$as_me:$LINENO: result: no" >&5
18714 echo "${ECHO_T}no" >&6
18715 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18716 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18717 cat >conftest.
$ac_ext <<_ACEOF
18720 cat confdefs.h
>>conftest.
$ac_ext
18721 cat >>conftest.
$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18724 # include <netdb.h>
18731 struct hostent *he;
18736 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18742 rm -f conftest.
$ac_objext
18743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18744 (eval $ac_compile) 2>conftest.er1
18746 grep -v '^ *+' conftest.er1
>conftest.err
18748 cat conftest.err
>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try
='test -z "$ac_c_werror_flag"
18752 || test ! -s conftest.err'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try
='test -s conftest.$ac_objext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18765 cat >>confdefs.h
<<\_ACEOF
18766 #define HAVE_GETHOSTBYNAME_R 1
18770 cat >>confdefs.h
<<\_ACEOF
18771 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18774 echo "$as_me:$LINENO: result: yes" >&5
18775 echo "${ECHO_T}yes" >&6
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.
$ac_ext >&5
18782 echo "$as_me:$LINENO: result: no" >&5
18783 echo "${ECHO_T}no" >&6
18784 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18785 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18786 cat >conftest.
$ac_ext <<_ACEOF
18789 cat confdefs.h
>>conftest.
$ac_ext
18790 cat >>conftest.
$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18793 # include <netdb.h>
18800 struct hostent *he;
18801 struct hostent_data data;
18803 (void) gethostbyname_r(name, he, &data);
18809 rm -f conftest.
$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18813 grep -v '^ *+' conftest.er1
>conftest.err
18815 cat conftest.err
>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try
='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try
='test -s conftest.$ac_objext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18832 cat >>confdefs.h
<<\_ACEOF
18833 #define HAVE_GETHOSTBYNAME_R 1
18837 cat >>confdefs.h
<<\_ACEOF
18838 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18841 echo "$as_me:$LINENO: result: yes" >&5
18842 echo "${ECHO_T}yes" >&6
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.
$ac_ext >&5
18849 echo "$as_me:$LINENO: result: no" >&5
18850 echo "${ECHO_T}no" >&6
18853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18865 for ac_func
in gethostbyname
18867 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18868 echo "$as_me:$LINENO: checking for $ac_func" >&5
18869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18870 if eval "test \"\${$as_ac_var+set}\" = set"; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 cat >conftest.
$ac_ext <<_ACEOF
18876 cat confdefs.h
>>conftest.
$ac_ext
18877 cat >>conftest.
$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18881 #define $ac_func innocuous_$ac_func
18883 /* System header to define __stub macros and hopefully few prototypes,
18884 which can conflict with char $ac_func (); below.
18885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18886 <limits.h> exists even on freestanding compilers. */
18889 # include <limits.h>
18891 # include <assert.h>
18896 /* Override any gcc2 internal prototype to avoid an error. */
18901 /* We use char because int might match the return type of a gcc2
18902 builtin and then its argument prototype would still apply. */
18904 /* The GNU C library defines this for functions which it implements
18905 to always fail with ENOSYS. Some functions are actually named
18906 something starting with __ and the normal name is an alias. */
18907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18910 char (*f) () = $ac_func;
18919 return f != $ac_func;
18924 rm -f conftest.
$ac_objext conftest
$ac_exeext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18926 (eval $ac_link) 2>conftest.er1
18928 grep -v '^ *+' conftest.er1
>conftest.err
18930 cat conftest.err
>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try
='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try
='test -s conftest$ac_exeext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 eval "$as_ac_var=yes"
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.
$ac_ext >&5
18951 eval "$as_ac_var=no"
18953 rm -f conftest.err conftest.
$ac_objext \
18954 conftest
$ac_exeext conftest.
$ac_ext
18956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18958 if test `eval echo '${'$as_ac_var'}'` = yes; then
18959 cat >>confdefs.h
<<_ACEOF
18960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18975 # checks for system services
18978 # Linux requires this for correct f.p. operations
18979 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18980 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18981 if test "${ac_cv_func___fpu_control+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 cat >conftest.
$ac_ext <<_ACEOF
18987 cat confdefs.h
>>conftest.
$ac_ext
18988 cat >>conftest.
$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18992 #define __fpu_control innocuous___fpu_control
18994 /* System header to define __stub macros and hopefully few prototypes,
18995 which can conflict with char __fpu_control (); below.
18996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18997 <limits.h> exists even on freestanding compilers. */
19000 # include <limits.h>
19002 # include <assert.h>
19005 #undef __fpu_control
19007 /* Override any gcc2 internal prototype to avoid an error. */
19012 /* We use char because int might match the return type of a gcc2
19013 builtin and then its argument prototype would still apply. */
19014 char __fpu_control ();
19015 /* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19021 char (*f) () = __fpu_control;
19030 return f != __fpu_control;
19035 rm -f conftest.
$ac_objext conftest
$ac_exeext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 (eval $ac_link) 2>conftest.er1
19039 grep -v '^ *+' conftest.er1
>conftest.err
19041 cat conftest.err
>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try
='test -z "$ac_c_werror_flag"
19045 || test ! -s conftest.err'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try
='test -s conftest$ac_exeext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_func___fpu_control
=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.
$ac_ext >&5
19062 ac_cv_func___fpu_control
=no
19064 rm -f conftest.err conftest.
$ac_objext \
19065 conftest
$ac_exeext conftest.
$ac_ext
19067 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19068 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19069 if test $ac_cv_func___fpu_control = yes; then
19073 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19074 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19075 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 ac_check_lib_save_LIBS
=$LIBS
19079 LIBS
="-lieee $LIBS"
19080 cat >conftest.
$ac_ext <<_ACEOF
19083 cat confdefs.h
>>conftest.
$ac_ext
19084 cat >>conftest.
$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19087 /* Override any gcc2 internal prototype to avoid an error. */
19091 /* We use char because int might match the return type of a gcc2
19092 builtin and then its argument prototype would still apply. */
19093 char __fpu_control ();
19102 rm -f conftest.
$ac_objext conftest
$ac_exeext
19103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19104 (eval $ac_link) 2>conftest.er1
19106 grep -v '^ *+' conftest.er1
>conftest.err
19108 cat conftest.err
>&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } &&
19111 { ac_try
='test -z "$ac_c_werror_flag"
19112 || test ! -s conftest.err'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try
='test -s conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_lib_ieee___fpu_control
=yes
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.
$ac_ext >&5
19129 ac_cv_lib_ieee___fpu_control
=no
19131 rm -f conftest.err conftest.
$ac_objext \
19132 conftest
$ac_exeext conftest.
$ac_ext
19133 LIBS
=$ac_check_lib_save_LIBS
19135 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19136 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19137 if test $ac_cv_lib_ieee___fpu_control = yes; then
19138 cat >>confdefs.h
<<_ACEOF
19139 #define HAVE_LIBIEEE 1
19142 LIBS
="-lieee $LIBS"
19150 # Check for --with-fpectl
19151 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19152 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19154 # Check whether --with-fpectl or --without-fpectl was given.
19155 if test "${with_fpectl+set}" = set; then
19156 withval
="$with_fpectl"
19158 if test "$withval" != no
19161 cat >>confdefs.h
<<\_ACEOF
19162 #define WANT_SIGFPE_HANDLER 1
19165 echo "$as_me:$LINENO: result: yes" >&5
19166 echo "${ECHO_T}yes" >&6
19167 else echo "$as_me:$LINENO: result: no" >&5
19168 echo "${ECHO_T}no" >&6
19171 echo "$as_me:$LINENO: result: no" >&5
19172 echo "${ECHO_T}no" >&6
19175 # check for --with-libm=...
19177 case $ac_sys_system in
19182 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19183 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19185 # Check whether --with-libm or --without-libm was given.
19186 if test "${with_libm+set}" = set; then
19187 withval
="$with_libm"
19189 if test "$withval" = no
19191 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19192 echo "${ECHO_T}force LIBM empty" >&6
19193 elif test "$withval" != yes
19195 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19196 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19197 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19198 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19199 { (exit 1); exit 1; }; }
19202 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19203 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19206 # check for --with-libc=...
19208 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19209 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19211 # Check whether --with-libc or --without-libc was given.
19212 if test "${with_libc+set}" = set; then
19213 withval
="$with_libc"
19215 if test "$withval" = no
19217 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19218 echo "${ECHO_T}force LIBC empty" >&6
19219 elif test "$withval" != yes
19221 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19222 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19223 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19224 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19225 { (exit 1); exit 1; }; }
19228 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19229 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19232 # check for hypot() in math library
19236 for ac_func
in hypot
19238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19239 echo "$as_me:$LINENO: checking for $ac_func" >&5
19240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19241 if eval "test \"\${$as_ac_var+set}\" = set"; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 cat >conftest.
$ac_ext <<_ACEOF
19247 cat confdefs.h
>>conftest.
$ac_ext
19248 cat >>conftest.
$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19252 #define $ac_func innocuous_$ac_func
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char $ac_func (); below.
19256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19257 <limits.h> exists even on freestanding compilers. */
19260 # include <limits.h>
19262 # include <assert.h>
19267 /* Override any gcc2 internal prototype to avoid an error. */
19272 /* We use char because int might match the return type of a gcc2
19273 builtin and then its argument prototype would still apply. */
19275 /* The GNU C library defines this for functions which it implements
19276 to always fail with ENOSYS. Some functions are actually named
19277 something starting with __ and the normal name is an alias. */
19278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19281 char (*f) () = $ac_func;
19290 return f != $ac_func;
19295 rm -f conftest.
$ac_objext conftest
$ac_exeext
19296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19297 (eval $ac_link) 2>conftest.er1
19299 grep -v '^ *+' conftest.er1
>conftest.err
19301 cat conftest.err
>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
19304 { ac_try
='test -z "$ac_c_werror_flag"
19305 || test ! -s conftest.err'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; } &&
19311 { ac_try
='test -s conftest$ac_exeext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 eval "$as_ac_var=yes"
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.
$ac_ext >&5
19322 eval "$as_ac_var=no"
19324 rm -f conftest.err conftest.
$ac_objext \
19325 conftest
$ac_exeext conftest.
$ac_ext
19327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19329 if test `eval echo '${'$as_ac_var'}'` = yes; then
19330 cat >>confdefs.h
<<_ACEOF
19331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19336 "$ac_func.$ac_objext" | \
19337 *" $ac_func.$ac_objext" | \
19338 "$ac_func.$ac_objext "* | \
19339 *" $ac_func.$ac_objext "* ) ;;
19340 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19349 # check for wchar.h
19350 if test "${ac_cv_header_wchar_h+set}" = set; then
19351 echo "$as_me:$LINENO: checking for wchar.h" >&5
19352 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19353 if test "${ac_cv_header_wchar_h+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19357 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19359 # Is the header compilable?
19360 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19361 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19362 cat >conftest.
$ac_ext <<_ACEOF
19365 cat confdefs.h
>>conftest.
$ac_ext
19366 cat >>conftest.
$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 $ac_includes_default
19371 rm -f conftest.
$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>conftest.er1
19375 grep -v '^ *+' conftest.er1
>conftest.err
19377 cat conftest.err
>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try
='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try
='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_header_compiler
=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.
$ac_ext >&5
19398 ac_header_compiler
=no
19400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19402 echo "${ECHO_T}$ac_header_compiler" >&6
19404 # Is the header present?
19405 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19406 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19407 cat >conftest.
$ac_ext <<_ACEOF
19410 cat confdefs.h
>>conftest.
$ac_ext
19411 cat >>conftest.
$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19416 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19418 grep -v '^ *+' conftest.er1
>conftest.err
19420 cat conftest.err
>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } >/dev
/null
; then
19423 if test -s conftest.err
; then
19424 ac_cpp_err
=$ac_c_preproc_warn_flag
19425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19432 if test -z "$ac_cpp_err"; then
19433 ac_header_preproc
=yes
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.
$ac_ext >&5
19438 ac_header_preproc
=no
19440 rm -f conftest.err conftest.
$ac_ext
19441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19442 echo "${ECHO_T}$ac_header_preproc" >&6
19444 # So? What about this header?
19445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19447 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19448 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19450 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19451 ac_header_preproc
=yes
19454 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19455 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19457 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19459 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19461 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19463 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19465 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19468 ## ------------------------------------------------ ##
19469 ## Report this to http://www.python.org/python-bugs ##
19470 ## ------------------------------------------------ ##
19473 sed "s/^/$as_me: WARNING: /" >&2
19476 echo "$as_me:$LINENO: checking for wchar.h" >&5
19477 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19478 if test "${ac_cv_header_wchar_h+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 ac_cv_header_wchar_h
=$ac_header_preproc
19483 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19484 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19487 if test $ac_cv_header_wchar_h = yes; then
19490 cat >>confdefs.h
<<\_ACEOF
19491 #define HAVE_WCHAR_H 1
19503 # determine wchar_t size
19504 if test "$wchar_h" = yes
19506 echo "$as_me:$LINENO: checking for wchar_t" >&5
19507 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19508 if test "${ac_cv_type_wchar_t+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 cat >conftest.
$ac_ext <<_ACEOF
19514 cat confdefs.h
>>conftest.
$ac_ext
19515 cat >>conftest.
$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19524 if (sizeof (wchar_t))
19530 rm -f conftest.
$ac_objext
19531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19532 (eval $ac_compile) 2>conftest.er1
19534 grep -v '^ *+' conftest.er1
>conftest.err
19536 cat conftest.err
>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
19539 { ac_try
='test -z "$ac_c_werror_flag"
19540 || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try
='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_type_wchar_t
=yes
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.
$ac_ext >&5
19557 ac_cv_type_wchar_t
=no
19559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19561 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19562 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19564 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19565 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19566 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 if test "$ac_cv_type_wchar_t" = yes; then
19570 # The cast to unsigned long works around a bug in the HP C Compiler
19571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19573 # This bug is HP SR number 8606223364.
19574 if test "$cross_compiling" = yes; then
19575 # Depending upon the size, compute the lo and hi bounds.
19576 cat >conftest.
$ac_ext <<_ACEOF
19579 cat confdefs.h
>>conftest.
$ac_ext
19580 cat >>conftest.
$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19587 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19594 rm -f conftest.
$ac_objext
19595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596 (eval $ac_compile) 2>conftest.er1
19598 grep -v '^ *+' conftest.er1
>conftest.err
19600 cat conftest.err
>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
19603 { ac_try
='test -z "$ac_c_werror_flag"
19604 || test ! -s conftest.err'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try
='test -s conftest.$ac_objext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19618 cat >conftest.
$ac_ext <<_ACEOF
19621 cat confdefs.h
>>conftest.
$ac_ext
19622 cat >>conftest.
$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19629 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19636 rm -f conftest.
$ac_objext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>conftest.er1
19640 grep -v '^ *+' conftest.er1
>conftest.err
19642 cat conftest.err
>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try
='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try
='test -s conftest.$ac_objext'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_hi
=$ac_mid; break
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.
$ac_ext >&5
19663 ac_lo
=`expr $ac_mid + 1`
19664 if test $ac_lo -le $ac_mid; then
19668 ac_mid
=`expr 2 '*' $ac_mid + 1`
19670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.
$ac_ext >&5
19676 cat >conftest.
$ac_ext <<_ACEOF
19679 cat confdefs.h
>>conftest.
$ac_ext
19680 cat >>conftest.
$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19687 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19694 rm -f conftest.
$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696 (eval $ac_compile) 2>conftest.er1
19698 grep -v '^ *+' conftest.er1
>conftest.err
19700 cat conftest.err
>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try
='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try
='test -s conftest.$ac_objext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19718 cat >conftest.
$ac_ext <<_ACEOF
19721 cat confdefs.h
>>conftest.
$ac_ext
19722 cat >>conftest.
$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19729 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19736 rm -f conftest.
$ac_objext
19737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19738 (eval $ac_compile) 2>conftest.er1
19740 grep -v '^ *+' conftest.er1
>conftest.err
19742 cat conftest.err
>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try
='test -z "$ac_c_werror_flag"
19746 || test ! -s conftest.err'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; } &&
19752 { ac_try
='test -s conftest.$ac_objext'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_lo
=$ac_mid; break
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.
$ac_ext >&5
19763 ac_hi
=`expr '(' $ac_mid ')' - 1`
19764 if test $ac_mid -le $ac_hi; then
19768 ac_mid
=`expr 2 '*' $ac_mid`
19770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.
$ac_ext >&5
19778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19781 # Binary search between lo and hi bounds.
19782 while test "x$ac_lo" != "x$ac_hi"; do
19783 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19784 cat >conftest.
$ac_ext <<_ACEOF
19787 cat confdefs.h
>>conftest.
$ac_ext
19788 cat >>conftest.
$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19795 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19802 rm -f conftest.
$ac_objext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804 (eval $ac_compile) 2>conftest.er1
19806 grep -v '^ *+' conftest.er1
>conftest.err
19808 cat conftest.err
>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try
='test -z "$ac_c_werror_flag"
19812 || test ! -s conftest.err'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try
='test -s conftest.$ac_objext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.
$ac_ext >&5
19829 ac_lo
=`expr '(' $ac_mid ')' + 1`
19831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19834 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19836 See \`config.log' for more details." >&5
19837 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19838 See \`config.log' for more details." >&2;}
19839 { (exit 1); exit 1; }; } ;;
19842 if test "$cross_compiling" = yes; then
19843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19844 See \`config.log' for more details." >&5
19845 echo "$as_me: error: cannot run test program while cross compiling
19846 See \`config.log' for more details." >&2;}
19847 { (exit 1); exit 1; }; }
19849 cat >conftest.
$ac_ext <<_ACEOF
19852 cat confdefs.h
>>conftest.
$ac_ext
19853 cat >>conftest.
$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19857 long longval () { return (long) (sizeof (wchar_t)); }
19858 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19860 #include <stdlib.h>
19865 FILE *f = fopen ("conftest.val", "w");
19868 if (((long) (sizeof (wchar_t))) < 0)
19870 long i = longval ();
19871 if (i != ((long) (sizeof (wchar_t))))
19873 fprintf (f, "%ld\n", i);
19877 unsigned long i = ulongval ();
19878 if (i != ((long) (sizeof (wchar_t))))
19880 fprintf (f, "%lu\n", i);
19882 exit (ferror (f) || fclose (f) != 0);
19888 rm -f conftest
$ac_exeext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19890 (eval $ac_link) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19901 echo "$as_me: program exited with status $ac_status" >&5
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.
$ac_ext >&5
19905 ( exit $ac_status )
19906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19907 See \`config.log' for more details." >&5
19908 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19909 See \`config.log' for more details." >&2;}
19910 { (exit 1); exit 1; }; }
19912 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19917 ac_cv_sizeof_wchar_t
=0
19920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19921 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19922 cat >>confdefs.h
<<_ACEOF
19923 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19929 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19930 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19932 cat >conftest.
$ac_ext <<_ACEOF
19935 cat confdefs.h
>>conftest.
$ac_ext
19936 cat >>conftest.
$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19940 #if TCL_UTF_MAX != 6
19941 # error "NOT UCS4_TCL"
19951 rm -f conftest.
$ac_objext
19952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19953 (eval $ac_compile) 2>conftest.er1
19955 grep -v '^ *+' conftest.er1
>conftest.err
19957 cat conftest.err
>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try
='test -z "$ac_c_werror_flag"
19961 || test ! -s conftest.err'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try
='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19975 cat >>confdefs.h
<<\_ACEOF
19976 #define HAVE_UCS4_TCL 1
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.
$ac_ext >&5
19986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19987 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19988 echo "${ECHO_T}$have_ucs4_tcl" >&6
19990 # check whether wchar_t is signed or not
19991 if test "$wchar_h" = yes
19993 # check whether wchar_t is signed or not
19994 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19995 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19996 if test "${ac_cv_wchar_t_signed+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 if test "$cross_compiling" = yes; then
20001 ac_cv_wchar_t_signed
=yes
20003 cat >conftest.
$ac_ext <<_ACEOF
20006 cat confdefs.h
>>conftest.
$ac_ext
20007 cat >>conftest.
$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20013 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20017 rm -f conftest
$ac_exeext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20019 (eval $ac_link) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_wchar_t_signed
=yes
20030 echo "$as_me: program exited with status $ac_status" >&5
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.
$ac_ext >&5
20034 ( exit $ac_status )
20035 ac_cv_wchar_t_signed
=no
20037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20041 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20042 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20045 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20046 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20047 # Check whether --enable-unicode or --disable-unicode was given.
20048 if test "${enable_unicode+set}" = set; then
20049 enableval
="$enable_unicode"
20055 if test $enable_unicode = yes
20057 # Without any arguments, Py_UNICODE defaults to two-byte mode
20058 case "$have_ucs4_tcl" in
20059 yes) enable_unicode
="ucs4"
20061 *) enable_unicode
="ucs2"
20068 case "$enable_unicode" in
20069 ucs2
) unicode_size
="2"
20070 cat >>confdefs.h
<<\_ACEOF
20071 #define Py_UNICODE_SIZE 2
20075 ucs4
) unicode_size
="4"
20076 cat >>confdefs.h
<<\_ACEOF
20077 #define Py_UNICODE_SIZE 4
20087 if test "$enable_unicode" = "no"
20090 echo "$as_me:$LINENO: result: not used" >&5
20091 echo "${ECHO_T}not used" >&6
20093 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20095 cat >>confdefs.h
<<\_ACEOF
20096 #define Py_USING_UNICODE 1
20100 # wchar_t is only usable if it maps to an unsigned type
20101 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20102 -a "$ac_cv_wchar_t_signed" = "no"
20104 PY_UNICODE_TYPE
="wchar_t"
20106 cat >>confdefs.h
<<\_ACEOF
20107 #define HAVE_USABLE_WCHAR_T 1
20110 cat >>confdefs.h
<<\_ACEOF
20111 #define PY_UNICODE_TYPE wchar_t
20114 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20116 PY_UNICODE_TYPE
="unsigned short"
20117 cat >>confdefs.h
<<\_ACEOF
20118 #define PY_UNICODE_TYPE unsigned short
20121 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20123 PY_UNICODE_TYPE
="unsigned long"
20124 cat >>confdefs.h
<<\_ACEOF
20125 #define PY_UNICODE_TYPE unsigned long
20129 PY_UNICODE_TYPE
="no type found"
20131 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20132 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20135 # check for endianness
20136 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20137 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20138 if test "${ac_cv_c_bigendian+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 # See if sys/param.h defines the BYTE_ORDER macro.
20142 cat >conftest.
$ac_ext <<_ACEOF
20145 cat confdefs.h
>>conftest.
$ac_ext
20146 cat >>conftest.
$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <sys/types.h>
20149 #include <sys/param.h>
20154 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20155 bogus endian macros
20162 rm -f conftest.
$ac_objext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164 (eval $ac_compile) 2>conftest.er1
20166 grep -v '^ *+' conftest.er1
>conftest.err
20168 cat conftest.err
>&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try
='test -z "$ac_c_werror_flag"
20172 || test ! -s conftest.err'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; } &&
20178 { ac_try
='test -s conftest.$ac_objext'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 # It does; now see whether it defined to BIG_ENDIAN or not.
20185 cat >conftest.
$ac_ext <<_ACEOF
20188 cat confdefs.h
>>conftest.
$ac_ext
20189 cat >>conftest.
$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #include <sys/types.h>
20192 #include <sys/param.h>
20197 #if BYTE_ORDER != BIG_ENDIAN
20205 rm -f conftest.
$ac_objext
20206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20207 (eval $ac_compile) 2>conftest.er1
20209 grep -v '^ *+' conftest.er1
>conftest.err
20211 cat conftest.err
>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try
='test -z "$ac_c_werror_flag"
20215 || test ! -s conftest.err'
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try
='test -s conftest.$ac_objext'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_c_bigendian
=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.
$ac_ext >&5
20232 ac_cv_c_bigendian
=no
20234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.
$ac_ext >&5
20239 # It does not; compile a test program.
20240 if test "$cross_compiling" = yes; then
20241 # try to guess the endianness by grepping values into an object file
20242 ac_cv_c_bigendian
=unknown
20243 cat >conftest.
$ac_ext <<_ACEOF
20246 cat confdefs.h
>>conftest.
$ac_ext
20247 cat >>conftest.
$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20250 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20251 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20252 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20253 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20254 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20258 _ascii (); _ebcdic ();
20263 rm -f conftest.
$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265 (eval $ac_compile) 2>conftest.er1
20267 grep -v '^ *+' conftest.er1
>conftest.err
20269 cat conftest.err
>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try
='test -z "$ac_c_werror_flag"
20273 || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try
='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20286 ac_cv_c_bigendian
=yes
20288 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20289 if test "$ac_cv_c_bigendian" = unknown
; then
20290 ac_cv_c_bigendian
=no
20292 # finding both strings is unlikely to happen, but who knows?
20293 ac_cv_c_bigendian
=unknown
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.
$ac_ext >&5
20301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20303 cat >conftest.
$ac_ext <<_ACEOF
20306 cat confdefs.h
>>conftest.
$ac_ext
20307 cat >>conftest.
$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20312 /* Are we little or big endian? From Harbison&Steele. */
20316 char c[sizeof (long)];
20319 exit (u.c[sizeof (long) - 1] == 1);
20322 rm -f conftest
$ac_exeext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20324 (eval $ac_link) 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_c_bigendian
=no
20335 echo "$as_me: program exited with status $ac_status" >&5
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.
$ac_ext >&5
20339 ( exit $ac_status )
20340 ac_cv_c_bigendian
=yes
20342 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20347 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20348 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20349 case $ac_cv_c_bigendian in
20352 cat >>confdefs.h
<<\_ACEOF
20353 #define WORDS_BIGENDIAN 1
20359 { { echo "$as_me:$LINENO: error: unknown endianness
20360 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20361 echo "$as_me: error: unknown endianness
20362 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20363 { (exit 1); exit 1; }; } ;;
20367 # Check whether right shifting a negative integer extends the sign bit
20368 # or fills with zeros (like the Cray J90, according to Tim Peters).
20369 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20370 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20371 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 if test "$cross_compiling" = yes; then
20376 ac_cv_rshift_extends_sign
=yes
20378 cat >conftest.
$ac_ext <<_ACEOF
20381 cat confdefs.h
>>conftest.
$ac_ext
20382 cat >>conftest.
$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20387 exit(((-1)>>3 == -1) ? 0 : 1);
20391 rm -f conftest
$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_rshift_extends_sign
=yes
20404 echo "$as_me: program exited with status $ac_status" >&5
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.
$ac_ext >&5
20408 ( exit $ac_status )
20409 ac_cv_rshift_extends_sign
=no
20411 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20415 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20416 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20417 if test "$ac_cv_rshift_extends_sign" = no
20420 cat >>confdefs.h
<<\_ACEOF
20421 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20426 # check for getc_unlocked and related locking functions
20427 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20428 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20429 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 cat >conftest.
$ac_ext <<_ACEOF
20436 cat confdefs.h
>>conftest.
$ac_ext
20437 cat >>conftest.
$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20444 FILE *f = fopen("/dev/null", "r");
20453 rm -f conftest.
$ac_objext conftest
$ac_exeext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20455 (eval $ac_link) 2>conftest.er1
20457 grep -v '^ *+' conftest.er1
>conftest.err
20459 cat conftest.err
>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
20462 { ac_try
='test -z "$ac_c_werror_flag"
20463 || test ! -s conftest.err'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try
='test -s conftest$ac_exeext'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_cv_have_getc_unlocked
=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.
$ac_ext >&5
20480 ac_cv_have_getc_unlocked
=no
20482 rm -f conftest.err conftest.
$ac_objext \
20483 conftest
$ac_exeext conftest.
$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20487 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20488 if test "$ac_cv_have_getc_unlocked" = yes
20491 cat >>confdefs.h
<<\_ACEOF
20492 #define HAVE_GETC_UNLOCKED 1
20497 # check where readline lives
20498 # save the value of LIBS so we don't actually link Python with readline
20499 LIBS_no_readline
=$LIBS
20501 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20502 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20503 if test "${ac_cv_lib_readline_readline+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 ac_check_lib_save_LIBS
=$LIBS
20507 LIBS
="-lreadline $LIBS"
20508 cat >conftest.
$ac_ext <<_ACEOF
20511 cat confdefs.h
>>conftest.
$ac_ext
20512 cat >>conftest.
$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any gcc2 internal prototype to avoid an error. */
20519 /* We use char because int might match the return type of a gcc2
20520 builtin and then its argument prototype would still apply. */
20530 rm -f conftest.
$ac_objext conftest
$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20534 grep -v '^ *+' conftest.er1
>conftest.err
20536 cat conftest.err
>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try
='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try
='test -s conftest$ac_exeext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_cv_lib_readline_readline
=yes
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.
$ac_ext >&5
20557 ac_cv_lib_readline_readline
=no
20559 rm -f conftest.err conftest.
$ac_objext \
20560 conftest
$ac_exeext conftest.
$ac_ext
20561 LIBS
=$ac_check_lib_save_LIBS
20563 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20564 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20565 if test $ac_cv_lib_readline_readline = yes; then
20566 cat >>confdefs.h
<<_ACEOF
20567 #define HAVE_LIBREADLINE 1
20570 LIBS
="-lreadline $LIBS"
20574 if test "$ac_cv_have_readline_readline" = no
20577 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20578 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20579 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 ac_check_lib_save_LIBS
=$LIBS
20583 LIBS
="-ltermcap $LIBS"
20584 cat >conftest.
$ac_ext <<_ACEOF
20587 cat confdefs.h
>>conftest.
$ac_ext
20588 cat >>conftest.
$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20591 /* Override any gcc2 internal prototype to avoid an error. */
20595 /* We use char because int might match the return type of a gcc2
20596 builtin and then its argument prototype would still apply. */
20606 rm -f conftest.
$ac_objext conftest
$ac_exeext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20608 (eval $ac_link) 2>conftest.er1
20610 grep -v '^ *+' conftest.er1
>conftest.err
20612 cat conftest.err
>&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try
='test -z "$ac_c_werror_flag"
20616 || test ! -s conftest.err'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try
='test -s conftest$ac_exeext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_lib_termcap_readline
=yes
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.
$ac_ext >&5
20633 ac_cv_lib_termcap_readline
=no
20635 rm -f conftest.err conftest.
$ac_objext \
20636 conftest
$ac_exeext conftest.
$ac_ext
20637 LIBS
=$ac_check_lib_save_LIBS
20639 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20640 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20641 if test $ac_cv_lib_termcap_readline = yes; then
20642 cat >>confdefs.h
<<_ACEOF
20643 #define HAVE_LIBTERMCAP 1
20646 LIBS
="-ltermcap $LIBS"
20652 # check for readline 2.1
20653 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20654 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20655 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 ac_check_lib_save_LIBS
=$LIBS
20659 LIBS
="-lreadline $LIBS"
20660 cat >conftest.
$ac_ext <<_ACEOF
20663 cat confdefs.h
>>conftest.
$ac_ext
20664 cat >>conftest.
$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20667 /* Override any gcc2 internal prototype to avoid an error. */
20671 /* We use char because int might match the return type of a gcc2
20672 builtin and then its argument prototype would still apply. */
20673 char rl_callback_handler_install ();
20677 rl_callback_handler_install ();
20682 rm -f conftest.
$ac_objext conftest
$ac_exeext
20683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20684 (eval $ac_link) 2>conftest.er1
20686 grep -v '^ *+' conftest.er1
>conftest.err
20688 cat conftest.err
>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } &&
20691 { ac_try
='test -z "$ac_c_werror_flag"
20692 || test ! -s conftest.err'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; } &&
20698 { ac_try
='test -s conftest$ac_exeext'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 ac_cv_lib_readline_rl_callback_handler_install
=yes
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.
$ac_ext >&5
20709 ac_cv_lib_readline_rl_callback_handler_install
=no
20711 rm -f conftest.err conftest.
$ac_objext \
20712 conftest
$ac_exeext conftest.
$ac_ext
20713 LIBS
=$ac_check_lib_save_LIBS
20715 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20716 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20717 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20719 cat >>confdefs.h
<<\_ACEOF
20720 #define HAVE_RL_CALLBACK 1
20726 # check for readline 2.2
20727 cat >conftest.
$ac_ext <<_ACEOF
20730 cat confdefs.h
>>conftest.
$ac_ext
20731 cat >>conftest.
$ac_ext <<_ACEOF
20732 /* end confdefs.h. */
20733 #include <readline/readline.h>
20735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20738 grep -v '^ *+' conftest.er1
>conftest.err
20740 cat conftest.err
>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } >/dev
/null
; then
20743 if test -s conftest.err
; then
20744 ac_cpp_err
=$ac_c_preproc_warn_flag
20745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20752 if test -z "$ac_cpp_err"; then
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.
$ac_ext >&5
20760 rm -f conftest.err conftest.
$ac_ext
20761 if test $have_readline = yes
20763 cat >conftest.
$ac_ext <<_ACEOF
20766 cat confdefs.h
>>conftest.
$ac_ext
20767 cat >>conftest.
$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 #include <readline/readline.h>
20772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20773 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20775 cat >>confdefs.h
<<\_ACEOF
20776 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20784 # check for readline 4.0
20785 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20786 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20787 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 ac_check_lib_save_LIBS
=$LIBS
20791 LIBS
="-lreadline $LIBS"
20792 cat >conftest.
$ac_ext <<_ACEOF
20795 cat confdefs.h
>>conftest.
$ac_ext
20796 cat >>conftest.
$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* Override any gcc2 internal prototype to avoid an error. */
20803 /* We use char because int might match the return type of a gcc2
20804 builtin and then its argument prototype would still apply. */
20805 char rl_pre_input_hook ();
20809 rl_pre_input_hook ();
20814 rm -f conftest.
$ac_objext conftest
$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>conftest.er1
20818 grep -v '^ *+' conftest.er1
>conftest.err
20820 cat conftest.err
>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try
='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try
='test -s conftest$ac_exeext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_cv_lib_readline_rl_pre_input_hook
=yes
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.
$ac_ext >&5
20841 ac_cv_lib_readline_rl_pre_input_hook
=no
20843 rm -f conftest.err conftest.
$ac_objext \
20844 conftest
$ac_exeext conftest.
$ac_ext
20845 LIBS
=$ac_check_lib_save_LIBS
20847 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20848 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20849 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20851 cat >>confdefs.h
<<\_ACEOF
20852 #define HAVE_RL_PRE_INPUT_HOOK 1
20858 # check for readline 4.2
20859 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20860 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20861 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 ac_check_lib_save_LIBS
=$LIBS
20865 LIBS
="-lreadline $LIBS"
20866 cat >conftest.
$ac_ext <<_ACEOF
20869 cat confdefs.h
>>conftest.
$ac_ext
20870 cat >>conftest.
$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20873 /* Override any gcc2 internal prototype to avoid an error. */
20877 /* We use char because int might match the return type of a gcc2
20878 builtin and then its argument prototype would still apply. */
20879 char rl_completion_matches ();
20883 rl_completion_matches ();
20888 rm -f conftest.
$ac_objext conftest
$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890 (eval $ac_link) 2>conftest.er1
20892 grep -v '^ *+' conftest.er1
>conftest.err
20894 cat conftest.err
>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try
='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try
='test -s conftest$ac_exeext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_cv_lib_readline_rl_completion_matches
=yes
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.
$ac_ext >&5
20915 ac_cv_lib_readline_rl_completion_matches
=no
20917 rm -f conftest.err conftest.
$ac_objext \
20918 conftest
$ac_exeext conftest.
$ac_ext
20919 LIBS
=$ac_check_lib_save_LIBS
20921 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20922 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20923 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20925 cat >>confdefs.h
<<\_ACEOF
20926 #define HAVE_RL_COMPLETION_MATCHES 1
20932 # also in readline 4.2
20933 cat >conftest.
$ac_ext <<_ACEOF
20936 cat confdefs.h
>>conftest.
$ac_ext
20937 cat >>conftest.
$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <readline/readline.h>
20941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20942 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20944 grep -v '^ *+' conftest.er1
>conftest.err
20946 cat conftest.err
>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } >/dev
/null
; then
20949 if test -s conftest.err
; then
20950 ac_cpp_err
=$ac_c_preproc_warn_flag
20951 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20958 if test -z "$ac_cpp_err"; then
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.
$ac_ext >&5
20966 rm -f conftest.err conftest.
$ac_ext
20967 if test $have_readline = yes
20969 cat >conftest.
$ac_ext <<_ACEOF
20972 cat confdefs.h
>>conftest.
$ac_ext
20973 cat >>conftest.
$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 #include <readline/readline.h>
20978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20979 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
20981 cat >>confdefs.h
<<\_ACEOF
20982 #define HAVE_RL_CATCH_SIGNAL 1
20990 # End of readline checks: restore LIBS
20991 LIBS
=$LIBS_no_readline
20993 echo "$as_me:$LINENO: checking for broken nice()" >&5
20994 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
20995 if test "${ac_cv_broken_nice+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 if test "$cross_compiling" = yes; then
21000 ac_cv_broken_nice
=no
21002 cat >conftest.
$ac_ext <<_ACEOF
21005 cat confdefs.h
>>conftest.
$ac_ext
21006 cat >>conftest.
$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21011 int val1 = nice(1);
21012 if (val1 != -1 && val1 == nice(2))
21018 rm -f conftest
$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020 (eval $ac_link) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_broken_nice
=yes
21031 echo "$as_me: program exited with status $ac_status" >&5
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.
$ac_ext >&5
21035 ( exit $ac_status )
21036 ac_cv_broken_nice
=no
21038 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21043 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21044 if test "$ac_cv_broken_nice" = yes
21047 cat >>confdefs.h
<<\_ACEOF
21048 #define HAVE_BROKEN_NICE 1
21053 echo "$as_me:$LINENO: checking for broken poll()" >&5
21054 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21055 if test "$cross_compiling" = yes; then
21056 ac_cv_broken_poll
=no
21058 cat >conftest.
$ac_ext <<_ACEOF
21061 cat confdefs.h
>>conftest.
$ac_ext
21062 cat >>conftest.
$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21069 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21073 int poll_test = poll (&poll_struct, 1, 0);
21079 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21090 rm -f conftest
$ac_exeext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21092 (eval $ac_link) 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 ac_cv_broken_poll
=yes
21103 echo "$as_me: program exited with status $ac_status" >&5
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.
$ac_ext >&5
21107 ( exit $ac_status )
21108 ac_cv_broken_poll
=no
21110 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21112 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21113 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21114 if test "$ac_cv_broken_poll" = yes
21117 cat >>confdefs.h
<<\_ACEOF
21118 #define HAVE_BROKEN_POLL 1
21123 # Before we can test tzset, we need to check if struct tm has a tm_zone
21124 # (which is not required by ISO C or UNIX spec) and/or if we support
21126 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21127 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21128 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 cat >conftest.
$ac_ext <<_ACEOF
21134 cat confdefs.h
>>conftest.
$ac_ext
21135 cat >>conftest.
$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <sys/types.h>
21138 #include <$ac_cv_struct_tm>
21144 static struct tm ac_aggr;
21145 if (ac_aggr.tm_zone)
21151 rm -f conftest.
$ac_objext
21152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153 (eval $ac_compile) 2>conftest.er1
21155 grep -v '^ *+' conftest.er1
>conftest.err
21157 cat conftest.err
>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } &&
21160 { ac_try
='test -z "$ac_c_werror_flag"
21161 || test ! -s conftest.err'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; } &&
21167 { ac_try
='test -s conftest.$ac_objext'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
21173 ac_cv_member_struct_tm_tm_zone
=yes
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.
$ac_ext >&5
21178 cat >conftest.
$ac_ext <<_ACEOF
21181 cat confdefs.h
>>conftest.
$ac_ext
21182 cat >>conftest.
$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <sys/types.h>
21185 #include <$ac_cv_struct_tm>
21191 static struct tm ac_aggr;
21192 if (sizeof ac_aggr.tm_zone)
21198 rm -f conftest.
$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21202 grep -v '^ *+' conftest.er1
>conftest.err
21204 cat conftest.err
>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try
='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try
='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_member_struct_tm_tm_zone
=yes
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.
$ac_ext >&5
21225 ac_cv_member_struct_tm_tm_zone
=no
21227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21231 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21232 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21233 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21235 cat >>confdefs.h
<<_ACEOF
21236 #define HAVE_STRUCT_TM_TM_ZONE 1
21242 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21244 cat >>confdefs.h
<<\_ACEOF
21245 #define HAVE_TM_ZONE 1
21249 echo "$as_me:$LINENO: checking for tzname" >&5
21250 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21251 if test "${ac_cv_var_tzname+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 cat >conftest.
$ac_ext <<_ACEOF
21257 cat confdefs.h
>>conftest.
$ac_ext
21258 cat >>conftest.
$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21261 #ifndef tzname /* For SGI. */
21262 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21273 rm -f conftest.
$ac_objext conftest
$ac_exeext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21275 (eval $ac_link) 2>conftest.er1
21277 grep -v '^ *+' conftest.er1
>conftest.err
21279 cat conftest.err
>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try
='test -z "$ac_c_werror_flag"
21283 || test ! -s conftest.err'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try
='test -s conftest$ac_exeext'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21295 ac_cv_var_tzname
=yes
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.
$ac_ext >&5
21300 ac_cv_var_tzname
=no
21302 rm -f conftest.err conftest.
$ac_objext \
21303 conftest
$ac_exeext conftest.
$ac_ext
21305 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21306 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21307 if test $ac_cv_var_tzname = yes; then
21309 cat >>confdefs.h
<<\_ACEOF
21310 #define HAVE_TZNAME 1
21317 # check tzset(3) exists and works like we expect it to
21318 echo "$as_me:$LINENO: checking for working tzset()" >&5
21319 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21320 if test "${ac_cv_working_tzset+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 if test "$cross_compiling" = yes; then
21325 ac_cv_working_tzset
=no
21327 cat >conftest.
$ac_ext <<_ACEOF
21330 cat confdefs.h
>>conftest.
$ac_ext
21331 cat >>conftest.
$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21334 #include <stdlib.h>
21336 #include <string.h>
21339 extern char *tzname[];
21344 /* Note that we need to ensure that not only does tzset(3)
21345 do 'something' with localtime, but it works as documented
21346 in the library reference and as expected by the test suite.
21347 This includes making sure that tzname is set properly if
21348 tm->tm_zone does not exist since it is the alternative way
21349 of getting timezone info.
21351 Red Hat 6.2 doesn't understand the southern hemisphere
21352 after New Year's Day.
21355 time_t groundhogday = 1044144000; /* GMT-based */
21356 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21358 putenv("TZ=UTC+0");
21360 if (localtime(&groundhogday)->tm_hour != 0)
21363 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21364 if (strcmp(tzname[0], "UTC") ||
21365 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21369 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21371 if (localtime(&groundhogday)->tm_hour != 19)
21374 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21378 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21380 if (localtime(&groundhogday)->tm_hour != 11)
21383 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21387 #if HAVE_STRUCT_TM_TM_ZONE
21388 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21390 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21398 rm -f conftest
$ac_exeext
21399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21400 (eval $ac_link) 2>&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 ac_cv_working_tzset
=yes
21411 echo "$as_me: program exited with status $ac_status" >&5
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.
$ac_ext >&5
21415 ( exit $ac_status )
21416 ac_cv_working_tzset
=no
21418 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21422 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21423 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21424 if test "$ac_cv_working_tzset" = yes
21427 cat >>confdefs.h
<<\_ACEOF
21428 #define HAVE_WORKING_TZSET 1
21433 # Look for subsecond timestamps in struct stat
21434 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21435 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21436 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 cat >conftest.
$ac_ext <<_ACEOF
21442 cat confdefs.h
>>conftest.
$ac_ext
21443 cat >>conftest.
$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <sys/stat.h>
21451 st.st_mtim.tv_nsec = 1;
21457 rm -f conftest.
$ac_objext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21459 (eval $ac_compile) 2>conftest.er1
21461 grep -v '^ *+' conftest.er1
>conftest.err
21463 cat conftest.err
>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } &&
21466 { ac_try
='test -z "$ac_c_werror_flag"
21467 || test ! -s conftest.err'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; } &&
21473 { ac_try
='test -s conftest.$ac_objext'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
21479 ac_cv_stat_tv_nsec
=yes
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.
$ac_ext >&5
21484 ac_cv_stat_tv_nsec
=no
21486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21490 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21491 if test "$ac_cv_stat_tv_nsec" = yes
21494 cat >>confdefs.h
<<\_ACEOF
21495 #define HAVE_STAT_TV_NSEC 1
21500 # Look for BSD style subsecond timestamps in struct stat
21501 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21502 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21503 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 cat >conftest.
$ac_ext <<_ACEOF
21509 cat confdefs.h
>>conftest.
$ac_ext
21510 cat >>conftest.
$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <sys/stat.h>
21518 st.st_mtimespec.tv_nsec = 1;
21524 rm -f conftest.
$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>conftest.er1
21528 grep -v '^ *+' conftest.er1
>conftest.err
21530 cat conftest.err
>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
21533 { ac_try
='test -z "$ac_c_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try
='test -s conftest.$ac_objext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_stat_tv_nsec2
=yes
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.
$ac_ext >&5
21551 ac_cv_stat_tv_nsec2
=no
21553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21556 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21557 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21558 if test "$ac_cv_stat_tv_nsec2" = yes
21561 cat >>confdefs.h
<<\_ACEOF
21562 #define HAVE_STAT_TV_NSEC2 1
21567 # On HP/UX 11.0, mvwdelch is a block with a return statement
21568 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21569 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21570 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 cat >conftest.
$ac_ext <<_ACEOF
21576 cat confdefs.h
>>conftest.
$ac_ext
21577 cat >>conftest.
$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 #include <curses.h>
21585 rtn = mvwdelch(0,0,0);
21591 rm -f conftest.
$ac_objext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21593 (eval $ac_compile) 2>conftest.er1
21595 grep -v '^ *+' conftest.er1
>conftest.err
21597 cat conftest.err
>&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
21600 { ac_try
='test -z "$ac_c_werror_flag"
21601 || test ! -s conftest.err'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try
='test -s conftest.$ac_objext'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ac_cv_mvwdelch_is_expression
=yes
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.
$ac_ext >&5
21618 ac_cv_mvwdelch_is_expression
=no
21620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21623 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21624 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21626 if test "$ac_cv_mvwdelch_is_expression" = yes
21629 cat >>confdefs.h
<<\_ACEOF
21630 #define MVWDELCH_IS_EXPRESSION 1
21635 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21636 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21637 if test "${ac_cv_window_has_flags+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 cat >conftest.
$ac_ext <<_ACEOF
21643 cat confdefs.h
>>conftest.
$ac_ext
21644 cat >>conftest.
$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 #include <curses.h>
21658 rm -f conftest.
$ac_objext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660 (eval $ac_compile) 2>conftest.er1
21662 grep -v '^ *+' conftest.er1
>conftest.err
21664 cat conftest.err
>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try
='test -z "$ac_c_werror_flag"
21668 || test ! -s conftest.err'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try
='test -s conftest.$ac_objext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_window_has_flags
=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.
$ac_ext >&5
21685 ac_cv_window_has_flags
=no
21687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21690 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21691 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21694 if test "$ac_cv_window_has_flags" = yes
21697 cat >>confdefs.h
<<\_ACEOF
21698 #define WINDOW_HAS_FLAGS 1
21703 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21704 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21706 if test -e /dev
/ptmx
21708 echo "$as_me:$LINENO: result: yes" >&5
21709 echo "${ECHO_T}yes" >&6
21711 cat >>confdefs.h
<<\_ACEOF
21712 #define HAVE_DEV_PTMX 1
21716 echo "$as_me:$LINENO: result: no" >&5
21717 echo "${ECHO_T}no" >&6
21720 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21721 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21723 if test -e /dev
/ptc
21725 echo "$as_me:$LINENO: result: yes" >&5
21726 echo "${ECHO_T}yes" >&6
21728 cat >>confdefs.h
<<\_ACEOF
21729 #define HAVE_DEV_PTC 1
21733 echo "$as_me:$LINENO: result: no" >&5
21734 echo "${ECHO_T}no" >&6
21737 echo "$as_me:$LINENO: checking for socklen_t" >&5
21738 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21739 if test "${ac_cv_type_socklen_t+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 cat >conftest.
$ac_ext <<_ACEOF
21745 cat confdefs.h
>>conftest.
$ac_ext
21746 cat >>conftest.
$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21749 #ifdef HAVE_SYS_TYPES_H
21750 #include <sys/types.h>
21752 #ifdef HAVE_SYS_SOCKET_H
21753 #include <sys/socket.h>
21760 if ((socklen_t *) 0)
21762 if (sizeof (socklen_t))
21768 rm -f conftest.
$ac_objext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21770 (eval $ac_compile) 2>conftest.er1
21772 grep -v '^ *+' conftest.er1
>conftest.err
21774 cat conftest.err
>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } &&
21777 { ac_try
='test -z "$ac_c_werror_flag"
21778 || test ! -s conftest.err'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try
='test -s conftest.$ac_objext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790 ac_cv_type_socklen_t
=yes
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.
$ac_ext >&5
21795 ac_cv_type_socklen_t
=no
21797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21799 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21800 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21801 if test $ac_cv_type_socklen_t = yes; then
21805 cat >>confdefs.h
<<\_ACEOF
21806 #define socklen_t int
21814 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21816 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21820 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21821 echo "$as_me:$LINENO: checking for build directories" >&5
21822 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21823 for dir
in $SRCDIRS; do
21824 if test ! -d $dir; then
21828 echo "$as_me:$LINENO: result: done" >&5
21829 echo "${ECHO_T}done" >&6
21831 # generate output files
21832 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21834 cat >confcache
<<\_ACEOF
21835 # This file is a shell script that caches the results of configure
21836 # tests run on this system so they can be shared between configure
21837 # scripts and configure runs, see configure's option --config-cache.
21838 # It is not useful on other systems. If it contains results you don't
21839 # want to keep, you may remove or edit it.
21841 # config.status only pays attention to the cache file if you give it
21842 # the --recheck option to rerun configure.
21844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21846 # following values.
21850 # The following way of writing the cache mishandles newlines in values,
21851 # but we know of no workaround that is simple, portable, and efficient.
21852 # So, don't put newlines in cache variables' values.
21853 # Ultrix sh set writes to stderr and can't be redirected directly,
21854 # and sets the high bit in the cache file unless we assign to the vars.
21857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21859 # `set' does not quote correctly, so add quotes (double-quote
21860 # substitution turns \\\\ into \\, and sed turns \\ into \).
21863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21866 # `set' quotes correctly as required by POSIX, so do not add quotes.
21868 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21877 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21879 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21880 if test -w $cache_file; then
21881 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21882 cat confcache
>$cache_file
21884 echo "not updating unwritable cache $cache_file"
21889 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21890 # Let make expand exec_prefix.
21891 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21895 # trailing colons and then remove the whole line if VPATH becomes empty
21896 # (actually we leave an empty line to preserve line numbers).
21897 if test "x$srcdir" = x.
; then
21898 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21899 s/:*\$(srcdir):*/:/;
21900 s/:*\${srcdir}:*/:/;
21902 s/^\([^=]*=[ ]*\):*/\1/;
21908 DEFS
=-DHAVE_CONFIG_H
21912 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21913 # 1. Remove the extension, and $U if already installed.
21914 ac_i
=`echo "$ac_i" |
21915 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21917 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21918 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21920 LIBOBJS
=$ac_libobjs
21922 LTLIBOBJS
=$ac_ltlibobjs
21926 : ${CONFIG_STATUS=./config.status}
21927 ac_clean_files_save
=$ac_clean_files
21928 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21929 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21930 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21931 cat >$CONFIG_STATUS <<_ACEOF
21933 # Generated by $as_me.
21934 # Run this file to recreate the current configuration.
21935 # Compiler output produced by configure, useful for debugging
21936 # configure, is in config.log if it exists.
21939 ac_cs_recheck=false
21941 SHELL=\${CONFIG_SHELL-$SHELL}
21944 cat >>$CONFIG_STATUS <<\_ACEOF
21945 ## --------------------- ##
21946 ## M4sh Initialization. ##
21947 ## --------------------- ##
21949 # Be Bourne compatible
21950 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21954 # is contrary to our usage. Disable this feature.
21955 alias -g '${1+"$@"}'='"$@"'
21956 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21959 DUALCASE
=1; export DUALCASE
# for MKS sh
21961 # Support unset when possible.
21962 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21969 # Work around bugs in pre-3.0 UWIN ksh.
21970 $as_unset ENV MAIL MAILPATH
21977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21979 LC_TELEPHONE LC_TIME
21981 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21982 eval $as_var=C
; export $as_var
21988 # Required to use basename.
21989 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21995 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21996 as_basename
=basename
22002 # Name of the executable.
22003 as_me
=`$as_basename "$0" ||
22004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22005 X"$0" : 'X\(//\)$' \| \
22006 X"$0" : 'X\(/\)$' \| \
22007 . : '\(.\)' 2>/dev/null ||
22009 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22010 /^X\/\(\/\/\)$/{ s//\1/; q; }
22011 /^X\/\(\/\).*/{ s//\1/; q; }
22015 # PATH needs CR, and LINENO needs CR and PATH.
22016 # Avoid depending upon Character Ranges.
22017 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22018 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22019 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22020 as_cr_digits
='0123456789'
22021 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22023 # The user is always right.
22024 if test "${PATH_SEPARATOR+set}" != set; then
22025 echo "#! /bin/sh" >conf$$.sh
22026 echo "exit 0" >>conf$$.sh
22028 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22037 as_lineno_1
=$LINENO
22038 as_lineno_2
=$LINENO
22039 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22040 test "x$as_lineno_1" != "x$as_lineno_2" &&
22041 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22042 # Find who we are. Look in the path if we contain no path at all
22045 *[\\/]* ) as_myself
=$0 ;;
22046 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22047 for as_dir
in $PATH
22050 test -z "$as_dir" && as_dir
=.
22051 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22056 # We did not find ourselves, most probably we were run as `sh COMMAND'
22057 # in which case we are not to be found in the path.
22058 if test "x$as_myself" = x
; then
22061 if test ! -f "$as_myself"; then
22062 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22063 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22064 { (exit 1); exit 1; }; }
22066 case $CONFIG_SHELL in
22068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22069 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22072 test -z "$as_dir" && as_dir
=.
22073 for as_base
in sh bash ksh sh5
; do
22076 if ("$as_dir/$as_base" -c '
22077 as_lineno_1=$LINENO
22078 as_lineno_2=$LINENO
22079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22080 test "x$as_lineno_1" != "x$as_lineno_2" &&
22081 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22082 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22083 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22084 CONFIG_SHELL
=$as_dir/$as_base
22085 export CONFIG_SHELL
22086 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22095 # uniformly replaced by the line number. The first 'sed' inserts a
22096 # line-number line before each line; the second 'sed' does the real
22097 # work. The second script uses 'N' to pair each line-number line
22098 # with the numbered line, and appends trailing '-' during
22099 # substitution so that $LINENO is not a special case at line end.
22100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22101 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22102 sed '=' <$as_myself |
22107 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22110 s,^['$as_cr_digits']*\n,,
22111 ' >$as_me.lineno
&&
22112 chmod +x
$as_me.lineno ||
22113 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22114 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22115 { (exit 1); exit 1; }; }
22117 # Don't try to exec as it changes $[0], causing all sort of problems
22118 # (the dirname of $[0] is not the place where we might find the
22119 # original and so on. Autoconf is especially sensible to this).
22121 # Exit status is that of the last command.
22126 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22127 *c
*,-n*) ECHO_N
= ECHO_C
='
22129 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22130 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22133 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22139 rm -f conf$$ conf$$.exe conf$$.
file
22141 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22142 # We could just check for DJGPP; but this test a) works b) is more generic
22143 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22144 if test -f conf$$.exe
; then
22145 # Don't use ln at all; we don't have any links
22150 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22155 rm -f conf$$ conf$$.exe conf$$.
file
22157 if mkdir
-p .
2>/dev
/null
; then
22160 test -d .
/-p && rmdir .
/-p
22164 as_executable_p
="test -f"
22166 # Sed expression to map a string onto a valid CPP name.
22167 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22169 # Sed expression to map a string onto a valid variable name.
22170 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22174 # We need space, tab and new line, in precisely that order.
22184 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22185 # report actual input values of CONFIG_FILES etc. instead of their
22186 # values after options handling. Logging --version etc. is OK.
22190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22191 ## Running $as_me. ##
22196 This file was extended by python $as_me 2.5, which was
22197 generated by GNU Autoconf 2.59. Invocation command line was
22199 CONFIG_FILES = $CONFIG_FILES
22200 CONFIG_HEADERS = $CONFIG_HEADERS
22201 CONFIG_LINKS = $CONFIG_LINKS
22202 CONFIG_COMMANDS = $CONFIG_COMMANDS
22206 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22210 # Files that config.status was made for.
22211 if test -n "$ac_config_files"; then
22212 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22215 if test -n "$ac_config_headers"; then
22216 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22219 if test -n "$ac_config_links"; then
22220 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22223 if test -n "$ac_config_commands"; then
22224 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22227 cat >>$CONFIG_STATUS <<\_ACEOF
22230 \`$as_me' instantiates files from templates according to the
22231 current configuration.
22233 Usage: $0 [OPTIONS] [FILE]...
22235 -h, --help print this help, then exit
22236 -V, --version print version number, then exit
22237 -q, --quiet do not print progress messages
22238 -d, --debug don't remove temporary files
22239 --recheck update $as_me by reconfiguring in the same conditions
22240 --file=FILE[:TEMPLATE]
22241 instantiate the configuration file FILE
22242 --header=FILE[:TEMPLATE]
22243 instantiate the configuration header FILE
22245 Configuration files:
22248 Configuration headers:
22251 Report bugs to <bug-autoconf@gnu.org>."
22254 cat >>$CONFIG_STATUS <<_ACEOF
22256 python config.status 2.5
22257 configured by $0, generated by GNU Autoconf 2.59,
22258 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22260 Copyright (C) 2003 Free Software Foundation, Inc.
22261 This config.status script is free software; the Free Software Foundation
22262 gives unlimited permission to copy, distribute and modify it."
22267 cat >>$CONFIG_STATUS <<\_ACEOF
22268 # If no file are specified by the user, then we need to provide default
22269 # value. By we need to know if files were specified by the user.
22275 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22276 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22284 *) # This is not an option, so the user has probably given explicit
22287 ac_need_defaults
=false
;;
22291 # Handling of the options.
22293 cat >>$CONFIG_STATUS <<\_ACEOF
22294 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22296 --version |
--vers* |
-V )
22297 echo "$ac_cs_version"; exit 0 ;;
22299 # Conflict between --help and --header
22300 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22301 Try \`$0 --help' for more information." >&5
22302 echo "$as_me: error: ambiguous option: $1
22303 Try \`$0 --help' for more information." >&2;}
22304 { (exit 1); exit 1; }; };;
22305 --help |
--hel |
-h )
22306 echo "$ac_cs_usage"; exit 0 ;;
22307 --debug |
--d* |
-d )
22309 --file |
--fil |
--fi |
--f )
22311 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22312 ac_need_defaults
=false
;;
22313 --header |
--heade |
--head |
--hea )
22315 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22316 ac_need_defaults
=false
;;
22317 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22318 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22321 # This is an error.
22322 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22323 Try \`$0 --help' for more information." >&5
22324 echo "$as_me: error: unrecognized option: $1
22325 Try \`$0 --help' for more information." >&2;}
22326 { (exit 1); exit 1; }; } ;;
22328 *) ac_config_targets
="$ac_config_targets $1" ;;
22334 ac_configure_extra_args
=
22336 if $ac_cs_silent; then
22338 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22342 cat >>$CONFIG_STATUS <<_ACEOF
22343 if \$ac_cs_recheck; then
22344 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22345 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22354 cat >>$CONFIG_STATUS <<\_ACEOF
22355 for ac_config_target
in $ac_config_targets
22357 case "$ac_config_target" in
22358 # Handling of arguments.
22359 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22360 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22361 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22362 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22363 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22364 { (exit 1); exit 1; }; };;
22368 # If the user did not use the arguments to specify the items to instantiate,
22369 # then the envvar interface is used. Set only those that are not.
22370 # We use the long form for the default assignment because of an extremely
22371 # bizarre bug on SunOS 4.1.3.
22372 if $ac_need_defaults; then
22373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22377 # Have a temporary directory for convenience. Make it in the build tree
22378 # simply because there is no reason to put it here, and in addition,
22379 # creating and moving files from /tmp can sometimes cause problems.
22380 # Create a temporary directory, and hook for its removal unless debugging.
22383 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22384 trap '{ (exit 1); exit 1; }' 1 2 13 15
22387 # Create a (secure) tmp directory for tmp files.
22390 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22391 test -n "$tmp" && test -d "$tmp"
22394 tmp
=.
/confstat$$
-$RANDOM
22395 (umask 077 && mkdir
$tmp)
22398 echo "$me: cannot create a temporary directory in ." >&2
22399 { (exit 1); exit 1; }
22404 cat >>$CONFIG_STATUS <<_ACEOF
22407 # CONFIG_FILES section.
22410 # No need to generate the scripts if there are no CONFIG_FILES.
22411 # This happens for instance when ./config.status config.h
22412 if test -n "\$CONFIG_FILES"; then
22413 # Protect against being on the right side of a sed subst in config.status.
22414 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22415 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22416 s,@SHELL@,$SHELL,;t t
22417 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22418 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22419 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22420 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22421 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22422 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22423 s,@exec_prefix@,$exec_prefix,;t t
22424 s,@prefix@,$prefix,;t t
22425 s,@program_transform_name@,$program_transform_name,;t t
22426 s,@bindir@,$bindir,;t t
22427 s,@sbindir@,$sbindir,;t t
22428 s,@libexecdir@,$libexecdir,;t t
22429 s,@datadir@,$datadir,;t t
22430 s,@sysconfdir@,$sysconfdir,;t t
22431 s,@sharedstatedir@,$sharedstatedir,;t t
22432 s,@localstatedir@,$localstatedir,;t t
22433 s,@libdir@,$libdir,;t t
22434 s,@includedir@,$includedir,;t t
22435 s,@oldincludedir@,$oldincludedir,;t t
22436 s,@infodir@,$infodir,;t t
22437 s,@mandir@,$mandir,;t t
22438 s,@build_alias@,$build_alias,;t t
22439 s,@host_alias@,$host_alias,;t t
22440 s,@target_alias@,$target_alias,;t t
22441 s,@DEFS@,$DEFS,;t t
22442 s,@ECHO_C@,$ECHO_C,;t t
22443 s,@ECHO_N@,$ECHO_N,;t t
22444 s,@ECHO_T@,$ECHO_T,;t t
22445 s,@LIBS@,$LIBS,;t t
22446 s,@VERSION@,$VERSION,;t t
22447 s,@SOVERSION@,$SOVERSION,;t t
22448 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22449 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22450 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22451 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22452 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22453 s,@MACHDEP@,$MACHDEP,;t t
22454 s,@SGI_ABI@,$SGI_ABI,;t t
22455 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22456 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22457 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22459 s,@MAINOBJ@,$MAINOBJ,;t t
22460 s,@EXEEXT@,$EXEEXT,;t t
22462 s,@CFLAGS@,$CFLAGS,;t t
22463 s,@LDFLAGS@,$LDFLAGS,;t t
22464 s,@CPPFLAGS@,$CPPFLAGS,;t t
22465 s,@ac_ct_CC@,$ac_ct_CC,;t t
22466 s,@OBJEXT@,$OBJEXT,;t t
22468 s,@EGREP@,$EGREP,;t t
22469 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22470 s,@LIBRARY@,$LIBRARY,;t t
22471 s,@LDLIBRARY@,$LDLIBRARY,;t t
22472 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22473 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22474 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22475 s,@INSTSONAME@,$INSTSONAME,;t t
22476 s,@RUNSHARED@,$RUNSHARED,;t t
22477 s,@LINKCC@,$LINKCC,;t t
22478 s,@RANLIB@,$RANLIB,;t t
22479 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22481 s,@SVNVERSION@,$SVNVERSION,;t t
22482 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22483 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22484 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22487 s,@BASECFLAGS@,$BASECFLAGS,;t t
22488 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22489 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22491 s,@LDSHARED@,$LDSHARED,;t t
22492 s,@BLDSHARED@,$BLDSHARED,;t t
22493 s,@CCSHARED@,$CCSHARED,;t t
22494 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22495 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22496 s,@SHLIBS@,$SHLIBS,;t t
22497 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22498 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22499 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22500 s,@LDLAST@,$LDLAST,;t t
22501 s,@THREADOBJ@,$THREADOBJ,;t t
22502 s,@DLINCLDIR@,$DLINCLDIR,;t t
22503 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22504 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22505 s,@TRUE@,$TRUE,;t t
22506 s,@LIBOBJS@,$LIBOBJS,;t t
22507 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22508 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22509 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22510 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22511 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22512 s,@LIBM@,$LIBM,;t t
22513 s,@LIBC@,$LIBC,;t t
22514 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22515 s,@THREADHEADERS@,$THREADHEADERS,;t t
22516 s,@SRCDIRS@,$SRCDIRS,;t t
22517 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22522 cat >>$CONFIG_STATUS <<\_ACEOF
22523 # Split the substitutions into bite-sized pieces for seds with
22524 # small command number limits, like on Digital OSF/1 and HP-UX.
22525 ac_max_sed_lines
=48
22526 ac_sed_frag
=1 # Number of current file.
22527 ac_beg
=1 # First line for current file.
22528 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22531 while $ac_more_lines; do
22532 if test $ac_beg -gt 1; then
22533 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22535 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22537 if test ! -s $tmp/subs.frag
; then
22538 ac_more_lines
=false
22540 # The purpose of the label and of the branching condition is to
22541 # speed up the sed processing (if there are no `@' at all, there
22542 # is no need to browse any of the substitutions).
22543 # These are the two extra sed commands mentioned above.
22545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22546 if test -z "$ac_sed_cmds"; then
22547 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22549 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22551 ac_sed_frag
=`expr $ac_sed_frag + 1`
22553 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22556 if test -z "$ac_sed_cmds"; then
22559 fi # test -n "$CONFIG_FILES"
22562 cat >>$CONFIG_STATUS <<\_ACEOF
22563 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22566 - |
*:- |
*:-:* ) # input from stdin
22568 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22569 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22570 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22571 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22572 * ) ac_file_in
=$ac_file.
in ;;
22575 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22576 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22578 X"$ac_file" : 'X\(//\)[^/]' \| \
22579 X"$ac_file" : 'X\(//\)$' \| \
22580 X"$ac_file" : 'X\(/\)' \| \
22581 . : '\(.\)' 2>/dev/null ||
22583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22585 /^X\(\/\/\)$/{ s//\1/; q; }
22586 /^X\(\/\).*/{ s//\1/; q; }
22588 { if $as_mkdir_p; then
22593 while test ! -d "$as_dir"; do
22594 as_dirs
="$as_dir $as_dirs"
22595 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22597 X"$as_dir" : 'X\(//\)[^/]' \| \
22598 X"$as_dir" : 'X\(//\)$' \| \
22599 X"$as_dir" : 'X\(/\)' \| \
22600 . : '\(.\)' 2>/dev/null ||
22602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22604 /^X\(\/\/\)$/{ s//\1/; q; }
22605 /^X\(\/\).*/{ s//\1/; q; }
22608 test ! -n "$as_dirs" || mkdir
$as_dirs
22609 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22611 { (exit 1); exit 1; }; }; }
22615 if test "$ac_dir" != .
; then
22616 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22617 # A "../" for each directory in $ac_dir_suffix.
22618 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22620 ac_dir_suffix
= ac_top_builddir
=
22624 .
) # No --srcdir option. We are building in place.
22626 if test -z "$ac_top_builddir"; then
22629 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22631 [\\/]* | ?
:[\\/]* ) # Absolute path.
22632 ac_srcdir
=$srcdir$ac_dir_suffix;
22633 ac_top_srcdir
=$srcdir ;;
22634 *) # Relative path.
22635 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22636 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22639 # Do not use `cd foo && pwd` to compute absolute paths, because
22640 # the directories may not exist.
22642 .
) ac_abs_builddir
="$ac_dir";;
22645 .
) ac_abs_builddir
=`pwd`;;
22646 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22647 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22650 case $ac_abs_builddir in
22651 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22653 case ${ac_top_builddir}.
in
22654 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22655 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22656 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22659 case $ac_abs_builddir in
22660 .
) ac_abs_srcdir
=$ac_srcdir;;
22663 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22664 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22665 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22668 case $ac_abs_builddir in
22669 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22671 case $ac_top_srcdir in
22672 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22673 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22674 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22680 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22681 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22684 if test x
"$ac_file" != x-
; then
22685 { echo "$as_me:$LINENO: creating $ac_file" >&5
22686 echo "$as_me: creating $ac_file" >&6;}
22689 # Let's still pretend it is `configure' which instantiates (i.e., don't
22690 # use $as_me), people would be surprised to read:
22691 # /* config.h. Generated by config.status. */
22692 if test x
"$ac_file" = x-
; then
22695 configure_input
="$ac_file. "
22697 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22698 sed 's,.*/,,'` by configure."
22700 # First look for the input files in the build tree, otherwise in the
22702 ac_file_inputs
=`IFS=:
22703 for f in $ac_file_in; do
22705 -) echo $tmp/stdin ;;
22707 # Absolute (can't be DOS-style, as IFS=:)
22708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22709 echo "$as_me: error: cannot find input file: $f" >&2;}
22710 { (exit 1); exit 1; }; }
22713 if test -f "$f"; then
22716 elif test -f "$srcdir/$f"; then
22721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22722 echo "$as_me: error: cannot find input file: $f" >&2;}
22723 { (exit 1); exit 1; }; }
22726 done` ||
{ (exit 1); exit 1; }
22728 cat >>$CONFIG_STATUS <<_ACEOF
22732 cat >>$CONFIG_STATUS <<\_ACEOF
22734 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22735 s
,@configure_input@
,$configure_input,;t t
22736 s
,@srcdir@
,$ac_srcdir,;t t
22737 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22738 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22739 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22740 s
,@builddir@
,$ac_builddir,;t t
22741 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22742 s
,@top_builddir@
,$ac_top_builddir,;t t
22743 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22744 s
,@INSTALL@
,$ac_INSTALL,;t t
22745 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22747 if test x"$ac_file" != x-; then
22748 mv $tmp/out $ac_file
22756 cat >>$CONFIG_STATUS <<\_ACEOF
22759 # CONFIG_HEADER section.
22762 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22763 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22765 # ac_d sets the value in "#define NAME VALUE" lines.
22766 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22767 ac_dB
='[ ].*$,\1#\2'
22770 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22771 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22772 ac_uB
='$,\1#\2define\3'
22776 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22779 - |
*:- |
*:-:* ) # input from stdin
22781 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22782 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22783 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22784 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22785 * ) ac_file_in
=$ac_file.
in ;;
22788 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22789 echo "$as_me: creating $ac_file" >&6;}
22791 # First look for the input files in the build tree, otherwise in the
22793 ac_file_inputs
=`IFS=:
22794 for f in $ac_file_in; do
22796 -) echo $tmp/stdin ;;
22798 # Absolute (can't be DOS-style, as IFS=:)
22799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22800 echo "$as_me: error: cannot find input file: $f" >&2;}
22801 { (exit 1); exit 1; }; }
22802 # Do quote $f, to prevent DOS paths from being IFS'd.
22805 if test -f "$f"; then
22808 elif test -f "$srcdir/$f"; then
22813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22814 echo "$as_me: error: cannot find input file: $f" >&2;}
22815 { (exit 1); exit 1; }; }
22818 done` ||
{ (exit 1); exit 1; }
22819 # Remove the trailing spaces.
22820 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22824 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22825 # `conftest.undefs', that substitutes the proper values into
22826 # config.h.in to produce config.h. The first handles `#define'
22827 # templates, and the second `#undef' templates.
22828 # And first: Protect against being on the right side of a sed subst in
22829 # config.status. Protect against being in an unquoted here document
22830 # in config.status.
22831 rm -f conftest.defines conftest.undefs
22832 # Using a here document instead of a string reduces the quoting nightmare.
22833 # Putting comments in sed scripts is not portable.
22835 # `end' is used to avoid that the second main sed command (meant for
22836 # 0-ary CPP macros) applies to n-ary macro definitions.
22837 # See the Autoconf documentation for `clear'.
22838 cat >confdef2sed.
sed <<\_ACEOF
22843 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22845 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22848 # If some macros were called several times there might be several times
22849 # the same #defines, which is useless. Nevertheless, we may not want to
22850 # sort them, since we want the *last* AC-DEFINE to be honored.
22851 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22852 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22853 rm -f confdef2sed.sed
22855 # This sed command replaces #undef with comments. This is necessary, for
22856 # example, in the case of _POSIX_SOURCE, which is predefined and required
22857 # on some systems where configure will not decide to define it.
22858 cat >>conftest.undefs <<\_ACEOF
22859 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22862 # Break up conftest.defines because some shells have a limit on the size
22863 # of here documents, and old seds have small limits too (100 cmds).
22864 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22865 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22866 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22867 echo ' :' >>$CONFIG_STATUS
22868 rm -f conftest.tail
22869 while grep . conftest.defines >/dev/null
22871 # Write a limited-size here document to $tmp/defines.sed.
22872 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22873 # Speed up: don't consider the non `#define' lines.
22874 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22875 # Work around the forget-to-reset-the-flag bug.
22876 echo 't clr' >>$CONFIG_STATUS
22877 echo ': clr' >>$CONFIG_STATUS
22878 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22880 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22882 mv $tmp/out $tmp/in
22884 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22885 rm -f conftest.defines
22886 mv conftest.
tail conftest.defines
22888 rm -f conftest.defines
22889 echo ' fi # grep' >>$CONFIG_STATUS
22890 echo >>$CONFIG_STATUS
22892 # Break up conftest.undefs because some shells have a limit on the size
22893 # of here documents, and old seds have small limits too (100 cmds).
22894 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22895 rm -f conftest.
tail
22896 while grep . conftest.undefs
>/dev
/null
22898 # Write a limited-size here document to $tmp/undefs.sed.
22899 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22900 # Speed up: don't consider the non
`#undef'
22901 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22902 # Work around the forget-to-reset-the-flag bug.
22903 echo 't clr' >>$CONFIG_STATUS
22904 echo ': clr' >>$CONFIG_STATUS
22905 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22907 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22909 mv $tmp/out $tmp/in
22911 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22912 rm -f conftest.undefs
22913 mv conftest.tail conftest.undefs
22915 rm -f conftest.undefs
22917 cat >>$CONFIG_STATUS <<\_ACEOF
22918 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22919 # use $as_me), people would be surprised to read:
22920 # /* config.h. Generated by config.status. */
22921 if test x
"$ac_file" = x-
; then
22922 echo "/* Generated by configure. */" >$tmp/config.h
22924 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22926 cat $tmp/in >>$tmp/config.h
22928 if test x
"$ac_file" != x-
; then
22929 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22930 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22931 echo "$as_me: $ac_file is unchanged" >&6;}
22933 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22935 X"$ac_file" : 'X\(//\)[^/]' \| \
22936 X"$ac_file" : 'X\(//\)$' \| \
22937 X"$ac_file" : 'X\(/\)' \| \
22938 . : '\(.\)' 2>/dev/null ||
22940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22942 /^X\(\/\/\)$/{ s//\1/; q; }
22943 /^X\(\/\).*/{ s//\1/; q; }
22945 { if $as_mkdir_p; then
22950 while test ! -d "$as_dir"; do
22951 as_dirs
="$as_dir $as_dirs"
22952 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954 X"$as_dir" : 'X\(//\)[^/]' \| \
22955 X"$as_dir" : 'X\(//\)$' \| \
22956 X"$as_dir" : 'X\(/\)' \| \
22957 . : '\(.\)' 2>/dev/null ||
22959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22961 /^X\(\/\/\)$/{ s//\1/; q; }
22962 /^X\(\/\).*/{ s//\1/; q; }
22965 test ! -n "$as_dirs" || mkdir
$as_dirs
22966 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22968 { (exit 1); exit 1; }; }; }
22971 mv $tmp/config.h
$ac_file
22975 rm -f $tmp/config.h
22980 cat >>$CONFIG_STATUS <<\_ACEOF
22982 { (exit 0); exit 0; }
22984 chmod +x
$CONFIG_STATUS
22985 ac_clean_files
=$ac_clean_files_save
22988 # configure is writing to config.log, and then calls config.status.
22989 # config.status does its own redirection, appending to config.log.
22990 # Unfortunately, on DOS this fails, as config.log is still kept open
22991 # by configure, so config.status won't be able to write to it; its
22992 # output is simply discarded. So we exec the FD to /dev/null,
22993 # effectively closing config.log, so it can be properly (re)opened and
22994 # appended to by config.status. When coming back to configure, we
22995 # need to make the FD available again.
22996 if test "$no_create" != yes; then
22998 ac_config_status_args
=
22999 test "$silent" = yes &&
23000 ac_config_status_args
="$ac_config_status_args --quiet"
23002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23005 # would make configure fail if this is the last instruction.
23006 $ac_cs_success ||
{ (exit 1); exit 1; }
23010 echo "creating Setup"
23011 if test ! -f Modules
/Setup
23013 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23016 echo "creating Setup.local"
23017 if test ! -f Modules
/Setup.
local
23019 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23022 echo "creating Makefile"
23023 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23024 -s Modules Modules
/Setup.config \
23025 Modules
/Setup.
local Modules
/Setup
23026 mv config.c Modules