2 # From configure.in Revision: 43158 .
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.
1516 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1517 # has no effect, don't bother defineing them
1519 define_xopen_source
=no
1524 if test $define_xopen_source = yes
1526 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1527 # defined precisely as g++ defines it
1528 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1530 case $ac_sys_system/$ac_sys_release in
1531 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1533 cat >>confdefs.h
<<\_ACEOF
1534 #define _XOPEN_SOURCE 500
1540 cat >>confdefs.h
<<\_ACEOF
1541 #define _XOPEN_SOURCE 600
1547 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1548 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1549 # several APIs are not declared. Since this is also needed in some
1550 # cases for HP-UX, we define it globally.
1551 # except for Solaris 10, where it must not be defined,
1552 # as it implies XPG4.2
1553 case $ac_sys_system/$ac_sys_release in
1558 cat >>confdefs.h
<<\_ACEOF
1559 #define _XOPEN_SOURCE_EXTENDED 1
1566 cat >>confdefs.h
<<\_ACEOF
1567 #define _POSIX_C_SOURCE 200112L
1574 # SGI compilers allow the specification of the both the ABI and the
1575 # ISA on the command line. Depending on the values of these switches,
1576 # different and often incompatable code will be generated.
1578 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1579 # thus supply support for various ABI/ISA combinations. The MACHDEP
1580 # variable is also adjusted.
1583 if test ! -z "$SGI_ABI"
1586 LDFLAGS
="$SGI_ABI $LDFLAGS"
1587 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1589 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1590 echo "${ECHO_T}$MACHDEP" >&6
1592 # And add extra plat-mac for darwin
1595 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1596 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1597 if test -z "$EXTRAPLATDIR"
1601 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1602 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1610 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1611 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1613 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1614 # it may influence the way we can build extensions, so distutils
1617 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1619 # checks for alternative programs
1621 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1622 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1623 # just to get things to compile and link. Users are free to override OPT
1624 # when running configure or make. The build should not break if they do.
1625 # BASECFLAGS should generally not be messed with, however.
1627 # XXX shouldn't some/most/all of this code be merged with the stuff later
1628 # on that fiddles with OPT and BASECFLAGS?
1629 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1630 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1632 # Check whether --with-gcc or --without-gcc was given.
1633 if test "${with_gcc+set}" = set; then
1642 without_gcc
=$withval;;
1646 case $ac_sys_system in
1650 case $BE_HOST_CPU in
1654 BASECFLAGS
="$BASECFLAGS -export pragma"
1656 LDFLAGS
="$LDFLAGS -nodup"
1664 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1665 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1666 { (exit 1); exit 1; }; }
1669 AR
="\$(srcdir)/Modules/ar_beos"
1678 echo "$as_me:$LINENO: result: $without_gcc" >&5
1679 echo "${ECHO_T}$without_gcc" >&6
1684 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1685 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1687 # Check whether --with-cxx or --without-cxx was given.
1688 if test "${with_cxx+set}" = set; then
1705 echo "$as_me:$LINENO: result: $with_cxx" >&5
1706 echo "${ECHO_T}$with_cxx" >&6
1708 if test "$with_cxx" = "yes"
1710 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1711 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1712 { (exit 1); exit 1; }; }
1718 if test "$check_cxx" = "yes"
1720 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy
$ac_prog; ac_word
=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_CXX+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 if test -n "$CXX"; then
1730 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir
=.
1737 for ac_exec_ext
in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_CXX
="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 if test -n "$CXX"; then
1750 echo "$as_me:$LINENO: result: $CXX" >&5
1751 echo "${ECHO_T}$CXX" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$CXX" && break
1759 test -n "$CXX" || CXX
="notfound"
1761 if test "$CXX" = "notfound"
1766 ac_cpp
='$CXXCPP $CPPFLAGS'
1767 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1768 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1769 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1770 cat >conftest.
$ac_ext <<_ACEOF
1773 cat confdefs.h
>>conftest.
$ac_ext
1774 cat >>conftest.
$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1785 ac_clean_files_save
=$ac_clean_files
1786 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1790 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1791 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1792 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 # b.out is created by i960 compilers.
1806 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1808 test -f "$ac_file" ||
continue
1810 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1813 # This is the source file.
1816 # We found the default executable, but exeext='' is most
1820 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.
$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C++ compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext
=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1848 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try
='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1860 if test "$cross_compiling" = maybe
; then
1863 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C++ compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1877 ac_clean_files
=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 for ac_file
in conftest.exe conftest conftest.
*; do
1897 test -f "$ac_file" ||
continue
1899 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1900 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest
$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.
$ac_ext
1919 EXEEXT
=$ac_cv_exeext
1923 ac_cpp
='$CPP $CPPFLAGS'
1924 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1933 # If the user switches compilers, we can't believe the cache
1934 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1936 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&5
1938 echo "$as_me: error: cached CC is different -- throw away $cache_file
1939 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1940 { (exit 1); exit 1; }; }
1944 ac_cpp
='$CPP $CPPFLAGS'
1945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC
="$CC" # Let the user override the test.
1959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir
=.
1964 for ac_exec_ext
in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$ac_cv_prog_CC"; then
1987 # Extract the first word of "gcc", so it can be a program name with args.
1988 set dummy gcc
; ac_word
=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$ac_ct_CC"; then
1995 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir
=.
2002 for ac_exec_ext
in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_ac_ct_CC
="gcc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016 echo "${ECHO_T}$ac_ct_CC" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2030 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC
="$CC" # Let the user override the test.
2039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir
=.
2044 for ac_exec_ext
in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2065 if test -z "$ac_cv_prog_CC"; then
2067 # Extract the first word of "cc", so it can be a program name with args.
2068 set dummy cc
; ac_word
=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir
=.
2082 for ac_exec_ext
in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CC
="cc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096 echo "${ECHO_T}$ac_ct_CC" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2108 if test -z "$CC"; then
2109 # Extract the first word of "cc", so it can be a program name with args.
2110 set dummy cc
; ac_word
=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC
="$CC" # Let the user override the test.
2120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir
=.
2125 for ac_exec_ext
in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2128 ac_prog_rejected
=yes
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test $ac_prog_rejected = yes; then
2139 # We found a bogon in the path, so make sure we never use it.
2140 set dummy
$ac_cv_prog_CC
2142 if test $# != 0; then
2143 # We chose a different compiler from the bogus one.
2144 # However, it has the same basename, so the bogon will be chosen
2145 # first if we set CC to just the basename; use the full file name.
2147 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2153 if test -n "$CC"; then
2154 echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC
="$CC" # Let the user override the test.
2176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir
=.
2181 for ac_exec_ext
in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 test -n "$CC" && break
2204 if test -z "$CC"; then
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy
$ac_prog; ac_word
=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir
=.
2223 for ac_exec_ext
in '' $ac_executable_extensions; do
2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 ac_cv_prog_ac_ct_CC
="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2235 if test -n "$ac_ct_CC"; then
2236 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2237 echo "${ECHO_T}$ac_ct_CC" >&6
2239 echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2243 test -n "$ac_ct_CC" && break
2252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2258 # Provide some information about the compiler.
2259 echo "$as_me:$LINENO:" \
2260 "checking for C compiler version" >&5
2261 ac_compiler
=`set X $ac_compile; echo $2`
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2263 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2268 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2273 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2278 cat >conftest.
$ac_ext <<_ACEOF
2281 cat confdefs.h
>>conftest.
$ac_ext
2282 cat >>conftest.
$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 ac_clean_files_save
=$ac_clean_files
2294 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2298 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2300 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2302 (eval $ac_link_default) 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Find the output, starting from the most likely. This scheme is
2307 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2310 # Be careful to initialize this variable, since it used to be cached.
2311 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2313 # b.out is created by i960 compilers.
2314 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2316 test -f "$ac_file" ||
continue
2318 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2321 # This is the source file.
2324 # We found the default executable, but exeext='' is most
2328 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 # FIXME: I believe we export ac_cv_exeext for Libtool,
2330 # but it would be cool to find out if it's true. Does anybody
2331 # maintain Libtool? --akim.
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.
$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: C compiler cannot create executables
2345 See \`config.log' for more details." >&2;}
2346 { (exit 77); exit 77; }; }
2349 ac_exeext
=$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6
2353 # Check the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try
='./$ac_file'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2368 if test "$cross_compiling" = maybe
; then
2371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot run C compiled programs.
2375 If you meant to cross compile, use \`--host'.
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2381 echo "$as_me:$LINENO: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6
2384 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2385 ac_clean_files
=$ac_clean_files_save
2386 # Check the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2390 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391 echo "${ECHO_T}$cross_compiling" >&6
2393 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2402 # work properly (i.e., refer to `conftest.exe'), while it won't with
2404 for ac_file
in conftest.exe conftest conftest.
*; do
2405 test -f "$ac_file" ||
continue
2407 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2408 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2418 See \`config.log' for more details." >&2;}
2419 { (exit 1); exit 1; }; }
2422 rm -f conftest
$ac_cv_exeext
2423 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2424 echo "${ECHO_T}$ac_cv_exeext" >&6
2426 rm -f conftest.
$ac_ext
2427 EXEEXT
=$ac_cv_exeext
2429 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2430 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2431 if test "${ac_cv_objext+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 cat >conftest.
$ac_ext <<_ACEOF
2437 cat confdefs.h
>>conftest.
$ac_ext
2438 cat >>conftest.
$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2449 rm -f conftest.o conftest.obj
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2457 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2458 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.
$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2476 echo "${ECHO_T}$ac_cv_objext" >&6
2477 OBJEXT
=$ac_cv_objext
2479 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2480 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2481 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 cat >conftest.
$ac_ext <<_ACEOF
2487 cat confdefs.h
>>conftest.
$ac_ext
2488 cat >>conftest.
$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2502 rm -f conftest.
$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2506 grep -v '^ *+' conftest.er1
>conftest.err
2508 cat conftest.err
>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try
='test -z "$ac_c_werror_flag"
2512 || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try
='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2532 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2538 ac_test_CFLAGS
=${CFLAGS+set}
2539 ac_save_CFLAGS
=$CFLAGS
2541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_g+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 cat >conftest.
$ac_ext <<_ACEOF
2549 cat confdefs.h
>>conftest.
$ac_ext
2550 cat >>conftest.
$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try
='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.
$ac_ext >&5
2590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS
=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2603 if test "$GCC" = yes; then
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 ac_cv_prog_cc_stdc
=no
2616 cat >conftest.
$ac_ext <<_ACEOF
2619 cat confdefs.h
>>conftest.
$ac_ext
2620 cat >>conftest.
$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2624 #include <sys/types.h>
2625 #include <sys/stat.h>
2626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2627 struct buf { int x; };
2628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2629 static char *e (p, i)
2635 static char *f (char * (*g) (char **, int), char **p, ...)
2640 s = g (p, va_arg (v,int));
2645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2646 function prototypes and stuff, but not '\xHH' hex character constants.
2647 These don't provoke an error unfortunately, instead are silently treated
2648 as 'x'. The following induces an error, until -std1 is added to get
2649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2650 array size at least. It's necessary to write '\x00'==0 to get something
2651 that's true only with -std1. */
2652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2654 int test (int i, double x);
2655 struct s1 {int (*f) (int a);};
2656 struct s2 {int (*f) (double a);};
2657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2668 # Don't try gcc -ansi; that turns off useful extensions and
2669 # breaks some systems' header files.
2670 # AIX -qlanglvl=ansi
2671 # Ultrix and OSF/1 -std1
2672 # HP-UX 10.20 and later -Ae
2673 # HP-UX older versions -Aa -D_HPUX_SOURCE
2674 # SVR4 -Xc -D__EXTENSIONS__
2675 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2677 CC
="$ac_save_CC $ac_arg"
2678 rm -f conftest.
$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2682 grep -v '^ *+' conftest.er1
>conftest.err
2684 cat conftest.err
>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try
='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try
='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_prog_cc_stdc
=$ac_arg
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.
$ac_ext >&5
2707 rm -f conftest.err conftest.
$ac_objext
2709 rm -f conftest.
$ac_ext conftest.
$ac_objext
2714 case "x$ac_cv_prog_cc_stdc" in
2716 echo "$as_me:$LINENO: result: none needed" >&5
2717 echo "${ECHO_T}none needed" >&6 ;;
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2721 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2724 # Some people use a C++ compiler to compile C. Since we use `exit',
2725 # in C++ we need to declare it. In case someone uses the same compiler
2726 # for both compiling C and C++ we need to have the C++ compiler decide
2727 # the declaration of exit, since it's the most demanding environment.
2728 cat >conftest.
$ac_ext <<_ACEOF
2733 rm -f conftest.
$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2737 grep -v '^ *+' conftest.er1
>conftest.err
2739 cat conftest.err
>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try
='test -z "$ac_c_werror_flag"
2743 || test ! -s conftest.err'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try
='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 for ac_declaration
in \
2757 'extern "C" void std::exit (int) throw (); using std::exit;' \
2758 'extern "C" void std::exit (int); using std::exit;' \
2759 'extern "C" void exit (int) throw ();' \
2760 'extern "C" void exit (int);' \
2763 cat >conftest.
$ac_ext <<_ACEOF
2766 cat confdefs.h
>>conftest.
$ac_ext
2767 cat >>conftest.
$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2779 rm -f conftest.
$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1
>conftest.err
2785 cat conftest.err
>&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try
='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try
='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2809 cat >conftest.
$ac_ext <<_ACEOF
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2824 rm -f conftest.
$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2828 grep -v '^ *+' conftest.er1
>conftest.err
2830 cat conftest.err
>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try
='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try
='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.
$ac_ext >&5
2852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2855 if test -n "$ac_declaration"; then
2856 echo '#ifdef __cplusplus' >>confdefs.h
2857 echo $ac_declaration >>confdefs.h
2858 echo '#endif' >>confdefs.h
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.
$ac_ext >&5
2866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2868 ac_cpp
='$CPP $CPPFLAGS'
2869 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2874 # checks for UNIX variants that set C preprocessor variables
2877 ac_cpp
='$CPP $CPPFLAGS'
2878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 # Double quotes because CPP needs to be expanded
2892 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 for ac_c_preproc_warn_flag
in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.
$ac_ext <<_ACEOF
2906 cat confdefs.h
>>conftest.
$ac_ext
2907 cat >>conftest.
$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1
>conftest.err
2921 cat conftest.err
>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev
/null
; then
2924 if test -s conftest.err
; then
2925 ac_cpp_err
=$ac_c_preproc_warn_flag
2926 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.
$ac_ext >&5
2939 # Broken: fails on valid input.
2942 rm -f conftest.err conftest.
$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1
>conftest.err
2959 cat conftest.err
>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev
/null
; then
2962 if test -s conftest.err
; then
2963 ac_cpp_err
=$ac_c_preproc_warn_flag
2964 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.
$ac_ext >&5
2978 # Passes both tests.
2982 rm -f conftest.err conftest.
$ac_ext
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.
$ac_ext
2987 if $ac_preproc_ok; then
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3002 for ac_c_preproc_warn_flag
in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.
$ac_ext <<_ACEOF
3013 cat confdefs.h
>>conftest.
$ac_ext
3014 cat >>conftest.
$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1
>conftest.err
3028 cat conftest.err
>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev
/null
; then
3031 if test -s conftest.err
; then
3032 ac_cpp_err
=$ac_c_preproc_warn_flag
3033 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.
$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1
>conftest.err
3066 cat conftest.err
>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev
/null
; then
3069 if test -s conftest.err
; then
3070 ac_cpp_err
=$ac_c_preproc_warn_flag
3071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.
$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.
$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.
$ac_ext
3094 if $ac_preproc_ok; then
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3105 ac_cpp
='$CPP $CPPFLAGS'
3106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3117 then ac_cv_prog_egrep
='grep -E'
3118 else ac_cv_prog_egrep
='egrep'
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123 EGREP
=$ac_cv_prog_egrep
3127 echo "$as_me:$LINENO: checking for AIX" >&5
3128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3129 cat >conftest.
$ac_ext <<_ACEOF
3132 cat confdefs.h
>>conftest.
$ac_ext
3133 cat >>conftest.
$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 $EGREP "yes" >/dev
/null
2>&1; then
3142 echo "$as_me:$LINENO: result: yes" >&5
3143 echo "${ECHO_T}yes" >&6
3144 cat >>confdefs.h
<<\_ACEOF
3145 #define _ALL_SOURCE 1
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3156 # Check for unsupported systems
3157 case $ac_sys_system/$ac_sys_release in
3159 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3160 echo See README
for details.
3165 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3166 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3168 # Check whether --with-suffix or --without-suffix was given.
3169 if test "${with_suffix+set}" = set; then
3170 withval
="$with_suffix"
3175 *) EXEEXT
=$withval;;
3178 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3179 echo "${ECHO_T}$EXEEXT" >&6
3181 # Test whether we're running on a non-case-sensitive system, in which
3182 # case we give a warning if no ext is given
3184 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3185 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3186 if test ! -d CaseSensitiveTestDir
; then
3187 mkdir CaseSensitiveTestDir
3190 if test -d casesensitivetestdir
3192 echo "$as_me:$LINENO: result: yes" >&5
3193 echo "${ECHO_T}yes" >&6
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3200 rmdir CaseSensitiveTestDir
3205 gcc
) CC
="$CC -D_HAVE_BSDI";;
3209 case $ac_sys_system in
3212 cc|
*/cc
) CC
="$CC -Ae";;
3216 cc
) CC
="$CC -Wl,-Bexport";;
3219 # Some functions have a prototype only with that define, e.g. confstr
3221 cat >>confdefs.h
<<\_ACEOF
3222 #define __EXTENSIONS__ 1
3230 echo "$as_me:$LINENO: checking LIBRARY" >&5
3231 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3232 if test -z "$LIBRARY"
3234 LIBRARY
='libpython$(VERSION).a'
3236 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3237 echo "${ECHO_T}$LIBRARY" >&6
3239 # LDLIBRARY is the name of the library to link against (as opposed to the
3240 # name of the library into which to insert object files). BLDLIBRARY is also
3241 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3242 # is blank as the main program is not linked directly against LDLIBRARY.
3243 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3244 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3245 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3246 # DLLLIBRARY is the shared (i.e., DLL) library.
3248 # RUNSHARED is used to run shared python without installed libraries
3250 # INSTSONAME is the name of the shared library that will be use to install
3251 # on the system - some systems like version suffix, others don't
3258 LDLIBRARY
="$LIBRARY"
3259 BLDLIBRARY
='$(LDLIBRARY)'
3260 INSTSONAME
='$(LDLIBRARY)'
3265 # LINKCC is the command that links the python executable -- default is $(CC).
3266 # If CXX is set, and if it is needed to link a main function that was
3267 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3268 # python might then depend on the C++ runtime
3269 # This is altered for AIX in order to build the export list before
3272 echo "$as_me:$LINENO: checking LINKCC" >&5
3273 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3274 if test -z "$LINKCC"
3276 if test -z "$CXX"; then
3277 LINKCC
="\$(PURIFY) \$(CC)"
3279 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3280 $CXX -c conftest_a.cc
# 2>&5
3281 echo 'void foo(){}' > conftest_b.
$ac_ext
3282 $CC -c conftest_b.
$ac_ext # 2>&5
3283 if $CC -o conftest
$ac_exeext conftest_a.
$ac_objext conftest_b.
$ac_objext 2>&5 \
3284 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3286 LINKCC
="\$(PURIFY) \$(CC)"
3288 LINKCC
="\$(PURIFY) \$(CXX)"
3292 case $ac_sys_system in
3295 if test $ac_sys_release -ge 5 -o \
3296 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3299 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3301 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3304 echo "$as_me:$LINENO: result: $LINKCC" >&5
3305 echo "${ECHO_T}$LINKCC" >&6
3307 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3308 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3309 # Check whether --enable-shared or --disable-shared was given.
3310 if test "${enable_shared+set}" = set; then
3311 enableval
="$enable_shared"
3315 if test -z "$enable_shared"
3317 case $ac_sys_system in
3319 enable_shared
="yes";;
3321 enable_shared
="no";;
3324 echo "$as_me:$LINENO: result: $enable_shared" >&5
3325 echo "${ECHO_T}$enable_shared" >&6
3327 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3328 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3329 # Check whether --enable-profiling or --disable-profiling was given.
3330 if test "${enable_profiling+set}" = set; then
3331 enableval
="$enable_profiling"
3334 if test "$cross_compiling" = yes; then
3335 ac_enable_profiling
="no"
3337 cat >conftest.
$ac_ext <<_ACEOF
3340 cat confdefs.h
>>conftest.
$ac_ext
3341 cat >>conftest.
$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 int main() { return 0; }
3345 rm -f conftest
$ac_exeext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347 (eval $ac_link) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_enable_profiling
="yes"
3358 echo "$as_me: program exited with status $ac_status" >&5
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.
$ac_ext >&5
3363 ac_enable_profiling
="no"
3365 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3369 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3370 echo "${ECHO_T}$ac_enable_profiling" >&6
3372 case "$ac_enable_profiling" in
3374 BASECFLAGS
="-pg $BASECFLAGS"
3375 LDFLAGS
="-pg $LDFLAGS"
3379 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3380 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3382 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3383 # library that we build, but we do not want to link against it (we
3384 # will find it with a -framework option). For this reason there is an
3385 # extra variable BLDLIBRARY against which Python and the extension
3386 # modules are linked, BLDLIBRARY. This is normally the same as
3387 # LDLIBRARY, but empty for MacOSX framework builds.
3388 if test "$enable_framework"
3390 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3391 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3394 BLDLIBRARY
='$(LDLIBRARY)'
3397 # Other platforms follow
3398 if test $enable_shared = "yes"; then
3400 cat >>confdefs.h
<<\_ACEOF
3401 #define Py_ENABLE_SHARED 1
3404 case $ac_sys_system in
3406 LDLIBRARY
='libpython$(VERSION).so'
3409 LDLIBRARY
='libpython$(VERSION).dll.a'
3410 DLLLIBRARY
='libpython$(VERSION).dll'
3413 LDLIBRARY
='libpython$(VERSION).so'
3414 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3415 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3416 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3418 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3419 LDLIBRARY
='libpython$(VERSION).so'
3420 BLDLIBRARY
='-L. -lpython$(VERSION)'
3421 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3422 case $ac_sys_system in
3424 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3427 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3430 LDLIBRARY
='libpython$(VERSION).sl'
3431 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3432 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3435 LDLIBRARY
='libpython$(VERSION).so'
3436 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3437 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3440 LDLIBRARY
='libpython$(VERSION).so'
3441 BLDLIBRARY
='-L. -lpython$(VERSION)'
3442 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3445 else # shared is disabled
3446 case $ac_sys_system in
3448 BLDLIBRARY
='$(LIBRARY)'
3449 LDLIBRARY
='libpython$(VERSION).dll.a'
3454 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3455 echo "${ECHO_T}$LDLIBRARY" >&6
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3459 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_prog_RANLIB+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 if test -n "$RANLIB"; then
3466 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir
=.
3473 for ac_exec_ext
in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 RANLIB
=$ac_cv_prog_RANLIB
3485 if test -n "$RANLIB"; then
3486 echo "$as_me:$LINENO: result: $RANLIB" >&5
3487 echo "${ECHO_T}$RANLIB" >&6
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3494 if test -z "$ac_cv_prog_RANLIB"; then
3495 ac_ct_RANLIB
=$RANLIB
3496 # Extract the first word of "ranlib", so it can be a program name with args.
3497 set dummy ranlib
; ac_word
=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if test -n "$ac_ct_RANLIB"; then
3504 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3523 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3524 if test -n "$ac_ct_RANLIB"; then
3525 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3526 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 RANLIB
=$ac_ct_RANLIB
3534 RANLIB
="$ac_cv_prog_RANLIB"
3538 for ac_prog
in ar aal
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy
$ac_prog; ac_word
=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_AR+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -n "$AR"; then
3548 ac_cv_prog_AR
="$AR" # Let the user override the test.
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_exec_ext
in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_AR
="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 test -n "$AR" && break
3577 test -n "$AR" || AR
="ar"
3581 # Extract the first word of "svnversion", so it can be a program name with args.
3582 set dummy svnversion
; ac_word
=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test -n "$SVNVERSION"; then
3589 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir
=.
3596 for ac_exec_ext
in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_SVNVERSION
="found"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 SVNVERSION
=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3618 SVNVERSION
="svnversion \$(srcdir)"
3620 SVNVERSION
="echo exported"
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3628 INSTALL
="${srcdir}/install-sh -c"
3632 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3633 if test -f $ac_dir/install-sh
; then
3635 ac_install_sh
="$ac_aux_dir/install-sh -c"
3637 elif test -f $ac_dir/install.sh
; then
3639 ac_install_sh
="$ac_aux_dir/install.sh -c"
3641 elif test -f $ac_dir/shtool
; then
3643 ac_install_sh
="$ac_aux_dir/shtool install -c"
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir
=.
3680 # Account for people who put trailing slashes in PATH elements.
3682 .
/ | .
// |
/cC
/* | \
3683 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3684 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3690 for ac_prog
in ginstall scoinst
install; do
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3702 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL
=$ac_cv_path_install
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL
=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3741 CYGWIN
*) LN
="ln -s";;
3742 atheos
*) LN
="ln -s";;
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval
="$with_pydebug"
3755 if test "$withval" != no
3758 cat >>confdefs.h
<<\_ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3793 case $ac_cv_prog_cc_g in
3795 if test "$Py_DEBUG" = 'true' ; then
3796 # Optimization messes up debuggers, so turn it off for
3798 OPT
="-g -Wall -Wstrict-prototypes"
3800 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3804 OPT
="-O3 -Wall -Wstrict-prototypes"
3807 case $ac_sys_system in
3808 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3818 # The current (beta) Monterey compiler dies with optimizations
3819 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3820 case $ac_sys_system in
3829 # tweak BASECFLAGS based on compiler and platform
3832 # Python violates C99 rules, by casting between incompatible
3833 # pointer types. GCC may generate bad code as a result of that,
3834 # so use -fno-strict-aliasing if supported.
3835 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3836 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3838 CC
="$CC -fno-strict-aliasing"
3839 if test "$cross_compiling" = yes; then
3840 ac_cv_no_strict_aliasing_ok
=no
3842 cat >conftest.
$ac_ext <<_ACEOF
3845 cat confdefs.h
>>conftest.
$ac_ext
3846 cat >>conftest.
$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 int main() { return 0; }
3850 rm -f conftest
$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_no_strict_aliasing_ok
=yes
3863 echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.
$ac_ext >&5
3868 ac_cv_no_strict_aliasing_ok
=no
3870 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3873 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3874 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3875 if test $ac_cv_no_strict_aliasing_ok = yes
3877 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3879 case $ac_sys_system in
3881 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3883 # is there any other compiler on Darwin besides gcc?
3885 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3888 BASECFLAGS
="$BASECFLAGS -mieee"
3894 case $ac_sys_system in
3895 OpenUNIX
*|UnixWare
*)
3896 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3899 BASECFLAGS
="$BASECFLAGS -ieee -std"
3902 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3908 if test "$Py_DEBUG" = 'true'; then
3914 if test "$ac_arch_flags"
3916 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3919 # disable check for icc since it seems to pass, but generates a warning
3922 ac_cv_opt_olimit_ok
=no
3925 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3926 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3927 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 CC
="$CC -OPT:Olimit=0"
3932 if test "$cross_compiling" = yes; then
3933 ac_cv_opt_olimit_ok
=no
3935 cat >conftest.
$ac_ext <<_ACEOF
3938 cat confdefs.h
>>conftest.
$ac_ext
3939 cat >>conftest.
$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 int main() { return 0; }
3943 rm -f conftest
$ac_exeext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3945 (eval $ac_link) 2>&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_opt_olimit_ok
=yes
3956 echo "$as_me: program exited with status $ac_status" >&5
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.
$ac_ext >&5
3961 ac_cv_opt_olimit_ok
=no
3963 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3968 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3969 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3970 if test $ac_cv_opt_olimit_ok = yes; then
3971 case $ac_sys_system in
3972 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3973 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3978 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3982 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3983 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3984 if test "${ac_cv_olimit_ok+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 CC
="$CC -Olimit 1500"
3989 if test "$cross_compiling" = yes; then
3992 cat >conftest.
$ac_ext <<_ACEOF
3995 cat confdefs.h
>>conftest.
$ac_ext
3996 cat >>conftest.
$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 int main() { return 0; }
4000 rm -f conftest
$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4013 echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.
$ac_ext >&5
4020 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4025 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4026 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4027 if test $ac_cv_olimit_ok = yes; then
4028 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4032 # On some compilers, pthreads are available without further options
4033 # (e.g. MacOS X). On some of these systems, the compiler will not
4034 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4035 # So we have to see first whether pthreads are available without
4036 # options before we can check whether -Kpthread improves anything.
4037 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4038 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4039 if test "${ac_cv_pthread_is_default+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if test "$cross_compiling" = yes; then
4043 ac_cv_pthread_is_default
=no
4045 cat >conftest.
$ac_ext <<_ACEOF
4048 cat confdefs.h
>>conftest.
$ac_ext
4049 cat >>conftest.
$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4052 #include <pthread.h>
4054 void* routine(void* p){return NULL;}
4058 if(pthread_create(&p,NULL,routine,NULL)!=0)
4060 (void)pthread_detach(p);
4065 rm -f conftest
$ac_exeext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4077 ac_cv_pthread_is_default
=yes
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.
$ac_ext >&5
4087 ac_cv_pthread_is_default
=no
4089 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4094 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4095 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4098 if test $ac_cv_pthread_is_default = yes
4102 # -Kpthread, if available, provides the right #defines
4103 # and linker options to make pthread_create available
4104 # Some compilers won't report that they do not support -Kpthread,
4105 # so we need to run a program to see whether it really made the
4106 # function available.
4107 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4108 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4109 if test "${ac_cv_kpthread+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test "$cross_compiling" = yes; then
4117 cat >conftest.
$ac_ext <<_ACEOF
4120 cat confdefs.h
>>conftest.
$ac_ext
4121 cat >>conftest.
$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4124 #include <pthread.h>
4126 void* routine(void* p){return NULL;}
4130 if(pthread_create(&p,NULL,routine,NULL)!=0)
4132 (void)pthread_detach(p);
4137 rm -f conftest
$ac_exeext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4139 (eval $ac_link) 2>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4150 echo "$as_me: program exited with status $ac_status" >&5
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.
$ac_ext >&5
4157 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4162 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4163 echo "${ECHO_T}$ac_cv_kpthread" >&6
4166 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4168 # -Kthread, if available, provides the right #defines
4169 # and linker options to make pthread_create available
4170 # Some compilers won't report that they do not support -Kthread,
4171 # so we need to run a program to see whether it really made the
4172 # function available.
4173 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4174 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4175 if test "${ac_cv_kthread+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 if test "$cross_compiling" = yes; then
4183 cat >conftest.
$ac_ext <<_ACEOF
4186 cat confdefs.h
>>conftest.
$ac_ext
4187 cat >>conftest.
$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4190 #include <pthread.h>
4192 void* routine(void* p){return NULL;}
4196 if(pthread_create(&p,NULL,routine,NULL)!=0)
4198 (void)pthread_detach(p);
4203 rm -f conftest
$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205 (eval $ac_link) 2>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4216 echo "$as_me: program exited with status $ac_status" >&5
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.
$ac_ext >&5
4223 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4228 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4229 echo "${ECHO_T}$ac_cv_kthread" >&6
4232 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4234 # -pthread, if available, provides the right #defines
4235 # and linker options to make pthread_create available
4236 # Some compilers won't report that they do not support -pthread,
4237 # so we need to run a program to see whether it really made the
4238 # function available.
4239 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4240 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4241 if test "${ac_cv_thread+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 if test "$cross_compiling" = yes; then
4249 cat >conftest.
$ac_ext <<_ACEOF
4252 cat confdefs.h
>>conftest.
$ac_ext
4253 cat >>conftest.
$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4256 #include <pthread.h>
4258 void* routine(void* p){return NULL;}
4262 if(pthread_create(&p,NULL,routine,NULL)!=0)
4264 (void)pthread_detach(p);
4269 rm -f conftest
$ac_exeext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4282 echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.
$ac_ext >&5
4289 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4295 echo "${ECHO_T}$ac_cv_pthread" >&6
4298 # If we have set a CC compiler flag for thread support then
4299 # check if it works for CXX, too.
4303 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4304 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4307 if test "$ac_cv_kpthread" = "yes"
4309 CXX
="$CXX -Kpthread"
4310 ac_cv_cxx_thread
=yes
4311 elif test "$ac_cv_kthread" = "yes"
4314 ac_cv_cxx_thread
=yes
4315 elif test "$ac_cv_pthread" = "yes"
4318 ac_cv_cxx_thread
=yes
4321 if test $ac_cv_cxx_thread = yes
4323 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4324 $CXX -c conftest.
$ac_ext 2>&5
4325 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4326 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4328 ac_cv_cxx_thread
=yes
4334 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4335 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4340 # checks for header files
4341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4343 if test "${ac_cv_header_stdc+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 cat >conftest.
$ac_ext <<_ACEOF
4349 cat confdefs.h
>>conftest.
$ac_ext
4350 cat >>conftest.
$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4365 rm -f conftest.
$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1
>conftest.err
4371 cat conftest.err
>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try
='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try
='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_header_stdc
=yes
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.
$ac_ext >&5
4392 ac_cv_header_stdc
=no
4394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4396 if test $ac_cv_header_stdc = yes; then
4397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4398 cat >conftest.
$ac_ext <<_ACEOF
4401 cat confdefs.h
>>conftest.
$ac_ext
4402 cat >>conftest.
$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4408 $EGREP "memchr" >/dev
/null
2>&1; then
4411 ac_cv_header_stdc
=no
4417 if test $ac_cv_header_stdc = yes; then
4418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4419 cat >conftest.
$ac_ext <<_ACEOF
4422 cat confdefs.h
>>conftest.
$ac_ext
4423 cat >>conftest.
$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 $EGREP "free" >/dev
/null
2>&1; then
4432 ac_cv_header_stdc
=no
4438 if test $ac_cv_header_stdc = yes; then
4439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4440 if test "$cross_compiling" = yes; then
4443 cat >conftest.
$ac_ext <<_ACEOF
4446 cat confdefs.h
>>conftest.
$ac_ext
4447 cat >>conftest.
$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4450 #if ((' ' & 0x0FF) == 0x020)
4451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454 # define ISLOWER(c) \
4455 (('a' <= (c) && (c) <= 'i') \
4456 || ('j' <= (c) && (c) <= 'r') \
4457 || ('s' <= (c) && (c) <= 'z'))
4458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4466 for (i = 0; i < 256; i++)
4467 if (XOR (islower (i), ISLOWER (i))
4468 || toupper (i) != TOUPPER (i))
4473 rm -f conftest
$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4486 echo "$as_me: program exited with status $ac_status" >&5
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.
$ac_ext >&5
4491 ac_cv_header_stdc
=no
4493 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4497 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4498 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4499 if test $ac_cv_header_stdc = yes; then
4501 cat >>confdefs.h
<<\_ACEOF
4502 #define STDC_HEADERS 1
4507 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4517 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4518 inttypes.h stdint.h unistd.h
4520 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 cat >conftest.
$ac_ext <<_ACEOF
4529 cat confdefs.h
>>conftest.
$ac_ext
4530 cat >>conftest.
$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 $ac_includes_default
4534 #include <$ac_header>
4536 rm -f conftest.
$ac_objext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538 (eval $ac_compile) 2>conftest.er1
4540 grep -v '^ *+' conftest.er1
>conftest.err
4542 cat conftest.err
>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try
='test -z "$ac_c_werror_flag"
4546 || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try
='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_Header=yes"
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.
$ac_ext >&5
4563 eval "$as_ac_Header=no"
4565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4570 cat >>confdefs.h
<<_ACEOF
4571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4618 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4619 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4620 stropts.h termios.h thread.h \
4622 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4624 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4625 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4626 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4627 bluetooth
/bluetooth.h
4629 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4639 # Is the header compilable?
4640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4642 cat >conftest.
$ac_ext <<_ACEOF
4645 cat confdefs.h
>>conftest.
$ac_ext
4646 cat >>conftest.
$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4649 #include <$ac_header>
4651 rm -f conftest.
$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1
>conftest.err
4657 cat conftest.err
>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try
='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try
='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_header_compiler
=yes
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.
$ac_ext >&5
4678 ac_header_compiler
=no
4680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4682 echo "${ECHO_T}$ac_header_compiler" >&6
4684 # Is the header present?
4685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4687 cat >conftest.
$ac_ext <<_ACEOF
4690 cat confdefs.h
>>conftest.
$ac_ext
4691 cat >>conftest.
$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 #include <$ac_header>
4695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4698 grep -v '^ *+' conftest.er1
>conftest.err
4700 cat conftest.err
>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } >/dev
/null
; then
4703 if test -s conftest.err
; then
4704 ac_cpp_err
=$ac_c_preproc_warn_flag
4705 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4712 if test -z "$ac_cpp_err"; then
4713 ac_header_preproc
=yes
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.
$ac_ext >&5
4718 ac_header_preproc
=no
4720 rm -f conftest.err conftest.
$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4722 echo "${ECHO_T}$ac_header_preproc" >&6
4724 # So? What about this header?
4725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4731 ac_header_preproc
=yes
4734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748 ## ------------------------------------------------ ##
4749 ## Report this to http://www.python.org/python-bugs ##
4750 ## ------------------------------------------------ ##
4753 sed "s/^/$as_me: WARNING: /" >&2
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 eval "$as_ac_Header=\$ac_header_preproc"
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768 cat >>confdefs.h
<<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4783 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4784 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4785 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 cat >conftest.
$ac_ext <<_ACEOF
4792 cat confdefs.h
>>conftest.
$ac_ext
4793 cat >>conftest.
$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 #include <sys/types.h>
4807 rm -f conftest.
$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1
>conftest.err
4813 cat conftest.err
>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try
='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try
='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_Header=yes"
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.
$ac_ext >&5
4834 eval "$as_ac_Header=no"
4836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841 cat >>confdefs.h
<<_ACEOF
4842 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4845 ac_header_dirent
=$ac_hdr; break
4849 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4850 if test $ac_header_dirent = dirent.h
; then
4851 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4853 if test "${ac_cv_search_opendir+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 ac_func_search_save_LIBS
=$LIBS
4857 ac_cv_search_opendir
=no
4858 cat >conftest.
$ac_ext <<_ACEOF
4861 cat confdefs.h
>>conftest.
$ac_ext
4862 cat >>conftest.
$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4865 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4880 rm -f conftest.
$ac_objext conftest
$ac_exeext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882 (eval $ac_link) 2>conftest.er1
4884 grep -v '^ *+' conftest.er1
>conftest.err
4886 cat conftest.err
>&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try
='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try
='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_search_opendir
="none required"
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.
$ac_ext >&5
4908 rm -f conftest.err conftest.
$ac_objext \
4909 conftest
$ac_exeext conftest.
$ac_ext
4910 if test "$ac_cv_search_opendir" = no
; then
4911 for ac_lib
in dir
; do
4912 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4913 cat >conftest.
$ac_ext <<_ACEOF
4916 cat confdefs.h
>>conftest.
$ac_ext
4917 cat >>conftest.
$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4920 /* Override any gcc2 internal prototype to avoid an error. */
4924 /* We use char because int might match the return type of a gcc2
4925 builtin and then its argument prototype would still apply. */
4935 rm -f conftest.
$ac_objext conftest
$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1
>conftest.err
4941 cat conftest.err
>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try
='test -s conftest$ac_exeext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_search_opendir
="-l$ac_lib"
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.
$ac_ext >&5
4964 rm -f conftest.err conftest.
$ac_objext \
4965 conftest
$ac_exeext conftest.
$ac_ext
4968 LIBS
=$ac_func_search_save_LIBS
4970 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4971 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4972 if test "$ac_cv_search_opendir" != no
; then
4973 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4978 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4980 if test "${ac_cv_search_opendir+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 ac_func_search_save_LIBS
=$LIBS
4984 ac_cv_search_opendir
=no
4985 cat >conftest.
$ac_ext <<_ACEOF
4988 cat confdefs.h
>>conftest.
$ac_ext
4989 cat >>conftest.
$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4992 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5007 rm -f conftest.
$ac_objext conftest
$ac_exeext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5009 (eval $ac_link) 2>conftest.er1
5011 grep -v '^ *+' conftest.er1
>conftest.err
5013 cat conftest.err
>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try
='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try
='test -s conftest$ac_exeext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_cv_search_opendir
="none required"
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5035 rm -f conftest.err conftest.
$ac_objext \
5036 conftest
$ac_exeext conftest.
$ac_ext
5037 if test "$ac_cv_search_opendir" = no
; then
5039 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5040 cat >conftest.
$ac_ext <<_ACEOF
5043 cat confdefs.h
>>conftest.
$ac_ext
5044 cat >>conftest.
$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5062 rm -f conftest.
$ac_objext conftest
$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1
>conftest.err
5068 cat conftest.err
>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try
='test -z "$ac_c_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try
='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_search_opendir
="-l$ac_lib"
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.
$ac_ext >&5
5091 rm -f conftest.err conftest.
$ac_objext \
5092 conftest
$ac_exeext conftest.
$ac_ext
5095 LIBS
=$ac_func_search_save_LIBS
5097 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5098 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5099 if test "$ac_cv_search_opendir" != no
; then
5100 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5106 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5107 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5108 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 cat >conftest.
$ac_ext <<_ACEOF
5114 cat confdefs.h
>>conftest.
$ac_ext
5115 cat >>conftest.
$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #include <sys/types.h>
5121 return makedev(0, 0);
5126 rm -f conftest.
$ac_objext conftest
$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1
>conftest.err
5132 cat conftest.err
>&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try
='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try
='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_header_sys_types_h_makedev
=yes
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.
$ac_ext >&5
5153 ac_cv_header_sys_types_h_makedev
=no
5155 rm -f conftest.err conftest.
$ac_objext \
5156 conftest
$ac_exeext conftest.
$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5160 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5162 if test $ac_cv_header_sys_types_h_makedev = no
; then
5163 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5164 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5165 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5166 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5170 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5172 # Is the header compilable?
5173 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5174 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5175 cat >conftest.
$ac_ext <<_ACEOF
5178 cat confdefs.h
>>conftest.
$ac_ext
5179 cat >>conftest.
$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 $ac_includes_default
5182 #include <sys/mkdev.h>
5184 rm -f conftest.
$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5188 grep -v '^ *+' conftest.er1
>conftest.err
5190 cat conftest.err
>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try
='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try
='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_header_compiler
=yes
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.
$ac_ext >&5
5211 ac_header_compiler
=no
5213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5215 echo "${ECHO_T}$ac_header_compiler" >&6
5217 # Is the header present?
5218 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5219 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5220 cat >conftest.
$ac_ext <<_ACEOF
5223 cat confdefs.h
>>conftest.
$ac_ext
5224 cat >>conftest.
$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 #include <sys/mkdev.h>
5228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5231 grep -v '^ *+' conftest.er1
>conftest.err
5233 cat conftest.err
>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } >/dev
/null
; then
5236 if test -s conftest.err
; then
5237 ac_cpp_err
=$ac_c_preproc_warn_flag
5238 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5245 if test -z "$ac_cpp_err"; then
5246 ac_header_preproc
=yes
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.
$ac_ext >&5
5251 ac_header_preproc
=no
5253 rm -f conftest.err conftest.
$ac_ext
5254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5255 echo "${ECHO_T}$ac_header_preproc" >&6
5257 # So? What about this header?
5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5260 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5261 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5264 ac_header_preproc
=yes
5267 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5268 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5270 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5272 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5274 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5276 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5278 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5281 ## ------------------------------------------------ ##
5282 ## Report this to http://www.python.org/python-bugs ##
5283 ## ------------------------------------------------ ##
5286 sed "s/^/$as_me: WARNING: /" >&2
5289 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5290 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5291 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5296 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5297 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5300 if test $ac_cv_header_sys_mkdev_h = yes; then
5302 cat >>confdefs.h
<<\_ACEOF
5303 #define MAJOR_IN_MKDEV 1
5310 if test $ac_cv_header_sys_mkdev_h = no
; then
5311 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5312 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5313 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5314 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5318 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5320 # Is the header compilable?
5321 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5322 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5323 cat >conftest.
$ac_ext <<_ACEOF
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <sys/sysmacros.h>
5332 rm -f conftest.
$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5336 grep -v '^ *+' conftest.er1
>conftest.err
5338 cat conftest.err
>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try
='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try
='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_header_compiler
=yes
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.
$ac_ext >&5
5359 ac_header_compiler
=no
5361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5363 echo "${ECHO_T}$ac_header_compiler" >&6
5365 # Is the header present?
5366 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5367 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5368 cat >conftest.
$ac_ext <<_ACEOF
5371 cat confdefs.h
>>conftest.
$ac_ext
5372 cat >>conftest.
$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <sys/sysmacros.h>
5376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5377 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5379 grep -v '^ *+' conftest.er1
>conftest.err
5381 cat conftest.err
>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } >/dev
/null
; then
5384 if test -s conftest.err
; then
5385 ac_cpp_err
=$ac_c_preproc_warn_flag
5386 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5393 if test -z "$ac_cpp_err"; then
5394 ac_header_preproc
=yes
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.
$ac_ext >&5
5399 ac_header_preproc
=no
5401 rm -f conftest.err conftest.
$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5403 echo "${ECHO_T}$ac_header_preproc" >&6
5405 # So? What about this header?
5406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5408 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5409 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5412 ac_header_preproc
=yes
5415 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5416 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5418 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5420 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5422 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5423 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5424 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5425 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5426 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5429 ## ------------------------------------------------ ##
5430 ## Report this to http://www.python.org/python-bugs ##
5431 ## ------------------------------------------------ ##
5434 sed "s/^/$as_me: WARNING: /" >&2
5437 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5438 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5439 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5444 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5445 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5448 if test $ac_cv_header_sys_sysmacros_h = yes; then
5450 cat >>confdefs.h
<<\_ACEOF
5451 #define MAJOR_IN_SYSMACROS 1
5461 # On Solaris, term.h requires curses.h
5463 for ac_header
in term.h
5465 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5466 echo "$as_me:$LINENO: checking for $ac_header" >&5
5467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 cat >conftest.
$ac_ext <<_ACEOF
5474 cat confdefs.h
>>conftest.
$ac_ext
5475 cat >>conftest.
$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5478 #ifdef HAVE_CURSES_H
5483 #include <$ac_header>
5485 rm -f conftest.
$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
5489 grep -v '^ *+' conftest.er1
>conftest.err
5491 cat conftest.err
>&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try
='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try
='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 eval "$as_ac_Header=yes"
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.
$ac_ext >&5
5512 eval "$as_ac_Header=no"
5514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h
<<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528 # On Linux, netlink.h requires asm/types.h
5530 for ac_header
in linux
/netlink.h
5532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5533 echo "$as_me:$LINENO: checking for $ac_header" >&5
5534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >conftest.
$ac_ext <<_ACEOF
5541 cat confdefs.h
>>conftest.
$ac_ext
5542 cat >>conftest.
$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 #ifdef HAVE_ASM_TYPES_H
5546 #include <asm/types.h>
5548 #ifdef HAVE_SYS_SOCKET_H
5549 #include <sys/socket.h>
5553 #include <$ac_header>
5555 rm -f conftest.
$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5559 grep -v '^ *+' conftest.er1
>conftest.err
5561 cat conftest.err
>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try
='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try
='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 eval "$as_ac_Header=yes"
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.
$ac_ext >&5
5582 eval "$as_ac_Header=no"
5584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589 cat >>confdefs.h
<<_ACEOF
5590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5598 # checks for typedefs
5600 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5601 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5602 cat >conftest.
$ac_ext <<_ACEOF
5605 cat confdefs.h
>>conftest.
$ac_ext
5606 cat >>conftest.
$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5612 $EGREP "clock_t" >/dev
/null
2>&1; then
5617 cat >>confdefs.h
<<\_ACEOF
5618 #define clock_t long
5625 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5626 echo "${ECHO_T}$was_it_defined" >&6
5628 # Check whether using makedev requires defining _OSF_SOURCE
5629 echo "$as_me:$LINENO: checking for makedev" >&5
5630 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5631 cat >conftest.
$ac_ext <<_ACEOF
5634 cat confdefs.h
>>conftest.
$ac_ext
5635 cat >>conftest.
$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5646 rm -f conftest.
$ac_objext conftest
$ac_exeext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648 (eval $ac_link) 2>conftest.er1
5650 grep -v '^ *+' conftest.er1
>conftest.err
5652 cat conftest.err
>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try
='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try
='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_has_makedev
=yes
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.
$ac_ext >&5
5673 ac_cv_has_makedev
=no
5675 rm -f conftest.err conftest.
$ac_objext \
5676 conftest
$ac_exeext conftest.
$ac_ext
5677 if test "$ac_cv_has_makedev" = "no"; then
5678 # we didn't link, try if _OSF_SOURCE will allow us to link
5679 cat >conftest.
$ac_ext <<_ACEOF
5682 cat confdefs.h
>>conftest.
$ac_ext
5683 cat >>conftest.
$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5686 #define _OSF_SOURCE 1
5687 #include <sys/types.h>
5697 rm -f conftest.
$ac_objext conftest
$ac_exeext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699 (eval $ac_link) 2>conftest.er1
5701 grep -v '^ *+' conftest.er1
>conftest.err
5703 cat conftest.err
>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try
='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try
='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_has_makedev
=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.
$ac_ext >&5
5724 ac_cv_has_makedev
=no
5726 rm -f conftest.err conftest.
$ac_objext \
5727 conftest
$ac_exeext conftest.
$ac_ext
5728 if test "$ac_cv_has_makedev" = "yes"; then
5730 cat >>confdefs.h
<<\_ACEOF
5731 #define _OSF_SOURCE 1
5736 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5737 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5738 if test "$ac_cv_has_makedev" = "yes"; then
5740 cat >>confdefs.h
<<\_ACEOF
5741 #define HAVE_MAKEDEV 1
5746 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5747 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5748 # defined, but the compiler does not support pragma redefine_extname,
5749 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5750 # structures (such as rlimit64) without declaring them. As a
5751 # work-around, disable LFS on such configurations
5754 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5755 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5756 cat >conftest.
$ac_ext <<_ACEOF
5759 cat confdefs.h
>>conftest.
$ac_ext
5760 cat >>conftest.
$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 #define _LARGEFILE_SOURCE 1
5764 #define _FILE_OFFSET_BITS 64
5765 #include <sys/resource.h>
5775 rm -f conftest.
$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5779 grep -v '^ *+' conftest.er1
>conftest.err
5781 cat conftest.err
>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try
='test -z "$ac_c_werror_flag"
5785 || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try
='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.
$ac_ext >&5
5804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5805 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5806 echo "${ECHO_T}$sol_lfs_bug" >&6
5807 if test "$sol_lfs_bug" = "yes"; then
5811 if test "$use_lfs" = "yes"; then
5812 # Two defines needed to enable largefile support on various platforms
5813 # These may affect some typedefs
5815 cat >>confdefs.h
<<\_ACEOF
5816 #define _LARGEFILE_SOURCE 1
5820 cat >>confdefs.h
<<\_ACEOF
5821 #define _FILE_OFFSET_BITS 64
5826 # Add some code to confdefs.h so that the test for off_t works on SCO
5827 cat >> confdefs.h
<<\EOF
5833 # Type availability checks
5834 echo "$as_me:$LINENO: checking for mode_t" >&5
5835 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5836 if test "${ac_cv_type_mode_t+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 cat >conftest.
$ac_ext <<_ACEOF
5842 cat confdefs.h
>>conftest.
$ac_ext
5843 cat >>conftest.
$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5851 if (sizeof (mode_t))
5857 rm -f conftest.
$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5861 grep -v '^ *+' conftest.er1
>conftest.err
5863 cat conftest.err
>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try
='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try
='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_type_mode_t
=yes
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5884 ac_cv_type_mode_t
=no
5886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5888 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5889 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5890 if test $ac_cv_type_mode_t = yes; then
5894 cat >>confdefs.h
<<_ACEOF
5900 echo "$as_me:$LINENO: checking for off_t" >&5
5901 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5902 if test "${ac_cv_type_off_t+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 cat >conftest.
$ac_ext <<_ACEOF
5908 cat confdefs.h
>>conftest.
$ac_ext
5909 cat >>conftest.
$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5923 rm -f conftest.
$ac_objext
5924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925 (eval $ac_compile) 2>conftest.er1
5927 grep -v '^ *+' conftest.er1
>conftest.err
5929 cat conftest.err
>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try
='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try
='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_type_off_t
=yes
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.
$ac_ext >&5
5952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5954 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5955 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5956 if test $ac_cv_type_off_t = yes; then
5960 cat >>confdefs.h
<<_ACEOF
5966 echo "$as_me:$LINENO: checking for pid_t" >&5
5967 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5968 if test "${ac_cv_type_pid_t+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 cat >conftest.
$ac_ext <<_ACEOF
5974 cat confdefs.h
>>conftest.
$ac_ext
5975 cat >>conftest.
$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 $ac_includes_default
5989 rm -f conftest.
$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>conftest.er1
5993 grep -v '^ *+' conftest.er1
>conftest.err
5995 cat conftest.err
>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try
='test -z "$ac_c_werror_flag"
5999 || test ! -s conftest.err'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } &&
6005 { ac_try
='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_type_pid_t
=yes
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.
$ac_ext >&5
6018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6020 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6021 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6022 if test $ac_cv_type_pid_t = yes; then
6026 cat >>confdefs.h
<<_ACEOF
6032 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6033 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6034 if test "${ac_cv_type_signal+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 cat >conftest.
$ac_ext <<_ACEOF
6040 cat confdefs.h
>>conftest.
$ac_ext
6041 cat >>conftest.
$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <sys/types.h>
6049 extern "C" void (*signal (int, void (*)(int)))(int);
6051 void (*signal ()) ();
6062 rm -f conftest.
$ac_objext
6063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>conftest.er1
6066 grep -v '^ *+' conftest.er1
>conftest.err
6068 cat conftest.err
>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try
='test -z "$ac_c_werror_flag"
6072 || test ! -s conftest.err'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try
='test -s conftest.$ac_objext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_type_signal
=void
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.
$ac_ext >&5
6089 ac_cv_type_signal
=int
6091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6094 echo "${ECHO_T}$ac_cv_type_signal" >&6
6096 cat >>confdefs.h
<<_ACEOF
6097 #define RETSIGTYPE $ac_cv_type_signal
6101 echo "$as_me:$LINENO: checking for size_t" >&5
6102 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6103 if test "${ac_cv_type_size_t+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 cat >conftest.
$ac_ext <<_ACEOF
6109 cat confdefs.h
>>conftest.
$ac_ext
6110 cat >>conftest.
$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6118 if (sizeof (size_t))
6124 rm -f conftest.
$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126 (eval $ac_compile) 2>conftest.er1
6128 grep -v '^ *+' conftest.er1
>conftest.err
6130 cat conftest.err
>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try
='test -z "$ac_c_werror_flag"
6134 || test ! -s conftest.err'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; } &&
6140 { ac_try
='test -s conftest.$ac_objext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 ac_cv_type_size_t
=yes
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.
$ac_ext >&5
6151 ac_cv_type_size_t
=no
6153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6155 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6156 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6157 if test $ac_cv_type_size_t = yes; then
6161 cat >>confdefs.h
<<_ACEOF
6162 #define size_t unsigned
6167 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6168 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6169 if test "${ac_cv_type_uid_t+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 cat >conftest.
$ac_ext <<_ACEOF
6175 cat confdefs.h
>>conftest.
$ac_ext
6176 cat >>conftest.
$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <sys/types.h>
6181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "uid_t" >/dev
/null
2>&1; then
6183 ac_cv_type_uid_t
=yes
6190 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6191 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6192 if test $ac_cv_type_uid_t = no
; then
6194 cat >>confdefs.h
<<\_ACEOF
6199 cat >>confdefs.h
<<\_ACEOF
6205 echo "$as_me:$LINENO: checking for ssize_t" >&5
6206 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6207 if test "${ac_cv_type_ssize_t+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 cat >conftest.
$ac_ext <<_ACEOF
6213 cat confdefs.h
>>conftest.
$ac_ext
6214 cat >>conftest.
$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 $ac_includes_default
6222 if (sizeof (ssize_t))
6228 rm -f conftest.
$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230 (eval $ac_compile) 2>conftest.er1
6232 grep -v '^ *+' conftest.er1
>conftest.err
6234 cat conftest.err
>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try
='test -z "$ac_c_werror_flag"
6238 || test ! -s conftest.err'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try
='test -s conftest.$ac_objext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_cv_type_ssize_t
=yes
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.
$ac_ext >&5
6255 ac_cv_type_ssize_t
=no
6257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6259 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6260 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6261 if test $ac_cv_type_ssize_t = yes; then
6263 cat >>confdefs.h
<<\_ACEOF
6264 #define HAVE_SSIZE_T 1
6270 # Sizes of various common basic types
6271 # ANSI C requires sizeof(char) == 1, so no need to check it
6272 echo "$as_me:$LINENO: checking for int" >&5
6273 echo $ECHO_N "checking for int... $ECHO_C" >&6
6274 if test "${ac_cv_type_int+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6295 rm -f conftest.
$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6299 grep -v '^ *+' conftest.er1
>conftest.err
6301 cat conftest.err
>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try
='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try
='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.
$ac_ext >&5
6324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6327 echo "${ECHO_T}$ac_cv_type_int" >&6
6329 echo "$as_me:$LINENO: checking size of int" >&5
6330 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6331 if test "${ac_cv_sizeof_int+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 if test "$ac_cv_type_int" = yes; then
6335 # The cast to unsigned long works around a bug in the HP C Compiler
6336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6338 # This bug is HP SR number 8606223364.
6339 if test "$cross_compiling" = yes; then
6340 # Depending upon the size, compute the lo and hi bounds.
6341 cat >conftest.
$ac_ext <<_ACEOF
6344 cat confdefs.h
>>conftest.
$ac_ext
6345 cat >>conftest.
$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6351 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6358 rm -f conftest.
$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>conftest.er1
6362 grep -v '^ *+' conftest.er1
>conftest.err
6364 cat conftest.err
>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try
='test -z "$ac_c_werror_flag"
6368 || test ! -s conftest.err'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try
='test -s conftest.$ac_objext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6382 cat >conftest.
$ac_ext <<_ACEOF
6385 cat confdefs.h
>>conftest.
$ac_ext
6386 cat >>conftest.
$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 $ac_includes_default
6392 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6399 rm -f conftest.
$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1
>conftest.err
6405 cat conftest.err
>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try
='test -z "$ac_c_werror_flag"
6409 || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try
='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_hi
=$ac_mid; break
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.
$ac_ext >&5
6426 ac_lo
=`expr $ac_mid + 1`
6427 if test $ac_lo -le $ac_mid; then
6431 ac_mid
=`expr 2 '*' $ac_mid + 1`
6433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 cat >conftest.
$ac_ext <<_ACEOF
6442 cat confdefs.h
>>conftest.
$ac_ext
6443 cat >>conftest.
$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 $ac_includes_default
6449 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6456 rm -f conftest.
$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1
>conftest.err
6462 cat conftest.err
>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try
='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try
='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6480 cat >conftest.
$ac_ext <<_ACEOF
6483 cat confdefs.h
>>conftest.
$ac_ext
6484 cat >>conftest.
$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 $ac_includes_default
6490 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6497 rm -f conftest.
$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>conftest.er1
6501 grep -v '^ *+' conftest.er1
>conftest.err
6503 cat conftest.err
>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try
='test -z "$ac_c_werror_flag"
6507 || test ! -s conftest.err'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; } &&
6513 { ac_try
='test -s conftest.$ac_objext'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_lo
=$ac_mid; break
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.
$ac_ext >&5
6524 ac_hi
=`expr '(' $ac_mid ')' - 1`
6525 if test $ac_mid -le $ac_hi; then
6529 ac_mid
=`expr 2 '*' $ac_mid`
6531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.
$ac_ext >&5
6539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 # Binary search between lo and hi bounds.
6543 while test "x$ac_lo" != "x$ac_hi"; do
6544 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6545 cat >conftest.
$ac_ext <<_ACEOF
6548 cat confdefs.h
>>conftest.
$ac_ext
6549 cat >>conftest.
$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6555 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6562 rm -f conftest.
$ac_objext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564 (eval $ac_compile) 2>conftest.er1
6566 grep -v '^ *+' conftest.er1
>conftest.err
6568 cat conftest.err
>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try
='test -z "$ac_c_werror_flag"
6572 || test ! -s conftest.err'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; } &&
6578 { ac_try
='test -s conftest.$ac_objext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.
$ac_ext >&5
6589 ac_lo
=`expr '(' $ac_mid ')' + 1`
6591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6594 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6596 See \`config.log' for more details." >&5
6597 echo "$as_me: error: cannot compute sizeof (int), 77
6598 See \`config.log' for more details." >&2;}
6599 { (exit 1); exit 1; }; } ;;
6602 if test "$cross_compiling" = yes; then
6603 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6604 See \`config.log' for more details." >&5
6605 echo "$as_me: error: cannot run test program while cross compiling
6606 See \`config.log' for more details." >&2;}
6607 { (exit 1); exit 1; }; }
6609 cat >conftest.
$ac_ext <<_ACEOF
6612 cat confdefs.h
>>conftest.
$ac_ext
6613 cat >>conftest.
$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 long longval () { return (long) (sizeof (int)); }
6617 unsigned long ulongval () { return (long) (sizeof (int)); }
6624 FILE *f = fopen ("conftest.val", "w");
6627 if (((long) (sizeof (int))) < 0)
6629 long i = longval ();
6630 if (i != ((long) (sizeof (int))))
6632 fprintf (f, "%ld\n", i);
6636 unsigned long i = ulongval ();
6637 if (i != ((long) (sizeof (int))))
6639 fprintf (f, "%lu\n", i);
6641 exit (ferror (f) || fclose (f) != 0);
6647 rm -f conftest
$ac_exeext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_sizeof_int
=`cat conftest.val`
6660 echo "$as_me: program exited with status $ac_status" >&5
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.
$ac_ext >&5
6665 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6666 See \`config.log' for more details." >&5
6667 echo "$as_me: error: cannot compute sizeof (int), 77
6668 See \`config.log' for more details." >&2;}
6669 { (exit 1); exit 1; }; }
6671 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6679 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6680 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6681 cat >>confdefs.h
<<_ACEOF
6682 #define SIZEOF_INT $ac_cv_sizeof_int
6686 echo "$as_me:$LINENO: checking for long" >&5
6687 echo $ECHO_N "checking for long... $ECHO_C" >&6
6688 if test "${ac_cv_type_long+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 cat >conftest.
$ac_ext <<_ACEOF
6694 cat confdefs.h
>>conftest.
$ac_ext
6695 cat >>conftest.
$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6709 rm -f conftest.
$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>conftest.er1
6713 grep -v '^ *+' conftest.er1
>conftest.err
6715 cat conftest.err
>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try
='test -z "$ac_c_werror_flag"
6719 || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try
='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.
$ac_ext >&5
6738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6740 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6741 echo "${ECHO_T}$ac_cv_type_long" >&6
6743 echo "$as_me:$LINENO: checking size of long" >&5
6744 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6745 if test "${ac_cv_sizeof_long+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 if test "$ac_cv_type_long" = yes; then
6749 # The cast to unsigned long works around a bug in the HP C Compiler
6750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6752 # This bug is HP SR number 8606223364.
6753 if test "$cross_compiling" = yes; then
6754 # Depending upon the size, compute the lo and hi bounds.
6755 cat >conftest.
$ac_ext <<_ACEOF
6758 cat confdefs.h
>>conftest.
$ac_ext
6759 cat >>conftest.
$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6765 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6772 rm -f conftest.
$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>conftest.er1
6776 grep -v '^ *+' conftest.er1
>conftest.err
6778 cat conftest.err
>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try
='test -z "$ac_c_werror_flag"
6782 || test ! -s conftest.err'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; } &&
6788 { ac_try
='test -s conftest.$ac_objext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6796 cat >conftest.
$ac_ext <<_ACEOF
6799 cat confdefs.h
>>conftest.
$ac_ext
6800 cat >>conftest.
$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 $ac_includes_default
6806 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6813 rm -f conftest.
$ac_objext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815 (eval $ac_compile) 2>conftest.er1
6817 grep -v '^ *+' conftest.er1
>conftest.err
6819 cat conftest.err
>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try
='test -z "$ac_c_werror_flag"
6823 || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try
='test -s conftest.$ac_objext'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 ac_hi
=$ac_mid; break
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.
$ac_ext >&5
6840 ac_lo
=`expr $ac_mid + 1`
6841 if test $ac_lo -le $ac_mid; then
6845 ac_mid
=`expr 2 '*' $ac_mid + 1`
6847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.
$ac_ext >&5
6853 cat >conftest.
$ac_ext <<_ACEOF
6856 cat confdefs.h
>>conftest.
$ac_ext
6857 cat >>conftest.
$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 $ac_includes_default
6863 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6870 rm -f conftest.
$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>conftest.er1
6874 grep -v '^ *+' conftest.er1
>conftest.err
6876 cat conftest.err
>&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try
='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try
='test -s conftest.$ac_objext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6894 cat >conftest.
$ac_ext <<_ACEOF
6897 cat confdefs.h
>>conftest.
$ac_ext
6898 cat >>conftest.
$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6900 $ac_includes_default
6904 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6911 rm -f conftest.
$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1
>conftest.err
6917 cat conftest.err
>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try
='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try
='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_lo
=$ac_mid; break
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.
$ac_ext >&5
6938 ac_hi
=`expr '(' $ac_mid ')' - 1`
6939 if test $ac_mid -le $ac_hi; then
6943 ac_mid
=`expr 2 '*' $ac_mid`
6945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.
$ac_ext >&5
6953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 # Binary search between lo and hi bounds.
6957 while test "x$ac_lo" != "x$ac_hi"; do
6958 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6969 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6976 rm -f conftest.
$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6980 grep -v '^ *+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try
='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try
='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7003 ac_lo
=`expr '(' $ac_mid ')' + 1`
7005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7008 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7009 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7010 See \`config.log' for more details." >&5
7011 echo "$as_me: error: cannot compute sizeof (long), 77
7012 See \`config.log' for more details." >&2;}
7013 { (exit 1); exit 1; }; } ;;
7016 if test "$cross_compiling" = yes; then
7017 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7018 See \`config.log' for more details." >&5
7019 echo "$as_me: error: cannot run test program while cross compiling
7020 See \`config.log' for more details." >&2;}
7021 { (exit 1); exit 1; }; }
7023 cat >conftest.
$ac_ext <<_ACEOF
7026 cat confdefs.h
>>conftest.
$ac_ext
7027 cat >>conftest.
$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 $ac_includes_default
7030 long longval () { return (long) (sizeof (long)); }
7031 unsigned long ulongval () { return (long) (sizeof (long)); }
7038 FILE *f = fopen ("conftest.val", "w");
7041 if (((long) (sizeof (long))) < 0)
7043 long i = longval ();
7044 if (i != ((long) (sizeof (long))))
7046 fprintf (f, "%ld\n", i);
7050 unsigned long i = ulongval ();
7051 if (i != ((long) (sizeof (long))))
7053 fprintf (f, "%lu\n", i);
7055 exit (ferror (f) || fclose (f) != 0);
7061 rm -f conftest
$ac_exeext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7063 (eval $ac_link) 2>&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_cv_sizeof_long
=`cat conftest.val`
7074 echo "$as_me: program exited with status $ac_status" >&5
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.
$ac_ext >&5
7079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7080 See \`config.log' for more details." >&5
7081 echo "$as_me: error: cannot compute sizeof (long), 77
7082 See \`config.log' for more details." >&2;}
7083 { (exit 1); exit 1; }; }
7085 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7093 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7094 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7095 cat >>confdefs.h
<<_ACEOF
7096 #define SIZEOF_LONG $ac_cv_sizeof_long
7100 echo "$as_me:$LINENO: checking for void *" >&5
7101 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7102 if test "${ac_cv_type_void_p+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.
$ac_ext <<_ACEOF
7108 cat confdefs.h
>>conftest.
$ac_ext
7109 cat >>conftest.
$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 $ac_includes_default
7117 if (sizeof (void *))
7123 rm -f conftest.
$ac_objext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125 (eval $ac_compile) 2>conftest.er1
7127 grep -v '^ *+' conftest.er1
>conftest.err
7129 cat conftest.err
>&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try
='test -z "$ac_c_werror_flag"
7133 || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try
='test -s conftest.$ac_objext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_type_void_p
=yes
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.
$ac_ext >&5
7150 ac_cv_type_void_p
=no
7152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7155 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7157 echo "$as_me:$LINENO: checking size of void *" >&5
7158 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7159 if test "${ac_cv_sizeof_void_p+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 if test "$ac_cv_type_void_p" = yes; then
7163 # The cast to unsigned long works around a bug in the HP C Compiler
7164 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7165 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7166 # This bug is HP SR number 8606223364.
7167 if test "$cross_compiling" = yes; then
7168 # Depending upon the size, compute the lo and hi bounds.
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7179 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7186 rm -f conftest.
$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7190 grep -v '^ *+' conftest.er1
>conftest.err
7192 cat conftest.err
>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try
='test -z "$ac_c_werror_flag"
7196 || test ! -s conftest.err'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; } &&
7202 { ac_try
='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7210 cat >conftest.
$ac_ext <<_ACEOF
7213 cat confdefs.h
>>conftest.
$ac_ext
7214 cat >>conftest.
$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 $ac_includes_default
7220 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7227 rm -f conftest.
$ac_objext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229 (eval $ac_compile) 2>conftest.er1
7231 grep -v '^ *+' conftest.er1
>conftest.err
7233 cat conftest.err
>&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try
='test -z "$ac_c_werror_flag"
7237 || test ! -s conftest.err'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; } &&
7243 { ac_try
='test -s conftest.$ac_objext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_hi
=$ac_mid; break
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.
$ac_ext >&5
7254 ac_lo
=`expr $ac_mid + 1`
7255 if test $ac_lo -le $ac_mid; then
7259 ac_mid
=`expr 2 '*' $ac_mid + 1`
7261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.
$ac_ext >&5
7267 cat >conftest.
$ac_ext <<_ACEOF
7270 cat confdefs.h
>>conftest.
$ac_ext
7271 cat >>conftest.
$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 $ac_includes_default
7277 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7284 rm -f conftest.
$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>conftest.er1
7288 grep -v '^ *+' conftest.er1
>conftest.err
7290 cat conftest.err
>&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try
='test -z "$ac_c_werror_flag"
7294 || test ! -s conftest.err'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; } &&
7300 { ac_try
='test -s conftest.$ac_objext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 $ac_includes_default
7318 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7325 rm -f conftest.
$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>conftest.er1
7329 grep -v '^ *+' conftest.er1
>conftest.err
7331 cat conftest.err
>&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try
='test -z "$ac_c_werror_flag"
7335 || test ! -s conftest.err'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; } &&
7341 { ac_try
='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_lo
=$ac_mid; break
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.
$ac_ext >&5
7352 ac_hi
=`expr '(' $ac_mid ')' - 1`
7353 if test $ac_mid -le $ac_hi; then
7357 ac_mid
=`expr 2 '*' $ac_mid`
7359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.
$ac_ext >&5
7367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 # Binary search between lo and hi bounds.
7371 while test "x$ac_lo" != "x$ac_hi"; do
7372 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7373 cat >conftest.
$ac_ext <<_ACEOF
7376 cat confdefs.h
>>conftest.
$ac_ext
7377 cat >>conftest.
$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7383 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7390 rm -f conftest.
$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7394 grep -v '^ *+' conftest.er1
>conftest.err
7396 cat conftest.err
>&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try
='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try
='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.
$ac_ext >&5
7417 ac_lo
=`expr '(' $ac_mid ')' + 1`
7419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7423 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7424 See \`config.log' for more details." >&5
7425 echo "$as_me: error: cannot compute sizeof (void *), 77
7426 See \`config.log' for more details." >&2;}
7427 { (exit 1); exit 1; }; } ;;
7430 if test "$cross_compiling" = yes; then
7431 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7432 See \`config.log' for more details." >&5
7433 echo "$as_me: error: cannot run test program while cross compiling
7434 See \`config.log' for more details." >&2;}
7435 { (exit 1); exit 1; }; }
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 long longval () { return (long) (sizeof (void *)); }
7445 unsigned long ulongval () { return (long) (sizeof (void *)); }
7452 FILE *f = fopen ("conftest.val", "w");
7455 if (((long) (sizeof (void *))) < 0)
7457 long i = longval ();
7458 if (i != ((long) (sizeof (void *))))
7460 fprintf (f, "%ld\n", i);
7464 unsigned long i = ulongval ();
7465 if (i != ((long) (sizeof (void *))))
7467 fprintf (f, "%lu\n", i);
7469 exit (ferror (f) || fclose (f) != 0);
7475 rm -f conftest
$ac_exeext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477 (eval $ac_link) 2>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_cv_sizeof_void_p
=`cat conftest.val`
7488 echo "$as_me: program exited with status $ac_status" >&5
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.
$ac_ext >&5
7493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7494 See \`config.log' for more details." >&5
7495 echo "$as_me: error: cannot compute sizeof (void *), 77
7496 See \`config.log' for more details." >&2;}
7497 { (exit 1); exit 1; }; }
7499 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7504 ac_cv_sizeof_void_p
=0
7507 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7508 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7509 cat >>confdefs.h
<<_ACEOF
7510 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7514 echo "$as_me:$LINENO: checking for short" >&5
7515 echo $ECHO_N "checking for short... $ECHO_C" >&6
7516 if test "${ac_cv_type_short+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.
$ac_ext <<_ACEOF
7522 cat confdefs.h
>>conftest.
$ac_ext
7523 cat >>conftest.
$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 $ac_includes_default
7537 rm -f conftest.
$ac_objext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539 (eval $ac_compile) 2>conftest.er1
7541 grep -v '^ *+' conftest.er1
>conftest.err
7543 cat conftest.err
>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try
='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try
='test -s conftest.$ac_objext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_type_short
=yes
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.
$ac_ext >&5
7566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7569 echo "${ECHO_T}$ac_cv_type_short" >&6
7571 echo "$as_me:$LINENO: checking size of short" >&5
7572 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7573 if test "${ac_cv_sizeof_short+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 if test "$ac_cv_type_short" = yes; then
7577 # The cast to unsigned long works around a bug in the HP C Compiler
7578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7580 # This bug is HP SR number 8606223364.
7581 if test "$cross_compiling" = yes; then
7582 # Depending upon the size, compute the lo and hi bounds.
7583 cat >conftest.
$ac_ext <<_ACEOF
7586 cat confdefs.h
>>conftest.
$ac_ext
7587 cat >>conftest.
$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 $ac_includes_default
7593 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7600 rm -f conftest.
$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7604 grep -v '^ *+' conftest.er1
>conftest.err
7606 cat conftest.err
>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try
='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try
='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7624 cat >conftest.
$ac_ext <<_ACEOF
7627 cat confdefs.h
>>conftest.
$ac_ext
7628 cat >>conftest.
$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7634 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7641 rm -f conftest.
$ac_objext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7643 (eval $ac_compile) 2>conftest.er1
7645 grep -v '^ *+' conftest.er1
>conftest.err
7647 cat conftest.err
>&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try
='test -z "$ac_c_werror_flag"
7651 || test ! -s conftest.err'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; } &&
7657 { ac_try
='test -s conftest.$ac_objext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 ac_hi
=$ac_mid; break
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.
$ac_ext >&5
7668 ac_lo
=`expr $ac_mid + 1`
7669 if test $ac_lo -le $ac_mid; then
7673 ac_mid
=`expr 2 '*' $ac_mid + 1`
7675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.
$ac_ext >&5
7681 cat >conftest.
$ac_ext <<_ACEOF
7684 cat confdefs.h
>>conftest.
$ac_ext
7685 cat >>conftest.
$ac_ext <<_ACEOF
7686 /* end confdefs.h. */
7687 $ac_includes_default
7691 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1
>conftest.err
7704 cat conftest.err
>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try
='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try
='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7722 cat >conftest.
$ac_ext <<_ACEOF
7725 cat confdefs.h
>>conftest.
$ac_ext
7726 cat >>conftest.
$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7732 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7739 rm -f conftest.
$ac_objext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741 (eval $ac_compile) 2>conftest.er1
7743 grep -v '^ *+' conftest.er1
>conftest.err
7745 cat conftest.err
>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try
='test -z "$ac_c_werror_flag"
7749 || test ! -s conftest.err'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try
='test -s conftest.$ac_objext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_lo
=$ac_mid; break
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.
$ac_ext >&5
7766 ac_hi
=`expr '(' $ac_mid ')' - 1`
7767 if test $ac_mid -le $ac_hi; then
7771 ac_mid
=`expr 2 '*' $ac_mid`
7773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.
$ac_ext >&5
7781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 # Binary search between lo and hi bounds.
7785 while test "x$ac_lo" != "x$ac_hi"; do
7786 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7787 cat >conftest.
$ac_ext <<_ACEOF
7790 cat confdefs.h
>>conftest.
$ac_ext
7791 cat >>conftest.
$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 $ac_includes_default
7797 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7804 rm -f conftest.
$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1
>conftest.err
7810 cat conftest.err
>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try
='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try
='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.
$ac_ext >&5
7831 ac_lo
=`expr '(' $ac_mid ')' + 1`
7833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7836 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7837 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7838 See \`config.log' for more details." >&5
7839 echo "$as_me: error: cannot compute sizeof (short), 77
7840 See \`config.log' for more details." >&2;}
7841 { (exit 1); exit 1; }; } ;;
7844 if test "$cross_compiling" = yes; then
7845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7846 See \`config.log' for more details." >&5
7847 echo "$as_me: error: cannot run test program while cross compiling
7848 See \`config.log' for more details." >&2;}
7849 { (exit 1); exit 1; }; }
7851 cat >conftest.
$ac_ext <<_ACEOF
7854 cat confdefs.h
>>conftest.
$ac_ext
7855 cat >>conftest.
$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 long longval () { return (long) (sizeof (short)); }
7859 unsigned long ulongval () { return (long) (sizeof (short)); }
7866 FILE *f = fopen ("conftest.val", "w");
7869 if (((long) (sizeof (short))) < 0)
7871 long i = longval ();
7872 if (i != ((long) (sizeof (short))))
7874 fprintf (f, "%ld\n", i);
7878 unsigned long i = ulongval ();
7879 if (i != ((long) (sizeof (short))))
7881 fprintf (f, "%lu\n", i);
7883 exit (ferror (f) || fclose (f) != 0);
7889 rm -f conftest
$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_sizeof_short
=`cat conftest.val`
7902 echo "$as_me: program exited with status $ac_status" >&5
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.
$ac_ext >&5
7907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7908 See \`config.log' for more details." >&5
7909 echo "$as_me: error: cannot compute sizeof (short), 77
7910 See \`config.log' for more details." >&2;}
7911 { (exit 1); exit 1; }; }
7913 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7918 ac_cv_sizeof_short
=0
7921 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7922 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7923 cat >>confdefs.h
<<_ACEOF
7924 #define SIZEOF_SHORT $ac_cv_sizeof_short
7928 echo "$as_me:$LINENO: checking for float" >&5
7929 echo $ECHO_N "checking for float... $ECHO_C" >&6
7930 if test "${ac_cv_type_float+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 cat >conftest.
$ac_ext <<_ACEOF
7936 cat confdefs.h
>>conftest.
$ac_ext
7937 cat >>conftest.
$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 $ac_includes_default
7951 rm -f conftest.
$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>conftest.er1
7955 grep -v '^ *+' conftest.er1
>conftest.err
7957 cat conftest.err
>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try
='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try
='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_type_float
=yes
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.
$ac_ext >&5
7980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7983 echo "${ECHO_T}$ac_cv_type_float" >&6
7985 echo "$as_me:$LINENO: checking size of float" >&5
7986 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7987 if test "${ac_cv_sizeof_float+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 if test "$ac_cv_type_float" = yes; then
7991 # The cast to unsigned long works around a bug in the HP C Compiler
7992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7994 # This bug is HP SR number 8606223364.
7995 if test "$cross_compiling" = yes; then
7996 # Depending upon the size, compute the lo and hi bounds.
7997 cat >conftest.
$ac_ext <<_ACEOF
8000 cat confdefs.h
>>conftest.
$ac_ext
8001 cat >>conftest.
$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8007 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8014 rm -f conftest.
$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>conftest.er1
8018 grep -v '^ *+' conftest.er1
>conftest.err
8020 cat conftest.err
>&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try
='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try
='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8038 cat >conftest.
$ac_ext <<_ACEOF
8041 cat confdefs.h
>>conftest.
$ac_ext
8042 cat >>conftest.
$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 $ac_includes_default
8048 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8055 rm -f conftest.
$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057 (eval $ac_compile) 2>conftest.er1
8059 grep -v '^ *+' conftest.er1
>conftest.err
8061 cat conftest.err
>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try
='test -z "$ac_c_werror_flag"
8065 || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try
='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_hi
=$ac_mid; break
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.
$ac_ext >&5
8082 ac_lo
=`expr $ac_mid + 1`
8083 if test $ac_lo -le $ac_mid; then
8087 ac_mid
=`expr 2 '*' $ac_mid + 1`
8089 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.
$ac_ext >&5
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8105 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8112 rm -f conftest.
$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>conftest.er1
8116 grep -v '^ *+' conftest.er1
>conftest.err
8118 cat conftest.err
>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try
='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try
='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8136 cat >conftest.
$ac_ext <<_ACEOF
8139 cat confdefs.h
>>conftest.
$ac_ext
8140 cat >>conftest.
$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8146 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8153 rm -f conftest.
$ac_objext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8155 (eval $ac_compile) 2>conftest.er1
8157 grep -v '^ *+' conftest.er1
>conftest.err
8159 cat conftest.err
>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try
='test -z "$ac_c_werror_flag"
8163 || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try
='test -s conftest.$ac_objext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_lo
=$ac_mid; break
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.
$ac_ext >&5
8180 ac_hi
=`expr '(' $ac_mid ')' - 1`
8181 if test $ac_mid -le $ac_hi; then
8185 ac_mid
=`expr 2 '*' $ac_mid`
8187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.
$ac_ext >&5
8195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8198 # Binary search between lo and hi bounds.
8199 while test "x$ac_lo" != "x$ac_hi"; do
8200 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8201 cat >conftest.
$ac_ext <<_ACEOF
8204 cat confdefs.h
>>conftest.
$ac_ext
8205 cat >>conftest.
$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 $ac_includes_default
8211 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8218 rm -f conftest.
$ac_objext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>conftest.er1
8222 grep -v '^ *+' conftest.er1
>conftest.err
8224 cat conftest.err
>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try
='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try
='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.
$ac_ext >&5
8245 ac_lo
=`expr '(' $ac_mid ')' + 1`
8247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8251 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8252 See \`config.log' for more details." >&5
8253 echo "$as_me: error: cannot compute sizeof (float), 77
8254 See \`config.log' for more details." >&2;}
8255 { (exit 1); exit 1; }; } ;;
8258 if test "$cross_compiling" = yes; then
8259 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8260 See \`config.log' for more details." >&5
8261 echo "$as_me: error: cannot run test program while cross compiling
8262 See \`config.log' for more details." >&2;}
8263 { (exit 1); exit 1; }; }
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 long longval () { return (long) (sizeof (float)); }
8273 unsigned long ulongval () { return (long) (sizeof (float)); }
8280 FILE *f = fopen ("conftest.val", "w");
8283 if (((long) (sizeof (float))) < 0)
8285 long i = longval ();
8286 if (i != ((long) (sizeof (float))))
8288 fprintf (f, "%ld\n", i);
8292 unsigned long i = ulongval ();
8293 if (i != ((long) (sizeof (float))))
8295 fprintf (f, "%lu\n", i);
8297 exit (ferror (f) || fclose (f) != 0);
8303 rm -f conftest
$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_sizeof_float
=`cat conftest.val`
8316 echo "$as_me: program exited with status $ac_status" >&5
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.
$ac_ext >&5
8321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8322 See \`config.log' for more details." >&5
8323 echo "$as_me: error: cannot compute sizeof (float), 77
8324 See \`config.log' for more details." >&2;}
8325 { (exit 1); exit 1; }; }
8327 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8332 ac_cv_sizeof_float
=0
8335 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8336 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8337 cat >>confdefs.h
<<_ACEOF
8338 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8342 echo "$as_me:$LINENO: checking for double" >&5
8343 echo $ECHO_N "checking for double... $ECHO_C" >&6
8344 if test "${ac_cv_type_double+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 cat >conftest.
$ac_ext <<_ACEOF
8350 cat confdefs.h
>>conftest.
$ac_ext
8351 cat >>conftest.
$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8359 if (sizeof (double))
8365 rm -f conftest.
$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1
>conftest.err
8371 cat conftest.err
>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try
='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try
='test -s conftest.$ac_objext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_type_double
=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.
$ac_ext >&5
8392 ac_cv_type_double
=no
8394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8396 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8397 echo "${ECHO_T}$ac_cv_type_double" >&6
8399 echo "$as_me:$LINENO: checking size of double" >&5
8400 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8401 if test "${ac_cv_sizeof_double+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 if test "$ac_cv_type_double" = yes; then
8405 # The cast to unsigned long works around a bug in the HP C Compiler
8406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8408 # This bug is HP SR number 8606223364.
8409 if test "$cross_compiling" = yes; then
8410 # Depending upon the size, compute the lo and hi bounds.
8411 cat >conftest.
$ac_ext <<_ACEOF
8414 cat confdefs.h
>>conftest.
$ac_ext
8415 cat >>conftest.
$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8421 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8428 rm -f conftest.
$ac_objext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8430 (eval $ac_compile) 2>conftest.er1
8432 grep -v '^ *+' conftest.er1
>conftest.err
8434 cat conftest.err
>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try
='test -z "$ac_c_werror_flag"
8438 || test ! -s conftest.err'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try
='test -s conftest.$ac_objext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8452 cat >conftest.
$ac_ext <<_ACEOF
8455 cat confdefs.h
>>conftest.
$ac_ext
8456 cat >>conftest.
$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8462 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8469 rm -f conftest.
$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471 (eval $ac_compile) 2>conftest.er1
8473 grep -v '^ *+' conftest.er1
>conftest.err
8475 cat conftest.err
>&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try
='test -z "$ac_c_werror_flag"
8479 || test ! -s conftest.err'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try
='test -s conftest.$ac_objext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 ac_hi
=$ac_mid; break
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.
$ac_ext >&5
8496 ac_lo
=`expr $ac_mid + 1`
8497 if test $ac_lo -le $ac_mid; then
8501 ac_mid
=`expr 2 '*' $ac_mid + 1`
8503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.
$ac_ext >&5
8509 cat >conftest.
$ac_ext <<_ACEOF
8512 cat confdefs.h
>>conftest.
$ac_ext
8513 cat >>conftest.
$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 $ac_includes_default
8519 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8526 rm -f conftest.
$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>conftest.er1
8530 grep -v '^ *+' conftest.er1
>conftest.err
8532 cat conftest.err
>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try
='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try
='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8550 cat >conftest.
$ac_ext <<_ACEOF
8553 cat confdefs.h
>>conftest.
$ac_ext
8554 cat >>conftest.
$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 $ac_includes_default
8560 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8567 rm -f conftest.
$ac_objext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>conftest.er1
8571 grep -v '^ *+' conftest.er1
>conftest.err
8573 cat conftest.err
>&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try
='test -z "$ac_c_werror_flag"
8577 || test ! -s conftest.err'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try
='test -s conftest.$ac_objext'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 ac_lo
=$ac_mid; break
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8594 ac_hi
=`expr '(' $ac_mid ')' - 1`
8595 if test $ac_mid -le $ac_hi; then
8599 ac_mid
=`expr 2 '*' $ac_mid`
8601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.
$ac_ext >&5
8609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 # Binary search between lo and hi bounds.
8613 while test "x$ac_lo" != "x$ac_hi"; do
8614 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8615 cat >conftest.
$ac_ext <<_ACEOF
8618 cat confdefs.h
>>conftest.
$ac_ext
8619 cat >>conftest.
$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8625 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8632 rm -f conftest.
$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>conftest.er1
8636 grep -v '^ *+' conftest.er1
>conftest.err
8638 cat conftest.err
>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try
='test -z "$ac_c_werror_flag"
8642 || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try
='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.
$ac_ext >&5
8659 ac_lo
=`expr '(' $ac_mid ')' + 1`
8661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8664 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8665 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8666 See \`config.log' for more details." >&5
8667 echo "$as_me: error: cannot compute sizeof (double), 77
8668 See \`config.log' for more details." >&2;}
8669 { (exit 1); exit 1; }; } ;;
8672 if test "$cross_compiling" = yes; then
8673 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8674 See \`config.log' for more details." >&5
8675 echo "$as_me: error: cannot run test program while cross compiling
8676 See \`config.log' for more details." >&2;}
8677 { (exit 1); exit 1; }; }
8679 cat >conftest.
$ac_ext <<_ACEOF
8682 cat confdefs.h
>>conftest.
$ac_ext
8683 cat >>conftest.
$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 long longval () { return (long) (sizeof (double)); }
8687 unsigned long ulongval () { return (long) (sizeof (double)); }
8694 FILE *f = fopen ("conftest.val", "w");
8697 if (((long) (sizeof (double))) < 0)
8699 long i = longval ();
8700 if (i != ((long) (sizeof (double))))
8702 fprintf (f, "%ld\n", i);
8706 unsigned long i = ulongval ();
8707 if (i != ((long) (sizeof (double))))
8709 fprintf (f, "%lu\n", i);
8711 exit (ferror (f) || fclose (f) != 0);
8717 rm -f conftest
$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_cv_sizeof_double
=`cat conftest.val`
8730 echo "$as_me: program exited with status $ac_status" >&5
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.
$ac_ext >&5
8735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8736 See \`config.log' for more details." >&5
8737 echo "$as_me: error: cannot compute sizeof (double), 77
8738 See \`config.log' for more details." >&2;}
8739 { (exit 1); exit 1; }; }
8741 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8746 ac_cv_sizeof_double
=0
8749 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8750 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8751 cat >>confdefs.h
<<_ACEOF
8752 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8756 echo "$as_me:$LINENO: checking for fpos_t" >&5
8757 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8758 if test "${ac_cv_type_fpos_t+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 cat >conftest.
$ac_ext <<_ACEOF
8764 cat confdefs.h
>>conftest.
$ac_ext
8765 cat >>conftest.
$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8773 if (sizeof (fpos_t))
8779 rm -f conftest.
$ac_objext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8781 (eval $ac_compile) 2>conftest.er1
8783 grep -v '^ *+' conftest.er1
>conftest.err
8785 cat conftest.err
>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try
='test -z "$ac_c_werror_flag"
8789 || test ! -s conftest.err'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try
='test -s conftest.$ac_objext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 ac_cv_type_fpos_t
=yes
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.
$ac_ext >&5
8806 ac_cv_type_fpos_t
=no
8808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8811 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8813 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8814 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8815 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 if test "$ac_cv_type_fpos_t" = yes; then
8819 # The cast to unsigned long works around a bug in the HP C Compiler
8820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8822 # This bug is HP SR number 8606223364.
8823 if test "$cross_compiling" = yes; then
8824 # Depending upon the size, compute the lo and hi bounds.
8825 cat >conftest.
$ac_ext <<_ACEOF
8828 cat confdefs.h
>>conftest.
$ac_ext
8829 cat >>conftest.
$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 $ac_includes_default
8835 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8842 rm -f conftest.
$ac_objext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8844 (eval $ac_compile) 2>conftest.er1
8846 grep -v '^ *+' conftest.er1
>conftest.err
8848 cat conftest.err
>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try
='test -z "$ac_c_werror_flag"
8852 || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try
='test -s conftest.$ac_objext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8866 cat >conftest.
$ac_ext <<_ACEOF
8869 cat confdefs.h
>>conftest.
$ac_ext
8870 cat >>conftest.
$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8876 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8883 rm -f conftest.
$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8887 grep -v '^ *+' conftest.er1
>conftest.err
8889 cat conftest.err
>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try
='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try
='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_hi
=$ac_mid; break
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.
$ac_ext >&5
8910 ac_lo
=`expr $ac_mid + 1`
8911 if test $ac_lo -le $ac_mid; then
8915 ac_mid
=`expr 2 '*' $ac_mid + 1`
8917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.
$ac_ext >&5
8923 cat >conftest.
$ac_ext <<_ACEOF
8926 cat confdefs.h
>>conftest.
$ac_ext
8927 cat >>conftest.
$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8933 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8940 rm -f conftest.
$ac_objext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8942 (eval $ac_compile) 2>conftest.er1
8944 grep -v '^ *+' conftest.er1
>conftest.err
8946 cat conftest.err
>&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try
='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try
='test -s conftest.$ac_objext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8964 cat >conftest.
$ac_ext <<_ACEOF
8967 cat confdefs.h
>>conftest.
$ac_ext
8968 cat >>conftest.
$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 $ac_includes_default
8974 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8981 rm -f conftest.
$ac_objext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983 (eval $ac_compile) 2>conftest.er1
8985 grep -v '^ *+' conftest.er1
>conftest.err
8987 cat conftest.err
>&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try
='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try
='test -s conftest.$ac_objext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_lo
=$ac_mid; break
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.
$ac_ext >&5
9008 ac_hi
=`expr '(' $ac_mid ')' - 1`
9009 if test $ac_mid -le $ac_hi; then
9013 ac_mid
=`expr 2 '*' $ac_mid`
9015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 # Binary search between lo and hi bounds.
9027 while test "x$ac_lo" != "x$ac_hi"; do
9028 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9029 cat >conftest.
$ac_ext <<_ACEOF
9032 cat confdefs.h
>>conftest.
$ac_ext
9033 cat >>conftest.
$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9039 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9046 rm -f conftest.
$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>conftest.er1
9050 grep -v '^ *+' conftest.er1
>conftest.err
9052 cat conftest.err
>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try
='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try
='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.
$ac_ext >&5
9073 ac_lo
=`expr '(' $ac_mid ')' + 1`
9075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9078 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9079 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9080 See \`config.log' for more details." >&5
9081 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9082 See \`config.log' for more details." >&2;}
9083 { (exit 1); exit 1; }; } ;;
9086 if test "$cross_compiling" = yes; then
9087 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9088 See \`config.log' for more details." >&5
9089 echo "$as_me: error: cannot run test program while cross compiling
9090 See \`config.log' for more details." >&2;}
9091 { (exit 1); exit 1; }; }
9093 cat >conftest.
$ac_ext <<_ACEOF
9096 cat confdefs.h
>>conftest.
$ac_ext
9097 cat >>conftest.
$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 long longval () { return (long) (sizeof (fpos_t)); }
9101 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9108 FILE *f = fopen ("conftest.val", "w");
9111 if (((long) (sizeof (fpos_t))) < 0)
9113 long i = longval ();
9114 if (i != ((long) (sizeof (fpos_t))))
9116 fprintf (f, "%ld\n", i);
9120 unsigned long i = ulongval ();
9121 if (i != ((long) (sizeof (fpos_t))))
9123 fprintf (f, "%lu\n", i);
9125 exit (ferror (f) || fclose (f) != 0);
9131 rm -f conftest
$ac_exeext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9133 (eval $ac_link) 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9144 echo "$as_me: program exited with status $ac_status" >&5
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.
$ac_ext >&5
9149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9150 See \`config.log' for more details." >&5
9151 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9152 See \`config.log' for more details." >&2;}
9153 { (exit 1); exit 1; }; }
9155 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9160 ac_cv_sizeof_fpos_t
=0
9163 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9164 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9165 cat >>confdefs.h
<<_ACEOF
9166 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9170 echo "$as_me:$LINENO: checking for size_t" >&5
9171 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9172 if test "${ac_cv_type_size_t+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 cat >conftest.
$ac_ext <<_ACEOF
9178 cat confdefs.h
>>conftest.
$ac_ext
9179 cat >>conftest.
$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9181 $ac_includes_default
9187 if (sizeof (size_t))
9193 rm -f conftest.
$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195 (eval $ac_compile) 2>conftest.er1
9197 grep -v '^ *+' conftest.er1
>conftest.err
9199 cat conftest.err
>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try
='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try
='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_type_size_t
=yes
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.
$ac_ext >&5
9220 ac_cv_type_size_t
=no
9222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9225 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9227 echo "$as_me:$LINENO: checking size of size_t" >&5
9228 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9229 if test "${ac_cv_sizeof_size_t+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 if test "$ac_cv_type_size_t" = yes; then
9233 # The cast to unsigned long works around a bug in the HP C Compiler
9234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9236 # This bug is HP SR number 8606223364.
9237 if test "$cross_compiling" = yes; then
9238 # Depending upon the size, compute the lo and hi bounds.
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 $ac_includes_default
9249 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9256 rm -f conftest.
$ac_objext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>conftest.er1
9260 grep -v '^ *+' conftest.er1
>conftest.err
9262 cat conftest.err
>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try
='test -z "$ac_c_werror_flag"
9266 || test ! -s conftest.err'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; } &&
9272 { ac_try
='test -s conftest.$ac_objext'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9280 cat >conftest.
$ac_ext <<_ACEOF
9283 cat confdefs.h
>>conftest.
$ac_ext
9284 cat >>conftest.
$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 $ac_includes_default
9290 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9297 rm -f conftest.
$ac_objext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299 (eval $ac_compile) 2>conftest.er1
9301 grep -v '^ *+' conftest.er1
>conftest.err
9303 cat conftest.err
>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try
='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try
='test -s conftest.$ac_objext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_hi
=$ac_mid; break
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.
$ac_ext >&5
9324 ac_lo
=`expr $ac_mid + 1`
9325 if test $ac_lo -le $ac_mid; then
9329 ac_mid
=`expr 2 '*' $ac_mid + 1`
9331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.
$ac_ext >&5
9337 cat >conftest.
$ac_ext <<_ACEOF
9340 cat confdefs.h
>>conftest.
$ac_ext
9341 cat >>conftest.
$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9347 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9354 rm -f conftest.
$ac_objext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356 (eval $ac_compile) 2>conftest.er1
9358 grep -v '^ *+' conftest.er1
>conftest.err
9360 cat conftest.err
>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try
='test -z "$ac_c_werror_flag"
9364 || test ! -s conftest.err'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try
='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9378 cat >conftest.
$ac_ext <<_ACEOF
9381 cat confdefs.h
>>conftest.
$ac_ext
9382 cat >>conftest.
$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 $ac_includes_default
9388 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9395 rm -f conftest.
$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>conftest.er1
9399 grep -v '^ *+' conftest.er1
>conftest.err
9401 cat conftest.err
>&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try
='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try
='test -s conftest.$ac_objext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_lo
=$ac_mid; break
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.
$ac_ext >&5
9422 ac_hi
=`expr '(' $ac_mid ')' - 1`
9423 if test $ac_mid -le $ac_hi; then
9427 ac_mid
=`expr 2 '*' $ac_mid`
9429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.
$ac_ext >&5
9437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9440 # Binary search between lo and hi bounds.
9441 while test "x$ac_lo" != "x$ac_hi"; do
9442 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9443 cat >conftest.
$ac_ext <<_ACEOF
9446 cat confdefs.h
>>conftest.
$ac_ext
9447 cat >>conftest.
$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9453 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9460 rm -f conftest.
$ac_objext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>conftest.er1
9464 grep -v '^ *+' conftest.er1
>conftest.err
9466 cat conftest.err
>&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try
='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try
='test -s conftest.$ac_objext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.
$ac_ext >&5
9487 ac_lo
=`expr '(' $ac_mid ')' + 1`
9489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9492 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9493 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9494 See \`config.log' for more details." >&5
9495 echo "$as_me: error: cannot compute sizeof (size_t), 77
9496 See \`config.log' for more details." >&2;}
9497 { (exit 1); exit 1; }; } ;;
9500 if test "$cross_compiling" = yes; then
9501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9502 See \`config.log' for more details." >&5
9503 echo "$as_me: error: cannot run test program while cross compiling
9504 See \`config.log' for more details." >&2;}
9505 { (exit 1); exit 1; }; }
9507 cat >conftest.
$ac_ext <<_ACEOF
9510 cat confdefs.h
>>conftest.
$ac_ext
9511 cat >>conftest.
$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 $ac_includes_default
9514 long longval () { return (long) (sizeof (size_t)); }
9515 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9522 FILE *f = fopen ("conftest.val", "w");
9525 if (((long) (sizeof (size_t))) < 0)
9527 long i = longval ();
9528 if (i != ((long) (sizeof (size_t))))
9530 fprintf (f, "%ld\n", i);
9534 unsigned long i = ulongval ();
9535 if (i != ((long) (sizeof (size_t))))
9537 fprintf (f, "%lu\n", i);
9539 exit (ferror (f) || fclose (f) != 0);
9545 rm -f conftest
$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_sizeof_size_t
=`cat conftest.val`
9558 echo "$as_me: program exited with status $ac_status" >&5
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.
$ac_ext >&5
9563 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9564 See \`config.log' for more details." >&5
9565 echo "$as_me: error: cannot compute sizeof (size_t), 77
9566 See \`config.log' for more details." >&2;}
9567 { (exit 1); exit 1; }; }
9569 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9574 ac_cv_sizeof_size_t
=0
9577 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9578 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9579 cat >>confdefs.h
<<_ACEOF
9580 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9585 echo "$as_me:$LINENO: checking for long long support" >&5
9586 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9588 cat >conftest.
$ac_ext <<_ACEOF
9591 cat confdefs.h
>>conftest.
$ac_ext
9592 cat >>conftest.
$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9598 long long x; x = (long long)0;
9603 rm -f conftest.
$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>conftest.er1
9607 grep -v '^ *+' conftest.er1
>conftest.err
9609 cat conftest.err
>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try
='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try
='test -s conftest.$ac_objext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9627 cat >>confdefs.h
<<\_ACEOF
9628 #define HAVE_LONG_LONG 1
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.
$ac_ext >&5
9638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9639 echo "$as_me:$LINENO: result: $have_long_long" >&5
9640 echo "${ECHO_T}$have_long_long" >&6
9641 if test "$have_long_long" = yes ; then
9642 echo "$as_me:$LINENO: checking for long long" >&5
9643 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9644 if test "${ac_cv_type_long_long+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 cat >conftest.
$ac_ext <<_ACEOF
9650 cat confdefs.h
>>conftest.
$ac_ext
9651 cat >>conftest.
$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 $ac_includes_default
9657 if ((long long *) 0)
9659 if (sizeof (long long))
9665 rm -f conftest.
$ac_objext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667 (eval $ac_compile) 2>conftest.er1
9669 grep -v '^ *+' conftest.er1
>conftest.err
9671 cat conftest.err
>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try
='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try
='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_type_long_long
=yes
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.
$ac_ext >&5
9692 ac_cv_type_long_long
=no
9694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9696 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9697 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9699 echo "$as_me:$LINENO: checking size of long long" >&5
9700 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9701 if test "${ac_cv_sizeof_long_long+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 if test "$ac_cv_type_long_long" = yes; then
9705 # The cast to unsigned long works around a bug in the HP C Compiler
9706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9708 # This bug is HP SR number 8606223364.
9709 if test "$cross_compiling" = yes; then
9710 # Depending upon the size, compute the lo and hi bounds.
9711 cat >conftest.
$ac_ext <<_ACEOF
9714 cat confdefs.h
>>conftest.
$ac_ext
9715 cat >>conftest.
$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9721 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9728 rm -f conftest.
$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730 (eval $ac_compile) 2>conftest.er1
9732 grep -v '^ *+' conftest.er1
>conftest.err
9734 cat conftest.err
>&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try
='test -z "$ac_c_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try
='test -s conftest.$ac_objext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9752 cat >conftest.
$ac_ext <<_ACEOF
9755 cat confdefs.h
>>conftest.
$ac_ext
9756 cat >>conftest.
$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 $ac_includes_default
9762 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9769 rm -f conftest.
$ac_objext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9771 (eval $ac_compile) 2>conftest.er1
9773 grep -v '^ *+' conftest.er1
>conftest.err
9775 cat conftest.err
>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try
='test -z "$ac_c_werror_flag"
9779 || test ! -s conftest.err'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try
='test -s conftest.$ac_objext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_hi
=$ac_mid; break
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.
$ac_ext >&5
9796 ac_lo
=`expr $ac_mid + 1`
9797 if test $ac_lo -le $ac_mid; then
9801 ac_mid
=`expr 2 '*' $ac_mid + 1`
9803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9809 cat >conftest.
$ac_ext <<_ACEOF
9812 cat confdefs.h
>>conftest.
$ac_ext
9813 cat >>conftest.
$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9819 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9826 rm -f conftest.
$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>conftest.er1
9830 grep -v '^ *+' conftest.er1
>conftest.err
9832 cat conftest.err
>&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try
='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try
='test -s conftest.$ac_objext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9850 cat >conftest.
$ac_ext <<_ACEOF
9853 cat confdefs.h
>>conftest.
$ac_ext
9854 cat >>conftest.
$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 $ac_includes_default
9860 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9867 rm -f conftest.
$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>conftest.er1
9871 grep -v '^ *+' conftest.er1
>conftest.err
9873 cat conftest.err
>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try
='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try
='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_lo
=$ac_mid; break
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.
$ac_ext >&5
9894 ac_hi
=`expr '(' $ac_mid ')' - 1`
9895 if test $ac_mid -le $ac_hi; then
9899 ac_mid
=`expr 2 '*' $ac_mid`
9901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.
$ac_ext >&5
9909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9912 # Binary search between lo and hi bounds.
9913 while test "x$ac_lo" != "x$ac_hi"; do
9914 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9915 cat >conftest.
$ac_ext <<_ACEOF
9918 cat confdefs.h
>>conftest.
$ac_ext
9919 cat >>conftest.
$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 $ac_includes_default
9925 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9932 rm -f conftest.
$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1
>conftest.err
9938 cat conftest.err
>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try
='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try
='test -s conftest.$ac_objext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.
$ac_ext >&5
9959 ac_lo
=`expr '(' $ac_mid ')' + 1`
9961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9964 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9966 See \`config.log' for more details." >&5
9967 echo "$as_me: error: cannot compute sizeof (long long), 77
9968 See \`config.log' for more details." >&2;}
9969 { (exit 1); exit 1; }; } ;;
9972 if test "$cross_compiling" = yes; then
9973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9974 See \`config.log' for more details." >&5
9975 echo "$as_me: error: cannot run test program while cross compiling
9976 See \`config.log' for more details." >&2;}
9977 { (exit 1); exit 1; }; }
9979 cat >conftest.
$ac_ext <<_ACEOF
9982 cat confdefs.h
>>conftest.
$ac_ext
9983 cat >>conftest.
$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 $ac_includes_default
9986 long longval () { return (long) (sizeof (long long)); }
9987 unsigned long ulongval () { return (long) (sizeof (long long)); }
9994 FILE *f = fopen ("conftest.val", "w");
9997 if (((long) (sizeof (long long))) < 0)
9999 long i = longval ();
10000 if (i != ((long) (sizeof (long long))))
10002 fprintf (f, "%ld\n", i);
10006 unsigned long i = ulongval ();
10007 if (i != ((long) (sizeof (long long))))
10009 fprintf (f, "%lu\n", i);
10011 exit (ferror (f) || fclose (f) != 0);
10017 rm -f conftest
$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_sizeof_long_long
=`cat conftest.val`
10030 echo "$as_me: program exited with status $ac_status" >&5
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.
$ac_ext >&5
10034 ( exit $ac_status )
10035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10036 See \`config.log' for more details." >&5
10037 echo "$as_me: error: cannot compute sizeof (long long), 77
10038 See \`config.log' for more details." >&2;}
10039 { (exit 1); exit 1; }; }
10041 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10046 ac_cv_sizeof_long_long
=0
10049 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10050 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10051 cat >>confdefs.h
<<_ACEOF
10052 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10058 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10059 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10061 cat >conftest.
$ac_ext <<_ACEOF
10064 cat confdefs.h
>>conftest.
$ac_ext
10065 cat >>conftest.
$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10071 uintptr_t x; x = (uintptr_t)0;
10076 rm -f conftest.
$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>conftest.er1
10080 grep -v '^ *+' conftest.er1
>conftest.err
10082 cat conftest.err
>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try
='test -z "$ac_c_werror_flag"
10086 || test ! -s conftest.err'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try
='test -s conftest.$ac_objext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10100 cat >>confdefs.h
<<\_ACEOF
10101 #define HAVE_UINTPTR_T 1
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.
$ac_ext >&5
10111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10112 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10113 echo "${ECHO_T}$have_uintptr_t" >&6
10114 if test "$have_uintptr_t" = yes ; then
10115 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10116 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10117 if test "${ac_cv_type_uintptr_t+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 cat >conftest.
$ac_ext <<_ACEOF
10123 cat confdefs.h
>>conftest.
$ac_ext
10124 cat >>conftest.
$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10130 if ((uintptr_t *) 0)
10132 if (sizeof (uintptr_t))
10138 rm -f conftest.
$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>conftest.er1
10142 grep -v '^ *+' conftest.er1
>conftest.err
10144 cat conftest.err
>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try
='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try
='test -s conftest.$ac_objext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_type_uintptr_t
=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.
$ac_ext >&5
10165 ac_cv_type_uintptr_t
=no
10167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10169 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10170 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10172 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10173 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10174 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 if test "$ac_cv_type_uintptr_t" = yes; then
10178 # The cast to unsigned long works around a bug in the HP C Compiler
10179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10181 # This bug is HP SR number 8606223364.
10182 if test "$cross_compiling" = yes; then
10183 # Depending upon the size, compute the lo and hi bounds.
10184 cat >conftest.
$ac_ext <<_ACEOF
10187 cat confdefs.h
>>conftest.
$ac_ext
10188 cat >>conftest.
$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 $ac_includes_default
10194 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10201 rm -f conftest.
$ac_objext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>conftest.er1
10205 grep -v '^ *+' conftest.er1
>conftest.err
10207 cat conftest.err
>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try
='test -z "$ac_c_werror_flag"
10211 || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try
='test -s conftest.$ac_objext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10225 cat >conftest.
$ac_ext <<_ACEOF
10228 cat confdefs.h
>>conftest.
$ac_ext
10229 cat >>conftest.
$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 $ac_includes_default
10235 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10242 rm -f conftest.
$ac_objext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10244 (eval $ac_compile) 2>conftest.er1
10246 grep -v '^ *+' conftest.er1
>conftest.err
10248 cat conftest.err
>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try
='test -z "$ac_c_werror_flag"
10252 || test ! -s conftest.err'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try
='test -s conftest.$ac_objext'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_hi
=$ac_mid; break
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.
$ac_ext >&5
10269 ac_lo
=`expr $ac_mid + 1`
10270 if test $ac_lo -le $ac_mid; then
10274 ac_mid
=`expr 2 '*' $ac_mid + 1`
10276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.
$ac_ext >&5
10282 cat >conftest.
$ac_ext <<_ACEOF
10285 cat confdefs.h
>>conftest.
$ac_ext
10286 cat >>conftest.
$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10292 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10299 rm -f conftest.
$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>conftest.er1
10303 grep -v '^ *+' conftest.er1
>conftest.err
10305 cat conftest.err
>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try
='test -z "$ac_c_werror_flag"
10309 || test ! -s conftest.err'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try
='test -s conftest.$ac_objext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10323 cat >conftest.
$ac_ext <<_ACEOF
10326 cat confdefs.h
>>conftest.
$ac_ext
10327 cat >>conftest.
$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 $ac_includes_default
10333 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10340 rm -f conftest.
$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>conftest.er1
10344 grep -v '^ *+' conftest.er1
>conftest.err
10346 cat conftest.err
>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try
='test -z "$ac_c_werror_flag"
10350 || test ! -s conftest.err'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try
='test -s conftest.$ac_objext'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
10362 ac_lo
=$ac_mid; break
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.
$ac_ext >&5
10367 ac_hi
=`expr '(' $ac_mid ')' - 1`
10368 if test $ac_mid -le $ac_hi; then
10372 ac_mid
=`expr 2 '*' $ac_mid`
10374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.
$ac_ext >&5
10382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10385 # Binary search between lo and hi bounds.
10386 while test "x$ac_lo" != "x$ac_hi"; do
10387 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10388 cat >conftest.
$ac_ext <<_ACEOF
10391 cat confdefs.h
>>conftest.
$ac_ext
10392 cat >>conftest.
$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10398 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10405 rm -f conftest.
$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407 (eval $ac_compile) 2>conftest.er1
10409 grep -v '^ *+' conftest.er1
>conftest.err
10411 cat conftest.err
>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try
='test -z "$ac_c_werror_flag"
10415 || test ! -s conftest.err'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; } &&
10421 { ac_try
='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.
$ac_ext >&5
10432 ac_lo
=`expr '(' $ac_mid ')' + 1`
10434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10437 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10438 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10439 See \`config.log' for more details." >&5
10440 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10441 See \`config.log' for more details." >&2;}
10442 { (exit 1); exit 1; }; } ;;
10445 if test "$cross_compiling" = yes; then
10446 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10447 See \`config.log' for more details." >&5
10448 echo "$as_me: error: cannot run test program while cross compiling
10449 See \`config.log' for more details." >&2;}
10450 { (exit 1); exit 1; }; }
10452 cat >conftest.
$ac_ext <<_ACEOF
10455 cat confdefs.h
>>conftest.
$ac_ext
10456 cat >>conftest.
$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 $ac_includes_default
10459 long longval () { return (long) (sizeof (uintptr_t)); }
10460 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10462 #include <stdlib.h>
10467 FILE *f = fopen ("conftest.val", "w");
10470 if (((long) (sizeof (uintptr_t))) < 0)
10472 long i = longval ();
10473 if (i != ((long) (sizeof (uintptr_t))))
10475 fprintf (f, "%ld\n", i);
10479 unsigned long i = ulongval ();
10480 if (i != ((long) (sizeof (uintptr_t))))
10482 fprintf (f, "%lu\n", i);
10484 exit (ferror (f) || fclose (f) != 0);
10490 rm -f conftest
$ac_exeext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10503 echo "$as_me: program exited with status $ac_status" >&5
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.
$ac_ext >&5
10507 ( exit $ac_status )
10508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10509 See \`config.log' for more details." >&5
10510 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10511 See \`config.log' for more details." >&2;}
10512 { (exit 1); exit 1; }; }
10514 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10519 ac_cv_sizeof_uintptr_t
=0
10522 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10523 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10524 cat >>confdefs.h
<<_ACEOF
10525 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10531 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10532 echo "$as_me:$LINENO: checking size of off_t" >&5
10533 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10534 if test "${ac_cv_sizeof_off_t+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 if test "$cross_compiling" = yes; then
10538 ac_cv_sizeof_off_t
=4
10540 cat >conftest.
$ac_ext <<_ACEOF
10543 cat confdefs.h
>>conftest.
$ac_ext
10544 cat >>conftest.
$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10547 #include <sys/types.h>
10550 FILE *f=fopen("conftestval", "w");
10552 fprintf(f, "%d\n", sizeof(off_t));
10556 rm -f conftest
$ac_exeext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_sizeof_off_t
=`cat conftestval`
10569 echo "$as_me: program exited with status $ac_status" >&5
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.
$ac_ext >&5
10573 ( exit $ac_status )
10574 ac_cv_sizeof_off_t
=0
10576 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10582 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10584 cat >>confdefs.h
<<_ACEOF
10585 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10589 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10590 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10591 if test "$have_long_long" = yes -a \
10592 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10593 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10595 cat >>confdefs.h
<<\_ACEOF
10596 #define HAVE_LARGEFILE_SUPPORT 1
10599 echo "$as_me:$LINENO: result: yes" >&5
10600 echo "${ECHO_T}yes" >&6
10602 echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10606 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10607 echo "$as_me:$LINENO: checking size of time_t" >&5
10608 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10609 if test "${ac_cv_sizeof_time_t+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 if test "$cross_compiling" = yes; then
10613 ac_cv_sizeof_time_t
=4
10615 cat >conftest.
$ac_ext <<_ACEOF
10618 cat confdefs.h
>>conftest.
$ac_ext
10619 cat >>conftest.
$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10625 FILE *f=fopen("conftestval", "w");
10627 fprintf(f, "%d\n", sizeof(time_t));
10631 rm -f conftest
$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633 (eval $ac_link) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_cv_sizeof_time_t
=`cat conftestval`
10644 echo "$as_me: program exited with status $ac_status" >&5
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.
$ac_ext >&5
10648 ( exit $ac_status )
10649 ac_cv_sizeof_time_t
=0
10651 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10656 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10657 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10659 cat >>confdefs.h
<<_ACEOF
10660 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10665 # if have pthread_t then define SIZEOF_PTHREAD_T
10667 if test "$ac_cv_kpthread" = "yes"
10668 then CC
="$CC -Kpthread"
10669 elif test "$ac_cv_kthread" = "yes"
10670 then CC
="$CC -Kthread"
10671 elif test "$ac_cv_pthread" = "yes"
10672 then CC
="$CC -pthread"
10674 echo "$as_me:$LINENO: checking for pthread_t" >&5
10675 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10677 cat >conftest.
$ac_ext <<_ACEOF
10680 cat confdefs.h
>>conftest.
$ac_ext
10681 cat >>conftest.
$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <pthread.h>
10687 pthread_t x; x = *(pthread_t*)0;
10692 rm -f conftest.
$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10696 grep -v '^ *+' conftest.er1
>conftest.err
10698 cat conftest.err
>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try
='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; } &&
10708 { ac_try
='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.
$ac_ext >&5
10720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10721 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10722 echo "${ECHO_T}$have_pthread_t" >&6
10723 if test "$have_pthread_t" = yes ; then
10724 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10725 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10726 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10727 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 if test "$cross_compiling" = yes; then
10731 ac_cv_sizeof_pthread_t
=4
10733 cat >conftest.
$ac_ext <<_ACEOF
10736 cat confdefs.h
>>conftest.
$ac_ext
10737 cat >>conftest.
$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10740 #include <pthread.h>
10743 FILE *f=fopen("conftestval", "w");
10745 fprintf(f, "%d\n", sizeof(pthread_t));
10749 rm -f conftest
$ac_exeext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751 (eval $ac_link) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_cv_sizeof_pthread_t
=`cat conftestval`
10762 echo "$as_me: program exited with status $ac_status" >&5
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.
$ac_ext >&5
10766 ( exit $ac_status )
10767 ac_cv_sizeof_pthread_t
=0
10769 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10775 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10777 cat >>confdefs.h
<<_ACEOF
10778 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10784 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10785 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10786 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10787 if test "${enable_toolbox_glue+set}" = set; then
10788 enableval
="$enable_toolbox_glue"
10792 if test -z "$enable_toolbox_glue"
10794 case $ac_sys_system/$ac_sys_release in
10796 enable_toolbox_glue
="yes";;
10798 enable_toolbox_glue
="no";;
10801 case "$enable_toolbox_glue" in
10803 extra_machdep_objs
="Python/mactoolboxglue.o"
10804 extra_undefs
="-u _PyMac_Error"
10806 cat >>confdefs.h
<<\_ACEOF
10807 #define USE_TOOLBOX_OBJECT_GLUE 1
10812 extra_machdep_objs
=""
10816 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10817 echo "${ECHO_T}$enable_toolbox_glue" >&6
10820 case $ac_sys_system/$ac_sys_release in
10821 Darwin
/[01234567].
*)
10822 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10825 OTHER_LIBTOOL_OPT
=""
10830 case $ac_sys_system/$ac_sys_release in
10831 Darwin
/[01234567].
*)
10832 LIBTOOL_CRUFT
="-framework System -lcc_dynamic -arch_only `arch`"
10833 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10834 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10836 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10837 if test ${gcc_version} '<' 4.0
10839 LIBTOOL_CRUFT
="-lcc_dynamic"
10843 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10844 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10845 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10848 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10849 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10850 if test "$enable_framework"
10852 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10853 # -F. is needed to allow linking to the framework while
10854 # in the build location.
10856 cat >>confdefs.h
<<\_ACEOF
10857 #define WITH_NEXT_FRAMEWORK 1
10860 echo "$as_me:$LINENO: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6
10863 echo "$as_me:$LINENO: result: no" >&5
10864 echo "${ECHO_T}no" >&6
10867 echo "$as_me:$LINENO: checking for dyld" >&5
10868 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10869 case $ac_sys_system/$ac_sys_release in
10872 cat >>confdefs.h
<<\_ACEOF
10873 #define WITH_DYLD 1
10876 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10877 echo "${ECHO_T}always on for Darwin" >&6
10880 echo "$as_me:$LINENO: result: no" >&5
10881 echo "${ECHO_T}no" >&6
10885 # Set info about shared libraries.
10891 # SO is the extension of shared libraries `(including the dot!)
10892 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10893 echo "$as_me:$LINENO: checking SO" >&5
10894 echo $ECHO_N "checking SO... $ECHO_C" >&6
10897 case $ac_sys_system in
10903 # this might also be a termcap variable, see #610332
10905 echo '====================================================================='
10907 echo '+ WARNING: You have set SO in your environment. +'
10908 echo '+ Do you really mean to change the extension for shared libraries? +'
10909 echo '+ Continuing in 10 seconds to let you to ponder. +'
10911 echo '====================================================================='
10914 echo "$as_me:$LINENO: result: $SO" >&5
10915 echo "${ECHO_T}$SO" >&6
10916 # LDSHARED is the ld *command* used to create shared library
10917 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10918 # (Shared libraries in this instance are shared modules to be loaded into
10919 # Python, as opposed to building Python itself as a shared library.)
10920 echo "$as_me:$LINENO: checking LDSHARED" >&5
10921 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10922 if test -z "$LDSHARED"
10924 case $ac_sys_system/$ac_sys_release in
10926 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10927 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10930 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10931 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10933 IRIX
/5*) LDSHARED
="ld -shared";;
10934 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10936 if test "$GCC" = "yes"
10937 then LDSHARED
='$(CC) -shared'
10938 else LDSHARED
='$(CC) -G';
10940 hp
*|HP
*) LDSHARED
="ld -b";;
10941 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10943 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10944 if test "$enable_framework" ; then
10945 # Link against the framework. All externals should be defined.
10946 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10947 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10949 # No framework. Ignore undefined symbols, assuming they come from Python
10950 LDSHARED
="$LDSHARED -undefined suppress"
10952 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10953 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10954 if test "$enable_framework" ; then
10955 # Link against the framework. All externals should be defined.
10956 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10957 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10959 # No framework, use the Python app as bundle-loader
10960 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10961 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10964 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10965 # This allows an extension to be used in any Python
10966 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10967 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10968 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10970 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10971 BLDSHARED
="$LDSHARED"
10973 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10974 if test "$enable_framework" ; then
10975 # Link against the framework. All externals should be defined.
10976 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10977 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10979 # No framework, use the Python app as bundle-loader
10980 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10981 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10985 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10986 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10988 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10990 LDSHARED
="$CC -shared ${LDFLAGS}"
10992 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10994 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
10995 OpenUNIX
*|UnixWare
*)
10996 if test "$GCC" = "yes"
10997 then LDSHARED
='$(CC) -shared'
10998 else LDSHARED
='$(CC) -G'
11000 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11001 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11002 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11003 atheos
*) LDSHARED
="gcc -shared";;
11007 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11008 echo "${ECHO_T}$LDSHARED" >&6
11009 BLDSHARED
=${BLDSHARED-$LDSHARED}
11010 # CCSHARED are the C *flags* used to create objects to go into a shared
11011 # library (module) -- this is only needed for a few systems
11012 echo "$as_me:$LINENO: checking CCSHARED" >&5
11013 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11014 if test -z "$CCSHARED"
11016 case $ac_sys_system/$ac_sys_release in
11017 SunOS
*) if test "$GCC" = yes;
11018 then CCSHARED
="-fPIC";
11019 else CCSHARED
="-xcode=pic32";
11021 hp
*|HP
*) if test "$GCC" = yes;
11022 then CCSHARED
="-fPIC";
11023 else CCSHARED
="+z";
11025 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11026 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11027 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11028 OpenUNIX
*|UnixWare
*)
11029 if test "$GCC" = "yes"
11030 then CCSHARED
="-fPIC"
11031 else CCSHARED
="-KPIC"
11034 if test "$GCC" = "yes"
11035 then CCSHARED
="-fPIC"
11036 else CCSHARED
="-Kpic -belf"
11038 Monterey
*) CCSHARED
="-G";;
11039 IRIX
*/6*) case $CC in
11040 *gcc
*) CCSHARED
="-shared";;
11043 atheos
*) CCSHARED
="-fPIC";;
11046 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11047 echo "${ECHO_T}$CCSHARED" >&6
11048 # LINKFORSHARED are the flags passed to the $(CC) command that links
11049 # the python executable -- this is only needed for a few systems
11050 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11051 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11052 if test -z "$LINKFORSHARED"
11054 case $ac_sys_system/$ac_sys_release in
11055 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11057 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11058 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11059 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11060 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11061 # -u libsys_s pulls in all symbols in libsys
11063 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11065 # not used by the core itself but which needs to be in the core so
11066 # that dynamically loaded extension modules have access to it.
11067 # -prebind is no longer used, because it actually seems to give a
11068 # slowdown in stead of a speedup, maybe due to the large number of
11069 # dynamic loads Python does.
11071 LINKFORSHARED
="$extra_undefs"
11072 if test "$enable_framework"
11074 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11076 LINKFORSHARED
="$LINKFORSHARED";;
11077 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11078 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11079 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11080 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11081 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11083 LINKFORSHARED
="-Wl,--export-dynamic"
11085 SunOS
/5*) case $CC in
11087 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11089 LINKFORSHARED
="-Xlinker --export-dynamic"
11093 if test $enable_shared = "no"
11095 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11099 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11100 echo "${ECHO_T}$LINKFORSHARED" >&6
11103 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11104 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11105 if test ! "$LIBRARY" = "$LDLIBRARY"
11107 case $ac_sys_system in
11109 # Cygwin needs CCSHARED when building extension DLLs
11110 # but not when building the interpreter DLL.
11111 CFLAGSFORSHARED
='';;
11113 CFLAGSFORSHARED
='$(CCSHARED)'
11116 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11117 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11119 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11120 # library (with --enable-shared).
11121 # For platforms on which shared libraries are not allowed to have unresolved
11122 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11123 # if it is not required, since it creates a dependency of the shared library
11124 # to LIBS. This, in turn, means that applications linking the shared libpython
11125 # don't need to link LIBS explicitly. The default should be only changed
11126 # on systems where this approach causes problems.
11128 echo "$as_me:$LINENO: checking SHLIBS" >&5
11129 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11130 case "$ac_sys_system" in
11134 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11135 echo "${ECHO_T}$SHLIBS" >&6
11138 # checks for libraries
11140 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11141 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 ac_check_lib_save_LIBS
=$LIBS
11147 cat >conftest.
$ac_ext <<_ACEOF
11150 cat confdefs.h
>>conftest.
$ac_ext
11151 cat >>conftest.
$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11154 /* Override any gcc2 internal prototype to avoid an error. */
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11169 rm -f conftest.
$ac_objext conftest
$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171 (eval $ac_link) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1
>conftest.err
11175 cat conftest.err
>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try
='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try
='test -s conftest$ac_exeext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_lib_dl_dlopen
=yes
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.
$ac_ext >&5
11196 ac_cv_lib_dl_dlopen
=no
11198 rm -f conftest.err conftest.
$ac_objext \
11199 conftest
$ac_exeext conftest.
$ac_ext
11200 LIBS
=$ac_check_lib_save_LIBS
11202 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11204 if test $ac_cv_lib_dl_dlopen = yes; then
11205 cat >>confdefs.h
<<_ACEOF
11206 #define HAVE_LIBDL 1
11212 # Dynamic linking for SunOS/Solaris and SYSV
11214 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11215 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11216 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 ac_check_lib_save_LIBS
=$LIBS
11221 cat >conftest.
$ac_ext <<_ACEOF
11224 cat confdefs.h
>>conftest.
$ac_ext
11225 cat >>conftest.
$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11228 /* Override any gcc2 internal prototype to avoid an error. */
11232 /* We use char because int might match the return type of a gcc2
11233 builtin and then its argument prototype would still apply. */
11243 rm -f conftest.
$ac_objext conftest
$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>conftest.er1
11247 grep -v '^ *+' conftest.er1
>conftest.err
11249 cat conftest.err
>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try
='test -z "$ac_c_werror_flag"
11253 || test ! -s conftest.err'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try
='test -s conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 ac_cv_lib_dld_shl_load
=yes
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.
$ac_ext >&5
11270 ac_cv_lib_dld_shl_load
=no
11272 rm -f conftest.err conftest.
$ac_objext \
11273 conftest
$ac_exeext conftest.
$ac_ext
11274 LIBS
=$ac_check_lib_save_LIBS
11276 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11277 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11278 if test $ac_cv_lib_dld_shl_load = yes; then
11279 cat >>confdefs.h
<<_ACEOF
11280 #define HAVE_LIBDLD 1
11286 # Dynamic linking for HP-UX
11288 # only check for sem_ini if thread support is requested
11289 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11290 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11291 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11292 if test "${ac_cv_search_sem_init+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 ac_func_search_save_LIBS
=$LIBS
11296 ac_cv_search_sem_init
=no
11297 cat >conftest.
$ac_ext <<_ACEOF
11300 cat confdefs.h
>>conftest.
$ac_ext
11301 cat >>conftest.
$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11304 /* Override any gcc2 internal prototype to avoid an error. */
11308 /* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11319 rm -f conftest.
$ac_objext conftest
$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321 (eval $ac_link) 2>conftest.er1
11323 grep -v '^ *+' conftest.er1
>conftest.err
11325 cat conftest.err
>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try
='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try
='test -s conftest$ac_exeext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_search_sem_init
="none required"
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.
$ac_ext >&5
11347 rm -f conftest.err conftest.
$ac_objext \
11348 conftest
$ac_exeext conftest.
$ac_ext
11349 if test "$ac_cv_search_sem_init" = no
; then
11350 for ac_lib
in pthread rt posix4
; do
11351 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11352 cat >conftest.
$ac_ext <<_ACEOF
11355 cat confdefs.h
>>conftest.
$ac_ext
11356 cat >>conftest.
$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11359 /* Override any gcc2 internal prototype to avoid an error. */
11363 /* We use char because int might match the return type of a gcc2
11364 builtin and then its argument prototype would still apply. */
11374 rm -f conftest.
$ac_objext conftest
$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>conftest.er1
11378 grep -v '^ *+' conftest.er1
>conftest.err
11380 cat conftest.err
>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try
='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try
='test -s conftest$ac_exeext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_search_sem_init
="-l$ac_lib"
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.
$ac_ext >&5
11403 rm -f conftest.err conftest.
$ac_objext \
11404 conftest
$ac_exeext conftest.
$ac_ext
11407 LIBS
=$ac_func_search_save_LIBS
11409 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11410 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11411 if test "$ac_cv_search_sem_init" != no
; then
11412 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11415 # 'Real Time' functions on Solaris
11416 # posix4 on Solaris 2.6
11417 # pthread (first!) on Linux
11420 # check if we need libintl for locale functions
11421 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11422 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11423 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 ac_check_lib_save_LIBS
=$LIBS
11427 LIBS
="-lintl $LIBS"
11428 cat >conftest.
$ac_ext <<_ACEOF
11431 cat confdefs.h
>>conftest.
$ac_ext
11432 cat >>conftest.
$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11435 /* Override any gcc2 internal prototype to avoid an error. */
11439 /* We use char because int might match the return type of a gcc2
11440 builtin and then its argument prototype would still apply. */
11441 char textdomain ();
11450 rm -f conftest.
$ac_objext conftest
$ac_exeext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452 (eval $ac_link) 2>conftest.er1
11454 grep -v '^ *+' conftest.er1
>conftest.err
11456 cat conftest.err
>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try
='test -z "$ac_c_werror_flag"
11460 || test ! -s conftest.err'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try
='test -s conftest$ac_exeext'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_cv_lib_intl_textdomain
=yes
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.
$ac_ext >&5
11477 ac_cv_lib_intl_textdomain
=no
11479 rm -f conftest.err conftest.
$ac_objext \
11480 conftest
$ac_exeext conftest.
$ac_ext
11481 LIBS
=$ac_check_lib_save_LIBS
11483 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11484 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11485 if test $ac_cv_lib_intl_textdomain = yes; then
11487 cat >>confdefs.h
<<\_ACEOF
11488 #define WITH_LIBINTL 1
11494 # checks for system dependent C++ extensions support
11495 case "$ac_sys_system" in
11496 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11497 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11498 cat >conftest.
$ac_ext <<_ACEOF
11501 cat confdefs.h
>>conftest.
$ac_ext
11502 cat >>conftest.
$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 #include "/usr/lpp/xlC/include/load.h"
11508 loadAndInit("", 0, "")
11513 rm -f conftest.
$ac_objext conftest
$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>conftest.er1
11517 grep -v '^ *+' conftest.er1
>conftest.err
11519 cat conftest.err
>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try
='test -z "$ac_c_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try
='test -s conftest$ac_exeext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11536 cat >>confdefs.h
<<\_ACEOF
11537 #define AIX_GENUINE_CPLUSPLUS 1
11540 echo "$as_me:$LINENO: result: yes" >&5
11541 echo "${ECHO_T}yes" >&6
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.
$ac_ext >&5
11546 echo "$as_me:$LINENO: result: no" >&5
11547 echo "${ECHO_T}no" >&6
11549 rm -f conftest.err conftest.
$ac_objext \
11550 conftest
$ac_exeext conftest.
$ac_ext;;
11554 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11555 # BeOS' sockets are stashed in libnet.
11556 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11557 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11558 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 ac_check_lib_save_LIBS
=$LIBS
11563 cat >conftest.
$ac_ext <<_ACEOF
11566 cat confdefs.h
>>conftest.
$ac_ext
11567 cat >>conftest.
$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11570 /* Override any gcc2 internal prototype to avoid an error. */
11574 /* We use char because int might match the return type of a gcc2
11575 builtin and then its argument prototype would still apply. */
11585 rm -f conftest.
$ac_objext conftest
$ac_exeext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>conftest.er1
11589 grep -v '^ *+' conftest.er1
>conftest.err
11591 cat conftest.err
>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try
='test -z "$ac_c_werror_flag"
11595 || test ! -s conftest.err'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; } &&
11601 { ac_try
='test -s conftest$ac_exeext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 ac_cv_lib_nsl_t_open
=yes
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.
$ac_ext >&5
11612 ac_cv_lib_nsl_t_open
=no
11614 rm -f conftest.err conftest.
$ac_objext \
11615 conftest
$ac_exeext conftest.
$ac_ext
11616 LIBS
=$ac_check_lib_save_LIBS
11618 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11619 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11620 if test $ac_cv_lib_nsl_t_open = yes; then
11624 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11625 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11626 if test "${ac_cv_lib_socket_socket+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 ac_check_lib_save_LIBS
=$LIBS
11630 LIBS
="-lsocket $LIBS $LIBS"
11631 cat >conftest.
$ac_ext <<_ACEOF
11634 cat confdefs.h
>>conftest.
$ac_ext
11635 cat >>conftest.
$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11638 /* Override any gcc2 internal prototype to avoid an error. */
11642 /* We use char because int might match the return type of a gcc2
11643 builtin and then its argument prototype would still apply. */
11653 rm -f conftest.
$ac_objext conftest
$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>conftest.er1
11657 grep -v '^ *+' conftest.er1
>conftest.err
11659 cat conftest.err
>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try
='test -z "$ac_c_werror_flag"
11663 || test ! -s conftest.err'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try
='test -s conftest$ac_exeext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_cv_lib_socket_socket
=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.
$ac_ext >&5
11680 ac_cv_lib_socket_socket
=no
11682 rm -f conftest.err conftest.
$ac_objext \
11683 conftest
$ac_exeext conftest.
$ac_ext
11684 LIBS
=$ac_check_lib_save_LIBS
11686 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11687 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11688 if test $ac_cv_lib_socket_socket = yes; then
11689 LIBS
="-lsocket $LIBS"
11693 case "$ac_sys_system" in
11695 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11696 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11697 if test "${ac_cv_lib_net_socket+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 ac_check_lib_save_LIBS
=$LIBS
11701 LIBS
="-lnet $LIBS $LIBS"
11702 cat >conftest.
$ac_ext <<_ACEOF
11705 cat confdefs.h
>>conftest.
$ac_ext
11706 cat >>conftest.
$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11709 /* Override any gcc2 internal prototype to avoid an error. */
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11724 rm -f conftest.
$ac_objext conftest
$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>conftest.er1
11728 grep -v '^ *+' conftest.er1
>conftest.err
11730 cat conftest.err
>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try
='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try
='test -s conftest$ac_exeext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 ac_cv_lib_net_socket
=yes
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.
$ac_ext >&5
11751 ac_cv_lib_net_socket
=no
11753 rm -f conftest.err conftest.
$ac_objext \
11754 conftest
$ac_exeext conftest.
$ac_ext
11755 LIBS
=$ac_check_lib_save_LIBS
11757 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11758 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11759 if test $ac_cv_lib_net_socket = yes; then
11766 echo "$as_me:$LINENO: checking for --with-libs" >&5
11767 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11769 # Check whether --with-libs or --without-libs was given.
11770 if test "${with_libs+set}" = set; then
11771 withval
="$with_libs"
11773 echo "$as_me:$LINENO: result: $withval" >&5
11774 echo "${ECHO_T}$withval" >&6
11775 LIBS
="$withval $LIBS"
11778 echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6
11782 # Determine if signalmodule should be used.
11785 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11786 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11788 # Check whether --with-signal-module or --without-signal-module was given.
11789 if test "${with_signal_module+set}" = set; then
11790 withval
="$with_signal_module"
11794 if test -z "$with_signal_module"
11795 then with_signal_module
="yes"
11797 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11798 echo "${ECHO_T}$with_signal_module" >&6
11800 if test "${with_signal_module}" = "yes"; then
11801 USE_SIGNAL_MODULE
=""
11804 USE_SIGNAL_MODULE
="#"
11805 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11808 # This is used to generate Setup.config
11810 USE_THREAD_MODULE
=""
11812 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11813 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11816 # Check whether --with-dec-threads or --without-dec-threads was given.
11817 if test "${with_dec_threads+set}" = set; then
11818 withval
="$with_dec_threads"
11820 echo "$as_me:$LINENO: result: $withval" >&5
11821 echo "${ECHO_T}$withval" >&6
11823 if test "${with_thread+set}" != set; then
11824 with_thread
="$withval";
11827 echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6
11831 # Templates for things AC_DEFINEd more than once.
11832 # For a single AC_DEFINE, no template is needed.
11840 echo "$as_me:$LINENO: checking for --with-threads" >&5
11841 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11843 # Check whether --with-threads or --without-threads was given.
11844 if test "${with_threads+set}" = set; then
11845 withval
="$with_threads"
11849 # --with-thread is deprecated, but check for it anyway
11851 # Check whether --with-thread or --without-thread was given.
11852 if test "${with_thread+set}" = set; then
11853 withval
="$with_thread"
11854 with_threads
=$with_thread
11857 if test -z "$with_threads"
11858 then with_threads
="yes"
11860 echo "$as_me:$LINENO: result: $with_threads" >&5
11861 echo "${ECHO_T}$with_threads" >&6
11864 if test "$with_threads" = "no"
11866 USE_THREAD_MODULE
="#"
11867 elif test "$ac_cv_pthread_is_default" = yes
11869 cat >>confdefs.h
<<\_ACEOF
11870 #define WITH_THREAD 1
11873 # Defining _REENTRANT on system with POSIX threads should not hurt.
11874 cat >>confdefs.h
<<\_ACEOF
11875 #define _REENTRANT 1
11879 THREADOBJ
="Python/thread.o"
11880 elif test "$ac_cv_kpthread" = "yes"
11883 if test "$ac_cv_cxx_thread" = "yes"; then
11884 CXX
="$CXX -Kpthread"
11886 cat >>confdefs.h
<<\_ACEOF
11887 #define WITH_THREAD 1
11891 THREADOBJ
="Python/thread.o"
11892 elif test "$ac_cv_kthread" = "yes"
11895 if test "$ac_cv_cxx_thread" = "yes"; then
11896 CXX
="$CXX -Kthread"
11898 cat >>confdefs.h
<<\_ACEOF
11899 #define WITH_THREAD 1
11903 THREADOBJ
="Python/thread.o"
11904 elif test "$ac_cv_pthread" = "yes"
11907 if test "$ac_cv_cxx_thread" = "yes"; then
11908 CXX
="$CXX -pthread"
11910 cat >>confdefs.h
<<\_ACEOF
11911 #define WITH_THREAD 1
11915 THREADOBJ
="Python/thread.o"
11917 if test ! -z "$with_threads" -a -d "$with_threads"
11918 then LDFLAGS
="$LDFLAGS -L$with_threads"
11920 if test ! -z "$withval" -a -d "$withval"
11921 then LDFLAGS
="$LDFLAGS -L$withval"
11924 # According to the POSIX spec, a pthreads implementation must
11925 # define _POSIX_THREADS in unistd.h. Some apparently don't
11926 # (e.g. gnu pth with pthread emulation)
11927 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11928 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11929 cat >conftest.
$ac_ext <<_ACEOF
11932 cat confdefs.h
>>conftest.
$ac_ext
11933 cat >>conftest.
$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 #include <unistd.h>
11937 #ifdef _POSIX_THREADS
11942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11943 $EGREP "yes" >/dev
/null
2>&1; then
11944 unistd_defines_pthreads
=yes
11946 unistd_defines_pthreads
=no
11950 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11951 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11953 cat >>confdefs.h
<<\_ACEOF
11954 #define _REENTRANT 1
11957 if test "${ac_cv_header_cthreads_h+set}" = set; then
11958 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11959 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11960 if test "${ac_cv_header_cthreads_h+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11964 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11966 # Is the header compilable?
11967 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11968 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11969 cat >conftest.
$ac_ext <<_ACEOF
11972 cat confdefs.h
>>conftest.
$ac_ext
11973 cat >>conftest.
$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 $ac_includes_default
11976 #include <cthreads.h>
11978 rm -f conftest.
$ac_objext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980 (eval $ac_compile) 2>conftest.er1
11982 grep -v '^ *+' conftest.er1
>conftest.err
11984 cat conftest.err
>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try
='test -z "$ac_c_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try
='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_header_compiler
=yes
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.
$ac_ext >&5
12005 ac_header_compiler
=no
12007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12009 echo "${ECHO_T}$ac_header_compiler" >&6
12011 # Is the header present?
12012 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12013 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12014 cat >conftest.
$ac_ext <<_ACEOF
12017 cat confdefs.h
>>conftest.
$ac_ext
12018 cat >>conftest.
$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 #include <cthreads.h>
12022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12023 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12025 grep -v '^ *+' conftest.er1
>conftest.err
12027 cat conftest.err
>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } >/dev
/null
; then
12030 if test -s conftest.err
; then
12031 ac_cpp_err
=$ac_c_preproc_warn_flag
12032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12039 if test -z "$ac_cpp_err"; then
12040 ac_header_preproc
=yes
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.
$ac_ext >&5
12045 ac_header_preproc
=no
12047 rm -f conftest.err conftest.
$ac_ext
12048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12049 echo "${ECHO_T}$ac_header_preproc" >&6
12051 # So? What about this header?
12052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12054 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12055 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12057 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12058 ac_header_preproc
=yes
12061 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12062 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12064 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12066 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12068 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12070 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12072 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12075 ## ------------------------------------------------ ##
12076 ## Report this to http://www.python.org/python-bugs ##
12077 ## ------------------------------------------------ ##
12080 sed "s/^/$as_me: WARNING: /" >&2
12083 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12084 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12085 if test "${ac_cv_header_cthreads_h+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 ac_cv_header_cthreads_h
=$ac_header_preproc
12090 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12091 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12094 if test $ac_cv_header_cthreads_h = yes; then
12095 cat >>confdefs.h
<<\_ACEOF
12096 #define WITH_THREAD 1
12099 cat >>confdefs.h
<<\_ACEOF
12100 #define C_THREADS 1
12104 cat >>confdefs.h
<<\_ACEOF
12105 #define HURD_C_THREADS 1
12108 LIBS
="$LIBS -lthreads"
12109 THREADOBJ
="Python/thread.o"
12112 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12113 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12114 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12115 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12119 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12121 # Is the header compilable?
12122 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12123 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12124 cat >conftest.
$ac_ext <<_ACEOF
12127 cat confdefs.h
>>conftest.
$ac_ext
12128 cat >>conftest.
$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 $ac_includes_default
12131 #include <mach/cthreads.h>
12133 rm -f conftest.
$ac_objext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>conftest.er1
12137 grep -v '^ *+' conftest.er1
>conftest.err
12139 cat conftest.err
>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try
='test -z "$ac_c_werror_flag"
12143 || test ! -s conftest.err'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; } &&
12149 { ac_try
='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_header_compiler
=yes
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.
$ac_ext >&5
12160 ac_header_compiler
=no
12162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6
12166 # Is the header present?
12167 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12168 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12169 cat >conftest.
$ac_ext <<_ACEOF
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <mach/cthreads.h>
12177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12180 grep -v '^ *+' conftest.er1
>conftest.err
12182 cat conftest.err
>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } >/dev
/null
; then
12185 if test -s conftest.err
; then
12186 ac_cpp_err
=$ac_c_preproc_warn_flag
12187 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12194 if test -z "$ac_cpp_err"; then
12195 ac_header_preproc
=yes
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.
$ac_ext >&5
12200 ac_header_preproc
=no
12202 rm -f conftest.err conftest.
$ac_ext
12203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12204 echo "${ECHO_T}$ac_header_preproc" >&6
12206 # So? What about this header?
12207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12209 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12210 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12212 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12213 ac_header_preproc
=yes
12216 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12217 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12219 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12221 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12223 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12225 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12226 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12227 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12230 ## ------------------------------------------------ ##
12231 ## Report this to http://www.python.org/python-bugs ##
12232 ## ------------------------------------------------ ##
12235 sed "s/^/$as_me: WARNING: /" >&2
12238 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12239 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12240 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12245 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12246 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12249 if test $ac_cv_header_mach_cthreads_h = yes; then
12250 cat >>confdefs.h
<<\_ACEOF
12251 #define WITH_THREAD 1
12254 cat >>confdefs.h
<<\_ACEOF
12255 #define C_THREADS 1
12259 cat >>confdefs.h
<<\_ACEOF
12260 #define MACH_C_THREADS 1
12263 THREADOBJ
="Python/thread.o"
12266 echo "$as_me:$LINENO: checking for --with-pth" >&5
12267 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12269 # Check whether --with-pth or --without-pth was given.
12270 if test "${with_pth+set}" = set; then
12271 withval
="$with_pth"
12272 echo "$as_me:$LINENO: result: $withval" >&5
12273 echo "${ECHO_T}$withval" >&6
12274 cat >>confdefs.h
<<\_ACEOF
12275 #define WITH_THREAD 1
12279 cat >>confdefs.h
<<\_ACEOF
12284 THREADOBJ
="Python/thread.o"
12286 echo "$as_me:$LINENO: result: no" >&5
12287 echo "${ECHO_T}no" >&6
12289 # Just looking for pthread_create in libpthread is not enough:
12290 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12291 # So we really have to include pthread.h, and then link.
12293 LIBS
="$LIBS -lpthread"
12294 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12295 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12296 cat >conftest.
$ac_ext <<_ACEOF
12299 cat confdefs.h
>>conftest.
$ac_ext
12300 cat >>conftest.
$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 #include <pthread.h>
12304 void * start_routine (void *arg) { exit (0); }
12309 pthread_create (NULL, NULL, start_routine, NULL)
12314 rm -f conftest.
$ac_objext conftest
$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>conftest.er1
12318 grep -v '^ *+' conftest.er1
>conftest.err
12320 cat conftest.err
>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try
='test -z "$ac_c_werror_flag"
12324 || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try
='test -s conftest$ac_exeext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12337 echo "$as_me:$LINENO: result: yes" >&5
12338 echo "${ECHO_T}yes" >&6
12339 cat >>confdefs.h
<<\_ACEOF
12340 #define WITH_THREAD 1
12344 THREADOBJ
="Python/thread.o"
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.
$ac_ext >&5
12351 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12352 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12353 if test "${ac_cv_func_pthread_detach+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 cat >conftest.
$ac_ext <<_ACEOF
12359 cat confdefs.h
>>conftest.
$ac_ext
12360 cat >>conftest.
$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364 #define pthread_detach innocuous_pthread_detach
12366 /* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char pthread_detach (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12372 # include <limits.h>
12374 # include <assert.h>
12377 #undef pthread_detach
12379 /* Override any gcc2 internal prototype to avoid an error. */
12384 /* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386 char pthread_detach ();
12387 /* The GNU C library defines this for functions which it implements
12388 to always fail with ENOSYS. Some functions are actually named
12389 something starting with __ and the normal name is an alias. */
12390 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12393 char (*f) () = pthread_detach;
12402 return f != pthread_detach;
12407 rm -f conftest.
$ac_objext conftest
$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12411 grep -v '^ *+' conftest.er1
>conftest.err
12413 cat conftest.err
>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try
='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try
='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_func_pthread_detach
=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.
$ac_ext >&5
12434 ac_cv_func_pthread_detach
=no
12436 rm -f conftest.err conftest.
$ac_objext \
12437 conftest
$ac_exeext conftest.
$ac_ext
12439 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12440 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12441 if test $ac_cv_func_pthread_detach = yes; then
12442 cat >>confdefs.h
<<\_ACEOF
12443 #define WITH_THREAD 1
12447 THREADOBJ
="Python/thread.o"
12450 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12451 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12452 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12453 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12457 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12459 # Is the header compilable?
12460 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12461 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12462 cat >conftest.
$ac_ext <<_ACEOF
12465 cat confdefs.h
>>conftest.
$ac_ext
12466 cat >>conftest.
$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 $ac_includes_default
12469 #include <atheos/threads.h>
12471 rm -f conftest.
$ac_objext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473 (eval $ac_compile) 2>conftest.er1
12475 grep -v '^ *+' conftest.er1
>conftest.err
12477 cat conftest.err
>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try
='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try
='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_header_compiler
=yes
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.
$ac_ext >&5
12498 ac_header_compiler
=no
12500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12502 echo "${ECHO_T}$ac_header_compiler" >&6
12504 # Is the header present?
12505 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12506 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12507 cat >conftest.
$ac_ext <<_ACEOF
12510 cat confdefs.h
>>conftest.
$ac_ext
12511 cat >>conftest.
$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 #include <atheos/threads.h>
12515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12516 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12518 grep -v '^ *+' conftest.er1
>conftest.err
12520 cat conftest.err
>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } >/dev
/null
; then
12523 if test -s conftest.err
; then
12524 ac_cpp_err
=$ac_c_preproc_warn_flag
12525 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12532 if test -z "$ac_cpp_err"; then
12533 ac_header_preproc
=yes
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.
$ac_ext >&5
12538 ac_header_preproc
=no
12540 rm -f conftest.err conftest.
$ac_ext
12541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12542 echo "${ECHO_T}$ac_header_preproc" >&6
12544 # So? What about this header?
12545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12547 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12548 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12550 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12551 ac_header_preproc
=yes
12554 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12555 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12557 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12559 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12561 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12563 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12565 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12568 ## ------------------------------------------------ ##
12569 ## Report this to http://www.python.org/python-bugs ##
12570 ## ------------------------------------------------ ##
12573 sed "s/^/$as_me: WARNING: /" >&2
12576 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12577 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12578 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12583 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12584 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12587 if test $ac_cv_header_atheos_threads_h = yes; then
12588 cat >>confdefs.h
<<\_ACEOF
12589 #define WITH_THREAD 1
12593 cat >>confdefs.h
<<\_ACEOF
12594 #define ATHEOS_THREADS 1
12597 THREADOBJ
="Python/thread.o"
12600 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12601 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12602 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12603 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12607 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12609 # Is the header compilable?
12610 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12611 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12612 cat >conftest.
$ac_ext <<_ACEOF
12615 cat confdefs.h
>>conftest.
$ac_ext
12616 cat >>conftest.
$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12619 #include <kernel/OS.h>
12621 rm -f conftest.
$ac_objext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>conftest.er1
12625 grep -v '^ *+' conftest.er1
>conftest.err
12627 cat conftest.err
>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try
='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try
='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_header_compiler
=yes
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 ac_header_compiler
=no
12650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12652 echo "${ECHO_T}$ac_header_compiler" >&6
12654 # Is the header present?
12655 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12656 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12657 cat >conftest.
$ac_ext <<_ACEOF
12660 cat confdefs.h
>>conftest.
$ac_ext
12661 cat >>conftest.
$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 #include <kernel/OS.h>
12665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12668 grep -v '^ *+' conftest.er1
>conftest.err
12670 cat conftest.err
>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } >/dev
/null
; then
12673 if test -s conftest.err
; then
12674 ac_cpp_err
=$ac_c_preproc_warn_flag
12675 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12682 if test -z "$ac_cpp_err"; then
12683 ac_header_preproc
=yes
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.
$ac_ext >&5
12688 ac_header_preproc
=no
12690 rm -f conftest.err conftest.
$ac_ext
12691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12692 echo "${ECHO_T}$ac_header_preproc" >&6
12694 # So? What about this header?
12695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12697 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12698 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12699 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12700 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12701 ac_header_preproc
=yes
12704 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12705 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12707 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12709 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12711 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12713 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12714 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12715 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12718 ## ------------------------------------------------ ##
12719 ## Report this to http://www.python.org/python-bugs ##
12720 ## ------------------------------------------------ ##
12723 sed "s/^/$as_me: WARNING: /" >&2
12726 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12727 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12728 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12733 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12734 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12737 if test $ac_cv_header_kernel_OS_h = yes; then
12738 cat >>confdefs.h
<<\_ACEOF
12739 #define WITH_THREAD 1
12743 cat >>confdefs.h
<<\_ACEOF
12744 #define BEOS_THREADS 1
12747 THREADOBJ
="Python/thread.o"
12750 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12751 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12752 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_check_lib_save_LIBS
=$LIBS
12756 LIBS
="-lpthreads $LIBS"
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any gcc2 internal prototype to avoid an error. */
12768 /* We use char because int might match the return type of a gcc2
12769 builtin and then its argument prototype would still apply. */
12770 char pthread_create ();
12779 rm -f conftest.
$ac_objext conftest
$ac_exeext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12781 (eval $ac_link) 2>conftest.er1
12783 grep -v '^ *+' conftest.er1
>conftest.err
12785 cat conftest.err
>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try
='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try
='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_lib_pthreads_pthread_create
=yes
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.
$ac_ext >&5
12806 ac_cv_lib_pthreads_pthread_create
=no
12808 rm -f conftest.err conftest.
$ac_objext \
12809 conftest
$ac_exeext conftest.
$ac_ext
12810 LIBS
=$ac_check_lib_save_LIBS
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12813 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12814 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12815 cat >>confdefs.h
<<\_ACEOF
12816 #define WITH_THREAD 1
12820 LIBS
="$LIBS -lpthreads"
12821 THREADOBJ
="Python/thread.o"
12824 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12825 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12826 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 ac_check_lib_save_LIBS
=$LIBS
12831 cat >conftest.
$ac_ext <<_ACEOF
12834 cat confdefs.h
>>conftest.
$ac_ext
12835 cat >>conftest.
$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12838 /* Override any gcc2 internal prototype to avoid an error. */
12842 /* We use char because int might match the return type of a gcc2
12843 builtin and then its argument prototype would still apply. */
12844 char pthread_create ();
12853 rm -f conftest.
$ac_objext conftest
$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>conftest.er1
12857 grep -v '^ *+' conftest.er1
>conftest.err
12859 cat conftest.err
>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try
='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try
='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_cv_lib_c_r_pthread_create
=yes
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.
$ac_ext >&5
12880 ac_cv_lib_c_r_pthread_create
=no
12882 rm -f conftest.err conftest.
$ac_objext \
12883 conftest
$ac_exeext conftest.
$ac_ext
12884 LIBS
=$ac_check_lib_save_LIBS
12886 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12887 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12888 if test $ac_cv_lib_c_r_pthread_create = yes; then
12889 cat >>confdefs.h
<<\_ACEOF
12890 #define WITH_THREAD 1
12895 THREADOBJ
="Python/thread.o"
12898 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12899 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12900 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_check_lib_save_LIBS
=$LIBS
12904 LIBS
="-lpthread $LIBS"
12905 cat >conftest.
$ac_ext <<_ACEOF
12908 cat confdefs.h
>>conftest.
$ac_ext
12909 cat >>conftest.
$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 /* Override any gcc2 internal prototype to avoid an error. */
12916 /* We use char because int might match the return type of a gcc2
12917 builtin and then its argument prototype would still apply. */
12918 char __pthread_create_system ();
12922 __pthread_create_system ();
12927 rm -f conftest.
$ac_objext conftest
$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929 (eval $ac_link) 2>conftest.er1
12931 grep -v '^ *+' conftest.er1
>conftest.err
12933 cat conftest.err
>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try
='test -z "$ac_c_werror_flag"
12937 || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try
='test -s conftest$ac_exeext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_cv_lib_pthread___pthread_create_system
=yes
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.
$ac_ext >&5
12954 ac_cv_lib_pthread___pthread_create_system
=no
12956 rm -f conftest.err conftest.
$ac_objext \
12957 conftest
$ac_exeext conftest.
$ac_ext
12958 LIBS
=$ac_check_lib_save_LIBS
12960 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12961 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12962 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12963 cat >>confdefs.h
<<\_ACEOF
12964 #define WITH_THREAD 1
12968 LIBS
="$LIBS -lpthread"
12969 THREADOBJ
="Python/thread.o"
12972 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12973 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12974 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 ac_check_lib_save_LIBS
=$LIBS
12979 cat >conftest.
$ac_ext <<_ACEOF
12982 cat confdefs.h
>>conftest.
$ac_ext
12983 cat >>conftest.
$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12986 /* Override any gcc2 internal prototype to avoid an error. */
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char pthread_create ();
13001 rm -f conftest.
$ac_objext conftest
$ac_exeext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>conftest.er1
13005 grep -v '^ *+' conftest.er1
>conftest.err
13007 cat conftest.err
>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try
='test -z "$ac_c_werror_flag"
13011 || test ! -s conftest.err'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; } &&
13017 { ac_try
='test -s conftest$ac_exeext'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_lib_cma_pthread_create
=yes
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.
$ac_ext >&5
13028 ac_cv_lib_cma_pthread_create
=no
13030 rm -f conftest.err conftest.
$ac_objext \
13031 conftest
$ac_exeext conftest.
$ac_ext
13032 LIBS
=$ac_check_lib_save_LIBS
13034 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13035 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13036 if test $ac_cv_lib_cma_pthread_create = yes; then
13037 cat >>confdefs.h
<<\_ACEOF
13038 #define WITH_THREAD 1
13043 THREADOBJ
="Python/thread.o"
13046 USE_THREAD_MODULE
="#"
13065 rm -f conftest.err conftest.
$ac_objext \
13066 conftest
$ac_exeext conftest.
$ac_ext
13075 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13076 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13077 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 ac_check_lib_save_LIBS
=$LIBS
13082 cat >conftest.
$ac_ext <<_ACEOF
13085 cat confdefs.h
>>conftest.
$ac_ext
13086 cat >>conftest.
$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13089 /* Override any gcc2 internal prototype to avoid an error. */
13093 /* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13104 rm -f conftest.
$ac_objext conftest
$ac_exeext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13106 (eval $ac_link) 2>conftest.er1
13108 grep -v '^ *+' conftest.er1
>conftest.err
13110 cat conftest.err
>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try
='test -z "$ac_c_werror_flag"
13114 || test ! -s conftest.err'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try
='test -s conftest$ac_exeext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_lib_mpc_usconfig
=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.
$ac_ext >&5
13131 ac_cv_lib_mpc_usconfig
=no
13133 rm -f conftest.err conftest.
$ac_objext \
13134 conftest
$ac_exeext conftest.
$ac_ext
13135 LIBS
=$ac_check_lib_save_LIBS
13137 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13138 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13139 if test $ac_cv_lib_mpc_usconfig = yes; then
13140 cat >>confdefs.h
<<\_ACEOF
13141 #define WITH_THREAD 1
13145 THREADOBJ
="Python/thread.o"
13146 USE_THREAD_MODULE
=""
13150 if test "$posix_threads" != "yes"; then
13151 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13152 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13153 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 ac_check_lib_save_LIBS
=$LIBS
13157 LIBS
="-lthread $LIBS"
13158 cat >conftest.
$ac_ext <<_ACEOF
13161 cat confdefs.h
>>conftest.
$ac_ext
13162 cat >>conftest.
$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13165 /* Override any gcc2 internal prototype to avoid an error. */
13169 /* We use char because int might match the return type of a gcc2
13170 builtin and then its argument prototype would still apply. */
13171 char thr_create ();
13180 rm -f conftest.
$ac_objext conftest
$ac_exeext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182 (eval $ac_link) 2>conftest.er1
13184 grep -v '^ *+' conftest.er1
>conftest.err
13186 cat conftest.err
>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try
='test -z "$ac_c_werror_flag"
13190 || test ! -s conftest.err'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; } &&
13196 { ac_try
='test -s conftest$ac_exeext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_lib_thread_thr_create
=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.
$ac_ext >&5
13207 ac_cv_lib_thread_thr_create
=no
13209 rm -f conftest.err conftest.
$ac_objext \
13210 conftest
$ac_exeext conftest.
$ac_ext
13211 LIBS
=$ac_check_lib_save_LIBS
13213 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13214 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13215 if test $ac_cv_lib_thread_thr_create = yes; then
13216 cat >>confdefs.h
<<\_ACEOF
13217 #define WITH_THREAD 1
13220 LIBS
="$LIBS -lthread"
13221 THREADOBJ
="Python/thread.o"
13222 USE_THREAD_MODULE
=""
13227 if test "$USE_THREAD_MODULE" != "#"
13229 # If the above checks didn't disable threads, (at least) OSF1
13230 # needs this '-threads' argument during linking.
13231 case $ac_sys_system in
13232 OSF1
) LDLAST
=-threads;;
13237 if test "$posix_threads" = "yes"; then
13238 if test "$unistd_defines_pthreads" = "no"; then
13240 cat >>confdefs.h
<<\_ACEOF
13241 #define _POSIX_THREADS 1
13246 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13247 case $ac_sys_system/$ac_sys_release in
13249 cat >>confdefs.h
<<\_ACEOF
13250 #define HAVE_PTHREAD_DESTRUCTOR 1
13255 cat >>confdefs.h
<<\_ACEOF
13256 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13262 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13263 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13264 if test "${ac_cv_pthread_system_supported+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 if test "$cross_compiling" = yes; then
13268 ac_cv_pthread_system_supported
=no
13270 cat >conftest.
$ac_ext <<_ACEOF
13273 cat confdefs.h
>>conftest.
$ac_ext
13274 cat >>conftest.
$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <pthread.h>
13277 void *foo(void *parm) {
13281 pthread_attr_t attr;
13283 if (pthread_attr_init(&attr)) exit(-1);
13284 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13285 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13289 rm -f conftest
$ac_exeext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291 (eval $ac_link) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_cv_pthread_system_supported
=yes
13302 echo "$as_me: program exited with status $ac_status" >&5
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.
$ac_ext >&5
13306 ( exit $ac_status )
13307 ac_cv_pthread_system_supported
=no
13309 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13315 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13316 if test "$ac_cv_pthread_system_supported" = "yes"; then
13318 cat >>confdefs.h
<<\_ACEOF
13319 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13324 for ac_func
in pthread_sigmask
13326 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13327 echo "$as_me:$LINENO: checking for $ac_func" >&5
13328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13329 if eval "test \"\${$as_ac_var+set}\" = set"; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 cat >conftest.
$ac_ext <<_ACEOF
13335 cat confdefs.h
>>conftest.
$ac_ext
13336 cat >>conftest.
$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13340 #define $ac_func innocuous_$ac_func
13342 /* System header to define __stub macros and hopefully few prototypes,
13343 which can conflict with char $ac_func (); below.
13344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13345 <limits.h> exists even on freestanding compilers. */
13348 # include <limits.h>
13350 # include <assert.h>
13355 /* Override any gcc2 internal prototype to avoid an error. */
13360 /* We use char because int might match the return type of a gcc2
13361 builtin and then its argument prototype would still apply. */
13363 /* The GNU C library defines this for functions which it implements
13364 to always fail with ENOSYS. Some functions are actually named
13365 something starting with __ and the normal name is an alias. */
13366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13369 char (*f) () = $ac_func;
13378 return f != $ac_func;
13383 rm -f conftest.
$ac_objext conftest
$ac_exeext
13384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13385 (eval $ac_link) 2>conftest.er1
13387 grep -v '^ *+' conftest.er1
>conftest.err
13389 cat conftest.err
>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try
='test -z "$ac_c_werror_flag"
13393 || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try
='test -s conftest$ac_exeext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 eval "$as_ac_var=yes"
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.
$ac_ext >&5
13410 eval "$as_ac_var=no"
13412 rm -f conftest.err conftest.
$ac_objext \
13413 conftest
$ac_exeext conftest.
$ac_ext
13415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13417 if test `eval echo '${'$as_ac_var'}'` = yes; then
13418 cat >>confdefs.h
<<_ACEOF
13419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13421 case $ac_sys_system in
13424 cat >>confdefs.h
<<\_ACEOF
13425 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13436 # Check for enable-ipv6
13439 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13440 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13441 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13442 if test "${enable_ipv6+set}" = set; then
13443 enableval
="$enable_ipv6"
13444 case "$enableval" in
13446 echo "$as_me:$LINENO: result: no" >&5
13447 echo "${ECHO_T}no" >&6
13450 *) echo "$as_me:$LINENO: result: yes" >&5
13451 echo "${ECHO_T}yes" >&6
13452 cat >>confdefs.h
<<\_ACEOF
13453 #define ENABLE_IPV6 1
13461 if test "$cross_compiling" = yes; then
13462 echo "$as_me:$LINENO: result: no" >&5
13463 echo "${ECHO_T}no" >&6
13467 cat >conftest.
$ac_ext <<_ACEOF
13470 cat confdefs.h
>>conftest.
$ac_ext
13471 cat >>conftest.
$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 /* AF_INET6 available check */
13474 #include <sys/types.h>
13475 #include <sys/socket.h>
13478 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13485 rm -f conftest
$ac_exeext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13487 (eval $ac_link) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 echo "$as_me:$LINENO: result: yes" >&5
13497 echo "${ECHO_T}yes" >&6
13500 echo "$as_me: program exited with status $ac_status" >&5
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.
$ac_ext >&5
13504 ( exit $ac_status )
13505 echo "$as_me:$LINENO: result: no" >&5
13506 echo "${ECHO_T}no" >&6
13509 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13512 if test "$ipv6" = "yes"; then
13513 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13514 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13515 cat >conftest.
$ac_ext <<_ACEOF
13518 cat confdefs.h
>>conftest.
$ac_ext
13519 cat >>conftest.
$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 #include <sys/types.h>
13522 #include <netinet/in.h>
13526 struct sockaddr_in6 x;
13532 rm -f conftest.
$ac_objext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13536 grep -v '^ *+' conftest.er1
>conftest.err
13538 cat conftest.err
>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try
='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try
='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 echo "$as_me:$LINENO: result: yes" >&5
13555 echo "${ECHO_T}yes" >&6
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.
$ac_ext >&5
13561 echo "$as_me:$LINENO: result: no" >&5
13562 echo "${ECHO_T}no" >&6
13565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13568 if test "$ipv6" = "yes"; then
13569 cat >>confdefs.h
<<\_ACEOF
13570 #define ENABLE_IPV6 1
13581 if test "$ipv6" = "yes"; then
13582 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13583 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13584 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13588 cat >conftest.
$ac_ext <<_ACEOF
13591 cat confdefs.h
>>conftest.
$ac_ext
13592 cat >>conftest.
$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 #include <netinet/in.h>
13596 #ifdef IPV6_INRIA_VERSION
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601 $EGREP "yes" >/dev
/null
2>&1; then
13608 cat >conftest.
$ac_ext <<_ACEOF
13611 cat confdefs.h
>>conftest.
$ac_ext
13612 cat >>conftest.
$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13615 #include <netinet/in.h>
13620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13621 $EGREP "yes" >/dev
/null
2>&1; then
13624 ipv6libdir
=/usr
/local
/v
6/lib
13631 cat >conftest.
$ac_ext <<_ACEOF
13634 cat confdefs.h
>>conftest.
$ac_ext
13635 cat >>conftest.
$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13638 #include <features.h>
13639 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13644 $EGREP "yes" >/dev
/null
2>&1; then
13652 if test -d /usr
/inet6
; then
13655 ipv6libdir
=/usr
/inet
6/lib
13656 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13660 if test -f /etc
/netconfig
; then
13661 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13668 cat >conftest.
$ac_ext <<_ACEOF
13671 cat confdefs.h
>>conftest.
$ac_ext
13672 cat >>conftest.
$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13675 #include <sys/param.h>
13676 #ifdef _TOSHIBA_INET6
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "yes" >/dev
/null
2>&1; then
13684 ipv6libdir
=/usr
/local
/v
6/lib
13690 cat >conftest.
$ac_ext <<_ACEOF
13693 cat confdefs.h
>>conftest.
$ac_ext
13694 cat >>conftest.
$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 #include </usr/local/v6/include/sys/v6config.h>
13702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13703 $EGREP "yes" >/dev
/null
2>&1; then
13706 ipv6libdir
=/usr
/local
/v
6/lib
;
13707 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13713 cat >conftest.
$ac_ext <<_ACEOF
13716 cat confdefs.h
>>conftest.
$ac_ext
13717 cat >>conftest.
$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13720 #include <sys/param.h>
13721 #ifdef _ZETA_MINAMI_INET6
13725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13726 $EGREP "yes" >/dev
/null
2>&1; then
13729 ipv6libdir
=/usr
/local
/v
6/lib
13735 if test "$ipv6type" != "unknown"; then
13739 echo "$as_me:$LINENO: result: $ipv6type" >&5
13740 echo "${ECHO_T}$ipv6type" >&6
13743 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13744 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13745 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13746 echo "using lib$ipv6lib"
13748 if test $ipv6trylibc = "yes"; then
13751 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13752 echo "You need to fetch lib$ipv6lib.a from appropriate"
13753 echo 'ipv6 kit and compile beforehand.'
13759 # Check for --with-doc-strings
13760 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13761 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13763 # Check whether --with-doc-strings or --without-doc-strings was given.
13764 if test "${with_doc_strings+set}" = set; then
13765 withval
="$with_doc_strings"
13769 if test -z "$with_doc_strings"
13770 then with_doc_strings
="yes"
13772 if test "$with_doc_strings" != "no"
13775 cat >>confdefs.h
<<\_ACEOF
13776 #define WITH_DOC_STRINGS 1
13780 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13781 echo "${ECHO_T}$with_doc_strings" >&6
13783 # Check for Python-specific malloc support
13784 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13785 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13787 # Check whether --with-tsc or --without-tsc was given.
13788 if test "${with_tsc+set}" = set; then
13789 withval
="$with_tsc"
13791 if test "$withval" != no
13794 cat >>confdefs.h
<<\_ACEOF
13798 echo "$as_me:$LINENO: result: yes" >&5
13799 echo "${ECHO_T}yes" >&6
13800 else echo "$as_me:$LINENO: result: no" >&5
13801 echo "${ECHO_T}no" >&6
13804 echo "$as_me:$LINENO: result: no" >&5
13805 echo "${ECHO_T}no" >&6
13808 # Check for Python-specific malloc support
13809 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13810 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13812 # Check whether --with-pymalloc or --without-pymalloc was given.
13813 if test "${with_pymalloc+set}" = set; then
13814 withval
="$with_pymalloc"
13818 if test -z "$with_pymalloc"
13819 then with_pymalloc
="yes"
13821 if test "$with_pymalloc" != "no"
13824 cat >>confdefs.h
<<\_ACEOF
13825 #define WITH_PYMALLOC 1
13829 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13830 echo "${ECHO_T}$with_pymalloc" >&6
13832 # Check for --with-wctype-functions
13833 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13834 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13836 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13837 if test "${with_wctype_functions+set}" = set; then
13838 withval
="$with_wctype_functions"
13840 if test "$withval" != no
13843 cat >>confdefs.h
<<\_ACEOF
13844 #define WANT_WCTYPE_FUNCTIONS 1
13847 echo "$as_me:$LINENO: result: yes" >&5
13848 echo "${ECHO_T}yes" >&6
13849 else echo "$as_me:$LINENO: result: no" >&5
13850 echo "${ECHO_T}no" >&6
13853 echo "$as_me:$LINENO: result: no" >&5
13854 echo "${ECHO_T}no" >&6
13857 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13861 # the dlopen() function means we might want to use dynload_shlib.o. some
13862 # platforms, such as AIX, have dlopen(), but don't want to use it.
13864 for ac_func
in dlopen
13866 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13867 echo "$as_me:$LINENO: checking for $ac_func" >&5
13868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13869 if eval "test \"\${$as_ac_var+set}\" = set"; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 cat >conftest.
$ac_ext <<_ACEOF
13875 cat confdefs.h
>>conftest.
$ac_ext
13876 cat >>conftest.
$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13880 #define $ac_func innocuous_$ac_func
13882 /* System header to define __stub macros and hopefully few prototypes,
13883 which can conflict with char $ac_func (); below.
13884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13885 <limits.h> exists even on freestanding compilers. */
13888 # include <limits.h>
13890 # include <assert.h>
13895 /* Override any gcc2 internal prototype to avoid an error. */
13900 /* We use char because int might match the return type of a gcc2
13901 builtin and then its argument prototype would still apply. */
13903 /* The GNU C library defines this for functions which it implements
13904 to always fail with ENOSYS. Some functions are actually named
13905 something starting with __ and the normal name is an alias. */
13906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13909 char (*f) () = $ac_func;
13918 return f != $ac_func;
13923 rm -f conftest.
$ac_objext conftest
$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>conftest.er1
13927 grep -v '^ *+' conftest.er1
>conftest.err
13929 cat conftest.err
>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try
='test -z "$ac_c_werror_flag"
13933 || test ! -s conftest.err'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try
='test -s conftest$ac_exeext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 eval "$as_ac_var=yes"
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.
$ac_ext >&5
13950 eval "$as_ac_var=no"
13952 rm -f conftest.err conftest.
$ac_objext \
13953 conftest
$ac_exeext conftest.
$ac_ext
13955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13957 if test `eval echo '${'$as_ac_var'}'` = yes; then
13958 cat >>confdefs.h
<<_ACEOF
13959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13966 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13967 # loading of modules.
13969 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13970 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13971 if test -z "$DYNLOADFILE"
13973 case $ac_sys_system/$ac_sys_release in
13974 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13975 if test "$ac_cv_func_dlopen" = yes
13976 then DYNLOADFILE
="dynload_shlib.o"
13977 else DYNLOADFILE
="dynload_aix.o"
13980 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
13981 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
13982 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
13983 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
13985 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13986 # out any dynamic loading
13987 if test "$ac_cv_func_dlopen" = yes
13988 then DYNLOADFILE
="dynload_shlib.o"
13989 else DYNLOADFILE
="dynload_stub.o"
13994 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13995 echo "${ECHO_T}$DYNLOADFILE" >&6
13996 if test "$DYNLOADFILE" != "dynload_stub.o"
13999 cat >>confdefs.h
<<\_ACEOF
14000 #define HAVE_DYNAMIC_LOADING 1
14005 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14008 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14009 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14010 if test -z "$MACHDEP_OBJS"
14012 MACHDEP_OBJS
=$extra_machdep_objs
14014 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14016 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14017 echo "${ECHO_T}MACHDEP_OBJS" >&6
14019 # checks for library functions
14096 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14097 execv fork fpathconf ftime ftruncate \
14098 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14099 getpriority getpwent getspnam getspent getsid getwd \
14100 kill killpg lchown lstat
mkfifo mknod mktime \
14101 mremap nice pathconf pause plock poll pthread_init \
14102 putenv readlink realpath \
14103 select setegid seteuid setgid \
14104 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14105 sigaction siginterrupt sigrelse strftime \
14106 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14107 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14109 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14110 echo "$as_me:$LINENO: checking for $ac_func" >&5
14111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14112 if eval "test \"\${$as_ac_var+set}\" = set"; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 cat >conftest.
$ac_ext <<_ACEOF
14118 cat confdefs.h
>>conftest.
$ac_ext
14119 cat >>conftest.
$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14123 #define $ac_func innocuous_$ac_func
14125 /* System header to define __stub macros and hopefully few prototypes,
14126 which can conflict with char $ac_func (); below.
14127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14128 <limits.h> exists even on freestanding compilers. */
14131 # include <limits.h>
14133 # include <assert.h>
14138 /* Override any gcc2 internal prototype to avoid an error. */
14143 /* We use char because int might match the return type of a gcc2
14144 builtin and then its argument prototype would still apply. */
14146 /* The GNU C library defines this for functions which it implements
14147 to always fail with ENOSYS. Some functions are actually named
14148 something starting with __ and the normal name is an alias. */
14149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14152 char (*f) () = $ac_func;
14161 return f != $ac_func;
14166 rm -f conftest.
$ac_objext conftest
$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 (eval $ac_link) 2>conftest.er1
14170 grep -v '^ *+' conftest.er1
>conftest.err
14172 cat conftest.err
>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try
='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try
='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 eval "$as_ac_var=yes"
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.
$ac_ext >&5
14193 eval "$as_ac_var=no"
14195 rm -f conftest.err conftest.
$ac_objext \
14196 conftest
$ac_exeext conftest.
$ac_ext
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14200 if test `eval echo '${'$as_ac_var'}'` = yes; then
14201 cat >>confdefs.h
<<_ACEOF
14202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14209 # For some functions, having a definition is not sufficient, since
14210 # we want to take their address.
14211 echo "$as_me:$LINENO: checking for chroot" >&5
14212 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14213 cat >conftest.
$ac_ext <<_ACEOF
14216 cat confdefs.h
>>conftest.
$ac_ext
14217 cat >>conftest.
$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <unistd.h>
14228 rm -f conftest.
$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>conftest.er1
14232 grep -v '^ *+' conftest.er1
>conftest.err
14234 cat conftest.err
>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try
='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try
='test -s conftest.$ac_objext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14251 cat >>confdefs.h
<<\_ACEOF
14252 #define HAVE_CHROOT 1
14255 echo "$as_me:$LINENO: result: yes" >&5
14256 echo "${ECHO_T}yes" >&6
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.
$ac_ext >&5
14261 echo "$as_me:$LINENO: result: no" >&5
14262 echo "${ECHO_T}no" >&6
14265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14266 echo "$as_me:$LINENO: checking for link" >&5
14267 echo $ECHO_N "checking for link... $ECHO_C" >&6
14268 cat >conftest.
$ac_ext <<_ACEOF
14271 cat confdefs.h
>>conftest.
$ac_ext
14272 cat >>conftest.
$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #include <unistd.h>
14283 rm -f conftest.
$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14287 grep -v '^ *+' conftest.er1
>conftest.err
14289 cat conftest.err
>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try
='test -z "$ac_c_werror_flag"
14293 || test ! -s conftest.err'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try
='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14306 cat >>confdefs.h
<<\_ACEOF
14307 #define HAVE_LINK 1
14310 echo "$as_me:$LINENO: result: yes" >&5
14311 echo "${ECHO_T}yes" >&6
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.
$ac_ext >&5
14316 echo "$as_me:$LINENO: result: no" >&5
14317 echo "${ECHO_T}no" >&6
14320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14321 echo "$as_me:$LINENO: checking for symlink" >&5
14322 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14323 cat >conftest.
$ac_ext <<_ACEOF
14326 cat confdefs.h
>>conftest.
$ac_ext
14327 cat >>conftest.
$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 #include <unistd.h>
14338 rm -f conftest.
$ac_objext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14340 (eval $ac_compile) 2>conftest.er1
14342 grep -v '^ *+' conftest.er1
>conftest.err
14344 cat conftest.err
>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try
='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try
='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14361 cat >>confdefs.h
<<\_ACEOF
14362 #define HAVE_SYMLINK 1
14365 echo "$as_me:$LINENO: result: yes" >&5
14366 echo "${ECHO_T}yes" >&6
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.
$ac_ext >&5
14371 echo "$as_me:$LINENO: result: no" >&5
14372 echo "${ECHO_T}no" >&6
14375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14376 echo "$as_me:$LINENO: checking for fchdir" >&5
14377 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14378 cat >conftest.
$ac_ext <<_ACEOF
14381 cat confdefs.h
>>conftest.
$ac_ext
14382 cat >>conftest.
$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 #include <unistd.h>
14393 rm -f conftest.
$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>conftest.er1
14397 grep -v '^ *+' conftest.er1
>conftest.err
14399 cat conftest.err
>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try
='test -z "$ac_c_werror_flag"
14403 || test ! -s conftest.err'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try
='test -s conftest.$ac_objext'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14416 cat >>confdefs.h
<<\_ACEOF
14417 #define HAVE_FCHDIR 1
14420 echo "$as_me:$LINENO: result: yes" >&5
14421 echo "${ECHO_T}yes" >&6
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.
$ac_ext >&5
14426 echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6
14430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14431 echo "$as_me:$LINENO: checking for fsync" >&5
14432 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14433 cat >conftest.
$ac_ext <<_ACEOF
14436 cat confdefs.h
>>conftest.
$ac_ext
14437 cat >>conftest.
$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 #include <unistd.h>
14448 rm -f conftest.
$ac_objext
14449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14450 (eval $ac_compile) 2>conftest.er1
14452 grep -v '^ *+' conftest.er1
>conftest.err
14454 cat conftest.err
>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } &&
14457 { ac_try
='test -z "$ac_c_werror_flag"
14458 || test ! -s conftest.err'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try
='test -s conftest.$ac_objext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14471 cat >>confdefs.h
<<\_ACEOF
14472 #define HAVE_FSYNC 1
14475 echo "$as_me:$LINENO: result: yes" >&5
14476 echo "${ECHO_T}yes" >&6
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.
$ac_ext >&5
14481 echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6
14485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14486 echo "$as_me:$LINENO: checking for fdatasync" >&5
14487 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14488 cat >conftest.
$ac_ext <<_ACEOF
14491 cat confdefs.h
>>conftest.
$ac_ext
14492 cat >>conftest.
$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 #include <unistd.h>
14503 rm -f conftest.
$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>conftest.er1
14507 grep -v '^ *+' conftest.er1
>conftest.err
14509 cat conftest.err
>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try
='test -z "$ac_c_werror_flag"
14513 || test ! -s conftest.err'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try
='test -s conftest.$ac_objext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14526 cat >>confdefs.h
<<\_ACEOF
14527 #define HAVE_FDATASYNC 1
14530 echo "$as_me:$LINENO: result: yes" >&5
14531 echo "${ECHO_T}yes" >&6
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.
$ac_ext >&5
14536 echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6
14540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14542 # On some systems (eg. FreeBSD 5), we would find a definition of the
14543 # functions ctermid_r, setgroups in the library, but no prototype
14544 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14545 # address to avoid compiler warnings and potential miscompilations
14546 # because of the missing prototypes.
14548 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14549 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14550 cat >conftest.
$ac_ext <<_ACEOF
14553 cat confdefs.h
>>conftest.
$ac_ext
14554 cat >>conftest.
$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14557 #include "confdefs.h"
14563 void* p = ctermid_r
14568 rm -f conftest.
$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>conftest.er1
14572 grep -v '^ *+' conftest.er1
>conftest.err
14574 cat conftest.err
>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try
='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try
='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14591 cat >>confdefs.h
<<\_ACEOF
14592 #define HAVE_CTERMID_R 1
14595 echo "$as_me:$LINENO: result: yes" >&5
14596 echo "${ECHO_T}yes" >&6
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.
$ac_ext >&5
14601 echo "$as_me:$LINENO: result: no" >&5
14602 echo "${ECHO_T}no" >&6
14605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14607 echo "$as_me:$LINENO: checking for flock" >&5
14608 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14609 cat >conftest.
$ac_ext <<_ACEOF
14612 cat confdefs.h
>>conftest.
$ac_ext
14613 cat >>conftest.
$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14616 #include "confdefs.h"
14617 #include <sys/file.h>
14627 rm -f conftest.
$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14631 grep -v '^ *+' conftest.er1
>conftest.err
14633 cat conftest.err
>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try
='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try
='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14650 cat >>confdefs.h
<<\_ACEOF
14651 #define HAVE_FLOCK 1
14654 echo "$as_me:$LINENO: result: yes" >&5
14655 echo "${ECHO_T}yes" >&6
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.
$ac_ext >&5
14660 echo "$as_me:$LINENO: result: no" >&5
14661 echo "${ECHO_T}no" >&6
14664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14666 echo "$as_me:$LINENO: checking for getpagesize" >&5
14667 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14668 cat >conftest.
$ac_ext <<_ACEOF
14671 cat confdefs.h
>>conftest.
$ac_ext
14672 cat >>conftest.
$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 #include "confdefs.h"
14676 #include <unistd.h>
14681 void* p = getpagesize
14686 rm -f conftest.
$ac_objext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14688 (eval $ac_compile) 2>conftest.er1
14690 grep -v '^ *+' conftest.er1
>conftest.err
14692 cat conftest.err
>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try
='test -z "$ac_c_werror_flag"
14696 || test ! -s conftest.err'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try
='test -s conftest.$ac_objext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14709 cat >>confdefs.h
<<\_ACEOF
14710 #define HAVE_GETPAGESIZE 1
14713 echo "$as_me:$LINENO: result: yes" >&5
14714 echo "${ECHO_T}yes" >&6
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.
$ac_ext >&5
14719 echo "$as_me:$LINENO: result: no" >&5
14720 echo "${ECHO_T}no" >&6
14723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14725 for ac_prog
in true
14727 # Extract the first word of "$ac_prog", so it can be a program name with args.
14728 set dummy
$ac_prog; ac_word
=$2
14729 echo "$as_me:$LINENO: checking for $ac_word" >&5
14730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14731 if test "${ac_cv_prog_TRUE+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 if test -n "$TRUE"; then
14735 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14738 for as_dir
in $PATH
14741 test -z "$as_dir" && as_dir
=.
14742 for ac_exec_ext
in '' $ac_executable_extensions; do
14743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14744 ac_cv_prog_TRUE
="$ac_prog"
14745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14753 TRUE
=$ac_cv_prog_TRUE
14754 if test -n "$TRUE"; then
14755 echo "$as_me:$LINENO: result: $TRUE" >&5
14756 echo "${ECHO_T}$TRUE" >&6
14758 echo "$as_me:$LINENO: result: no" >&5
14759 echo "${ECHO_T}no" >&6
14762 test -n "$TRUE" && break
14764 test -n "$TRUE" || TRUE
="/bin/true"
14767 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14768 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14769 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 ac_check_lib_save_LIBS
=$LIBS
14774 cat >conftest.
$ac_ext <<_ACEOF
14777 cat confdefs.h
>>conftest.
$ac_ext
14778 cat >>conftest.
$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14781 /* Override any gcc2 internal prototype to avoid an error. */
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14796 rm -f conftest.
$ac_objext conftest
$ac_exeext
14797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14798 (eval $ac_link) 2>conftest.er1
14800 grep -v '^ *+' conftest.er1
>conftest.err
14802 cat conftest.err
>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try
='test -z "$ac_c_werror_flag"
14806 || test ! -s conftest.err'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; } &&
14812 { ac_try
='test -s conftest$ac_exeext'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }; then
14818 ac_cv_lib_c_inet_aton
=yes
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.
$ac_ext >&5
14823 ac_cv_lib_c_inet_aton
=no
14825 rm -f conftest.err conftest.
$ac_objext \
14826 conftest
$ac_exeext conftest.
$ac_ext
14827 LIBS
=$ac_check_lib_save_LIBS
14829 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14830 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14831 if test $ac_cv_lib_c_inet_aton = yes; then
14835 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14836 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14837 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 ac_check_lib_save_LIBS
=$LIBS
14841 LIBS
="-lresolv $LIBS"
14842 cat >conftest.
$ac_ext <<_ACEOF
14845 cat confdefs.h
>>conftest.
$ac_ext
14846 cat >>conftest.
$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14849 /* Override any gcc2 internal prototype to avoid an error. */
14853 /* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14864 rm -f conftest.
$ac_objext conftest
$ac_exeext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14866 (eval $ac_link) 2>conftest.er1
14868 grep -v '^ *+' conftest.er1
>conftest.err
14870 cat conftest.err
>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try
='test -z "$ac_c_werror_flag"
14874 || test ! -s conftest.err'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try
='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_lib_resolv_inet_aton
=yes
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.
$ac_ext >&5
14891 ac_cv_lib_resolv_inet_aton
=no
14893 rm -f conftest.err conftest.
$ac_objext \
14894 conftest
$ac_exeext conftest.
$ac_ext
14895 LIBS
=$ac_check_lib_save_LIBS
14897 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14898 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14899 if test $ac_cv_lib_resolv_inet_aton = yes; then
14900 cat >>confdefs.h
<<_ACEOF
14901 #define HAVE_LIBRESOLV 1
14904 LIBS
="-lresolv $LIBS"
14912 echo "$as_me:$LINENO: checking for hstrerror" >&5
14913 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14914 cat >conftest.
$ac_ext <<_ACEOF
14917 cat confdefs.h
>>conftest.
$ac_ext
14918 cat >>conftest.
$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14921 #include "confdefs.h"
14927 void* p = hstrerror; hstrerror(0)
14932 rm -f conftest.
$ac_objext conftest
$ac_exeext
14933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14934 (eval $ac_link) 2>conftest.er1
14936 grep -v '^ *+' conftest.er1
>conftest.err
14938 cat conftest.err
>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try
='test -z "$ac_c_werror_flag"
14942 || test ! -s conftest.err'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try
='test -s conftest$ac_exeext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14955 cat >>confdefs.h
<<\_ACEOF
14956 #define HAVE_HSTRERROR 1
14959 echo "$as_me:$LINENO: result: yes" >&5
14960 echo "${ECHO_T}yes" >&6
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.
$ac_ext >&5
14965 echo "$as_me:$LINENO: result: no" >&5
14966 echo "${ECHO_T}no" >&6
14969 rm -f conftest.err conftest.
$ac_objext \
14970 conftest
$ac_exeext conftest.
$ac_ext
14972 echo "$as_me:$LINENO: checking for inet_aton" >&5
14973 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14974 cat >conftest.
$ac_ext <<_ACEOF
14977 cat confdefs.h
>>conftest.
$ac_ext
14978 cat >>conftest.
$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14981 #include "confdefs.h"
14982 #include <sys/types.h>
14983 #include <sys/socket.h>
14984 #include <netinet/in.h>
14985 #include <arpa/inet.h>
14990 void* p = inet_aton;inet_aton(0,0)
14995 rm -f conftest.
$ac_objext conftest
$ac_exeext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>conftest.er1
14999 grep -v '^ *+' conftest.er1
>conftest.err
15001 cat conftest.err
>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try
='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try
='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15018 cat >>confdefs.h
<<\_ACEOF
15019 #define HAVE_INET_ATON 1
15022 echo "$as_me:$LINENO: result: yes" >&5
15023 echo "${ECHO_T}yes" >&6
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.
$ac_ext >&5
15028 echo "$as_me:$LINENO: result: no" >&5
15029 echo "${ECHO_T}no" >&6
15032 rm -f conftest.err conftest.
$ac_objext \
15033 conftest
$ac_exeext conftest.
$ac_ext
15035 echo "$as_me:$LINENO: checking for inet_pton" >&5
15036 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15037 cat >conftest.
$ac_ext <<_ACEOF
15040 cat confdefs.h
>>conftest.
$ac_ext
15041 cat >>conftest.
$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 #include "confdefs.h"
15045 #include <sys/types.h>
15046 #include <sys/socket.h>
15047 #include <netinet/in.h>
15048 #include <arpa/inet.h>
15053 void* p = inet_pton
15058 rm -f conftest.
$ac_objext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>conftest.er1
15062 grep -v '^ *+' conftest.er1
>conftest.err
15064 cat conftest.err
>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try
='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try
='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15081 cat >>confdefs.h
<<\_ACEOF
15082 #define HAVE_INET_PTON 1
15085 echo "$as_me:$LINENO: result: yes" >&5
15086 echo "${ECHO_T}yes" >&6
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.
$ac_ext >&5
15091 echo "$as_me:$LINENO: result: no" >&5
15092 echo "${ECHO_T}no" >&6
15095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15097 # On some systems, setgroups is in unistd.h, on others, in grp.h
15098 echo "$as_me:$LINENO: checking for setgroups" >&5
15099 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15100 cat >conftest.
$ac_ext <<_ACEOF
15103 cat confdefs.h
>>conftest.
$ac_ext
15104 cat >>conftest.
$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 #include "confdefs.h"
15108 #include <unistd.h>
15116 void* p = setgroups
15121 rm -f conftest.
$ac_objext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123 (eval $ac_compile) 2>conftest.er1
15125 grep -v '^ *+' conftest.er1
>conftest.err
15127 cat conftest.err
>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try
='test -z "$ac_c_werror_flag"
15131 || test ! -s conftest.err'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try
='test -s conftest.$ac_objext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15144 cat >>confdefs.h
<<\_ACEOF
15145 #define HAVE_SETGROUPS 1
15148 echo "$as_me:$LINENO: result: yes" >&5
15149 echo "${ECHO_T}yes" >&6
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.
$ac_ext >&5
15154 echo "$as_me:$LINENO: result: no" >&5
15155 echo "${ECHO_T}no" >&6
15158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15160 # check for openpty and forkpty
15163 for ac_func
in openpty
15165 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15166 echo "$as_me:$LINENO: checking for $ac_func" >&5
15167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15168 if eval "test \"\${$as_ac_var+set}\" = set"; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 cat >conftest.
$ac_ext <<_ACEOF
15174 cat confdefs.h
>>conftest.
$ac_ext
15175 cat >>conftest.
$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15179 #define $ac_func innocuous_$ac_func
15181 /* System header to define __stub macros and hopefully few prototypes,
15182 which can conflict with char $ac_func (); below.
15183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15184 <limits.h> exists even on freestanding compilers. */
15187 # include <limits.h>
15189 # include <assert.h>
15194 /* Override any gcc2 internal prototype to avoid an error. */
15199 /* We use char because int might match the return type of a gcc2
15200 builtin and then its argument prototype would still apply. */
15202 /* The GNU C library defines this for functions which it implements
15203 to always fail with ENOSYS. Some functions are actually named
15204 something starting with __ and the normal name is an alias. */
15205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15208 char (*f) () = $ac_func;
15217 return f != $ac_func;
15222 rm -f conftest.
$ac_objext conftest
$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>conftest.er1
15226 grep -v '^ *+' conftest.er1
>conftest.err
15228 cat conftest.err
>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try
='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try
='test -s conftest$ac_exeext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 eval "$as_ac_var=yes"
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.
$ac_ext >&5
15249 eval "$as_ac_var=no"
15251 rm -f conftest.err conftest.
$ac_objext \
15252 conftest
$ac_exeext conftest.
$ac_ext
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15256 if test `eval echo '${'$as_ac_var'}'` = yes; then
15257 cat >>confdefs.h
<<_ACEOF
15258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15262 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15263 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15264 if test "${ac_cv_lib_util_openpty+set}" = set; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 ac_check_lib_save_LIBS
=$LIBS
15268 LIBS
="-lutil $LIBS"
15269 cat >conftest.
$ac_ext <<_ACEOF
15272 cat confdefs.h
>>conftest.
$ac_ext
15273 cat >>conftest.
$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15276 /* Override any gcc2 internal prototype to avoid an error. */
15280 /* We use char because int might match the return type of a gcc2
15281 builtin and then its argument prototype would still apply. */
15291 rm -f conftest.
$ac_objext conftest
$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293 (eval $ac_link) 2>conftest.er1
15295 grep -v '^ *+' conftest.er1
>conftest.err
15297 cat conftest.err
>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try
='test -z "$ac_c_werror_flag"
15301 || test ! -s conftest.err'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try
='test -s conftest$ac_exeext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_cv_lib_util_openpty
=yes
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.
$ac_ext >&5
15318 ac_cv_lib_util_openpty
=no
15320 rm -f conftest.err conftest.
$ac_objext \
15321 conftest
$ac_exeext conftest.
$ac_ext
15322 LIBS
=$ac_check_lib_save_LIBS
15324 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15325 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15326 if test $ac_cv_lib_util_openpty = yes; then
15327 cat >>confdefs.h
<<\_ACEOF
15328 #define HAVE_OPENPTY 1
15330 LIBS
="$LIBS -lutil"
15332 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15333 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15334 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 ac_check_lib_save_LIBS
=$LIBS
15339 cat >conftest.
$ac_ext <<_ACEOF
15342 cat confdefs.h
>>conftest.
$ac_ext
15343 cat >>conftest.
$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15346 /* Override any gcc2 internal prototype to avoid an error. */
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15361 rm -f conftest.
$ac_objext conftest
$ac_exeext
15362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15363 (eval $ac_link) 2>conftest.er1
15365 grep -v '^ *+' conftest.er1
>conftest.err
15367 cat conftest.err
>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try
='test -z "$ac_c_werror_flag"
15371 || test ! -s conftest.err'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; } &&
15377 { ac_try
='test -s conftest$ac_exeext'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_cv_lib_bsd_openpty
=yes
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.
$ac_ext >&5
15388 ac_cv_lib_bsd_openpty
=no
15390 rm -f conftest.err conftest.
$ac_objext \
15391 conftest
$ac_exeext conftest.
$ac_ext
15392 LIBS
=$ac_check_lib_save_LIBS
15394 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15395 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15396 if test $ac_cv_lib_bsd_openpty = yes; then
15397 cat >>confdefs.h
<<\_ACEOF
15398 #define HAVE_OPENPTY 1
15411 for ac_func
in forkpty
15413 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 cat >conftest.
$ac_ext <<_ACEOF
15422 cat confdefs.h
>>conftest.
$ac_ext
15423 cat >>conftest.
$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15427 #define $ac_func innocuous_$ac_func
15429 /* System header to define __stub macros and hopefully few prototypes,
15430 which can conflict with char $ac_func (); below.
15431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15432 <limits.h> exists even on freestanding compilers. */
15435 # include <limits.h>
15437 # include <assert.h>
15442 /* Override any gcc2 internal prototype to avoid an error. */
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15456 char (*f) () = $ac_func;
15465 return f != $ac_func;
15470 rm -f conftest.
$ac_objext conftest
$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>conftest.er1
15474 grep -v '^ *+' conftest.er1
>conftest.err
15476 cat conftest.err
>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try
='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try
='test -s conftest$ac_exeext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 eval "$as_ac_var=yes"
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.
$ac_ext >&5
15497 eval "$as_ac_var=no"
15499 rm -f conftest.err conftest.
$ac_objext \
15500 conftest
$ac_exeext conftest.
$ac_ext
15502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15504 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h
<<_ACEOF
15506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15510 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15511 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15512 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 ac_check_lib_save_LIBS
=$LIBS
15516 LIBS
="-lutil $LIBS"
15517 cat >conftest.
$ac_ext <<_ACEOF
15520 cat confdefs.h
>>conftest.
$ac_ext
15521 cat >>conftest.
$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15524 /* Override any gcc2 internal prototype to avoid an error. */
15528 /* We use char because int might match the return type of a gcc2
15529 builtin and then its argument prototype would still apply. */
15539 rm -f conftest.
$ac_objext conftest
$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>conftest.er1
15543 grep -v '^ *+' conftest.er1
>conftest.err
15545 cat conftest.err
>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try
='test -z "$ac_c_werror_flag"
15549 || test ! -s conftest.err'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try
='test -s conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_cv_lib_util_forkpty
=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.
$ac_ext >&5
15566 ac_cv_lib_util_forkpty
=no
15568 rm -f conftest.err conftest.
$ac_objext \
15569 conftest
$ac_exeext conftest.
$ac_ext
15570 LIBS
=$ac_check_lib_save_LIBS
15572 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15573 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15574 if test $ac_cv_lib_util_forkpty = yes; then
15575 cat >>confdefs.h
<<\_ACEOF
15576 #define HAVE_FORKPTY 1
15578 LIBS
="$LIBS -lutil"
15580 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15581 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15582 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 ac_check_lib_save_LIBS
=$LIBS
15587 cat >conftest.
$ac_ext <<_ACEOF
15590 cat confdefs.h
>>conftest.
$ac_ext
15591 cat >>conftest.
$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15594 /* Override any gcc2 internal prototype to avoid an error. */
15598 /* We use char because int might match the return type of a gcc2
15599 builtin and then its argument prototype would still apply. */
15609 rm -f conftest.
$ac_objext conftest
$ac_exeext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15611 (eval $ac_link) 2>conftest.er1
15613 grep -v '^ *+' conftest.er1
>conftest.err
15615 cat conftest.err
>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try
='test -z "$ac_c_werror_flag"
15619 || test ! -s conftest.err'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try
='test -s conftest$ac_exeext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_cv_lib_bsd_forkpty
=yes
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.
$ac_ext >&5
15636 ac_cv_lib_bsd_forkpty
=no
15638 rm -f conftest.err conftest.
$ac_objext \
15639 conftest
$ac_exeext conftest.
$ac_ext
15640 LIBS
=$ac_check_lib_save_LIBS
15642 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15643 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15644 if test $ac_cv_lib_bsd_forkpty = yes; then
15645 cat >>confdefs.h
<<\_ACEOF
15646 #define HAVE_FORKPTY 1
15659 # check for long file support functions
15666 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15668 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15669 echo "$as_me:$LINENO: checking for $ac_func" >&5
15670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15671 if eval "test \"\${$as_ac_var+set}\" = set"; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 cat >conftest.
$ac_ext <<_ACEOF
15677 cat confdefs.h
>>conftest.
$ac_ext
15678 cat >>conftest.
$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15682 #define $ac_func innocuous_$ac_func
15684 /* System header to define __stub macros and hopefully few prototypes,
15685 which can conflict with char $ac_func (); below.
15686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15687 <limits.h> exists even on freestanding compilers. */
15690 # include <limits.h>
15692 # include <assert.h>
15697 /* Override any gcc2 internal prototype to avoid an error. */
15702 /* We use char because int might match the return type of a gcc2
15703 builtin and then its argument prototype would still apply. */
15705 /* The GNU C library defines this for functions which it implements
15706 to always fail with ENOSYS. Some functions are actually named
15707 something starting with __ and the normal name is an alias. */
15708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15711 char (*f) () = $ac_func;
15720 return f != $ac_func;
15725 rm -f conftest.
$ac_objext conftest
$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>conftest.er1
15729 grep -v '^ *+' conftest.er1
>conftest.err
15731 cat conftest.err
>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try
='test -z "$ac_c_werror_flag"
15735 || test ! -s conftest.err'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try
='test -s conftest$ac_exeext'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 eval "$as_ac_var=yes"
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.
$ac_ext >&5
15752 eval "$as_ac_var=no"
15754 rm -f conftest.err conftest.
$ac_objext \
15755 conftest
$ac_exeext conftest.
$ac_ext
15757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15759 if test `eval echo '${'$as_ac_var'}'` = yes; then
15760 cat >>confdefs.h
<<_ACEOF
15761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15773 for ac_func
in dup2 getcwd strdup strerror memmove
15775 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 echo "$as_me:$LINENO: checking for $ac_func" >&5
15777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15778 if eval "test \"\${$as_ac_var+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 cat >conftest.
$ac_ext <<_ACEOF
15784 cat confdefs.h
>>conftest.
$ac_ext
15785 cat >>conftest.
$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789 #define $ac_func innocuous_$ac_func
15791 /* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15797 # include <limits.h>
15799 # include <assert.h>
15804 /* Override any gcc2 internal prototype to avoid an error. */
15809 /* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15812 /* The GNU C library defines this for functions which it implements
15813 to always fail with ENOSYS. Some functions are actually named
15814 something starting with __ and the normal name is an alias. */
15815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15818 char (*f) () = $ac_func;
15827 return f != $ac_func;
15832 rm -f conftest.
$ac_objext conftest
$ac_exeext
15833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15834 (eval $ac_link) 2>conftest.er1
15836 grep -v '^ *+' conftest.er1
>conftest.err
15838 cat conftest.err
>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try
='test -z "$ac_c_werror_flag"
15842 || test ! -s conftest.err'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try
='test -s conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 eval "$as_ac_var=yes"
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.
$ac_ext >&5
15859 eval "$as_ac_var=no"
15861 rm -f conftest.err conftest.
$ac_objext \
15862 conftest
$ac_exeext conftest.
$ac_ext
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15866 if test `eval echo '${'$as_ac_var'}'` = yes; then
15867 cat >>confdefs.h
<<_ACEOF
15868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 "$ac_func.$ac_objext" | \
15874 *" $ac_func.$ac_objext" | \
15875 "$ac_func.$ac_objext "* | \
15876 *" $ac_func.$ac_objext "* ) ;;
15877 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15885 for ac_func
in getpgrp
15887 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15888 echo "$as_me:$LINENO: checking for $ac_func" >&5
15889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15890 if eval "test \"\${$as_ac_var+set}\" = set"; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 cat >conftest.
$ac_ext <<_ACEOF
15896 cat confdefs.h
>>conftest.
$ac_ext
15897 cat >>conftest.
$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15901 #define $ac_func innocuous_$ac_func
15903 /* System header to define __stub macros and hopefully few prototypes,
15904 which can conflict with char $ac_func (); below.
15905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15906 <limits.h> exists even on freestanding compilers. */
15909 # include <limits.h>
15911 # include <assert.h>
15916 /* Override any gcc2 internal prototype to avoid an error. */
15921 /* We use char because int might match the return type of a gcc2
15922 builtin and then its argument prototype would still apply. */
15924 /* The GNU C library defines this for functions which it implements
15925 to always fail with ENOSYS. Some functions are actually named
15926 something starting with __ and the normal name is an alias. */
15927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15930 char (*f) () = $ac_func;
15939 return f != $ac_func;
15944 rm -f conftest.
$ac_objext conftest
$ac_exeext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946 (eval $ac_link) 2>conftest.er1
15948 grep -v '^ *+' conftest.er1
>conftest.err
15950 cat conftest.err
>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try
='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try
='test -s conftest$ac_exeext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 eval "$as_ac_var=yes"
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.
$ac_ext >&5
15971 eval "$as_ac_var=no"
15973 rm -f conftest.err conftest.
$ac_objext \
15974 conftest
$ac_exeext conftest.
$ac_ext
15976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15978 if test `eval echo '${'$as_ac_var'}'` = yes; then
15979 cat >>confdefs.h
<<_ACEOF
15980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15982 cat >conftest.
$ac_ext <<_ACEOF
15985 cat confdefs.h
>>conftest.
$ac_ext
15986 cat >>conftest.
$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 #include <unistd.h>
15997 rm -f conftest.
$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16001 grep -v '^ *+' conftest.er1
>conftest.err
16003 cat conftest.err
>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try
='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try
='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16020 cat >>confdefs.h
<<\_ACEOF
16021 #define GETPGRP_HAVE_ARG 1
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.
$ac_ext >&5
16030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16036 for ac_func
in setpgrp
16038 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16039 echo "$as_me:$LINENO: checking for $ac_func" >&5
16040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16041 if eval "test \"\${$as_ac_var+set}\" = set"; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 cat >conftest.
$ac_ext <<_ACEOF
16047 cat confdefs.h
>>conftest.
$ac_ext
16048 cat >>conftest.
$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16052 #define $ac_func innocuous_$ac_func
16054 /* System header to define __stub macros and hopefully few prototypes,
16055 which can conflict with char $ac_func (); below.
16056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16057 <limits.h> exists even on freestanding compilers. */
16060 # include <limits.h>
16062 # include <assert.h>
16067 /* Override any gcc2 internal prototype to avoid an error. */
16072 /* We use char because int might match the return type of a gcc2
16073 builtin and then its argument prototype would still apply. */
16075 /* The GNU C library defines this for functions which it implements
16076 to always fail with ENOSYS. Some functions are actually named
16077 something starting with __ and the normal name is an alias. */
16078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16081 char (*f) () = $ac_func;
16090 return f != $ac_func;
16095 rm -f conftest.
$ac_objext conftest
$ac_exeext
16096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16097 (eval $ac_link) 2>conftest.er1
16099 grep -v '^ *+' conftest.er1
>conftest.err
16101 cat conftest.err
>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } &&
16104 { ac_try
='test -z "$ac_c_werror_flag"
16105 || test ! -s conftest.err'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try
='test -s conftest$ac_exeext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 eval "$as_ac_var=yes"
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.
$ac_ext >&5
16122 eval "$as_ac_var=no"
16124 rm -f conftest.err conftest.
$ac_objext \
16125 conftest
$ac_exeext conftest.
$ac_ext
16127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16129 if test `eval echo '${'$as_ac_var'}'` = yes; then
16130 cat >>confdefs.h
<<_ACEOF
16131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16133 cat >conftest.
$ac_ext <<_ACEOF
16136 cat confdefs.h
>>conftest.
$ac_ext
16137 cat >>conftest.
$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 #include <unistd.h>
16148 rm -f conftest.
$ac_objext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16152 grep -v '^ *+' conftest.er1
>conftest.err
16154 cat conftest.err
>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try
='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try
='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16171 cat >>confdefs.h
<<\_ACEOF
16172 #define SETPGRP_HAVE_ARG 1
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.
$ac_ext >&5
16181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16187 for ac_func
in gettimeofday
16189 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16190 echo "$as_me:$LINENO: checking for $ac_func" >&5
16191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16192 if eval "test \"\${$as_ac_var+set}\" = set"; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 cat >conftest.
$ac_ext <<_ACEOF
16198 cat confdefs.h
>>conftest.
$ac_ext
16199 cat >>conftest.
$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16203 #define $ac_func innocuous_$ac_func
16205 /* System header to define __stub macros and hopefully few prototypes,
16206 which can conflict with char $ac_func (); below.
16207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16208 <limits.h> exists even on freestanding compilers. */
16211 # include <limits.h>
16213 # include <assert.h>
16218 /* Override any gcc2 internal prototype to avoid an error. */
16223 /* We use char because int might match the return type of a gcc2
16224 builtin and then its argument prototype would still apply. */
16226 /* The GNU C library defines this for functions which it implements
16227 to always fail with ENOSYS. Some functions are actually named
16228 something starting with __ and the normal name is an alias. */
16229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16232 char (*f) () = $ac_func;
16241 return f != $ac_func;
16246 rm -f conftest.
$ac_objext conftest
$ac_exeext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248 (eval $ac_link) 2>conftest.er1
16250 grep -v '^ *+' conftest.er1
>conftest.err
16252 cat conftest.err
>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try
='test -z "$ac_c_werror_flag"
16256 || test ! -s conftest.err'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try
='test -s conftest$ac_exeext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 eval "$as_ac_var=yes"
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.
$ac_ext >&5
16273 eval "$as_ac_var=no"
16275 rm -f conftest.err conftest.
$ac_objext \
16276 conftest
$ac_exeext conftest.
$ac_ext
16278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16280 if test `eval echo '${'$as_ac_var'}'` = yes; then
16281 cat >>confdefs.h
<<_ACEOF
16282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16284 cat >conftest.
$ac_ext <<_ACEOF
16287 cat confdefs.h
>>conftest.
$ac_ext
16288 cat >>conftest.
$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 #include <sys/time.h>
16294 gettimeofday((struct timeval*)0,(struct timezone*)0);
16299 rm -f conftest.
$ac_objext
16300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16301 (eval $ac_compile) 2>conftest.er1
16303 grep -v '^ *+' conftest.er1
>conftest.err
16305 cat conftest.err
>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
16308 { ac_try
='test -z "$ac_c_werror_flag"
16309 || test ! -s conftest.err'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try
='test -s conftest.$ac_objext'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.
$ac_ext >&5
16327 cat >>confdefs.h
<<\_ACEOF
16328 #define GETTIMEOFDAY_NO_TZ 1
16333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16339 echo "$as_me:$LINENO: checking for major" >&5
16340 echo $ECHO_N "checking for major... $ECHO_C" >&6
16341 cat >conftest.
$ac_ext <<_ACEOF
16344 cat confdefs.h
>>conftest.
$ac_ext
16345 cat >>conftest.
$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16348 #if defined(MAJOR_IN_MKDEV)
16349 #include <sys/mkdev.h>
16350 #elif defined(MAJOR_IN_SYSMACROS)
16351 #include <sys/sysmacros.h>
16353 #include <sys/types.h>
16360 makedev(major(0),minor(0));
16366 rm -f conftest.
$ac_objext conftest
$ac_exeext
16367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16368 (eval $ac_link) 2>conftest.er1
16370 grep -v '^ *+' conftest.er1
>conftest.err
16372 cat conftest.err
>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try
='test -z "$ac_c_werror_flag"
16376 || test ! -s conftest.err'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; } &&
16382 { ac_try
='test -s conftest$ac_exeext'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16390 cat >>confdefs.h
<<\_ACEOF
16391 #define HAVE_DEVICE_MACROS 1
16394 echo "$as_me:$LINENO: result: yes" >&5
16395 echo "${ECHO_T}yes" >&6
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.
$ac_ext >&5
16402 echo "$as_me:$LINENO: result: no" >&5
16403 echo "${ECHO_T}no" >&6
16406 rm -f conftest.err conftest.
$ac_objext \
16407 conftest
$ac_exeext conftest.
$ac_ext
16409 # On OSF/1 V5.1, getaddrinfo is available, but a define
16410 # for [no]getaddrinfo in netdb.h.
16411 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16412 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16413 cat >conftest.
$ac_ext <<_ACEOF
16416 cat confdefs.h
>>conftest.
$ac_ext
16417 cat >>conftest.
$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16420 #include <sys/types.h>
16421 #include <sys/socket.h>
16429 getaddrinfo(NULL, NULL, NULL, NULL);
16435 rm -f conftest.
$ac_objext conftest
$ac_exeext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>conftest.er1
16439 grep -v '^ *+' conftest.er1
>conftest.err
16441 cat conftest.err
>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try
='test -z "$ac_c_werror_flag"
16445 || test ! -s conftest.err'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try
='test -s conftest$ac_exeext'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16458 echo "$as_me:$LINENO: result: yes" >&5
16459 echo "${ECHO_T}yes" >&6
16460 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16461 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16462 if test "$cross_compiling" = yes; then
16463 echo "$as_me:$LINENO: result: buggy" >&5
16464 echo "${ECHO_T}buggy" >&6
16465 buggygetaddrinfo
=yes
16467 cat >conftest.
$ac_ext <<_ACEOF
16470 cat confdefs.h
>>conftest.
$ac_ext
16471 cat >>conftest.
$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16474 #include <sys/types.h>
16476 #include <string.h>
16477 #include <sys/socket.h>
16478 #include <netinet/in.h>
16482 int passive, gaierr, inet4 = 0, inet6 = 0;
16483 struct addrinfo hints, *ai, *aitop;
16484 char straddr[INET6_ADDRSTRLEN], strport[16];
16486 for (passive = 0; passive <= 1; passive++) {
16487 memset(&hints, 0, sizeof(hints));
16488 hints.ai_family = AF_UNSPEC;
16489 hints.ai_flags = passive ? AI_PASSIVE : 0;
16490 hints.ai_socktype = SOCK_STREAM;
16491 hints.ai_protocol = IPPROTO_TCP;
16492 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16493 (void)gai_strerror(gaierr);
16496 for (ai = aitop; ai; ai = ai->ai_next) {
16497 if (ai->ai_addr == NULL ||
16498 ai->ai_addrlen == 0 ||
16499 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16500 straddr, sizeof(straddr), strport, sizeof(strport),
16501 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16504 switch (ai->ai_family) {
16506 if (strcmp(strport, "54321") != 0) {
16510 if (strcmp(straddr, "0.0.0.0") != 0) {
16514 if (strcmp(straddr, "127.0.0.1") != 0) {
16521 if (strcmp(strport, "54321") != 0) {
16525 if (strcmp(straddr, "::") != 0) {
16529 if (strcmp(straddr, "::1") != 0) {
16539 /* another family support? */
16545 if (!(inet4 == 0 || inet4 == 2))
16547 if (!(inet6 == 0 || inet6 == 2))
16551 freeaddrinfo(aitop);
16556 freeaddrinfo(aitop);
16561 rm -f conftest
$ac_exeext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563 (eval $ac_link) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 echo "$as_me:$LINENO: result: good" >&5
16573 echo "${ECHO_T}good" >&6
16574 buggygetaddrinfo
=no
16576 echo "$as_me: program exited with status $ac_status" >&5
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.
$ac_ext >&5
16580 ( exit $ac_status )
16581 echo "$as_me:$LINENO: result: buggy" >&5
16582 echo "${ECHO_T}buggy" >&6
16583 buggygetaddrinfo
=yes
16585 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.
$ac_ext >&5
16592 echo "$as_me:$LINENO: result: no" >&5
16593 echo "${ECHO_T}no" >&6
16594 buggygetaddrinfo
=yes
16597 rm -f conftest.err conftest.
$ac_objext \
16598 conftest
$ac_exeext conftest.
$ac_ext
16600 if test "$buggygetaddrinfo" = "yes"; then
16601 if test "$ipv6" = "yes"; then
16602 echo 'Fatal: You must get working getaddrinfo() function.'
16603 echo ' or you can specify "--disable-ipv6"'.
16608 cat >>confdefs.h
<<\_ACEOF
16609 #define HAVE_GETADDRINFO 1
16614 for ac_func
in getnameinfo
16616 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16617 echo "$as_me:$LINENO: checking for $ac_func" >&5
16618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16619 if eval "test \"\${$as_ac_var+set}\" = set"; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 cat >conftest.
$ac_ext <<_ACEOF
16625 cat confdefs.h
>>conftest.
$ac_ext
16626 cat >>conftest.
$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16630 #define $ac_func innocuous_$ac_func
16632 /* System header to define __stub macros and hopefully few prototypes,
16633 which can conflict with char $ac_func (); below.
16634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16635 <limits.h> exists even on freestanding compilers. */
16638 # include <limits.h>
16640 # include <assert.h>
16645 /* Override any gcc2 internal prototype to avoid an error. */
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16653 /* The GNU C library defines this for functions which it implements
16654 to always fail with ENOSYS. Some functions are actually named
16655 something starting with __ and the normal name is an alias. */
16656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16659 char (*f) () = $ac_func;
16668 return f != $ac_func;
16673 rm -f conftest.
$ac_objext conftest
$ac_exeext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16675 (eval $ac_link) 2>conftest.er1
16677 grep -v '^ *+' conftest.er1
>conftest.err
16679 cat conftest.err
>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try
='test -z "$ac_c_werror_flag"
16683 || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try
='test -s conftest$ac_exeext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 eval "$as_ac_var=yes"
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.
$ac_ext >&5
16700 eval "$as_ac_var=no"
16702 rm -f conftest.err conftest.
$ac_objext \
16703 conftest
$ac_exeext conftest.
$ac_ext
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16707 if test `eval echo '${'$as_ac_var'}'` = yes; then
16708 cat >>confdefs.h
<<_ACEOF
16709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16716 # checks for structures
16717 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16718 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16719 if test "${ac_cv_header_time+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 cat >conftest.
$ac_ext <<_ACEOF
16725 cat confdefs.h
>>conftest.
$ac_ext
16726 cat >>conftest.
$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <sys/types.h>
16729 #include <sys/time.h>
16735 if ((struct tm *) 0)
16741 rm -f conftest.
$ac_objext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16743 (eval $ac_compile) 2>conftest.er1
16745 grep -v '^ *+' conftest.er1
>conftest.err
16747 cat conftest.err
>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try
='test -z "$ac_c_werror_flag"
16751 || test ! -s conftest.err'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; } &&
16757 { ac_try
='test -s conftest.$ac_objext'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_header_time
=yes
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.
$ac_ext >&5
16768 ac_cv_header_time
=no
16770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16772 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16773 echo "${ECHO_T}$ac_cv_header_time" >&6
16774 if test $ac_cv_header_time = yes; then
16776 cat >>confdefs.h
<<\_ACEOF
16777 #define TIME_WITH_SYS_TIME 1
16782 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16783 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16784 if test "${ac_cv_struct_tm+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 cat >conftest.
$ac_ext <<_ACEOF
16790 cat confdefs.h
>>conftest.
$ac_ext
16791 cat >>conftest.
$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16793 #include <sys/types.h>
16799 struct tm *tp; tp->tm_sec;
16804 rm -f conftest.
$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806 (eval $ac_compile) 2>conftest.er1
16808 grep -v '^ *+' conftest.er1
>conftest.err
16810 cat conftest.err
>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try
='test -z "$ac_c_werror_flag"
16814 || test ! -s conftest.err'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try
='test -s conftest.$ac_objext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_struct_tm
=time.h
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.
$ac_ext >&5
16831 ac_cv_struct_tm
=sys
/time.h
16833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16835 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16836 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16837 if test $ac_cv_struct_tm = sys
/time.h
; then
16839 cat >>confdefs.h
<<\_ACEOF
16840 #define TM_IN_SYS_TIME 1
16845 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16846 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16847 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 cat >conftest.
$ac_ext <<_ACEOF
16853 cat confdefs.h
>>conftest.
$ac_ext
16854 cat >>conftest.
$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <sys/types.h>
16857 #include <$ac_cv_struct_tm>
16863 static struct tm ac_aggr;
16864 if (ac_aggr.tm_zone)
16870 rm -f conftest.
$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>conftest.er1
16874 grep -v '^ *+' conftest.er1
>conftest.err
16876 cat conftest.err
>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try
='test -z "$ac_c_werror_flag"
16880 || test ! -s conftest.err'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try
='test -s conftest.$ac_objext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_cv_member_struct_tm_tm_zone
=yes
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.
$ac_ext >&5
16897 cat >conftest.
$ac_ext <<_ACEOF
16900 cat confdefs.h
>>conftest.
$ac_ext
16901 cat >>conftest.
$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include <sys/types.h>
16904 #include <$ac_cv_struct_tm>
16910 static struct tm ac_aggr;
16911 if (sizeof ac_aggr.tm_zone)
16917 rm -f conftest.
$ac_objext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919 (eval $ac_compile) 2>conftest.er1
16921 grep -v '^ *+' conftest.er1
>conftest.err
16923 cat conftest.err
>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try
='test -z "$ac_c_werror_flag"
16927 || test ! -s conftest.err'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try
='test -s conftest.$ac_objext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_member_struct_tm_tm_zone
=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.
$ac_ext >&5
16944 ac_cv_member_struct_tm_tm_zone
=no
16946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16951 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16952 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16954 cat >>confdefs.h
<<_ACEOF
16955 #define HAVE_STRUCT_TM_TM_ZONE 1
16961 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16963 cat >>confdefs.h
<<\_ACEOF
16964 #define HAVE_TM_ZONE 1
16968 echo "$as_me:$LINENO: checking for tzname" >&5
16969 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16970 if test "${ac_cv_var_tzname+set}" = set; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16973 cat >conftest.
$ac_ext <<_ACEOF
16976 cat confdefs.h
>>conftest.
$ac_ext
16977 cat >>conftest.
$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16980 #ifndef tzname /* For SGI. */
16981 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16992 rm -f conftest.
$ac_objext conftest
$ac_exeext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994 (eval $ac_link) 2>conftest.er1
16996 grep -v '^ *+' conftest.er1
>conftest.err
16998 cat conftest.err
>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try
='test -z "$ac_c_werror_flag"
17002 || test ! -s conftest.err'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } &&
17008 { ac_try
='test -s conftest$ac_exeext'
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_cv_var_tzname
=yes
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.
$ac_ext >&5
17019 ac_cv_var_tzname
=no
17021 rm -f conftest.err conftest.
$ac_objext \
17022 conftest
$ac_exeext conftest.
$ac_ext
17024 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17025 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17026 if test $ac_cv_var_tzname = yes; then
17028 cat >>confdefs.h
<<\_ACEOF
17029 #define HAVE_TZNAME 1
17035 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17036 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17037 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 cat >conftest.
$ac_ext <<_ACEOF
17043 cat confdefs.h
>>conftest.
$ac_ext
17044 cat >>conftest.
$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 $ac_includes_default
17050 static struct stat ac_aggr;
17051 if (ac_aggr.st_rdev)
17057 rm -f conftest.
$ac_objext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17059 (eval $ac_compile) 2>conftest.er1
17061 grep -v '^ *+' conftest.er1
>conftest.err
17063 cat conftest.err
>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try
='test -z "$ac_c_werror_flag"
17067 || test ! -s conftest.err'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try
='test -s conftest.$ac_objext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_cv_member_struct_stat_st_rdev
=yes
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.
$ac_ext >&5
17084 cat >conftest.
$ac_ext <<_ACEOF
17087 cat confdefs.h
>>conftest.
$ac_ext
17088 cat >>conftest.
$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 $ac_includes_default
17094 static struct stat ac_aggr;
17095 if (sizeof ac_aggr.st_rdev)
17101 rm -f conftest.
$ac_objext
17102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17103 (eval $ac_compile) 2>conftest.er1
17105 grep -v '^ *+' conftest.er1
>conftest.err
17107 cat conftest.err
>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
17110 { ac_try
='test -z "$ac_c_werror_flag"
17111 || test ! -s conftest.err'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; } &&
17117 { ac_try
='test -s conftest.$ac_objext'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 ac_cv_member_struct_stat_st_rdev
=yes
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.
$ac_ext >&5
17128 ac_cv_member_struct_stat_st_rdev
=no
17130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17134 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17135 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17136 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17138 cat >>confdefs.h
<<_ACEOF
17139 #define HAVE_STRUCT_STAT_ST_RDEV 1
17145 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17146 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17147 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 cat >conftest.
$ac_ext <<_ACEOF
17153 cat confdefs.h
>>conftest.
$ac_ext
17154 cat >>conftest.
$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 $ac_includes_default
17160 static struct stat ac_aggr;
17161 if (ac_aggr.st_blksize)
17167 rm -f conftest.
$ac_objext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169 (eval $ac_compile) 2>conftest.er1
17171 grep -v '^ *+' conftest.er1
>conftest.err
17173 cat conftest.err
>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } &&
17176 { ac_try
='test -z "$ac_c_werror_flag"
17177 || test ! -s conftest.err'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try
='test -s conftest.$ac_objext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 ac_cv_member_struct_stat_st_blksize
=yes
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.
$ac_ext >&5
17194 cat >conftest.
$ac_ext <<_ACEOF
17197 cat confdefs.h
>>conftest.
$ac_ext
17198 cat >>conftest.
$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 $ac_includes_default
17204 static struct stat ac_aggr;
17205 if (sizeof ac_aggr.st_blksize)
17211 rm -f conftest.
$ac_objext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17213 (eval $ac_compile) 2>conftest.er1
17215 grep -v '^ *+' conftest.er1
>conftest.err
17217 cat conftest.err
>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try
='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try
='test -s conftest.$ac_objext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 ac_cv_member_struct_stat_st_blksize
=yes
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.
$ac_ext >&5
17238 ac_cv_member_struct_stat_st_blksize
=no
17240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17244 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17245 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17246 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17248 cat >>confdefs.h
<<_ACEOF
17249 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17255 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17256 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17257 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 cat >conftest.
$ac_ext <<_ACEOF
17263 cat confdefs.h
>>conftest.
$ac_ext
17264 cat >>conftest.
$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 $ac_includes_default
17270 static struct stat ac_aggr;
17271 if (ac_aggr.st_flags)
17277 rm -f conftest.
$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279 (eval $ac_compile) 2>conftest.er1
17281 grep -v '^ *+' conftest.er1
>conftest.err
17283 cat conftest.err
>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try
='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try
='test -s conftest.$ac_objext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_member_struct_stat_st_flags
=yes
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.
$ac_ext >&5
17304 cat >conftest.
$ac_ext <<_ACEOF
17307 cat confdefs.h
>>conftest.
$ac_ext
17308 cat >>conftest.
$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17310 $ac_includes_default
17314 static struct stat ac_aggr;
17315 if (sizeof ac_aggr.st_flags)
17321 rm -f conftest.
$ac_objext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>conftest.er1
17325 grep -v '^ *+' conftest.er1
>conftest.err
17327 cat conftest.err
>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try
='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try
='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_member_struct_stat_st_flags
=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.
$ac_ext >&5
17348 ac_cv_member_struct_stat_st_flags
=no
17350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17354 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17355 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17356 if test $ac_cv_member_struct_stat_st_flags = yes; then
17358 cat >>confdefs.h
<<_ACEOF
17359 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17365 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17366 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17367 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 cat >conftest.
$ac_ext <<_ACEOF
17373 cat confdefs.h
>>conftest.
$ac_ext
17374 cat >>conftest.
$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 $ac_includes_default
17380 static struct stat ac_aggr;
17381 if (ac_aggr.st_gen)
17387 rm -f conftest.
$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>conftest.er1
17391 grep -v '^ *+' conftest.er1
>conftest.err
17393 cat conftest.err
>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try
='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try
='test -s conftest.$ac_objext'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_cv_member_struct_stat_st_gen
=yes
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.
$ac_ext >&5
17414 cat >conftest.
$ac_ext <<_ACEOF
17417 cat confdefs.h
>>conftest.
$ac_ext
17418 cat >>conftest.
$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 $ac_includes_default
17424 static struct stat ac_aggr;
17425 if (sizeof ac_aggr.st_gen)
17431 rm -f conftest.
$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>conftest.er1
17435 grep -v '^ *+' conftest.er1
>conftest.err
17437 cat conftest.err
>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
17440 { ac_try
='test -z "$ac_c_werror_flag"
17441 || test ! -s conftest.err'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try
='test -s conftest.$ac_objext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_member_struct_stat_st_gen
=yes
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.
$ac_ext >&5
17458 ac_cv_member_struct_stat_st_gen
=no
17460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17464 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17465 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17466 if test $ac_cv_member_struct_stat_st_gen = yes; then
17468 cat >>confdefs.h
<<_ACEOF
17469 #define HAVE_STRUCT_STAT_ST_GEN 1
17475 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17476 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17477 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 cat >conftest.
$ac_ext <<_ACEOF
17483 cat confdefs.h
>>conftest.
$ac_ext
17484 cat >>conftest.
$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486 $ac_includes_default
17490 static struct stat ac_aggr;
17491 if (ac_aggr.st_birthtime)
17497 rm -f conftest.
$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>conftest.er1
17501 grep -v '^ *+' conftest.er1
>conftest.err
17503 cat conftest.err
>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try
='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try
='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_member_struct_stat_st_birthtime
=yes
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.
$ac_ext >&5
17524 cat >conftest.
$ac_ext <<_ACEOF
17527 cat confdefs.h
>>conftest.
$ac_ext
17528 cat >>conftest.
$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 $ac_includes_default
17534 static struct stat ac_aggr;
17535 if (sizeof ac_aggr.st_birthtime)
17541 rm -f conftest.
$ac_objext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17543 (eval $ac_compile) 2>conftest.er1
17545 grep -v '^ *+' conftest.er1
>conftest.err
17547 cat conftest.err
>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try
='test -z "$ac_c_werror_flag"
17551 || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try
='test -s conftest.$ac_objext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_member_struct_stat_st_birthtime
=yes
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.
$ac_ext >&5
17568 ac_cv_member_struct_stat_st_birthtime
=no
17570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17574 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17575 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17576 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17578 cat >>confdefs.h
<<_ACEOF
17579 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17585 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17586 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17587 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 cat >conftest.
$ac_ext <<_ACEOF
17593 cat confdefs.h
>>conftest.
$ac_ext
17594 cat >>conftest.
$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 $ac_includes_default
17600 static struct stat ac_aggr;
17601 if (ac_aggr.st_blocks)
17607 rm -f conftest.
$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>conftest.er1
17611 grep -v '^ *+' conftest.er1
>conftest.err
17613 cat conftest.err
>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try
='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try
='test -s conftest.$ac_objext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_member_struct_stat_st_blocks
=yes
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.
$ac_ext >&5
17634 cat >conftest.
$ac_ext <<_ACEOF
17637 cat confdefs.h
>>conftest.
$ac_ext
17638 cat >>conftest.
$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 $ac_includes_default
17644 static struct stat ac_aggr;
17645 if (sizeof ac_aggr.st_blocks)
17651 rm -f conftest.
$ac_objext
17652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17653 (eval $ac_compile) 2>conftest.er1
17655 grep -v '^ *+' conftest.er1
>conftest.err
17657 cat conftest.err
>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try
='test -z "$ac_c_werror_flag"
17661 || test ! -s conftest.err'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try
='test -s conftest.$ac_objext'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 ac_cv_member_struct_stat_st_blocks
=yes
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.
$ac_ext >&5
17678 ac_cv_member_struct_stat_st_blocks
=no
17680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17684 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17685 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17686 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17688 cat >>confdefs.h
<<_ACEOF
17689 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17693 cat >>confdefs.h
<<\_ACEOF
17694 #define HAVE_ST_BLOCKS 1
17699 "fileblocks.$ac_objext" | \
17700 *" fileblocks.$ac_objext" | \
17701 "fileblocks.$ac_objext "* | \
17702 *" fileblocks.$ac_objext "* ) ;;
17703 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17710 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17711 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17712 if test "${ac_cv_header_time_altzone+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.
$ac_ext <<_ACEOF
17718 cat confdefs.h
>>conftest.
$ac_ext
17719 cat >>conftest.
$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17730 rm -f conftest.
$ac_objext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732 (eval $ac_compile) 2>conftest.er1
17734 grep -v '^ *+' conftest.er1
>conftest.err
17736 cat conftest.err
>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try
='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try
='test -s conftest.$ac_objext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_header_time_altzone
=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.
$ac_ext >&5
17757 ac_cv_header_time_altzone
=no
17759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17762 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17763 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17764 if test $ac_cv_header_time_altzone = yes; then
17766 cat >>confdefs.h
<<\_ACEOF
17767 #define HAVE_ALTZONE 1
17773 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17774 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17775 cat >conftest.
$ac_ext <<_ACEOF
17778 cat confdefs.h
>>conftest.
$ac_ext
17779 cat >>conftest.
$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17782 #include <sys/types.h>
17783 #include <sys/select.h>
17784 #include <sys/time.h>
17794 rm -f conftest.
$ac_objext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17796 (eval $ac_compile) 2>conftest.er1
17798 grep -v '^ *+' conftest.er1
>conftest.err
17800 cat conftest.err
>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
17803 { ac_try
='test -z "$ac_c_werror_flag"
17804 || test ! -s conftest.err'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try
='test -s conftest.$ac_objext'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17818 cat >>confdefs.h
<<\_ACEOF
17819 #define SYS_SELECT_WITH_SYS_TIME 1
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.
$ac_ext >&5
17829 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17830 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17831 echo "${ECHO_T}$was_it_defined" >&6
17833 echo "$as_me:$LINENO: checking for addrinfo" >&5
17834 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17835 if test "${ac_cv_struct_addrinfo+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 cat >conftest.
$ac_ext <<_ACEOF
17841 cat confdefs.h
>>conftest.
$ac_ext
17842 cat >>conftest.
$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 # include <netdb.h>
17854 rm -f conftest.
$ac_objext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17856 (eval $ac_compile) 2>conftest.er1
17858 grep -v '^ *+' conftest.er1
>conftest.err
17860 cat conftest.err
>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try
='test -z "$ac_c_werror_flag"
17864 || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try
='test -s conftest.$ac_objext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_struct_addrinfo
=yes
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.
$ac_ext >&5
17881 ac_cv_struct_addrinfo
=no
17883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17886 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17887 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17888 if test $ac_cv_struct_addrinfo = yes; then
17890 cat >>confdefs.h
<<\_ACEOF
17891 #define HAVE_ADDRINFO 1
17896 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17897 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17898 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 cat >conftest.
$ac_ext <<_ACEOF
17904 cat confdefs.h
>>conftest.
$ac_ext
17905 cat >>conftest.
$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17908 # include <sys/types.h>
17909 # include <sys/socket.h>
17913 struct sockaddr_storage s
17918 rm -f conftest.
$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>conftest.er1
17922 grep -v '^ *+' conftest.er1
>conftest.err
17924 cat conftest.err
>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try
='test -z "$ac_c_werror_flag"
17928 || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try
='test -s conftest.$ac_objext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_struct_sockaddr_storage
=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.
$ac_ext >&5
17945 ac_cv_struct_sockaddr_storage
=no
17947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17950 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17951 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17952 if test $ac_cv_struct_sockaddr_storage = yes; then
17954 cat >>confdefs.h
<<\_ACEOF
17955 #define HAVE_SOCKADDR_STORAGE 1
17960 # checks for compiler characteristics
17963 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17964 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17965 if test "${ac_cv_c_char_unsigned+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 cat >conftest.
$ac_ext <<_ACEOF
17971 cat confdefs.h
>>conftest.
$ac_ext
17972 cat >>conftest.
$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 $ac_includes_default
17978 static int test_array [1 - 2 * !(((char) -1) < 0)];
17985 rm -f conftest.
$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17989 grep -v '^ *+' conftest.er1
>conftest.err
17991 cat conftest.err
>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try
='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try
='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_cv_c_char_unsigned
=no
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.
$ac_ext >&5
18012 ac_cv_c_char_unsigned
=yes
18014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18016 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18017 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18018 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18019 cat >>confdefs.h
<<\_ACEOF
18020 #define __CHAR_UNSIGNED__ 1
18025 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18026 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18027 if test "${ac_cv_c_const+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 cat >conftest.
$ac_ext <<_ACEOF
18033 cat confdefs.h
>>conftest.
$ac_ext
18034 cat >>conftest.
$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18040 /* FIXME: Include the comments suggested by Paul. */
18041 #ifndef __cplusplus
18042 /* Ultrix mips cc rejects this. */
18043 typedef int charset[2];
18045 /* SunOS 4.1.1 cc rejects this. */
18046 char const *const *ccp;
18048 /* NEC SVR4.0.2 mips cc rejects this. */
18049 struct point {int x, y;};
18050 static struct point const zero = {0,0};
18051 /* AIX XL C 1.02.0.0 rejects this.
18052 It does not let you subtract one const X* pointer from another in
18053 an arm of an if-expression whose if-part is not a constant
18055 const char *g = "string";
18056 ccp = &g + (g ? g-g : 0);
18057 /* HPUX 7.0 cc rejects these. */
18060 ccp = (char const *const *) p;
18061 { /* SCO 3.2v4 cc rejects this. */
18063 char const *s = 0 ? (char *) 0 : (char const *) 0;
18067 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18068 int x[] = {25, 17};
18069 const int *foo = &x[0];
18072 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18073 typedef const int *iptr;
18077 { /* AIX XL C 1.02.0.0 rejects this saying
18078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18079 struct s { int j; const int *ap[3]; };
18080 struct s *b; b->j = 5;
18082 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18083 const int foo = 10;
18091 rm -f conftest.
$ac_objext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093 (eval $ac_compile) 2>conftest.er1
18095 grep -v '^ *+' conftest.er1
>conftest.err
18097 cat conftest.err
>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try
='test -z "$ac_c_werror_flag"
18101 || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try
='test -s conftest.$ac_objext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.
$ac_ext >&5
18120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18122 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18123 echo "${ECHO_T}$ac_cv_c_const" >&6
18124 if test $ac_cv_c_const = no
; then
18126 cat >>confdefs.h
<<\_ACEOF
18134 echo "$as_me:$LINENO: checking for working volatile" >&5
18135 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18136 cat >conftest.
$ac_ext <<_ACEOF
18139 cat confdefs.h
>>conftest.
$ac_ext
18140 cat >>conftest.
$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18146 volatile int x; x = 0;
18151 rm -f conftest.
$ac_objext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153 (eval $ac_compile) 2>conftest.er1
18155 grep -v '^ *+' conftest.er1
>conftest.err
18157 cat conftest.err
>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try
='test -z "$ac_c_werror_flag"
18161 || test ! -s conftest.err'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; } &&
18167 { ac_try
='test -s conftest.$ac_objext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.
$ac_ext >&5
18179 cat >>confdefs.h
<<\_ACEOF
18185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18186 echo "$as_me:$LINENO: result: $works" >&5
18187 echo "${ECHO_T}$works" >&6
18190 echo "$as_me:$LINENO: checking for working signed char" >&5
18191 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18192 cat >conftest.
$ac_ext <<_ACEOF
18195 cat confdefs.h
>>conftest.
$ac_ext
18196 cat >>conftest.
$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18207 rm -f conftest.
$ac_objext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>conftest.er1
18211 grep -v '^ *+' conftest.er1
>conftest.err
18213 cat conftest.err
>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try
='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try
='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.
$ac_ext >&5
18235 cat >>confdefs.h
<<\_ACEOF
18241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18242 echo "$as_me:$LINENO: result: $works" >&5
18243 echo "${ECHO_T}$works" >&6
18246 echo "$as_me:$LINENO: checking for prototypes" >&5
18247 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18248 cat >conftest.
$ac_ext <<_ACEOF
18251 cat confdefs.h
>>conftest.
$ac_ext
18252 cat >>conftest.
$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 int foo(int x) { return 0; }
18263 rm -f conftest.
$ac_objext
18264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18265 (eval $ac_compile) 2>conftest.er1
18267 grep -v '^ *+' conftest.er1
>conftest.err
18269 cat conftest.err
>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
18272 { ac_try
='test -z "$ac_c_werror_flag"
18273 || test ! -s conftest.err'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try
='test -s conftest.$ac_objext'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18287 cat >>confdefs.h
<<\_ACEOF
18288 #define HAVE_PROTOTYPES 1
18291 have_prototypes
=yes
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.
$ac_ext >&5
18298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18299 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18300 echo "${ECHO_T}$have_prototypes" >&6
18303 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18304 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18305 cat >conftest.
$ac_ext <<_ACEOF
18308 cat confdefs.h
>>conftest.
$ac_ext
18309 cat >>conftest.
$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18312 #include <stdarg.h>
18313 int foo(int x, ...) {
18317 va_arg(va, char *);
18318 va_arg(va, double);
18325 return foo(10, "", 3.14);
18330 rm -f conftest.
$ac_objext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332 (eval $ac_compile) 2>conftest.er1
18334 grep -v '^ *+' conftest.er1
>conftest.err
18336 cat conftest.err
>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try
='test -z "$ac_c_werror_flag"
18340 || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try
='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18354 cat >>confdefs.h
<<\_ACEOF
18355 #define HAVE_STDARG_PROTOTYPES 1
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.
$ac_ext >&5
18365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18366 echo "$as_me:$LINENO: result: $works" >&5
18367 echo "${ECHO_T}$works" >&6
18369 # check for socketpair
18370 echo "$as_me:$LINENO: checking for socketpair" >&5
18371 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18372 cat >conftest.
$ac_ext <<_ACEOF
18375 cat confdefs.h
>>conftest.
$ac_ext
18376 cat >>conftest.
$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18379 #include <sys/types.h>
18380 #include <sys/socket.h>
18390 rm -f conftest.
$ac_objext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18392 (eval $ac_compile) 2>conftest.er1
18394 grep -v '^ *+' conftest.er1
>conftest.err
18396 cat conftest.err
>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try
='test -z "$ac_c_werror_flag"
18400 || test ! -s conftest.err'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; } &&
18406 { ac_try
='test -s conftest.$ac_objext'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18413 cat >>confdefs.h
<<\_ACEOF
18414 #define HAVE_SOCKETPAIR 1
18417 echo "$as_me:$LINENO: result: yes" >&5
18418 echo "${ECHO_T}yes" >&6
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.
$ac_ext >&5
18423 echo "$as_me:$LINENO: result: no" >&5
18424 echo "${ECHO_T}no" >&6
18427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18429 # check if sockaddr has sa_len member
18430 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18431 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18432 cat >conftest.
$ac_ext <<_ACEOF
18435 cat confdefs.h
>>conftest.
$ac_ext
18436 cat >>conftest.
$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 #include <sys/types.h>
18439 #include <sys/socket.h>
18449 rm -f conftest.
$ac_objext
18450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18451 (eval $ac_compile) 2>conftest.er1
18453 grep -v '^ *+' conftest.er1
>conftest.err
18455 cat conftest.err
>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
18458 { ac_try
='test -z "$ac_c_werror_flag"
18459 || test ! -s conftest.err'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; } &&
18465 { ac_try
='test -s conftest.$ac_objext'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 echo "$as_me:$LINENO: result: yes" >&5
18472 echo "${ECHO_T}yes" >&6
18474 cat >>confdefs.h
<<\_ACEOF
18475 #define HAVE_SOCKADDR_SA_LEN 1
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.
$ac_ext >&5
18482 echo "$as_me:$LINENO: result: no" >&5
18483 echo "${ECHO_T}no" >&6
18485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18487 va_list_is_array
=no
18488 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18489 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18490 cat >conftest.
$ac_ext <<_ACEOF
18493 cat confdefs.h
>>conftest.
$ac_ext
18494 cat >>conftest.
$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18497 #ifdef HAVE_STDARG_PROTOTYPES
18498 #include <stdarg.h>
18500 #include <varargs.h>
18506 va_list list1, list2; list1 = list2;
18511 rm -f conftest.
$ac_objext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18513 (eval $ac_compile) 2>conftest.er1
18515 grep -v '^ *+' conftest.er1
>conftest.err
18517 cat conftest.err
>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try
='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try
='test -s conftest.$ac_objext'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.
$ac_ext >&5
18540 cat >>confdefs.h
<<\_ACEOF
18541 #define VA_LIST_IS_ARRAY 1
18544 va_list_is_array
=yes
18547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18548 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18549 echo "${ECHO_T}$va_list_is_array" >&6
18551 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18555 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18556 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18557 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 cat >conftest.
$ac_ext <<_ACEOF
18563 cat confdefs.h
>>conftest.
$ac_ext
18564 cat >>conftest.
$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18568 #define gethostbyname_r innocuous_gethostbyname_r
18570 /* System header to define __stub macros and hopefully few prototypes,
18571 which can conflict with char gethostbyname_r (); below.
18572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18573 <limits.h> exists even on freestanding compilers. */
18576 # include <limits.h>
18578 # include <assert.h>
18581 #undef gethostbyname_r
18583 /* Override any gcc2 internal prototype to avoid an error. */
18588 /* We use char because int might match the return type of a gcc2
18589 builtin and then its argument prototype would still apply. */
18590 char gethostbyname_r ();
18591 /* The GNU C library defines this for functions which it implements
18592 to always fail with ENOSYS. Some functions are actually named
18593 something starting with __ and the normal name is an alias. */
18594 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18597 char (*f) () = gethostbyname_r;
18606 return f != gethostbyname_r;
18611 rm -f conftest.
$ac_objext conftest
$ac_exeext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>conftest.er1
18615 grep -v '^ *+' conftest.er1
>conftest.err
18617 cat conftest.err
>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try
='test -z "$ac_c_werror_flag"
18621 || test ! -s conftest.err'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try
='test -s conftest$ac_exeext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 ac_cv_func_gethostbyname_r
=yes
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.
$ac_ext >&5
18638 ac_cv_func_gethostbyname_r
=no
18640 rm -f conftest.err conftest.
$ac_objext \
18641 conftest
$ac_exeext conftest.
$ac_ext
18643 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18644 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18645 if test $ac_cv_func_gethostbyname_r = yes; then
18647 cat >>confdefs.h
<<\_ACEOF
18648 #define HAVE_GETHOSTBYNAME_R 1
18651 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18652 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18654 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18655 cat >conftest.
$ac_ext <<_ACEOF
18658 cat confdefs.h
>>conftest.
$ac_ext
18659 cat >>conftest.
$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18662 # include <netdb.h>
18669 struct hostent *he, *res;
18674 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18680 rm -f conftest.
$ac_objext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18682 (eval $ac_compile) 2>conftest.er1
18684 grep -v '^ *+' conftest.er1
>conftest.err
18686 cat conftest.err
>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try
='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try
='test -s conftest.$ac_objext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18703 cat >>confdefs.h
<<\_ACEOF
18704 #define HAVE_GETHOSTBYNAME_R 1
18708 cat >>confdefs.h
<<\_ACEOF
18709 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18712 echo "$as_me:$LINENO: result: yes" >&5
18713 echo "${ECHO_T}yes" >&6
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.
$ac_ext >&5
18720 echo "$as_me:$LINENO: result: no" >&5
18721 echo "${ECHO_T}no" >&6
18722 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18723 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18724 cat >conftest.
$ac_ext <<_ACEOF
18727 cat confdefs.h
>>conftest.
$ac_ext
18728 cat >>conftest.
$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18731 # include <netdb.h>
18738 struct hostent *he;
18743 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18749 rm -f conftest.
$ac_objext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18751 (eval $ac_compile) 2>conftest.er1
18753 grep -v '^ *+' conftest.er1
>conftest.err
18755 cat conftest.err
>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try
='test -z "$ac_c_werror_flag"
18759 || test ! -s conftest.err'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try
='test -s conftest.$ac_objext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18772 cat >>confdefs.h
<<\_ACEOF
18773 #define HAVE_GETHOSTBYNAME_R 1
18777 cat >>confdefs.h
<<\_ACEOF
18778 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18781 echo "$as_me:$LINENO: result: yes" >&5
18782 echo "${ECHO_T}yes" >&6
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.
$ac_ext >&5
18789 echo "$as_me:$LINENO: result: no" >&5
18790 echo "${ECHO_T}no" >&6
18791 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18792 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18793 cat >conftest.
$ac_ext <<_ACEOF
18796 cat confdefs.h
>>conftest.
$ac_ext
18797 cat >>conftest.
$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18800 # include <netdb.h>
18807 struct hostent *he;
18808 struct hostent_data data;
18810 (void) gethostbyname_r(name, he, &data);
18816 rm -f conftest.
$ac_objext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18818 (eval $ac_compile) 2>conftest.er1
18820 grep -v '^ *+' conftest.er1
>conftest.err
18822 cat conftest.err
>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try
='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try
='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18839 cat >>confdefs.h
<<\_ACEOF
18840 #define HAVE_GETHOSTBYNAME_R 1
18844 cat >>confdefs.h
<<\_ACEOF
18845 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18848 echo "$as_me:$LINENO: result: yes" >&5
18849 echo "${ECHO_T}yes" >&6
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.
$ac_ext >&5
18856 echo "$as_me:$LINENO: result: no" >&5
18857 echo "${ECHO_T}no" >&6
18860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18872 for ac_func
in gethostbyname
18874 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18875 echo "$as_me:$LINENO: checking for $ac_func" >&5
18876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18877 if eval "test \"\${$as_ac_var+set}\" = set"; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 cat >conftest.
$ac_ext <<_ACEOF
18883 cat confdefs.h
>>conftest.
$ac_ext
18884 cat >>conftest.
$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18888 #define $ac_func innocuous_$ac_func
18890 /* System header to define __stub macros and hopefully few prototypes,
18891 which can conflict with char $ac_func (); below.
18892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18893 <limits.h> exists even on freestanding compilers. */
18896 # include <limits.h>
18898 # include <assert.h>
18903 /* Override any gcc2 internal prototype to avoid an error. */
18908 /* We use char because int might match the return type of a gcc2
18909 builtin and then its argument prototype would still apply. */
18911 /* The GNU C library defines this for functions which it implements
18912 to always fail with ENOSYS. Some functions are actually named
18913 something starting with __ and the normal name is an alias. */
18914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18917 char (*f) () = $ac_func;
18926 return f != $ac_func;
18931 rm -f conftest.
$ac_objext conftest
$ac_exeext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933 (eval $ac_link) 2>conftest.er1
18935 grep -v '^ *+' conftest.er1
>conftest.err
18937 cat conftest.err
>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try
='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try
='test -s conftest$ac_exeext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 eval "$as_ac_var=yes"
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.
$ac_ext >&5
18958 eval "$as_ac_var=no"
18960 rm -f conftest.err conftest.
$ac_objext \
18961 conftest
$ac_exeext conftest.
$ac_ext
18963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18965 if test `eval echo '${'$as_ac_var'}'` = yes; then
18966 cat >>confdefs.h
<<_ACEOF
18967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18982 # checks for system services
18985 # Linux requires this for correct f.p. operations
18986 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18987 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18988 if test "${ac_cv_func___fpu_control+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 cat >conftest.
$ac_ext <<_ACEOF
18994 cat confdefs.h
>>conftest.
$ac_ext
18995 cat >>conftest.
$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18999 #define __fpu_control innocuous___fpu_control
19001 /* System header to define __stub macros and hopefully few prototypes,
19002 which can conflict with char __fpu_control (); below.
19003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004 <limits.h> exists even on freestanding compilers. */
19007 # include <limits.h>
19009 # include <assert.h>
19012 #undef __fpu_control
19014 /* Override any gcc2 internal prototype to avoid an error. */
19019 /* We use char because int might match the return type of a gcc2
19020 builtin and then its argument prototype would still apply. */
19021 char __fpu_control ();
19022 /* The GNU C library defines this for functions which it implements
19023 to always fail with ENOSYS. Some functions are actually named
19024 something starting with __ and the normal name is an alias. */
19025 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19028 char (*f) () = __fpu_control;
19037 return f != __fpu_control;
19042 rm -f conftest.
$ac_objext conftest
$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>conftest.er1
19046 grep -v '^ *+' conftest.er1
>conftest.err
19048 cat conftest.err
>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try
='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try
='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_cv_func___fpu_control
=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.
$ac_ext >&5
19069 ac_cv_func___fpu_control
=no
19071 rm -f conftest.err conftest.
$ac_objext \
19072 conftest
$ac_exeext conftest.
$ac_ext
19074 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19075 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19076 if test $ac_cv_func___fpu_control = yes; then
19080 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19081 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19082 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 ac_check_lib_save_LIBS
=$LIBS
19086 LIBS
="-lieee $LIBS"
19087 cat >conftest.
$ac_ext <<_ACEOF
19090 cat confdefs.h
>>conftest.
$ac_ext
19091 cat >>conftest.
$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19094 /* Override any gcc2 internal prototype to avoid an error. */
19098 /* We use char because int might match the return type of a gcc2
19099 builtin and then its argument prototype would still apply. */
19100 char __fpu_control ();
19109 rm -f conftest.
$ac_objext conftest
$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>conftest.er1
19113 grep -v '^ *+' conftest.er1
>conftest.err
19115 cat conftest.err
>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try
='test -z "$ac_c_werror_flag"
19119 || test ! -s conftest.err'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try
='test -s conftest$ac_exeext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 ac_cv_lib_ieee___fpu_control
=yes
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.
$ac_ext >&5
19136 ac_cv_lib_ieee___fpu_control
=no
19138 rm -f conftest.err conftest.
$ac_objext \
19139 conftest
$ac_exeext conftest.
$ac_ext
19140 LIBS
=$ac_check_lib_save_LIBS
19142 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19143 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19144 if test $ac_cv_lib_ieee___fpu_control = yes; then
19145 cat >>confdefs.h
<<_ACEOF
19146 #define HAVE_LIBIEEE 1
19149 LIBS
="-lieee $LIBS"
19157 # Check for --with-fpectl
19158 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19159 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19161 # Check whether --with-fpectl or --without-fpectl was given.
19162 if test "${with_fpectl+set}" = set; then
19163 withval
="$with_fpectl"
19165 if test "$withval" != no
19168 cat >>confdefs.h
<<\_ACEOF
19169 #define WANT_SIGFPE_HANDLER 1
19172 echo "$as_me:$LINENO: result: yes" >&5
19173 echo "${ECHO_T}yes" >&6
19174 else echo "$as_me:$LINENO: result: no" >&5
19175 echo "${ECHO_T}no" >&6
19178 echo "$as_me:$LINENO: result: no" >&5
19179 echo "${ECHO_T}no" >&6
19182 # check for --with-libm=...
19184 case $ac_sys_system in
19189 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19190 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19192 # Check whether --with-libm or --without-libm was given.
19193 if test "${with_libm+set}" = set; then
19194 withval
="$with_libm"
19196 if test "$withval" = no
19198 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19199 echo "${ECHO_T}force LIBM empty" >&6
19200 elif test "$withval" != yes
19202 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19203 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19204 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19205 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19206 { (exit 1); exit 1; }; }
19209 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19210 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19213 # check for --with-libc=...
19215 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19216 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19218 # Check whether --with-libc or --without-libc was given.
19219 if test "${with_libc+set}" = set; then
19220 withval
="$with_libc"
19222 if test "$withval" = no
19224 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19225 echo "${ECHO_T}force LIBC empty" >&6
19226 elif test "$withval" != yes
19228 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19229 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19230 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19231 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19232 { (exit 1); exit 1; }; }
19235 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19236 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19239 # check for hypot() in math library
19243 for ac_func
in hypot
19245 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19246 echo "$as_me:$LINENO: checking for $ac_func" >&5
19247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19248 if eval "test \"\${$as_ac_var+set}\" = set"; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 cat >conftest.
$ac_ext <<_ACEOF
19254 cat confdefs.h
>>conftest.
$ac_ext
19255 cat >>conftest.
$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19259 #define $ac_func innocuous_$ac_func
19261 /* System header to define __stub macros and hopefully few prototypes,
19262 which can conflict with char $ac_func (); below.
19263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19264 <limits.h> exists even on freestanding compilers. */
19267 # include <limits.h>
19269 # include <assert.h>
19274 /* Override any gcc2 internal prototype to avoid an error. */
19279 /* We use char because int might match the return type of a gcc2
19280 builtin and then its argument prototype would still apply. */
19282 /* The GNU C library defines this for functions which it implements
19283 to always fail with ENOSYS. Some functions are actually named
19284 something starting with __ and the normal name is an alias. */
19285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19288 char (*f) () = $ac_func;
19297 return f != $ac_func;
19302 rm -f conftest.
$ac_objext conftest
$ac_exeext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19304 (eval $ac_link) 2>conftest.er1
19306 grep -v '^ *+' conftest.er1
>conftest.err
19308 cat conftest.err
>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try
='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try
='test -s conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 eval "$as_ac_var=yes"
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.
$ac_ext >&5
19329 eval "$as_ac_var=no"
19331 rm -f conftest.err conftest.
$ac_objext \
19332 conftest
$ac_exeext conftest.
$ac_ext
19334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19336 if test `eval echo '${'$as_ac_var'}'` = yes; then
19337 cat >>confdefs.h
<<_ACEOF
19338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19343 "$ac_func.$ac_objext" | \
19344 *" $ac_func.$ac_objext" | \
19345 "$ac_func.$ac_objext "* | \
19346 *" $ac_func.$ac_objext "* ) ;;
19347 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19356 # check for wchar.h
19357 if test "${ac_cv_header_wchar_h+set}" = set; then
19358 echo "$as_me:$LINENO: checking for wchar.h" >&5
19359 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19360 if test "${ac_cv_header_wchar_h+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19364 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19366 # Is the header compilable?
19367 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19368 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19369 cat >conftest.
$ac_ext <<_ACEOF
19372 cat confdefs.h
>>conftest.
$ac_ext
19373 cat >>conftest.
$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 $ac_includes_default
19378 rm -f conftest.
$ac_objext
19379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19380 (eval $ac_compile) 2>conftest.er1
19382 grep -v '^ *+' conftest.er1
>conftest.err
19384 cat conftest.err
>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try
='test -z "$ac_c_werror_flag"
19388 || test ! -s conftest.err'
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; } &&
19394 { ac_try
='test -s conftest.$ac_objext'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_header_compiler
=yes
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.
$ac_ext >&5
19405 ac_header_compiler
=no
19407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19409 echo "${ECHO_T}$ac_header_compiler" >&6
19411 # Is the header present?
19412 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19413 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19414 cat >conftest.
$ac_ext <<_ACEOF
19417 cat confdefs.h
>>conftest.
$ac_ext
19418 cat >>conftest.
$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19423 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19425 grep -v '^ *+' conftest.er1
>conftest.err
19427 cat conftest.err
>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } >/dev
/null
; then
19430 if test -s conftest.err
; then
19431 ac_cpp_err
=$ac_c_preproc_warn_flag
19432 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19439 if test -z "$ac_cpp_err"; then
19440 ac_header_preproc
=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.
$ac_ext >&5
19445 ac_header_preproc
=no
19447 rm -f conftest.err conftest.
$ac_ext
19448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19449 echo "${ECHO_T}$ac_header_preproc" >&6
19451 # So? What about this header?
19452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19454 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19455 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19457 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19458 ac_header_preproc
=yes
19461 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19462 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19463 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19464 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19466 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19468 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19470 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19472 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19475 ## ------------------------------------------------ ##
19476 ## Report this to http://www.python.org/python-bugs ##
19477 ## ------------------------------------------------ ##
19480 sed "s/^/$as_me: WARNING: /" >&2
19483 echo "$as_me:$LINENO: checking for wchar.h" >&5
19484 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19485 if test "${ac_cv_header_wchar_h+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 ac_cv_header_wchar_h
=$ac_header_preproc
19490 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19491 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19494 if test $ac_cv_header_wchar_h = yes; then
19497 cat >>confdefs.h
<<\_ACEOF
19498 #define HAVE_WCHAR_H 1
19510 # determine wchar_t size
19511 if test "$wchar_h" = yes
19513 echo "$as_me:$LINENO: checking for wchar_t" >&5
19514 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19515 if test "${ac_cv_type_wchar_t+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 cat >conftest.
$ac_ext <<_ACEOF
19521 cat confdefs.h
>>conftest.
$ac_ext
19522 cat >>conftest.
$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19531 if (sizeof (wchar_t))
19537 rm -f conftest.
$ac_objext
19538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19539 (eval $ac_compile) 2>conftest.er1
19541 grep -v '^ *+' conftest.er1
>conftest.err
19543 cat conftest.err
>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try
='test -z "$ac_c_werror_flag"
19547 || test ! -s conftest.err'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try
='test -s conftest.$ac_objext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_type_wchar_t
=yes
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.
$ac_ext >&5
19564 ac_cv_type_wchar_t
=no
19566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19569 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19571 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19572 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19573 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 if test "$ac_cv_type_wchar_t" = yes; then
19577 # The cast to unsigned long works around a bug in the HP C Compiler
19578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19580 # This bug is HP SR number 8606223364.
19581 if test "$cross_compiling" = yes; then
19582 # Depending upon the size, compute the lo and hi bounds.
19583 cat >conftest.
$ac_ext <<_ACEOF
19586 cat confdefs.h
>>conftest.
$ac_ext
19587 cat >>conftest.
$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19594 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19601 rm -f conftest.
$ac_objext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603 (eval $ac_compile) 2>conftest.er1
19605 grep -v '^ *+' conftest.er1
>conftest.err
19607 cat conftest.err
>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try
='test -z "$ac_c_werror_flag"
19611 || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try
='test -s conftest.$ac_objext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19625 cat >conftest.
$ac_ext <<_ACEOF
19628 cat confdefs.h
>>conftest.
$ac_ext
19629 cat >>conftest.
$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19636 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19643 rm -f conftest.
$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19647 grep -v '^ *+' conftest.er1
>conftest.err
19649 cat conftest.err
>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try
='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try
='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_hi
=$ac_mid; break
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.
$ac_ext >&5
19670 ac_lo
=`expr $ac_mid + 1`
19671 if test $ac_lo -le $ac_mid; then
19675 ac_mid
=`expr 2 '*' $ac_mid + 1`
19677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.
$ac_ext >&5
19683 cat >conftest.
$ac_ext <<_ACEOF
19686 cat confdefs.h
>>conftest.
$ac_ext
19687 cat >>conftest.
$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19694 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19701 rm -f conftest.
$ac_objext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19703 (eval $ac_compile) 2>conftest.er1
19705 grep -v '^ *+' conftest.er1
>conftest.err
19707 cat conftest.err
>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try
='test -z "$ac_c_werror_flag"
19711 || test ! -s conftest.err'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try
='test -s conftest.$ac_objext'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19725 cat >conftest.
$ac_ext <<_ACEOF
19728 cat confdefs.h
>>conftest.
$ac_ext
19729 cat >>conftest.
$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19736 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19743 rm -f conftest.
$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19747 grep -v '^ *+' conftest.er1
>conftest.err
19749 cat conftest.err
>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try
='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try
='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_lo
=$ac_mid; break
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.
$ac_ext >&5
19770 ac_hi
=`expr '(' $ac_mid ')' - 1`
19771 if test $ac_mid -le $ac_hi; then
19775 ac_mid
=`expr 2 '*' $ac_mid`
19777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.
$ac_ext >&5
19785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19788 # Binary search between lo and hi bounds.
19789 while test "x$ac_lo" != "x$ac_hi"; do
19790 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19791 cat >conftest.
$ac_ext <<_ACEOF
19794 cat confdefs.h
>>conftest.
$ac_ext
19795 cat >>conftest.
$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19802 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19809 rm -f conftest.
$ac_objext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19811 (eval $ac_compile) 2>conftest.er1
19813 grep -v '^ *+' conftest.er1
>conftest.err
19815 cat conftest.err
>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } &&
19818 { ac_try
='test -z "$ac_c_werror_flag"
19819 || test ! -s conftest.err'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try
='test -s conftest.$ac_objext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.
$ac_ext >&5
19836 ac_lo
=`expr '(' $ac_mid ')' + 1`
19838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19841 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19842 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19843 See \`config.log' for more details." >&5
19844 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19845 See \`config.log' for more details." >&2;}
19846 { (exit 1); exit 1; }; } ;;
19849 if test "$cross_compiling" = yes; then
19850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19851 See \`config.log' for more details." >&5
19852 echo "$as_me: error: cannot run test program while cross compiling
19853 See \`config.log' for more details." >&2;}
19854 { (exit 1); exit 1; }; }
19856 cat >conftest.
$ac_ext <<_ACEOF
19859 cat confdefs.h
>>conftest.
$ac_ext
19860 cat >>conftest.
$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19864 long longval () { return (long) (sizeof (wchar_t)); }
19865 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19867 #include <stdlib.h>
19872 FILE *f = fopen ("conftest.val", "w");
19875 if (((long) (sizeof (wchar_t))) < 0)
19877 long i = longval ();
19878 if (i != ((long) (sizeof (wchar_t))))
19880 fprintf (f, "%ld\n", i);
19884 unsigned long i = ulongval ();
19885 if (i != ((long) (sizeof (wchar_t))))
19887 fprintf (f, "%lu\n", i);
19889 exit (ferror (f) || fclose (f) != 0);
19895 rm -f conftest
$ac_exeext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19897 (eval $ac_link) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19908 echo "$as_me: program exited with status $ac_status" >&5
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.
$ac_ext >&5
19912 ( exit $ac_status )
19913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19914 See \`config.log' for more details." >&5
19915 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19916 See \`config.log' for more details." >&2;}
19917 { (exit 1); exit 1; }; }
19919 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19924 ac_cv_sizeof_wchar_t
=0
19927 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19928 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19929 cat >>confdefs.h
<<_ACEOF
19930 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19936 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19937 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19939 cat >conftest.
$ac_ext <<_ACEOF
19942 cat confdefs.h
>>conftest.
$ac_ext
19943 cat >>conftest.
$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19947 #if TCL_UTF_MAX != 6
19948 # error "NOT UCS4_TCL"
19958 rm -f conftest.
$ac_objext
19959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960 (eval $ac_compile) 2>conftest.er1
19962 grep -v '^ *+' conftest.er1
>conftest.err
19964 cat conftest.err
>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
19967 { ac_try
='test -z "$ac_c_werror_flag"
19968 || test ! -s conftest.err'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try
='test -s conftest.$ac_objext'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19982 cat >>confdefs.h
<<\_ACEOF
19983 #define HAVE_UCS4_TCL 1
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.
$ac_ext >&5
19993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19994 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19995 echo "${ECHO_T}$have_ucs4_tcl" >&6
19997 # check whether wchar_t is signed or not
19998 if test "$wchar_h" = yes
20000 # check whether wchar_t is signed or not
20001 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20002 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20003 if test "${ac_cv_wchar_t_signed+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 if test "$cross_compiling" = yes; then
20008 ac_cv_wchar_t_signed
=yes
20010 cat >conftest.
$ac_ext <<_ACEOF
20013 cat confdefs.h
>>conftest.
$ac_ext
20014 cat >>conftest.
$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20020 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20024 rm -f conftest
$ac_exeext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 ac_cv_wchar_t_signed
=yes
20037 echo "$as_me: program exited with status $ac_status" >&5
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.
$ac_ext >&5
20041 ( exit $ac_status )
20042 ac_cv_wchar_t_signed
=no
20044 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20048 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20049 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20052 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20053 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20054 # Check whether --enable-unicode or --disable-unicode was given.
20055 if test "${enable_unicode+set}" = set; then
20056 enableval
="$enable_unicode"
20062 if test $enable_unicode = yes
20064 # Without any arguments, Py_UNICODE defaults to two-byte mode
20065 case "$have_ucs4_tcl" in
20066 yes) enable_unicode
="ucs4"
20068 *) enable_unicode
="ucs2"
20075 case "$enable_unicode" in
20076 ucs2
) unicode_size
="2"
20077 cat >>confdefs.h
<<\_ACEOF
20078 #define Py_UNICODE_SIZE 2
20082 ucs4
) unicode_size
="4"
20083 cat >>confdefs.h
<<\_ACEOF
20084 #define Py_UNICODE_SIZE 4
20094 if test "$enable_unicode" = "no"
20097 echo "$as_me:$LINENO: result: not used" >&5
20098 echo "${ECHO_T}not used" >&6
20100 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20102 cat >>confdefs.h
<<\_ACEOF
20103 #define Py_USING_UNICODE 1
20107 # wchar_t is only usable if it maps to an unsigned type
20108 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20109 -a "$ac_cv_wchar_t_signed" = "no"
20111 PY_UNICODE_TYPE
="wchar_t"
20113 cat >>confdefs.h
<<\_ACEOF
20114 #define HAVE_USABLE_WCHAR_T 1
20117 cat >>confdefs.h
<<\_ACEOF
20118 #define PY_UNICODE_TYPE wchar_t
20121 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20123 PY_UNICODE_TYPE
="unsigned short"
20124 cat >>confdefs.h
<<\_ACEOF
20125 #define PY_UNICODE_TYPE unsigned short
20128 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20130 PY_UNICODE_TYPE
="unsigned long"
20131 cat >>confdefs.h
<<\_ACEOF
20132 #define PY_UNICODE_TYPE unsigned long
20136 PY_UNICODE_TYPE
="no type found"
20138 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20139 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20142 # check for endianness
20143 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20144 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20145 if test "${ac_cv_c_bigendian+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 # See if sys/param.h defines the BYTE_ORDER macro.
20149 cat >conftest.
$ac_ext <<_ACEOF
20152 cat confdefs.h
>>conftest.
$ac_ext
20153 cat >>conftest.
$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <sys/types.h>
20156 #include <sys/param.h>
20161 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20162 bogus endian macros
20169 rm -f conftest.
$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>conftest.er1
20173 grep -v '^ *+' conftest.er1
>conftest.err
20175 cat conftest.err
>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
20178 { ac_try
='test -z "$ac_c_werror_flag"
20179 || test ! -s conftest.err'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try
='test -s conftest.$ac_objext'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 # It does; now see whether it defined to BIG_ENDIAN or not.
20192 cat >conftest.
$ac_ext <<_ACEOF
20195 cat confdefs.h
>>conftest.
$ac_ext
20196 cat >>conftest.
$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 #include <sys/types.h>
20199 #include <sys/param.h>
20204 #if BYTE_ORDER != BIG_ENDIAN
20212 rm -f conftest.
$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20216 grep -v '^ *+' conftest.er1
>conftest.err
20218 cat conftest.err
>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try
='test -z "$ac_c_werror_flag"
20222 || test ! -s conftest.err'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try
='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_c_bigendian
=yes
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.
$ac_ext >&5
20239 ac_cv_c_bigendian
=no
20241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.
$ac_ext >&5
20246 # It does not; compile a test program.
20247 if test "$cross_compiling" = yes; then
20248 # try to guess the endianness by grepping values into an object file
20249 ac_cv_c_bigendian
=unknown
20250 cat >conftest.
$ac_ext <<_ACEOF
20253 cat confdefs.h
>>conftest.
$ac_ext
20254 cat >>conftest.
$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20257 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20258 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20259 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20260 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20261 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20265 _ascii (); _ebcdic ();
20270 rm -f conftest.
$ac_objext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>conftest.er1
20274 grep -v '^ *+' conftest.er1
>conftest.err
20276 cat conftest.err
>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try
='test -z "$ac_c_werror_flag"
20280 || test ! -s conftest.err'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; } &&
20286 { ac_try
='test -s conftest.$ac_objext'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20293 ac_cv_c_bigendian
=yes
20295 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20296 if test "$ac_cv_c_bigendian" = unknown
; then
20297 ac_cv_c_bigendian
=no
20299 # finding both strings is unlikely to happen, but who knows?
20300 ac_cv_c_bigendian
=unknown
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.
$ac_ext >&5
20308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20310 cat >conftest.
$ac_ext <<_ACEOF
20313 cat confdefs.h
>>conftest.
$ac_ext
20314 cat >>conftest.
$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20319 /* Are we little or big endian? From Harbison&Steele. */
20323 char c[sizeof (long)];
20326 exit (u.c[sizeof (long) - 1] == 1);
20329 rm -f conftest
$ac_exeext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20331 (eval $ac_link) 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_c_bigendian
=no
20342 echo "$as_me: program exited with status $ac_status" >&5
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.
$ac_ext >&5
20346 ( exit $ac_status )
20347 ac_cv_c_bigendian
=yes
20349 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20354 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20355 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20356 case $ac_cv_c_bigendian in
20359 cat >>confdefs.h
<<\_ACEOF
20360 #define WORDS_BIGENDIAN 1
20366 { { echo "$as_me:$LINENO: error: unknown endianness
20367 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20368 echo "$as_me: error: unknown endianness
20369 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20370 { (exit 1); exit 1; }; } ;;
20374 # Check whether right shifting a negative integer extends the sign bit
20375 # or fills with zeros (like the Cray J90, according to Tim Peters).
20376 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20377 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20378 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 if test "$cross_compiling" = yes; then
20383 ac_cv_rshift_extends_sign
=yes
20385 cat >conftest.
$ac_ext <<_ACEOF
20388 cat confdefs.h
>>conftest.
$ac_ext
20389 cat >>conftest.
$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20394 exit(((-1)>>3 == -1) ? 0 : 1);
20398 rm -f conftest
$ac_exeext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20400 (eval $ac_link) 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_cv_rshift_extends_sign
=yes
20411 echo "$as_me: program exited with status $ac_status" >&5
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.
$ac_ext >&5
20415 ( exit $ac_status )
20416 ac_cv_rshift_extends_sign
=no
20418 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20422 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20423 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20424 if test "$ac_cv_rshift_extends_sign" = no
20427 cat >>confdefs.h
<<\_ACEOF
20428 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20433 # check for getc_unlocked and related locking functions
20434 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20435 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20436 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 cat >conftest.
$ac_ext <<_ACEOF
20443 cat confdefs.h
>>conftest.
$ac_ext
20444 cat >>conftest.
$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20451 FILE *f = fopen("/dev/null", "r");
20460 rm -f conftest.
$ac_objext conftest
$ac_exeext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462 (eval $ac_link) 2>conftest.er1
20464 grep -v '^ *+' conftest.er1
>conftest.err
20466 cat conftest.err
>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try
='test -z "$ac_c_werror_flag"
20470 || test ! -s conftest.err'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; } &&
20476 { ac_try
='test -s conftest$ac_exeext'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; }; then
20482 ac_cv_have_getc_unlocked
=yes
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.
$ac_ext >&5
20487 ac_cv_have_getc_unlocked
=no
20489 rm -f conftest.err conftest.
$ac_objext \
20490 conftest
$ac_exeext conftest.
$ac_ext
20493 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20494 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20495 if test "$ac_cv_have_getc_unlocked" = yes
20498 cat >>confdefs.h
<<\_ACEOF
20499 #define HAVE_GETC_UNLOCKED 1
20504 # check where readline lives
20505 # save the value of LIBS so we don't actually link Python with readline
20506 LIBS_no_readline
=$LIBS
20508 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20509 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20510 if test "${ac_cv_lib_readline_readline+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 ac_check_lib_save_LIBS
=$LIBS
20514 LIBS
="-lreadline $LIBS"
20515 cat >conftest.
$ac_ext <<_ACEOF
20518 cat confdefs.h
>>conftest.
$ac_ext
20519 cat >>conftest.
$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20522 /* Override any gcc2 internal prototype to avoid an error. */
20526 /* We use char because int might match the return type of a gcc2
20527 builtin and then its argument prototype would still apply. */
20537 rm -f conftest.
$ac_objext conftest
$ac_exeext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20539 (eval $ac_link) 2>conftest.er1
20541 grep -v '^ *+' conftest.er1
>conftest.err
20543 cat conftest.err
>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try
='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try
='test -s conftest$ac_exeext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 ac_cv_lib_readline_readline
=yes
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.
$ac_ext >&5
20564 ac_cv_lib_readline_readline
=no
20566 rm -f conftest.err conftest.
$ac_objext \
20567 conftest
$ac_exeext conftest.
$ac_ext
20568 LIBS
=$ac_check_lib_save_LIBS
20570 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20571 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20572 if test $ac_cv_lib_readline_readline = yes; then
20573 cat >>confdefs.h
<<_ACEOF
20574 #define HAVE_LIBREADLINE 1
20577 LIBS
="-lreadline $LIBS"
20581 if test "$ac_cv_have_readline_readline" = no
20584 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20585 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20586 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 ac_check_lib_save_LIBS
=$LIBS
20590 LIBS
="-ltermcap $LIBS"
20591 cat >conftest.
$ac_ext <<_ACEOF
20594 cat confdefs.h
>>conftest.
$ac_ext
20595 cat >>conftest.
$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20598 /* Override any gcc2 internal prototype to avoid an error. */
20602 /* We use char because int might match the return type of a gcc2
20603 builtin and then its argument prototype would still apply. */
20613 rm -f conftest.
$ac_objext conftest
$ac_exeext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20615 (eval $ac_link) 2>conftest.er1
20617 grep -v '^ *+' conftest.er1
>conftest.err
20619 cat conftest.err
>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try
='test -z "$ac_c_werror_flag"
20623 || test ! -s conftest.err'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; } &&
20629 { ac_try
='test -s conftest$ac_exeext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_lib_termcap_readline
=yes
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.
$ac_ext >&5
20640 ac_cv_lib_termcap_readline
=no
20642 rm -f conftest.err conftest.
$ac_objext \
20643 conftest
$ac_exeext conftest.
$ac_ext
20644 LIBS
=$ac_check_lib_save_LIBS
20646 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20647 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20648 if test $ac_cv_lib_termcap_readline = yes; then
20649 cat >>confdefs.h
<<_ACEOF
20650 #define HAVE_LIBTERMCAP 1
20653 LIBS
="-ltermcap $LIBS"
20659 # check for readline 2.1
20660 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20661 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20662 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20665 ac_check_lib_save_LIBS
=$LIBS
20666 LIBS
="-lreadline $LIBS"
20667 cat >conftest.
$ac_ext <<_ACEOF
20670 cat confdefs.h
>>conftest.
$ac_ext
20671 cat >>conftest.
$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 /* Override any gcc2 internal prototype to avoid an error. */
20678 /* We use char because int might match the return type of a gcc2
20679 builtin and then its argument prototype would still apply. */
20680 char rl_callback_handler_install ();
20684 rl_callback_handler_install ();
20689 rm -f conftest.
$ac_objext conftest
$ac_exeext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691 (eval $ac_link) 2>conftest.er1
20693 grep -v '^ *+' conftest.er1
>conftest.err
20695 cat conftest.err
>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try
='test -z "$ac_c_werror_flag"
20699 || test ! -s conftest.err'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; } &&
20705 { ac_try
='test -s conftest$ac_exeext'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 ac_cv_lib_readline_rl_callback_handler_install
=yes
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.
$ac_ext >&5
20716 ac_cv_lib_readline_rl_callback_handler_install
=no
20718 rm -f conftest.err conftest.
$ac_objext \
20719 conftest
$ac_exeext conftest.
$ac_ext
20720 LIBS
=$ac_check_lib_save_LIBS
20722 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20723 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20724 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20726 cat >>confdefs.h
<<\_ACEOF
20727 #define HAVE_RL_CALLBACK 1
20733 # check for readline 2.2
20734 cat >conftest.
$ac_ext <<_ACEOF
20737 cat confdefs.h
>>conftest.
$ac_ext
20738 cat >>conftest.
$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <readline/readline.h>
20742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20743 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20745 grep -v '^ *+' conftest.er1
>conftest.err
20747 cat conftest.err
>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } >/dev
/null
; then
20750 if test -s conftest.err
; then
20751 ac_cpp_err
=$ac_c_preproc_warn_flag
20752 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20759 if test -z "$ac_cpp_err"; then
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.
$ac_ext >&5
20767 rm -f conftest.err conftest.
$ac_ext
20768 if test $have_readline = yes
20770 cat >conftest.
$ac_ext <<_ACEOF
20773 cat confdefs.h
>>conftest.
$ac_ext
20774 cat >>conftest.
$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <readline/readline.h>
20779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20780 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20782 cat >>confdefs.h
<<\_ACEOF
20783 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20791 # check for readline 4.0
20792 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20793 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20794 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 ac_check_lib_save_LIBS
=$LIBS
20798 LIBS
="-lreadline $LIBS"
20799 cat >conftest.
$ac_ext <<_ACEOF
20802 cat confdefs.h
>>conftest.
$ac_ext
20803 cat >>conftest.
$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20806 /* Override any gcc2 internal prototype to avoid an error. */
20810 /* We use char because int might match the return type of a gcc2
20811 builtin and then its argument prototype would still apply. */
20812 char rl_pre_input_hook ();
20816 rl_pre_input_hook ();
20821 rm -f conftest.
$ac_objext conftest
$ac_exeext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20823 (eval $ac_link) 2>conftest.er1
20825 grep -v '^ *+' conftest.er1
>conftest.err
20827 cat conftest.err
>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try
='test -z "$ac_c_werror_flag"
20831 || test ! -s conftest.err'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try
='test -s conftest$ac_exeext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ac_cv_lib_readline_rl_pre_input_hook
=yes
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.
$ac_ext >&5
20848 ac_cv_lib_readline_rl_pre_input_hook
=no
20850 rm -f conftest.err conftest.
$ac_objext \
20851 conftest
$ac_exeext conftest.
$ac_ext
20852 LIBS
=$ac_check_lib_save_LIBS
20854 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20855 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20856 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20858 cat >>confdefs.h
<<\_ACEOF
20859 #define HAVE_RL_PRE_INPUT_HOOK 1
20865 # check for readline 4.2
20866 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20867 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20868 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 ac_check_lib_save_LIBS
=$LIBS
20872 LIBS
="-lreadline $LIBS"
20873 cat >conftest.
$ac_ext <<_ACEOF
20876 cat confdefs.h
>>conftest.
$ac_ext
20877 cat >>conftest.
$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20880 /* Override any gcc2 internal prototype to avoid an error. */
20884 /* We use char because int might match the return type of a gcc2
20885 builtin and then its argument prototype would still apply. */
20886 char rl_completion_matches ();
20890 rl_completion_matches ();
20895 rm -f conftest.
$ac_objext conftest
$ac_exeext
20896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20897 (eval $ac_link) 2>conftest.er1
20899 grep -v '^ *+' conftest.er1
>conftest.err
20901 cat conftest.err
>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try
='test -z "$ac_c_werror_flag"
20905 || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try
='test -s conftest$ac_exeext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 ac_cv_lib_readline_rl_completion_matches
=yes
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.
$ac_ext >&5
20922 ac_cv_lib_readline_rl_completion_matches
=no
20924 rm -f conftest.err conftest.
$ac_objext \
20925 conftest
$ac_exeext conftest.
$ac_ext
20926 LIBS
=$ac_check_lib_save_LIBS
20928 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20929 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20930 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20932 cat >>confdefs.h
<<\_ACEOF
20933 #define HAVE_RL_COMPLETION_MATCHES 1
20939 # also in readline 4.2
20940 cat >conftest.
$ac_ext <<_ACEOF
20943 cat confdefs.h
>>conftest.
$ac_ext
20944 cat >>conftest.
$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <readline/readline.h>
20948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20949 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20951 grep -v '^ *+' conftest.er1
>conftest.err
20953 cat conftest.err
>&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } >/dev
/null
; then
20956 if test -s conftest.err
; then
20957 ac_cpp_err
=$ac_c_preproc_warn_flag
20958 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20965 if test -z "$ac_cpp_err"; then
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.
$ac_ext >&5
20973 rm -f conftest.err conftest.
$ac_ext
20974 if test $have_readline = yes
20976 cat >conftest.
$ac_ext <<_ACEOF
20979 cat confdefs.h
>>conftest.
$ac_ext
20980 cat >>conftest.
$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 #include <readline/readline.h>
20985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20986 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
20988 cat >>confdefs.h
<<\_ACEOF
20989 #define HAVE_RL_CATCH_SIGNAL 1
20997 # End of readline checks: restore LIBS
20998 LIBS
=$LIBS_no_readline
21000 echo "$as_me:$LINENO: checking for broken nice()" >&5
21001 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21002 if test "${ac_cv_broken_nice+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 if test "$cross_compiling" = yes; then
21007 ac_cv_broken_nice
=no
21009 cat >conftest.
$ac_ext <<_ACEOF
21012 cat confdefs.h
>>conftest.
$ac_ext
21013 cat >>conftest.
$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21018 int val1 = nice(1);
21019 if (val1 != -1 && val1 == nice(2))
21025 rm -f conftest
$ac_exeext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21027 (eval $ac_link) 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 ac_cv_broken_nice
=yes
21038 echo "$as_me: program exited with status $ac_status" >&5
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.
$ac_ext >&5
21042 ( exit $ac_status )
21043 ac_cv_broken_nice
=no
21045 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21049 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21050 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21051 if test "$ac_cv_broken_nice" = yes
21054 cat >>confdefs.h
<<\_ACEOF
21055 #define HAVE_BROKEN_NICE 1
21060 echo "$as_me:$LINENO: checking for broken poll()" >&5
21061 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21062 if test "$cross_compiling" = yes; then
21063 ac_cv_broken_poll
=no
21065 cat >conftest.
$ac_ext <<_ACEOF
21068 cat confdefs.h
>>conftest.
$ac_ext
21069 cat >>conftest.
$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21076 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21080 int poll_test = poll (&poll_struct, 1, 0);
21086 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21097 rm -f conftest
$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_broken_poll
=yes
21110 echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.
$ac_ext >&5
21114 ( exit $ac_status )
21115 ac_cv_broken_poll
=no
21117 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21119 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21120 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21121 if test "$ac_cv_broken_poll" = yes
21124 cat >>confdefs.h
<<\_ACEOF
21125 #define HAVE_BROKEN_POLL 1
21130 # Before we can test tzset, we need to check if struct tm has a tm_zone
21131 # (which is not required by ISO C or UNIX spec) and/or if we support
21133 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21134 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21135 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 cat >conftest.
$ac_ext <<_ACEOF
21141 cat confdefs.h
>>conftest.
$ac_ext
21142 cat >>conftest.
$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 #include <sys/types.h>
21145 #include <$ac_cv_struct_tm>
21151 static struct tm ac_aggr;
21152 if (ac_aggr.tm_zone)
21158 rm -f conftest.
$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>conftest.er1
21162 grep -v '^ *+' conftest.er1
>conftest.err
21164 cat conftest.err
>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try
='test -z "$ac_c_werror_flag"
21168 || test ! -s conftest.err'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try
='test -s conftest.$ac_objext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 ac_cv_member_struct_tm_tm_zone
=yes
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.
$ac_ext >&5
21185 cat >conftest.
$ac_ext <<_ACEOF
21188 cat confdefs.h
>>conftest.
$ac_ext
21189 cat >>conftest.
$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 #include <sys/types.h>
21192 #include <$ac_cv_struct_tm>
21198 static struct tm ac_aggr;
21199 if (sizeof ac_aggr.tm_zone)
21205 rm -f conftest.
$ac_objext
21206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21207 (eval $ac_compile) 2>conftest.er1
21209 grep -v '^ *+' conftest.er1
>conftest.err
21211 cat conftest.err
>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } &&
21214 { ac_try
='test -z "$ac_c_werror_flag"
21215 || test ! -s conftest.err'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; } &&
21221 { ac_try
='test -s conftest.$ac_objext'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_cv_member_struct_tm_tm_zone
=yes
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.
$ac_ext >&5
21232 ac_cv_member_struct_tm_tm_zone
=no
21234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21238 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21239 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21240 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21242 cat >>confdefs.h
<<_ACEOF
21243 #define HAVE_STRUCT_TM_TM_ZONE 1
21249 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21251 cat >>confdefs.h
<<\_ACEOF
21252 #define HAVE_TM_ZONE 1
21256 echo "$as_me:$LINENO: checking for tzname" >&5
21257 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21258 if test "${ac_cv_var_tzname+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 cat >conftest.
$ac_ext <<_ACEOF
21264 cat confdefs.h
>>conftest.
$ac_ext
21265 cat >>conftest.
$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21268 #ifndef tzname /* For SGI. */
21269 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21280 rm -f conftest.
$ac_objext conftest
$ac_exeext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282 (eval $ac_link) 2>conftest.er1
21284 grep -v '^ *+' conftest.er1
>conftest.err
21286 cat conftest.err
>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try
='test -z "$ac_c_werror_flag"
21290 || test ! -s conftest.err'
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; } &&
21296 { ac_try
='test -s conftest$ac_exeext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_cv_var_tzname
=yes
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.
$ac_ext >&5
21307 ac_cv_var_tzname
=no
21309 rm -f conftest.err conftest.
$ac_objext \
21310 conftest
$ac_exeext conftest.
$ac_ext
21312 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21313 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21314 if test $ac_cv_var_tzname = yes; then
21316 cat >>confdefs.h
<<\_ACEOF
21317 #define HAVE_TZNAME 1
21324 # check tzset(3) exists and works like we expect it to
21325 echo "$as_me:$LINENO: checking for working tzset()" >&5
21326 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21327 if test "${ac_cv_working_tzset+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 if test "$cross_compiling" = yes; then
21332 ac_cv_working_tzset
=no
21334 cat >conftest.
$ac_ext <<_ACEOF
21337 cat confdefs.h
>>conftest.
$ac_ext
21338 cat >>conftest.
$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21341 #include <stdlib.h>
21343 #include <string.h>
21346 extern char *tzname[];
21351 /* Note that we need to ensure that not only does tzset(3)
21352 do 'something' with localtime, but it works as documented
21353 in the library reference and as expected by the test suite.
21354 This includes making sure that tzname is set properly if
21355 tm->tm_zone does not exist since it is the alternative way
21356 of getting timezone info.
21358 Red Hat 6.2 doesn't understand the southern hemisphere
21359 after New Year's Day.
21362 time_t groundhogday = 1044144000; /* GMT-based */
21363 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21365 putenv("TZ=UTC+0");
21367 if (localtime(&groundhogday)->tm_hour != 0)
21370 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21371 if (strcmp(tzname[0], "UTC") ||
21372 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21376 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21378 if (localtime(&groundhogday)->tm_hour != 19)
21381 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21385 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21387 if (localtime(&groundhogday)->tm_hour != 11)
21390 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21394 #if HAVE_STRUCT_TM_TM_ZONE
21395 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21397 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21405 rm -f conftest
$ac_exeext
21406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21407 (eval $ac_link) 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 ac_cv_working_tzset
=yes
21418 echo "$as_me: program exited with status $ac_status" >&5
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.
$ac_ext >&5
21422 ( exit $ac_status )
21423 ac_cv_working_tzset
=no
21425 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21429 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21430 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21431 if test "$ac_cv_working_tzset" = yes
21434 cat >>confdefs.h
<<\_ACEOF
21435 #define HAVE_WORKING_TZSET 1
21440 # Look for subsecond timestamps in struct stat
21441 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21442 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21443 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 cat >conftest.
$ac_ext <<_ACEOF
21449 cat confdefs.h
>>conftest.
$ac_ext
21450 cat >>conftest.
$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <sys/stat.h>
21458 st.st_mtim.tv_nsec = 1;
21464 rm -f conftest.
$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21468 grep -v '^ *+' conftest.er1
>conftest.err
21470 cat conftest.err
>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try
='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try
='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_stat_tv_nsec
=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.
$ac_ext >&5
21491 ac_cv_stat_tv_nsec
=no
21493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21497 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21498 if test "$ac_cv_stat_tv_nsec" = yes
21501 cat >>confdefs.h
<<\_ACEOF
21502 #define HAVE_STAT_TV_NSEC 1
21507 # Look for BSD style subsecond timestamps in struct stat
21508 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21509 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21510 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 cat >conftest.
$ac_ext <<_ACEOF
21516 cat confdefs.h
>>conftest.
$ac_ext
21517 cat >>conftest.
$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21519 #include <sys/stat.h>
21525 st.st_mtimespec.tv_nsec = 1;
21531 rm -f conftest.
$ac_objext
21532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21533 (eval $ac_compile) 2>conftest.er1
21535 grep -v '^ *+' conftest.er1
>conftest.err
21537 cat conftest.err
>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try
='test -z "$ac_c_werror_flag"
21541 || test ! -s conftest.err'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; } &&
21547 { ac_try
='test -s conftest.$ac_objext'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 ac_cv_stat_tv_nsec2
=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.
$ac_ext >&5
21558 ac_cv_stat_tv_nsec2
=no
21560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21563 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21564 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21565 if test "$ac_cv_stat_tv_nsec2" = yes
21568 cat >>confdefs.h
<<\_ACEOF
21569 #define HAVE_STAT_TV_NSEC2 1
21574 # On HP/UX 11.0, mvwdelch is a block with a return statement
21575 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21576 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21577 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 cat >conftest.
$ac_ext <<_ACEOF
21583 cat confdefs.h
>>conftest.
$ac_ext
21584 cat >>conftest.
$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586 #include <curses.h>
21592 rtn = mvwdelch(0,0,0);
21598 rm -f conftest.
$ac_objext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21600 (eval $ac_compile) 2>conftest.er1
21602 grep -v '^ *+' conftest.er1
>conftest.err
21604 cat conftest.err
>&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try
='test -z "$ac_c_werror_flag"
21608 || test ! -s conftest.err'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; } &&
21614 { ac_try
='test -s conftest.$ac_objext'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 ac_cv_mvwdelch_is_expression
=yes
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.
$ac_ext >&5
21625 ac_cv_mvwdelch_is_expression
=no
21627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21630 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21631 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21633 if test "$ac_cv_mvwdelch_is_expression" = yes
21636 cat >>confdefs.h
<<\_ACEOF
21637 #define MVWDELCH_IS_EXPRESSION 1
21642 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21643 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21644 if test "${ac_cv_window_has_flags+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 cat >conftest.
$ac_ext <<_ACEOF
21650 cat confdefs.h
>>conftest.
$ac_ext
21651 cat >>conftest.
$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 #include <curses.h>
21665 rm -f conftest.
$ac_objext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667 (eval $ac_compile) 2>conftest.er1
21669 grep -v '^ *+' conftest.er1
>conftest.err
21671 cat conftest.err
>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
21674 { ac_try
='test -z "$ac_c_werror_flag"
21675 || test ! -s conftest.err'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try
='test -s conftest.$ac_objext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_cv_window_has_flags
=yes
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.
$ac_ext >&5
21692 ac_cv_window_has_flags
=no
21694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21697 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21698 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21701 if test "$ac_cv_window_has_flags" = yes
21704 cat >>confdefs.h
<<\_ACEOF
21705 #define WINDOW_HAS_FLAGS 1
21710 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21711 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21713 if test -e /dev
/ptmx
21715 echo "$as_me:$LINENO: result: yes" >&5
21716 echo "${ECHO_T}yes" >&6
21718 cat >>confdefs.h
<<\_ACEOF
21719 #define HAVE_DEV_PTMX 1
21723 echo "$as_me:$LINENO: result: no" >&5
21724 echo "${ECHO_T}no" >&6
21727 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21728 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21730 if test -e /dev
/ptc
21732 echo "$as_me:$LINENO: result: yes" >&5
21733 echo "${ECHO_T}yes" >&6
21735 cat >>confdefs.h
<<\_ACEOF
21736 #define HAVE_DEV_PTC 1
21740 echo "$as_me:$LINENO: result: no" >&5
21741 echo "${ECHO_T}no" >&6
21744 echo "$as_me:$LINENO: checking for socklen_t" >&5
21745 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21746 if test "${ac_cv_type_socklen_t+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 cat >conftest.
$ac_ext <<_ACEOF
21752 cat confdefs.h
>>conftest.
$ac_ext
21753 cat >>conftest.
$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21756 #ifdef HAVE_SYS_TYPES_H
21757 #include <sys/types.h>
21759 #ifdef HAVE_SYS_SOCKET_H
21760 #include <sys/socket.h>
21767 if ((socklen_t *) 0)
21769 if (sizeof (socklen_t))
21775 rm -f conftest.
$ac_objext
21776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21777 (eval $ac_compile) 2>conftest.er1
21779 grep -v '^ *+' conftest.er1
>conftest.err
21781 cat conftest.err
>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
21784 { ac_try
='test -z "$ac_c_werror_flag"
21785 || test ! -s conftest.err'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; } &&
21791 { ac_try
='test -s conftest.$ac_objext'
21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793 (eval $ac_try) 2>&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; }; then
21797 ac_cv_type_socklen_t
=yes
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.
$ac_ext >&5
21802 ac_cv_type_socklen_t
=no
21804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21806 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21807 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21808 if test $ac_cv_type_socklen_t = yes; then
21812 cat >>confdefs.h
<<\_ACEOF
21813 #define socklen_t int
21821 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21823 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21827 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21828 echo "$as_me:$LINENO: checking for build directories" >&5
21829 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21830 for dir
in $SRCDIRS; do
21831 if test ! -d $dir; then
21835 echo "$as_me:$LINENO: result: done" >&5
21836 echo "${ECHO_T}done" >&6
21838 # generate output files
21839 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21841 cat >confcache
<<\_ACEOF
21842 # This file is a shell script that caches the results of configure
21843 # tests run on this system so they can be shared between configure
21844 # scripts and configure runs, see configure's option --config-cache.
21845 # It is not useful on other systems. If it contains results you don't
21846 # want to keep, you may remove or edit it.
21848 # config.status only pays attention to the cache file if you give it
21849 # the --recheck option to rerun configure.
21851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21853 # following values.
21857 # The following way of writing the cache mishandles newlines in values,
21858 # but we know of no workaround that is simple, portable, and efficient.
21859 # So, don't put newlines in cache variables' values.
21860 # Ultrix sh set writes to stderr and can't be redirected directly,
21861 # and sets the high bit in the cache file unless we assign to the vars.
21864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21866 # `set' does not quote correctly, so add quotes (double-quote
21867 # substitution turns \\\\ into \\, and sed turns \\ into \).
21870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21873 # `set' quotes correctly as required by POSIX, so do not add quotes.
21875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21886 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21887 if test -w $cache_file; then
21888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21889 cat confcache
>$cache_file
21891 echo "not updating unwritable cache $cache_file"
21896 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21897 # Let make expand exec_prefix.
21898 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21902 # trailing colons and then remove the whole line if VPATH becomes empty
21903 # (actually we leave an empty line to preserve line numbers).
21904 if test "x$srcdir" = x.
; then
21905 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21906 s/:*\$(srcdir):*/:/;
21907 s/:*\${srcdir}:*/:/;
21909 s/^\([^=]*=[ ]*\):*/\1/;
21915 DEFS
=-DHAVE_CONFIG_H
21919 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21920 # 1. Remove the extension, and $U if already installed.
21921 ac_i
=`echo "$ac_i" |
21922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21924 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21925 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21927 LIBOBJS
=$ac_libobjs
21929 LTLIBOBJS
=$ac_ltlibobjs
21933 : ${CONFIG_STATUS=./config.status}
21934 ac_clean_files_save
=$ac_clean_files
21935 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21938 cat >$CONFIG_STATUS <<_ACEOF
21940 # Generated by $as_me.
21941 # Run this file to recreate the current configuration.
21942 # Compiler output produced by configure, useful for debugging
21943 # configure, is in config.log if it exists.
21946 ac_cs_recheck=false
21948 SHELL=\${CONFIG_SHELL-$SHELL}
21951 cat >>$CONFIG_STATUS <<\_ACEOF
21952 ## --------------------- ##
21953 ## M4sh Initialization. ##
21954 ## --------------------- ##
21956 # Be Bourne compatible
21957 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21961 # is contrary to our usage. Disable this feature.
21962 alias -g '${1+"$@"}'='"$@"'
21963 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21966 DUALCASE
=1; export DUALCASE
# for MKS sh
21968 # Support unset when possible.
21969 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21976 # Work around bugs in pre-3.0 UWIN ksh.
21977 $as_unset ENV MAIL MAILPATH
21984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21986 LC_TELEPHONE LC_TIME
21988 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21989 eval $as_var=C
; export $as_var
21995 # Required to use basename.
21996 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22002 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22003 as_basename
=basename
22009 # Name of the executable.
22010 as_me
=`$as_basename "$0" ||
22011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22012 X"$0" : 'X\(//\)$' \| \
22013 X"$0" : 'X\(/\)$' \| \
22014 . : '\(.\)' 2>/dev/null ||
22016 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22017 /^X\/\(\/\/\)$/{ s//\1/; q; }
22018 /^X\/\(\/\).*/{ s//\1/; q; }
22022 # PATH needs CR, and LINENO needs CR and PATH.
22023 # Avoid depending upon Character Ranges.
22024 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22025 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22026 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22027 as_cr_digits
='0123456789'
22028 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22030 # The user is always right.
22031 if test "${PATH_SEPARATOR+set}" != set; then
22032 echo "#! /bin/sh" >conf$$.sh
22033 echo "exit 0" >>conf$$.sh
22035 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22044 as_lineno_1
=$LINENO
22045 as_lineno_2
=$LINENO
22046 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22047 test "x$as_lineno_1" != "x$as_lineno_2" &&
22048 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22049 # Find who we are. Look in the path if we contain no path at all
22052 *[\\/]* ) as_myself
=$0 ;;
22053 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22054 for as_dir
in $PATH
22057 test -z "$as_dir" && as_dir
=.
22058 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22063 # We did not find ourselves, most probably we were run as `sh COMMAND'
22064 # in which case we are not to be found in the path.
22065 if test "x$as_myself" = x
; then
22068 if test ! -f "$as_myself"; then
22069 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22070 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22071 { (exit 1); exit 1; }; }
22073 case $CONFIG_SHELL in
22075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22076 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22079 test -z "$as_dir" && as_dir
=.
22080 for as_base
in sh bash ksh sh5
; do
22083 if ("$as_dir/$as_base" -c '
22084 as_lineno_1=$LINENO
22085 as_lineno_2=$LINENO
22086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22087 test "x$as_lineno_1" != "x$as_lineno_2" &&
22088 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22089 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22090 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22091 CONFIG_SHELL
=$as_dir/$as_base
22092 export CONFIG_SHELL
22093 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22102 # uniformly replaced by the line number. The first 'sed' inserts a
22103 # line-number line before each line; the second 'sed' does the real
22104 # work. The second script uses 'N' to pair each line-number line
22105 # with the numbered line, and appends trailing '-' during
22106 # substitution so that $LINENO is not a special case at line end.
22107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22108 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22109 sed '=' <$as_myself |
22114 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22117 s,^['$as_cr_digits']*\n,,
22118 ' >$as_me.lineno
&&
22119 chmod +x
$as_me.lineno ||
22120 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22121 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22122 { (exit 1); exit 1; }; }
22124 # Don't try to exec as it changes $[0], causing all sort of problems
22125 # (the dirname of $[0] is not the place where we might find the
22126 # original and so on. Autoconf is especially sensible to this).
22128 # Exit status is that of the last command.
22133 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22134 *c
*,-n*) ECHO_N
= ECHO_C
='
22136 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22137 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22140 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22146 rm -f conf$$ conf$$.exe conf$$.
file
22148 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22149 # We could just check for DJGPP; but this test a) works b) is more generic
22150 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22151 if test -f conf$$.exe
; then
22152 # Don't use ln at all; we don't have any links
22157 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22162 rm -f conf$$ conf$$.exe conf$$.
file
22164 if mkdir
-p .
2>/dev
/null
; then
22167 test -d .
/-p && rmdir .
/-p
22171 as_executable_p
="test -f"
22173 # Sed expression to map a string onto a valid CPP name.
22174 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22176 # Sed expression to map a string onto a valid variable name.
22177 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22181 # We need space, tab and new line, in precisely that order.
22191 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22192 # report actual input values of CONFIG_FILES etc. instead of their
22193 # values after options handling. Logging --version etc. is OK.
22197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22198 ## Running $as_me. ##
22203 This file was extended by python $as_me 2.5, which was
22204 generated by GNU Autoconf 2.59. Invocation command line was
22206 CONFIG_FILES = $CONFIG_FILES
22207 CONFIG_HEADERS = $CONFIG_HEADERS
22208 CONFIG_LINKS = $CONFIG_LINKS
22209 CONFIG_COMMANDS = $CONFIG_COMMANDS
22213 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22217 # Files that config.status was made for.
22218 if test -n "$ac_config_files"; then
22219 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22222 if test -n "$ac_config_headers"; then
22223 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22226 if test -n "$ac_config_links"; then
22227 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22230 if test -n "$ac_config_commands"; then
22231 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22237 \`$as_me' instantiates files from templates according to the
22238 current configuration.
22240 Usage: $0 [OPTIONS] [FILE]...
22242 -h, --help print this help, then exit
22243 -V, --version print version number, then exit
22244 -q, --quiet do not print progress messages
22245 -d, --debug don't remove temporary files
22246 --recheck update $as_me by reconfiguring in the same conditions
22247 --file=FILE[:TEMPLATE]
22248 instantiate the configuration file FILE
22249 --header=FILE[:TEMPLATE]
22250 instantiate the configuration header FILE
22252 Configuration files:
22255 Configuration headers:
22258 Report bugs to <bug-autoconf@gnu.org>."
22261 cat >>$CONFIG_STATUS <<_ACEOF
22263 python config.status 2.5
22264 configured by $0, generated by GNU Autoconf 2.59,
22265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22267 Copyright (C) 2003 Free Software Foundation, Inc.
22268 This config.status script is free software; the Free Software Foundation
22269 gives unlimited permission to copy, distribute and modify it."
22274 cat >>$CONFIG_STATUS <<\_ACEOF
22275 # If no file are specified by the user, then we need to provide default
22276 # value. By we need to know if files were specified by the user.
22282 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22283 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22291 *) # This is not an option, so the user has probably given explicit
22294 ac_need_defaults
=false
;;
22298 # Handling of the options.
22300 cat >>$CONFIG_STATUS <<\_ACEOF
22301 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22303 --version |
--vers* |
-V )
22304 echo "$ac_cs_version"; exit 0 ;;
22306 # Conflict between --help and --header
22307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22308 Try \`$0 --help' for more information." >&5
22309 echo "$as_me: error: ambiguous option: $1
22310 Try \`$0 --help' for more information." >&2;}
22311 { (exit 1); exit 1; }; };;
22312 --help |
--hel |
-h )
22313 echo "$ac_cs_usage"; exit 0 ;;
22314 --debug |
--d* |
-d )
22316 --file |
--fil |
--fi |
--f )
22318 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22319 ac_need_defaults
=false
;;
22320 --header |
--heade |
--head |
--hea )
22322 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22323 ac_need_defaults
=false
;;
22324 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22325 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22328 # This is an error.
22329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22330 Try \`$0 --help' for more information." >&5
22331 echo "$as_me: error: unrecognized option: $1
22332 Try \`$0 --help' for more information." >&2;}
22333 { (exit 1); exit 1; }; } ;;
22335 *) ac_config_targets
="$ac_config_targets $1" ;;
22341 ac_configure_extra_args
=
22343 if $ac_cs_silent; then
22345 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22349 cat >>$CONFIG_STATUS <<_ACEOF
22350 if \$ac_cs_recheck; then
22351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22361 cat >>$CONFIG_STATUS <<\_ACEOF
22362 for ac_config_target
in $ac_config_targets
22364 case "$ac_config_target" in
22365 # Handling of arguments.
22366 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22367 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22368 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22369 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22370 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22371 { (exit 1); exit 1; }; };;
22375 # If the user did not use the arguments to specify the items to instantiate,
22376 # then the envvar interface is used. Set only those that are not.
22377 # We use the long form for the default assignment because of an extremely
22378 # bizarre bug on SunOS 4.1.3.
22379 if $ac_need_defaults; then
22380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22381 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22384 # Have a temporary directory for convenience. Make it in the build tree
22385 # simply because there is no reason to put it here, and in addition,
22386 # creating and moving files from /tmp can sometimes cause problems.
22387 # Create a temporary directory, and hook for its removal unless debugging.
22390 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22391 trap '{ (exit 1); exit 1; }' 1 2 13 15
22394 # Create a (secure) tmp directory for tmp files.
22397 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22398 test -n "$tmp" && test -d "$tmp"
22401 tmp
=.
/confstat$$
-$RANDOM
22402 (umask 077 && mkdir
$tmp)
22405 echo "$me: cannot create a temporary directory in ." >&2
22406 { (exit 1); exit 1; }
22411 cat >>$CONFIG_STATUS <<_ACEOF
22414 # CONFIG_FILES section.
22417 # No need to generate the scripts if there are no CONFIG_FILES.
22418 # This happens for instance when ./config.status config.h
22419 if test -n "\$CONFIG_FILES"; then
22420 # Protect against being on the right side of a sed subst in config.status.
22421 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22422 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22423 s,@SHELL@,$SHELL,;t t
22424 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22425 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22426 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22427 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22428 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22429 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22430 s,@exec_prefix@,$exec_prefix,;t t
22431 s,@prefix@,$prefix,;t t
22432 s,@program_transform_name@,$program_transform_name,;t t
22433 s,@bindir@,$bindir,;t t
22434 s,@sbindir@,$sbindir,;t t
22435 s,@libexecdir@,$libexecdir,;t t
22436 s,@datadir@,$datadir,;t t
22437 s,@sysconfdir@,$sysconfdir,;t t
22438 s,@sharedstatedir@,$sharedstatedir,;t t
22439 s,@localstatedir@,$localstatedir,;t t
22440 s,@libdir@,$libdir,;t t
22441 s,@includedir@,$includedir,;t t
22442 s,@oldincludedir@,$oldincludedir,;t t
22443 s,@infodir@,$infodir,;t t
22444 s,@mandir@,$mandir,;t t
22445 s,@build_alias@,$build_alias,;t t
22446 s,@host_alias@,$host_alias,;t t
22447 s,@target_alias@,$target_alias,;t t
22448 s,@DEFS@,$DEFS,;t t
22449 s,@ECHO_C@,$ECHO_C,;t t
22450 s,@ECHO_N@,$ECHO_N,;t t
22451 s,@ECHO_T@,$ECHO_T,;t t
22452 s,@LIBS@,$LIBS,;t t
22453 s,@VERSION@,$VERSION,;t t
22454 s,@SOVERSION@,$SOVERSION,;t t
22455 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22456 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22457 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22458 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22459 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22460 s,@MACHDEP@,$MACHDEP,;t t
22461 s,@SGI_ABI@,$SGI_ABI,;t t
22462 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22463 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22464 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22466 s,@MAINOBJ@,$MAINOBJ,;t t
22467 s,@EXEEXT@,$EXEEXT,;t t
22469 s,@CFLAGS@,$CFLAGS,;t t
22470 s,@LDFLAGS@,$LDFLAGS,;t t
22471 s,@CPPFLAGS@,$CPPFLAGS,;t t
22472 s,@ac_ct_CC@,$ac_ct_CC,;t t
22473 s,@OBJEXT@,$OBJEXT,;t t
22475 s,@EGREP@,$EGREP,;t t
22476 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22477 s,@LIBRARY@,$LIBRARY,;t t
22478 s,@LDLIBRARY@,$LDLIBRARY,;t t
22479 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22480 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22481 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22482 s,@INSTSONAME@,$INSTSONAME,;t t
22483 s,@RUNSHARED@,$RUNSHARED,;t t
22484 s,@LINKCC@,$LINKCC,;t t
22485 s,@RANLIB@,$RANLIB,;t t
22486 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22488 s,@SVNVERSION@,$SVNVERSION,;t t
22489 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22490 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22491 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22494 s,@BASECFLAGS@,$BASECFLAGS,;t t
22495 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22496 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22498 s,@LDSHARED@,$LDSHARED,;t t
22499 s,@BLDSHARED@,$BLDSHARED,;t t
22500 s,@CCSHARED@,$CCSHARED,;t t
22501 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22502 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22503 s,@SHLIBS@,$SHLIBS,;t t
22504 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22505 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22506 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22507 s,@LDLAST@,$LDLAST,;t t
22508 s,@THREADOBJ@,$THREADOBJ,;t t
22509 s,@DLINCLDIR@,$DLINCLDIR,;t t
22510 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22511 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22512 s,@TRUE@,$TRUE,;t t
22513 s,@LIBOBJS@,$LIBOBJS,;t t
22514 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22515 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22516 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22517 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22518 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22519 s,@LIBM@,$LIBM,;t t
22520 s,@LIBC@,$LIBC,;t t
22521 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22522 s,@THREADHEADERS@,$THREADHEADERS,;t t
22523 s,@SRCDIRS@,$SRCDIRS,;t t
22524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22529 cat >>$CONFIG_STATUS <<\_ACEOF
22530 # Split the substitutions into bite-sized pieces for seds with
22531 # small command number limits, like on Digital OSF/1 and HP-UX.
22532 ac_max_sed_lines
=48
22533 ac_sed_frag
=1 # Number of current file.
22534 ac_beg
=1 # First line for current file.
22535 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22538 while $ac_more_lines; do
22539 if test $ac_beg -gt 1; then
22540 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22542 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22544 if test ! -s $tmp/subs.frag
; then
22545 ac_more_lines
=false
22547 # The purpose of the label and of the branching condition is to
22548 # speed up the sed processing (if there are no `@' at all, there
22549 # is no need to browse any of the substitutions).
22550 # These are the two extra sed commands mentioned above.
22552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22553 if test -z "$ac_sed_cmds"; then
22554 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22556 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22558 ac_sed_frag
=`expr $ac_sed_frag + 1`
22560 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22563 if test -z "$ac_sed_cmds"; then
22566 fi # test -n "$CONFIG_FILES"
22569 cat >>$CONFIG_STATUS <<\_ACEOF
22570 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22573 - |
*:- |
*:-:* ) # input from stdin
22575 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22576 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22577 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22578 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22579 * ) ac_file_in
=$ac_file.
in ;;
22582 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22583 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585 X"$ac_file" : 'X\(//\)[^/]' \| \
22586 X"$ac_file" : 'X\(//\)$' \| \
22587 X"$ac_file" : 'X\(/\)' \| \
22588 . : '\(.\)' 2>/dev/null ||
22590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22592 /^X\(\/\/\)$/{ s//\1/; q; }
22593 /^X\(\/\).*/{ s//\1/; q; }
22595 { if $as_mkdir_p; then
22600 while test ! -d "$as_dir"; do
22601 as_dirs
="$as_dir $as_dirs"
22602 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22604 X"$as_dir" : 'X\(//\)[^/]' \| \
22605 X"$as_dir" : 'X\(//\)$' \| \
22606 X"$as_dir" : 'X\(/\)' \| \
22607 . : '\(.\)' 2>/dev/null ||
22609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22611 /^X\(\/\/\)$/{ s//\1/; q; }
22612 /^X\(\/\).*/{ s//\1/; q; }
22615 test ! -n "$as_dirs" || mkdir
$as_dirs
22616 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22618 { (exit 1); exit 1; }; }; }
22622 if test "$ac_dir" != .
; then
22623 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22624 # A "../" for each directory in $ac_dir_suffix.
22625 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22627 ac_dir_suffix
= ac_top_builddir
=
22631 .
) # No --srcdir option. We are building in place.
22633 if test -z "$ac_top_builddir"; then
22636 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22638 [\\/]* | ?
:[\\/]* ) # Absolute path.
22639 ac_srcdir
=$srcdir$ac_dir_suffix;
22640 ac_top_srcdir
=$srcdir ;;
22641 *) # Relative path.
22642 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22643 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22646 # Do not use `cd foo && pwd` to compute absolute paths, because
22647 # the directories may not exist.
22649 .
) ac_abs_builddir
="$ac_dir";;
22652 .
) ac_abs_builddir
=`pwd`;;
22653 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22654 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22657 case $ac_abs_builddir in
22658 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22660 case ${ac_top_builddir}.
in
22661 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22662 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22663 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22666 case $ac_abs_builddir in
22667 .
) ac_abs_srcdir
=$ac_srcdir;;
22670 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22671 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22672 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22675 case $ac_abs_builddir in
22676 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22678 case $ac_top_srcdir in
22679 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22680 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22681 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22687 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22688 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22691 if test x
"$ac_file" != x-
; then
22692 { echo "$as_me:$LINENO: creating $ac_file" >&5
22693 echo "$as_me: creating $ac_file" >&6;}
22696 # Let's still pretend it is `configure' which instantiates (i.e., don't
22697 # use $as_me), people would be surprised to read:
22698 # /* config.h. Generated by config.status. */
22699 if test x
"$ac_file" = x-
; then
22702 configure_input
="$ac_file. "
22704 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22705 sed 's,.*/,,'` by configure."
22707 # First look for the input files in the build tree, otherwise in the
22709 ac_file_inputs
=`IFS=:
22710 for f in $ac_file_in; do
22712 -) echo $tmp/stdin ;;
22714 # Absolute (can't be DOS-style, as IFS=:)
22715 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22716 echo "$as_me: error: cannot find input file: $f" >&2;}
22717 { (exit 1); exit 1; }; }
22720 if test -f "$f"; then
22723 elif test -f "$srcdir/$f"; then
22728 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22729 echo "$as_me: error: cannot find input file: $f" >&2;}
22730 { (exit 1); exit 1; }; }
22733 done` ||
{ (exit 1); exit 1; }
22735 cat >>$CONFIG_STATUS <<_ACEOF
22739 cat >>$CONFIG_STATUS <<\_ACEOF
22741 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22742 s
,@configure_input@
,$configure_input,;t t
22743 s
,@srcdir@
,$ac_srcdir,;t t
22744 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22745 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22746 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22747 s
,@builddir@
,$ac_builddir,;t t
22748 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22749 s
,@top_builddir@
,$ac_top_builddir,;t t
22750 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22751 s
,@INSTALL@
,$ac_INSTALL,;t t
22752 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22754 if test x"$ac_file" != x-; then
22755 mv $tmp/out $ac_file
22763 cat >>$CONFIG_STATUS <<\_ACEOF
22766 # CONFIG_HEADER section.
22769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22772 # ac_d sets the value in "#define NAME VALUE" lines.
22773 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22774 ac_dB
='[ ].*$,\1#\2'
22777 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22778 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22779 ac_uB
='$,\1#\2define\3'
22783 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22786 - |
*:- |
*:-:* ) # input from stdin
22788 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22789 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22790 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22791 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22792 * ) ac_file_in
=$ac_file.
in ;;
22795 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22796 echo "$as_me: creating $ac_file" >&6;}
22798 # First look for the input files in the build tree, otherwise in the
22800 ac_file_inputs
=`IFS=:
22801 for f in $ac_file_in; do
22803 -) echo $tmp/stdin ;;
22805 # Absolute (can't be DOS-style, as IFS=:)
22806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22807 echo "$as_me: error: cannot find input file: $f" >&2;}
22808 { (exit 1); exit 1; }; }
22809 # Do quote $f, to prevent DOS paths from being IFS'd.
22812 if test -f "$f"; then
22815 elif test -f "$srcdir/$f"; then
22820 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22821 echo "$as_me: error: cannot find input file: $f" >&2;}
22822 { (exit 1); exit 1; }; }
22825 done` ||
{ (exit 1); exit 1; }
22826 # Remove the trailing spaces.
22827 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22831 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22832 # `conftest.undefs', that substitutes the proper values into
22833 # config.h.in to produce config.h. The first handles `#define'
22834 # templates, and the second `#undef' templates.
22835 # And first: Protect against being on the right side of a sed subst in
22836 # config.status. Protect against being in an unquoted here document
22837 # in config.status.
22838 rm -f conftest.defines conftest.undefs
22839 # Using a here document instead of a string reduces the quoting nightmare.
22840 # Putting comments in sed scripts is not portable.
22842 # `end' is used to avoid that the second main sed command (meant for
22843 # 0-ary CPP macros) applies to n-ary macro definitions.
22844 # See the Autoconf documentation for `clear'.
22845 cat >confdef2sed.
sed <<\_ACEOF
22850 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22852 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22855 # If some macros were called several times there might be several times
22856 # the same #defines, which is useless. Nevertheless, we may not want to
22857 # sort them, since we want the *last* AC-DEFINE to be honored.
22858 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22859 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22860 rm -f confdef2sed.sed
22862 # This sed command replaces #undef with comments. This is necessary, for
22863 # example, in the case of _POSIX_SOURCE, which is predefined and required
22864 # on some systems where configure will not decide to define it.
22865 cat >>conftest.undefs <<\_ACEOF
22866 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22869 # Break up conftest.defines because some shells have a limit on the size
22870 # of here documents, and old seds have small limits too (100 cmds).
22871 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22872 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22873 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22874 echo ' :' >>$CONFIG_STATUS
22875 rm -f conftest.tail
22876 while grep . conftest.defines >/dev/null
22878 # Write a limited-size here document to $tmp/defines.sed.
22879 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22880 # Speed up: don't consider the non `#define' lines.
22881 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22882 # Work around the forget-to-reset-the-flag bug.
22883 echo 't clr' >>$CONFIG_STATUS
22884 echo ': clr' >>$CONFIG_STATUS
22885 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22887 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22889 mv $tmp/out $tmp/in
22891 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22892 rm -f conftest.defines
22893 mv conftest.
tail conftest.defines
22895 rm -f conftest.defines
22896 echo ' fi # grep' >>$CONFIG_STATUS
22897 echo >>$CONFIG_STATUS
22899 # Break up conftest.undefs because some shells have a limit on the size
22900 # of here documents, and old seds have small limits too (100 cmds).
22901 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22902 rm -f conftest.
tail
22903 while grep . conftest.undefs
>/dev
/null
22905 # Write a limited-size here document to $tmp/undefs.sed.
22906 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22907 # Speed up: don't consider the non
`#undef'
22908 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22909 # Work around the forget-to-reset-the-flag bug.
22910 echo 't clr' >>$CONFIG_STATUS
22911 echo ': clr' >>$CONFIG_STATUS
22912 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22914 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22916 mv $tmp/out $tmp/in
22918 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22919 rm -f conftest.undefs
22920 mv conftest.tail conftest.undefs
22922 rm -f conftest.undefs
22924 cat >>$CONFIG_STATUS <<\_ACEOF
22925 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22926 # use $as_me), people would be surprised to read:
22927 # /* config.h. Generated by config.status. */
22928 if test x
"$ac_file" = x-
; then
22929 echo "/* Generated by configure. */" >$tmp/config.h
22931 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22933 cat $tmp/in >>$tmp/config.h
22935 if test x
"$ac_file" != x-
; then
22936 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22937 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22938 echo "$as_me: $ac_file is unchanged" >&6;}
22940 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22942 X"$ac_file" : 'X\(//\)[^/]' \| \
22943 X"$ac_file" : 'X\(//\)$' \| \
22944 X"$ac_file" : 'X\(/\)' \| \
22945 . : '\(.\)' 2>/dev/null ||
22947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22949 /^X\(\/\/\)$/{ s//\1/; q; }
22950 /^X\(\/\).*/{ s//\1/; q; }
22952 { if $as_mkdir_p; then
22957 while test ! -d "$as_dir"; do
22958 as_dirs
="$as_dir $as_dirs"
22959 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22961 X"$as_dir" : 'X\(//\)[^/]' \| \
22962 X"$as_dir" : 'X\(//\)$' \| \
22963 X"$as_dir" : 'X\(/\)' \| \
22964 . : '\(.\)' 2>/dev/null ||
22966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22968 /^X\(\/\/\)$/{ s//\1/; q; }
22969 /^X\(\/\).*/{ s//\1/; q; }
22972 test ! -n "$as_dirs" || mkdir
$as_dirs
22973 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22974 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22975 { (exit 1); exit 1; }; }; }
22978 mv $tmp/config.h
$ac_file
22982 rm -f $tmp/config.h
22987 cat >>$CONFIG_STATUS <<\_ACEOF
22989 { (exit 0); exit 0; }
22991 chmod +x
$CONFIG_STATUS
22992 ac_clean_files
=$ac_clean_files_save
22995 # configure is writing to config.log, and then calls config.status.
22996 # config.status does its own redirection, appending to config.log.
22997 # Unfortunately, on DOS this fails, as config.log is still kept open
22998 # by configure, so config.status won't be able to write to it; its
22999 # output is simply discarded. So we exec the FD to /dev/null,
23000 # effectively closing config.log, so it can be properly (re)opened and
23001 # appended to by config.status. When coming back to configure, we
23002 # need to make the FD available again.
23003 if test "$no_create" != yes; then
23005 ac_config_status_args
=
23006 test "$silent" = yes &&
23007 ac_config_status_args
="$ac_config_status_args --quiet"
23009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23012 # would make configure fail if this is the last instruction.
23013 $ac_cs_success ||
{ (exit 1); exit 1; }
23017 echo "creating Setup"
23018 if test ! -f Modules
/Setup
23020 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23023 echo "creating Setup.local"
23024 if test ! -f Modules
/Setup.
local
23026 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23029 echo "creating Makefile"
23030 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23031 -s Modules Modules
/Setup.config \
23032 Modules
/Setup.
local Modules
/Setup
23033 mv config.c Modules