Fix a typo and be more specific
[python.git] / configure
blob92e6e4807d91874f55ccdaa2d8cc922839cdf058
1 #! /bin/sh
2 # From configure.in Revision: 68312 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 RANLIB
700 SVNVERSION
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
706 BASECFLAGS
707 UNIVERSAL_ARCH_FLAGS
708 OTHER_LIBTOOL_OPT
709 LIBTOOL_CRUFT
711 LDSHARED
712 BLDSHARED
713 CCSHARED
714 LINKFORSHARED
715 CFLAGSFORSHARED
716 SHLIBS
717 USE_SIGNAL_MODULE
718 SIGNAL_OBJS
719 USE_THREAD_MODULE
720 LDLAST
721 THREADOBJ
722 DLINCLDIR
723 DYNLOADFILE
724 MACHDEP_OBJS
725 TRUE
726 LIBOBJS
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
730 HAVE_GETHOSTBYNAME_R
731 HAVE_GETHOSTBYNAME
732 LIBM
733 LIBC
734 UNICODE_OBJS
735 THREADHEADERS
736 SRCDIRS
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
796 ac_prev=
797 ac_dashdash=
798 for ac_option
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
816 ac_dashdash=yes ;;
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 bindir=$ac_optarg ;;
823 -build | --build | --buil | --bui | --bu)
824 ac_prev=build_alias ;;
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826 build_alias=$ac_optarg ;;
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833 cache_file=$ac_optarg ;;
835 --config-cache | -C)
836 cache_file=config.cache ;;
838 -datadir | --datadir | --datadi | --datad)
839 ac_prev=datadir ;;
840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
841 datadir=$ac_optarg ;;
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
850 -disable-* | --disable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
869 -enable-* | --enable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1066 -with-* | --with-*)
1067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
1075 -without-* | --without-*)
1076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 esac
1125 done
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val=\$$ac_var
1140 case $ac_val in
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143 esac
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1146 done
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1151 build=$build_alias
1152 host=$host_alias
1153 target=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1166 ac_tool_prefix=
1167 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169 test "$silent" = yes && exec 6>/dev/null
1172 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di=`ls -di .` &&
1174 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 echo X"$0" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1200 /^X\(\/\/\)$/{
1201 s//\1/
1204 /^X\(\/\).*/{
1205 s//\1/
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1213 else
1214 ac_srcdir_defaulted=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 ac_abs_confdir=`(
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1305 cat <<\_ACEOF
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive ) echo "Configuration of python 2.7:";;
1312 esac
1313 cat <<\_ACEOF
1315 Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-universalsdk[=SDKDIR]
1319 Build against Mac OS X 10.4u SDK (ppc/i386)
1320 --enable-framework[=INSTALLDIR]
1321 Build (MacOSX|Darwin) framework
1322 --enable-shared disable/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS]
1328 use big digits for Python longs [BITS=30]
1329 --enable-unicode[=ucs[24]]
1330 Enable Unicode strings (default is yes)
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-universal-archs=ARCH
1336 select architectures for universal build ("32-bit",
1337 "64-bit" or "all")
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with --enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler>
1343 compile main() and link python executable with C++
1344 compiler
1345 --with-suffix=.exe set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-signal-module disable/enable signal module
1350 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1351 --with(out)-threads[=DIRECTORY]
1352 disable/enable thread support
1353 --with(out)-thread[=DIRECTORY]
1354 deprecated; use --with(out)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out)-doc-strings disable/enable documentation strings
1357 --with(out)-tsc enable/disable timestamp counter profile
1358 --with(out)-pymalloc disable/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <http://www.python.org/python-bugs>.
1378 _ACEOF
1379 ac_status=$?
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1386 ac_builddir=.
1388 case "$ac_dir" in
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 esac ;;
1398 esac
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1404 case $srcdir in
1405 .) # We are building in place.
1406 ac_srcdir=.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1413 *) # Relative name.
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 esac
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1428 else
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 fi || ac_status=$?
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1432 done
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1437 cat <<\_ACEOF
1438 python configure 2.7
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1445 _ACEOF
1446 exit
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by python $as_me 2.7, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1455 $ $0 $@
1457 _ACEOF
1458 exec 5>>config.log
1460 cat <<_ASUNAME
1461 ## --------- ##
1462 ## Platform. ##
1463 ## --------- ##
1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1482 _ASUNAME
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1490 done
1491 IFS=$as_save_IFS
1493 } >&5
1495 cat >&5 <<_ACEOF
1498 ## ----------- ##
1499 ## Core tests. ##
1500 ## ----------- ##
1502 _ACEOF
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_configure_args=
1511 ac_configure_args0=
1512 ac_configure_args1=
1513 ac_must_keep_next=false
1514 for ac_pass in 1 2
1516 for ac_arg
1518 case $ac_arg in
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1522 continue ;;
1523 *\'*)
1524 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 esac
1526 case $ac_pass in
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1532 else
1533 case $ac_arg in
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 esac
1542 -* ) ac_must_keep_next=true ;;
1543 esac
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 esac
1548 done
1549 done
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1561 echo
1563 cat <<\_ASBOX
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1567 _ASBOX
1568 echo
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1572 eval ac_val=\$$ac_var
1573 case $ac_val in #(
1574 *${as_nl}*)
1575 case $ac_var in #(
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 esac
1579 case $ac_var in #(
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1582 esac ;;
1583 esac
1584 done
1585 (set) 2>&1 |
1586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1588 sed -n \
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 ;; #(
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1595 esac |
1596 sort
1598 echo
1600 cat <<\_ASBOX
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1604 _ASBOX
1605 echo
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1609 case $ac_val in
1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 esac
1612 echo "$ac_var='\''$ac_val'\''"
1613 done | sort
1614 echo
1616 if test -n "$ac_subst_files"; then
1617 cat <<\_ASBOX
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1621 _ASBOX
1622 echo
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1626 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac
1629 echo "$ac_var='\''$ac_val'\''"
1630 done | sort
1631 echo
1634 if test -s confdefs.h; then
1635 cat <<\_ASBOX
1636 ## ----------- ##
1637 ## confdefs.h. ##
1638 ## ----------- ##
1639 _ASBOX
1640 echo
1641 cat confdefs.h
1642 echo
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 done
1655 ac_signal=0
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 _ACEOF
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1693 else
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1697 shift
1698 for ac_site_file
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1704 . "$ac_site_file"
1706 done
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1714 case $cache_file in
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1717 esac
1719 else
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1722 >$cache_file
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers pyconfig.h"
1814 # We don't use PACKAGE_ variables, and they cause conflicts
1815 # with other autoconf-based packages that include Python.h
1816 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1817 rm confdefs.h
1818 mv confdefs.h.new confdefs.h
1821 VERSION=2.7
1824 SOVERSION=1.0
1826 # The later defininition of _XOPEN_SOURCE disables certain features
1827 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1829 cat >>confdefs.h <<\_ACEOF
1830 #define _GNU_SOURCE 1
1831 _ACEOF
1834 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1835 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1836 # them.
1838 cat >>confdefs.h <<\_ACEOF
1839 #define _NETBSD_SOURCE 1
1840 _ACEOF
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1845 # them.
1847 cat >>confdefs.h <<\_ACEOF
1848 #define __BSD_VISIBLE 1
1849 _ACEOF
1852 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1853 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define _BSD_TYPES 1
1857 _ACEOF
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1862 # them.
1864 cat >>confdefs.h <<\_ACEOF
1865 #define _DARWIN_C_SOURCE 1
1866 _ACEOF
1870 define_xopen_source=yes
1872 # Arguments passed to configure.
1874 CONFIG_ARGS="$ac_configure_args"
1876 # Check whether --enable-universalsdk was given.
1877 if test "${enable_universalsdk+set}" = set; then
1878 enableval=$enable_universalsdk;
1879 case $enableval in
1880 yes)
1881 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1883 esac
1884 case $enableval in
1886 UNIVERSALSDK=
1887 enable_universalsdk=
1890 UNIVERSALSDK=$enableval
1892 esac
1894 else
1896 UNIVERSALSDK=
1897 enable_universalsdk=
1903 ARCH_RUN_32BIT=
1906 UNIVERSAL_ARCHS="32-bit"
1907 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1908 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1910 # Check whether --with-universal-archs was given.
1911 if test "${with_universal_archs+set}" = set; then
1912 withval=$with_universal_archs;
1913 { echo "$as_me:$LINENO: result: $withval" >&5
1914 echo "${ECHO_T}$withval" >&6; }
1915 UNIVERSAL_ARCHS="$withval"
1917 else
1919 { echo "$as_me:$LINENO: result: 32-bit" >&5
1920 echo "${ECHO_T}32-bit" >&6; }
1928 # Check whether --with-framework-name was given.
1929 if test "${with_framework_name+set}" = set; then
1930 withval=$with_framework_name;
1931 PYTHONFRAMEWORK=${withval}
1932 PYTHONFRAMEWORKDIR=${withval}.framework
1933 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1935 else
1937 PYTHONFRAMEWORK=Python
1938 PYTHONFRAMEWORKDIR=Python.framework
1939 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1943 # Check whether --enable-framework was given.
1944 if test "${enable_framework+set}" = set; then
1945 enableval=$enable_framework;
1946 case $enableval in
1947 yes)
1948 enableval=/Library/Frameworks
1949 esac
1950 case $enableval in
1952 PYTHONFRAMEWORK=
1953 PYTHONFRAMEWORKDIR=no-framework
1954 PYTHONFRAMEWORKPREFIX=
1955 PYTHONFRAMEWORKINSTALLDIR=
1956 FRAMEWORKINSTALLFIRST=
1957 FRAMEWORKINSTALLLAST=
1958 FRAMEWORKALTINSTALLFIRST=
1959 FRAMEWORKALTINSTALLLAST=
1960 if test "x${prefix}" = "xNONE"; then
1961 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1962 else
1963 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1965 enable_framework=
1968 PYTHONFRAMEWORKPREFIX=$enableval
1969 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1970 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1971 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1972 if test "$UNIVERSAL_ARCHS" = "all"
1973 then
1974 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1975 else
1976 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1979 if test "x${prefix}" = "xNONE" ; then
1980 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1981 else
1982 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1984 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1986 # Add files for Mac specific code to the list of output
1987 # files:
1988 ac_config_files="$ac_config_files Mac/Makefile"
1990 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1992 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1994 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1996 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1998 esac
2000 else
2002 PYTHONFRAMEWORK=
2003 PYTHONFRAMEWORKDIR=no-framework
2004 PYTHONFRAMEWORKPREFIX=
2005 PYTHONFRAMEWORKINSTALLDIR=
2006 FRAMEWORKINSTALLFIRST=
2007 FRAMEWORKINSTALLLAST=
2008 FRAMEWORKALTINSTALLFIRST=
2009 FRAMEWORKALTINSTALLLAST=
2010 if test "x${prefix}" = "xNONE" ; then
2011 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2012 else
2013 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2015 enable_framework=
2017 if test "$UNIVERSAL_ARCHS" = "all"
2018 then
2019 FRAMEWORKINSTALLLAST=update4wayuniversal
2020 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2036 ##AC_ARG_WITH(dyld,
2037 ## AC_HELP_STRING(--with-dyld,
2038 ## Use (OpenStep|Rhapsody) dynamic linker))
2040 # Set name for machine-dependent library files
2042 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2043 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2044 if test -z "$MACHDEP"
2045 then
2046 ac_sys_system=`uname -s`
2047 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2048 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2049 ac_sys_release=`uname -v`
2050 else
2051 ac_sys_release=`uname -r`
2053 ac_md_system=`echo $ac_sys_system |
2054 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2055 ac_md_release=`echo $ac_sys_release |
2056 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2057 MACHDEP="$ac_md_system$ac_md_release"
2059 case $MACHDEP in
2060 cygwin*) MACHDEP="cygwin";;
2061 darwin*) MACHDEP="darwin";;
2062 atheos*) MACHDEP="atheos";;
2063 irix646) MACHDEP="irix6";;
2064 '') MACHDEP="unknown";;
2065 esac
2068 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2069 # disable features if it is defined, without any means to access these
2070 # features as extensions. For these systems, we skip the definition of
2071 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2072 # some feature, make sure there is no alternative way to access this
2073 # feature. Also, when using wildcards, make sure you have verified the
2074 # need for not defining _XOPEN_SOURCE on all systems matching the
2075 # wildcard, and that the wildcard does not include future systems
2076 # (which may remove their limitations).
2077 case $ac_sys_system/$ac_sys_release in
2078 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2079 # even though select is a POSIX function. Reported by J. Ribbens.
2080 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2081 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2082 define_xopen_source=no
2083 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2084 # also defined. This can be overridden by defining _BSD_SOURCE
2085 # As this has a different meaning on Linux, only define it on OpenBSD
2087 cat >>confdefs.h <<\_ACEOF
2088 #define _BSD_SOURCE 1
2089 _ACEOF
2092 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2093 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2094 # Marc Recht
2095 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2096 define_xopen_source=no;;
2097 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2098 # of union __?sigval. Reported by Stuart Bishop.
2099 SunOS/5.6)
2100 define_xopen_source=no;;
2101 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2102 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2103 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2104 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2105 define_xopen_source=no;;
2106 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2107 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2108 SCO_SV/3.2)
2109 define_xopen_source=no;;
2110 # On FreeBSD 4, the math functions C89 does not cover are never defined
2111 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2112 FreeBSD/4.*)
2113 define_xopen_source=no;;
2114 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2115 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2116 # identifies itself as Darwin/7.*
2117 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2118 # disables platform specific features beyond repair.
2119 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2120 # has no effect, don't bother defining them
2121 Darwin/[6789].*)
2122 define_xopen_source=no;;
2123 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2124 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2125 # or has another value. By not (re)defining it, the defaults come in place.
2126 AIX/4)
2127 define_xopen_source=no;;
2128 AIX/5)
2129 if test `uname -r` -eq 1; then
2130 define_xopen_source=no
2133 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2134 # defining NI_NUMERICHOST.
2135 QNX/6.3.2)
2136 define_xopen_source=no
2139 esac
2141 if test $define_xopen_source = yes
2142 then
2143 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2144 # defined precisely as g++ defines it
2145 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2146 # compiler
2147 case $ac_sys_system/$ac_sys_release in
2148 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2150 cat >>confdefs.h <<\_ACEOF
2151 #define _XOPEN_SOURCE 500
2152 _ACEOF
2157 cat >>confdefs.h <<\_ACEOF
2158 #define _XOPEN_SOURCE 600
2159 _ACEOF
2162 esac
2164 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2165 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2166 # several APIs are not declared. Since this is also needed in some
2167 # cases for HP-UX, we define it globally.
2168 # except for Solaris 10, where it must not be defined,
2169 # as it implies XPG4.2
2170 case $ac_sys_system/$ac_sys_release in
2171 SunOS/5.10)
2175 cat >>confdefs.h <<\_ACEOF
2176 #define _XOPEN_SOURCE_EXTENDED 1
2177 _ACEOF
2180 esac
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _POSIX_C_SOURCE 200112L
2185 _ACEOF
2191 # SGI compilers allow the specification of the both the ABI and the
2192 # ISA on the command line. Depending on the values of these switches,
2193 # different and often incompatable code will be generated.
2195 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2196 # thus supply support for various ABI/ISA combinations. The MACHDEP
2197 # variable is also adjusted.
2200 if test ! -z "$SGI_ABI"
2201 then
2202 CC="cc $SGI_ABI"
2203 LDFLAGS="$SGI_ABI $LDFLAGS"
2204 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2206 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2207 echo "${ECHO_T}$MACHDEP" >&6; }
2209 # And add extra plat-mac for darwin
2212 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2213 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2214 if test -z "$EXTRAPLATDIR"
2215 then
2216 case $MACHDEP in
2217 darwin)
2218 EXTRAPLATDIR="\$(PLATMACDIRS)"
2219 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2222 EXTRAPLATDIR=""
2223 EXTRAMACHDEPPATH=""
2225 esac
2227 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2228 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2230 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2231 # it may influence the way we can build extensions, so distutils
2232 # needs to check it
2235 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2236 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2238 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2239 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2240 ac_sys_machine=`uname -m`
2241 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2242 echo "${ECHO_T}$ac_sys_machine" >&6; }
2244 # checks for alternative programs
2246 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2247 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2248 # just to get things to compile and link. Users are free to override OPT
2249 # when running configure or make. The build should not break if they do.
2250 # BASECFLAGS should generally not be messed with, however.
2252 # XXX shouldn't some/most/all of this code be merged with the stuff later
2253 # on that fiddles with OPT and BASECFLAGS?
2254 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2255 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2257 # Check whether --with-gcc was given.
2258 if test "${with_gcc+set}" = set; then
2259 withval=$with_gcc;
2260 case $withval in
2261 no) CC=${CC:-cc}
2262 without_gcc=yes;;
2263 yes) CC=gcc
2264 without_gcc=no;;
2265 *) CC=$withval
2266 without_gcc=$withval;;
2267 esac
2268 else
2270 case $ac_sys_system in
2271 AIX*) CC=cc_r
2272 without_gcc=;;
2273 BeOS*)
2274 case $BE_HOST_CPU in
2275 ppc)
2276 CC=mwcc
2277 without_gcc=yes
2278 BASECFLAGS="$BASECFLAGS -export pragma"
2279 OPT="$OPT -O"
2280 LDFLAGS="$LDFLAGS -nodup"
2282 x86)
2283 CC=gcc
2284 without_gcc=no
2285 OPT="$OPT -O"
2288 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2289 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2290 { (exit 1); exit 1; }; }
2292 esac
2293 AR="\$(srcdir)/Modules/ar_beos"
2294 RANLIB=:
2296 Monterey*)
2297 RANLIB=:
2298 without_gcc=;;
2299 *) without_gcc=no;;
2300 esac
2303 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2304 echo "${ECHO_T}$without_gcc" >&6; }
2306 # If the user switches compilers, we can't believe the cache
2307 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2308 then
2309 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&5
2311 echo "$as_me: error: cached CC is different -- throw away $cache_file
2312 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2313 { (exit 1); exit 1; }; }
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2343 done
2344 done
2345 IFS=$as_save_IFS
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2360 if test -z "$ac_cv_prog_CC"; then
2361 ac_ct_CC=$CC
2362 # Extract the first word of "gcc", so it can be a program name with args.
2363 set dummy gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_CC="gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2383 done
2384 done
2385 IFS=$as_save_IFS
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2398 if test "x$ac_ct_CC" = x; then
2399 CC=""
2400 else
2401 case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2410 esac
2411 CC=$ac_ct_CC
2413 else
2414 CC="$ac_cv_prog_CC"
2417 if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_CC="${ac_tool_prefix}cc"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2440 done
2441 done
2442 IFS=$as_save_IFS
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448 { echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6; }
2450 else
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2458 if test -z "$CC"; then
2459 # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 ac_prog_rejected=no
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478 ac_prog_rejected=yes
2479 continue
2481 ac_cv_prog_CC="cc"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2485 done
2486 done
2487 IFS=$as_save_IFS
2489 if test $ac_prog_rejected = yes; then
2490 # We found a bogon in the path, so make sure we never use it.
2491 set dummy $ac_cv_prog_CC
2492 shift
2493 if test $# != 0; then
2494 # We chose a different compiler from the bogus one.
2495 # However, it has the same basename, so the bogon will be chosen
2496 # first if we set CC to just the basename; use the full file name.
2497 shift
2498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 for ac_prog in cl.exe
2518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2539 done
2540 done
2541 IFS=$as_save_IFS
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2549 else
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2555 test -n "$CC" && break
2556 done
2558 if test -z "$CC"; then
2559 ac_ct_CC=$CC
2560 for ac_prog in cl.exe
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2583 done
2584 done
2585 IFS=$as_save_IFS
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
2593 else
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2599 test -n "$ac_ct_CC" && break
2600 done
2602 if test "x$ac_ct_CC" = x; then
2603 CC=""
2604 else
2605 case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 CC=$ac_ct_CC
2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2628 # Provide some information about the compiler.
2629 echo "$as_me:$LINENO: checking for C compiler version" >&5
2630 ac_compiler=`set X $ac_compile; echo $2`
2631 { (ac_try="$ac_compiler --version >&5"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compiler --version >&5") 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }
2641 { (ac_try="$ac_compiler -v >&5"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compiler -v >&5") 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2652 case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compiler -V >&5") 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2670 main ()
2674 return 0;
2676 _ACEOF
2677 ac_clean_files_save=$ac_clean_files
2678 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2679 # Try to create an executable without -o first, disregard a.out.
2680 # It will help us diagnose broken compilers, and finding out an intuition
2681 # of exeext.
2682 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2683 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686 # List of possible output files, starting from the most likely.
2687 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2688 # only as a last resort. b.out is created by i960 compilers.
2689 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2691 # The IRIX 6 linker writes into existing files which may not be
2692 # executable, retaining their permissions. Remove them first so a
2693 # subsequent execution test works.
2694 ac_rmfiles=
2695 for ac_file in $ac_files
2697 case $ac_file in
2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2700 esac
2701 done
2702 rm -f $ac_rmfiles
2704 if { (ac_try="$ac_link_default"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_link_default") 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; then
2714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2718 # Autoconf.
2719 for ac_file in $ac_files ''
2721 test -f "$ac_file" || continue
2722 case $ac_file in
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2725 [ab].out )
2726 # We found the default executable, but exeext='' is most
2727 # certainly right.
2728 break;;
2729 *.* )
2730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2731 then :; else
2732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734 # We set ac_cv_exeext here because the later test for it is not
2735 # safe: cross compilers may not add the suffix if given an `-o'
2736 # argument, so we may need to know it at that point already.
2737 # Even if this section looks crufty: it has the advantage of
2738 # actually working.
2739 break;;
2741 break;;
2742 esac
2743 done
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2746 else
2747 ac_file=''
2750 { echo "$as_me:$LINENO: result: $ac_file" >&5
2751 echo "${ECHO_T}$ac_file" >&6; }
2752 if test -z "$ac_file"; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log' for more details." >&2;}
2760 { (exit 77); exit 77; }; }
2763 ac_exeext=$ac_cv_exeext
2765 # Check that the compiler produces executables we can run. If not, either
2766 # the compiler is broken, or we cross compile.
2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772 if { ac_try='./$ac_file'
2773 { (case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_try") 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 cross_compiling=no
2783 else
2784 if test "$cross_compiling" = maybe; then
2785 cross_compiling=yes
2786 else
2787 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2797 { echo "$as_me:$LINENO: result: yes" >&5
2798 echo "${ECHO_T}yes" >&6; }
2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801 ac_clean_files=$ac_clean_files_save
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2806 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2807 echo "${ECHO_T}$cross_compiling" >&6; }
2809 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2810 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2811 if { (ac_try="$ac_link"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2824 # `rm'.
2825 for ac_file in conftest.exe conftest conftest.*; do
2826 test -f "$ac_file" || continue
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830 break;;
2831 * ) break;;
2832 esac
2833 done
2834 else
2835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 rm -f conftest$ac_cv_exeext
2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2848 ac_exeext=$EXEEXT
2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851 if test "${ac_cv_objext+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2862 main ()
2866 return 0;
2868 _ACEOF
2869 rm -f conftest.o conftest.obj
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 for ac_file in conftest.o conftest.obj conftest.*; do
2881 test -f "$ac_file" || continue;
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2885 break;;
2886 esac
2887 done
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2904 ac_objext=$OBJEXT
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2918 main ()
2920 #ifndef __GNUC__
2921 choke me
2922 #endif
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.$ac_objext; then
2945 ac_compiler_gnu=yes
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 ac_compiler_gnu=no
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2957 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2959 GCC=`test $ac_compiler_gnu = yes && echo yes`
2960 ac_test_CFLAGS=${CFLAGS+set}
2961 ac_save_CFLAGS=$CFLAGS
2962 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_cc_g+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 ac_save_c_werror_flag=$ac_c_werror_flag
2968 ac_c_werror_flag=yes
2969 ac_cv_prog_cc_g=no
2970 CFLAGS="-g"
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2979 main ()
2983 return 0;
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3003 ac_cv_prog_cc_g=yes
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 CFLAGS=""
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3017 main ()
3021 return 0;
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 ac_c_werror_flag=$ac_save_c_werror_flag
3047 CFLAGS="-g"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3056 main ()
3060 return 0;
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3080 ac_cv_prog_cc_g=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100 CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102 if test "$GCC" = yes; then
3103 CFLAGS="-g -O2"
3104 else
3105 CFLAGS="-g"
3107 else
3108 if test "$GCC" = yes; then
3109 CFLAGS="-O2"
3110 else
3111 CFLAGS=
3114 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3115 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_c89+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_cv_prog_cc_c89=no
3120 ac_save_CC=$CC
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <stdarg.h>
3128 #include <stdio.h>
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3135 char **p;
3136 int i;
3138 return p[i];
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3142 char *s;
3143 va_list v;
3144 va_start (v,p);
3145 s = g (p, va_arg (v,int));
3146 va_end (v);
3147 return s;
3150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3151 function prototypes and stuff, but not '\xHH' hex character constants.
3152 These don't provoke an error unfortunately, instead are silently treated
3153 as 'x'. The following induces an error, until -std is added to get
3154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3155 array size at least. It's necessary to write '\x00'==0 to get something
3156 that's true only with -std. */
3157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3160 inside strings and character constants. */
3161 #define FOO(x) 'x'
3162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3164 int test (int i, double x);
3165 struct s1 {int (*f) (int a);};
3166 struct s2 {int (*f) (double a);};
3167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168 int argc;
3169 char **argv;
3171 main ()
3173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3175 return 0;
3177 _ACEOF
3178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181 CC="$ac_save_CC $ac_arg"
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3199 ac_cv_prog_cc_c89=$ac_arg
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext
3208 test "x$ac_cv_prog_cc_c89" != "xno" && break
3209 done
3210 rm -f conftest.$ac_ext
3211 CC=$ac_save_CC
3214 # AC_CACHE_VAL
3215 case "x$ac_cv_prog_cc_c89" in
3217 { echo "$as_me:$LINENO: result: none needed" >&5
3218 echo "${ECHO_T}none needed" >&6; } ;;
3219 xno)
3220 { echo "$as_me:$LINENO: result: unsupported" >&5
3221 echo "${ECHO_T}unsupported" >&6; } ;;
3223 CC="$CC $ac_cv_prog_cc_c89"
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3226 esac
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3239 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3241 # Check whether --with-cxx_main was given.
3242 if test "${with_cxx_main+set}" = set; then
3243 withval=$with_cxx_main;
3245 case $withval in
3246 no) with_cxx_main=no
3247 MAINCC='$(CC)';;
3248 yes) with_cxx_main=yes
3249 MAINCC='$(CXX)';;
3250 *) with_cxx_main=yes
3251 MAINCC=$withval
3252 if test -z "$CXX"
3253 then
3254 CXX=$withval
3255 fi;;
3256 esac
3257 else
3259 with_cxx_main=no
3260 MAINCC='$(CC)'
3264 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3265 echo "${ECHO_T}$with_cxx_main" >&6; }
3267 preset_cxx="$CXX"
3268 if test -z "$CXX"
3269 then
3270 case "$CC" in
3271 gcc) # Extract the first word of "g++", so it can be a program name with args.
3272 set dummy g++; ac_word=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_path_CXX+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 case $CXX in
3279 [\\/]* | ?:[\\/]*)
3280 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in notfound
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3298 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3300 esac
3302 CXX=$ac_cv_path_CXX
3303 if test -n "$CXX"; then
3304 { echo "$as_me:$LINENO: result: $CXX" >&5
3305 echo "${ECHO_T}$CXX" >&6; }
3306 else
3307 { echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6; }
3312 cc) # Extract the first word of "c++", so it can be a program name with args.
3313 set dummy c++; ac_word=$2
3314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3316 if test "${ac_cv_path_CXX+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 case $CXX in
3320 [\\/]* | ?:[\\/]*)
3321 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in notfound
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3337 IFS=$as_save_IFS
3339 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3341 esac
3343 CXX=$ac_cv_path_CXX
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3347 else
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3353 esac
3354 if test "$CXX" = "notfound"
3355 then
3356 CXX=""
3359 if test -z "$CXX"
3360 then
3361 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy $ac_prog; ac_word=$2
3365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_CXX+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if test -n "$CXX"; then
3371 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CXX="$ac_prog"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3386 IFS=$as_save_IFS
3390 CXX=$ac_cv_prog_CXX
3391 if test -n "$CXX"; then
3392 { echo "$as_me:$LINENO: result: $CXX" >&5
3393 echo "${ECHO_T}$CXX" >&6; }
3394 else
3395 { echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6; }
3400 test -n "$CXX" && break
3401 done
3402 test -n "$CXX" || CXX="notfound"
3404 if test "$CXX" = "notfound"
3405 then
3406 CXX=""
3409 if test "$preset_cxx" != "$CXX"
3410 then
3411 { echo "$as_me:$LINENO: WARNING:
3413 By default, distutils will build C++ extension modules with \"$CXX\".
3414 If this is not intended, then set CXX on the configure command line.
3415 " >&5
3416 echo "$as_me: WARNING:
3418 By default, distutils will build C++ extension modules with \"$CXX\".
3419 If this is not intended, then set CXX on the configure command line.
3420 " >&2;}
3424 # checks for UNIX variants that set C preprocessor variables
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3435 CPP=
3437 if test -z "$CPP"; then
3438 if test "${ac_cv_prog_CPP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 # Double quotes because CPP needs to be expanded
3442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3444 ac_preproc_ok=false
3445 for ac_c_preproc_warn_flag in '' yes
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 #ifdef __STDC__
3460 # include <limits.h>
3461 #else
3462 # include <assert.h>
3463 #endif
3464 Syntax error
3465 _ACEOF
3466 if { (ac_try="$ac_cpp conftest.$ac_ext"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null && {
3479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 }; then
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 # Broken: fails on valid input.
3488 continue
3491 rm -f conftest.err conftest.$ac_ext
3493 # OK, works on sane cases. Now check whether nonexistent headers
3494 # can be detected and how.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h. */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <ac_nonexistent.h>
3502 _ACEOF
3503 if { (ac_try="$ac_cpp conftest.$ac_ext"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev/null && {
3516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 }; then
3519 # Broken: success on invalid input.
3520 continue
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 # Passes both tests.
3526 ac_preproc_ok=:
3527 break
3530 rm -f conftest.err conftest.$ac_ext
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3536 break
3539 done
3540 ac_cv_prog_CPP=$CPP
3543 CPP=$ac_cv_prog_CPP
3544 else
3545 ac_cv_prog_CPP=$CPP
3547 { echo "$as_me:$LINENO: result: $CPP" >&5
3548 echo "${ECHO_T}$CPP" >&6; }
3549 ac_preproc_ok=false
3550 for ac_c_preproc_warn_flag in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #ifdef __STDC__
3565 # include <limits.h>
3566 #else
3567 # include <assert.h>
3568 #endif
3569 Syntax error
3570 _ACEOF
3571 if { (ac_try="$ac_cpp conftest.$ac_ext"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null && {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 }; then
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3593 continue
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3607 _ACEOF
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null && {
3621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 }; then
3624 # Broken: success on invalid input.
3625 continue
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 # Passes both tests.
3631 ac_preproc_ok=:
3632 break
3635 rm -f conftest.err conftest.$ac_ext
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3642 else
3643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 # Extract the first word of "grep ggrep" to use in msg output
3663 if test -z "$GREP"; then
3664 set dummy grep ggrep; ac_prog_name=$2
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 ac_path_GREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in grep ggrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3679 # Check for GNU ac_path_GREP and select it if it is found.
3680 # Check for GNU $ac_path_GREP
3681 case `"$ac_path_GREP" --version 2>&1` in
3682 *GNU*)
3683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685 ac_count=0
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 while :
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'GREP' >> "conftest.nl"
3693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_GREP="$ac_path_GREP"
3699 ac_path_GREP_max=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3708 $ac_path_GREP_found && break 3
3709 done
3710 done
3712 done
3713 IFS=$as_save_IFS
3718 GREP="$ac_cv_path_GREP"
3719 if test -z "$GREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3725 else
3726 ac_cv_path_GREP=$GREP
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3733 GREP="$ac_cv_path_GREP"
3736 { echo "$as_me:$LINENO: checking for egrep" >&5
3737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3742 then ac_cv_path_EGREP="$GREP -E"
3743 else
3744 # Extract the first word of "egrep" to use in msg output
3745 if test -z "$EGREP"; then
3746 set dummy egrep; ac_prog_name=$2
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 ac_path_EGREP_found=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in egrep; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3760 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3761 # Check for GNU ac_path_EGREP and select it if it is found.
3762 # Check for GNU $ac_path_EGREP
3763 case `"$ac_path_EGREP" --version 2>&1` in
3764 *GNU*)
3765 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767 ac_count=0
3768 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3769 while :
3771 cat "conftest.in" "conftest.in" >"conftest.tmp"
3772 mv "conftest.tmp" "conftest.in"
3773 cp "conftest.in" "conftest.nl"
3774 echo 'EGREP' >> "conftest.nl"
3775 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3777 ac_count=`expr $ac_count + 1`
3778 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3779 # Best one so far, save it but keep looking for a better one
3780 ac_cv_path_EGREP="$ac_path_EGREP"
3781 ac_path_EGREP_max=$ac_count
3783 # 10*(2^10) chars as input seems more than enough
3784 test $ac_count -gt 10 && break
3785 done
3786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787 esac
3790 $ac_path_EGREP_found && break 3
3791 done
3792 done
3794 done
3795 IFS=$as_save_IFS
3800 EGREP="$ac_cv_path_EGREP"
3801 if test -z "$EGREP"; then
3802 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3803 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3804 { (exit 1); exit 1; }; }
3807 else
3808 ac_cv_path_EGREP=$EGREP
3814 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3815 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3816 EGREP="$ac_cv_path_EGREP"
3820 { echo "$as_me:$LINENO: checking for AIX" >&5
3821 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 #ifdef _AIX
3830 #endif
3832 _ACEOF
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "yes" >/dev/null 2>&1; then
3835 { echo "$as_me:$LINENO: result: yes" >&5
3836 echo "${ECHO_T}yes" >&6; }
3837 cat >>confdefs.h <<\_ACEOF
3838 #define _ALL_SOURCE 1
3839 _ACEOF
3841 else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3845 rm -f conftest*
3849 # Check for unsupported systems
3850 case $ac_sys_system/$ac_sys_release in
3851 atheos*|Linux*/1*)
3852 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3853 echo See README for details.
3854 exit 1;;
3855 esac
3858 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3859 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3861 # Check whether --with-suffix was given.
3862 if test "${with_suffix+set}" = set; then
3863 withval=$with_suffix;
3864 case $withval in
3865 no) EXEEXT=;;
3866 yes) EXEEXT=.exe;;
3867 *) EXEEXT=$withval;;
3868 esac
3871 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3872 echo "${ECHO_T}$EXEEXT" >&6; }
3874 # Test whether we're running on a non-case-sensitive system, in which
3875 # case we give a warning if no ext is given
3877 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3878 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3879 if test ! -d CaseSensitiveTestDir; then
3880 mkdir CaseSensitiveTestDir
3883 if test -d casesensitivetestdir
3884 then
3885 { echo "$as_me:$LINENO: result: yes" >&5
3886 echo "${ECHO_T}yes" >&6; }
3887 BUILDEXEEXT=.exe
3888 else
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3891 BUILDEXEEXT=$EXEEXT
3893 rmdir CaseSensitiveTestDir
3895 case $MACHDEP in
3896 bsdos*)
3897 case $CC in
3898 gcc) CC="$CC -D_HAVE_BSDI";;
3899 esac;;
3900 esac
3902 case $ac_sys_system in
3903 hp*|HP*)
3904 case $CC in
3905 cc|*/cc) CC="$CC -Ae";;
3906 esac;;
3907 Monterey*)
3908 case $CC in
3909 cc) CC="$CC -Wl,-Bexport";;
3910 esac;;
3911 SunOS*)
3912 # Some functions have a prototype only with that define, e.g. confstr
3914 cat >>confdefs.h <<\_ACEOF
3915 #define __EXTENSIONS__ 1
3916 _ACEOF
3919 esac
3923 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3924 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3925 if test -z "$LIBRARY"
3926 then
3927 LIBRARY='libpython$(VERSION).a'
3929 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3930 echo "${ECHO_T}$LIBRARY" >&6; }
3932 # LDLIBRARY is the name of the library to link against (as opposed to the
3933 # name of the library into which to insert object files). BLDLIBRARY is also
3934 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3935 # is blank as the main program is not linked directly against LDLIBRARY.
3936 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3937 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3938 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3939 # DLLLIBRARY is the shared (i.e., DLL) library.
3941 # RUNSHARED is used to run shared python without installed libraries
3943 # INSTSONAME is the name of the shared library that will be use to install
3944 # on the system - some systems like version suffix, others don't
3951 LDLIBRARY="$LIBRARY"
3952 BLDLIBRARY='$(LDLIBRARY)'
3953 INSTSONAME='$(LDLIBRARY)'
3954 DLLLIBRARY=''
3955 LDLIBRARYDIR=''
3956 RUNSHARED=''
3958 # LINKCC is the command that links the python executable -- default is $(CC).
3959 # If CXX is set, and if it is needed to link a main function that was
3960 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3961 # python might then depend on the C++ runtime
3962 # This is altered for AIX in order to build the export list before
3963 # linking.
3965 { echo "$as_me:$LINENO: checking LINKCC" >&5
3966 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3967 if test -z "$LINKCC"
3968 then
3969 LINKCC='$(PURIFY) $(MAINCC)'
3970 case $ac_sys_system in
3971 AIX*)
3972 exp_extra="\"\""
3973 if test $ac_sys_release -ge 5 -o \
3974 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3975 exp_extra="."
3977 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3978 Monterey64*)
3979 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3980 QNX*)
3981 # qcc must be used because the other compilers do not
3982 # support -N.
3983 LINKCC=qcc;;
3984 esac
3986 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3987 echo "${ECHO_T}$LINKCC" >&6; }
3989 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3990 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3991 # Check whether --enable-shared was given.
3992 if test "${enable_shared+set}" = set; then
3993 enableval=$enable_shared;
3997 if test -z "$enable_shared"
3998 then
3999 case $ac_sys_system in
4000 CYGWIN* | atheos*)
4001 enable_shared="yes";;
4003 enable_shared="no";;
4004 esac
4006 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4007 echo "${ECHO_T}$enable_shared" >&6; }
4009 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4010 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4011 # Check whether --enable-profiling was given.
4012 if test "${enable_profiling+set}" = set; then
4013 enableval=$enable_profiling; ac_save_cc="$CC"
4014 CC="$CC -pg"
4015 if test "$cross_compiling" = yes; then
4016 ac_enable_profiling="no"
4017 else
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 int main() { return 0; }
4025 _ACEOF
4026 rm -f conftest$ac_exeext
4027 if { (ac_try="$ac_link"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_link") 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_enable_profiling="yes"
4047 else
4048 echo "$as_me: program exited with status $ac_status" >&5
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 ( exit $ac_status )
4053 ac_enable_profiling="no"
4055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4059 CC="$ac_save_cc"
4062 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4063 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4065 case "$ac_enable_profiling" in
4066 "yes")
4067 BASECFLAGS="-pg $BASECFLAGS"
4068 LDFLAGS="-pg $LDFLAGS"
4070 esac
4072 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4073 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4075 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4076 # library that we build, but we do not want to link against it (we
4077 # will find it with a -framework option). For this reason there is an
4078 # extra variable BLDLIBRARY against which Python and the extension
4079 # modules are linked, BLDLIBRARY. This is normally the same as
4080 # LDLIBRARY, but empty for MacOSX framework builds.
4081 if test "$enable_framework"
4082 then
4083 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4084 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4085 BLDLIBRARY=''
4086 else
4087 BLDLIBRARY='$(LDLIBRARY)'
4090 # Other platforms follow
4091 if test $enable_shared = "yes"; then
4093 cat >>confdefs.h <<\_ACEOF
4094 #define Py_ENABLE_SHARED 1
4095 _ACEOF
4097 case $ac_sys_system in
4098 BeOS*)
4099 LDLIBRARY='libpython$(VERSION).so'
4101 CYGWIN*)
4102 LDLIBRARY='libpython$(VERSION).dll.a'
4103 DLLLIBRARY='libpython$(VERSION).dll'
4105 SunOS*)
4106 LDLIBRARY='libpython$(VERSION).so'
4107 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4108 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4109 INSTSONAME="$LDLIBRARY".$SOVERSION
4111 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4112 LDLIBRARY='libpython$(VERSION).so'
4113 BLDLIBRARY='-L. -lpython$(VERSION)'
4114 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4115 case $ac_sys_system in
4116 FreeBSD*)
4117 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4119 esac
4120 INSTSONAME="$LDLIBRARY".$SOVERSION
4122 hp*|HP*)
4123 case `uname -m` in
4124 ia64)
4125 LDLIBRARY='libpython$(VERSION).so'
4128 LDLIBRARY='libpython$(VERSION).sl'
4130 esac
4131 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4132 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4134 OSF*)
4135 LDLIBRARY='libpython$(VERSION).so'
4136 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4137 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4139 atheos*)
4140 LDLIBRARY='libpython$(VERSION).so'
4141 BLDLIBRARY='-L. -lpython$(VERSION)'
4142 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4144 Darwin*)
4145 LDLIBRARY='libpython$(VERSION).dylib'
4146 BLDLIBRARY='-L. -lpython$(VERSION)'
4147 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4150 esac
4151 else # shared is disabled
4152 case $ac_sys_system in
4153 CYGWIN*)
4154 BLDLIBRARY='$(LIBRARY)'
4155 LDLIBRARY='libpython$(VERSION).dll.a'
4157 esac
4160 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4161 echo "${ECHO_T}$LDLIBRARY" >&6; }
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_prog_RANLIB+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 if test -n "$RANLIB"; then
4172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4187 IFS=$as_save_IFS
4191 RANLIB=$ac_cv_prog_RANLIB
4192 if test -n "$RANLIB"; then
4193 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4194 echo "${ECHO_T}$RANLIB" >&6; }
4195 else
4196 { echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6; }
4202 if test -z "$ac_cv_prog_RANLIB"; then
4203 ac_ct_RANLIB=$RANLIB
4204 # Extract the first word of "ranlib", so it can be a program name with args.
4205 set dummy ranlib; ac_word=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 if test -n "$ac_ct_RANLIB"; then
4212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_ac_ct_RANLIB="ranlib"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4227 IFS=$as_save_IFS
4231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4232 if test -n "$ac_ct_RANLIB"; then
4233 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4234 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4235 else
4236 { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4240 if test "x$ac_ct_RANLIB" = x; then
4241 RANLIB=":"
4242 else
4243 case $cross_compiling:$ac_tool_warned in
4244 yes:)
4245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4246 whose name does not start with the host triplet. If you think this
4247 configuration is useful to you, please write to autoconf@gnu.org." >&5
4248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4249 whose name does not start with the host triplet. If you think this
4250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4251 ac_tool_warned=yes ;;
4252 esac
4253 RANLIB=$ac_ct_RANLIB
4255 else
4256 RANLIB="$ac_cv_prog_RANLIB"
4260 for ac_prog in ar aal
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4266 if test "${ac_cv_prog_AR+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 if test -n "$AR"; then
4270 ac_cv_prog_AR="$AR" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_AR="$ac_prog"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 AR=$ac_cv_prog_AR
4290 if test -n "$AR"; then
4291 { echo "$as_me:$LINENO: result: $AR" >&5
4292 echo "${ECHO_T}$AR" >&6; }
4293 else
4294 { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4299 test -n "$AR" && break
4300 done
4301 test -n "$AR" || AR="ar"
4305 # Extract the first word of "svnversion", so it can be a program name with args.
4306 set dummy svnversion; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test -n "$SVNVERSION"; then
4313 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_SVNVERSION="found"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4330 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4333 SVNVERSION=$ac_cv_prog_SVNVERSION
4334 if test -n "$SVNVERSION"; then
4335 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4336 echo "${ECHO_T}$SVNVERSION" >&6; }
4337 else
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4343 if test $SVNVERSION = found
4344 then
4345 SVNVERSION="svnversion \$(srcdir)"
4346 else
4347 SVNVERSION="echo exported"
4350 case $MACHDEP in
4351 bsdos*|hp*|HP*)
4352 # install -d does not work on BSDI or HP-UX
4353 if test -z "$INSTALL"
4354 then
4355 INSTALL="${srcdir}/install-sh -c"
4357 esac
4358 ac_aux_dir=
4359 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4360 if test -f "$ac_dir/install-sh"; then
4361 ac_aux_dir=$ac_dir
4362 ac_install_sh="$ac_aux_dir/install-sh -c"
4363 break
4364 elif test -f "$ac_dir/install.sh"; then
4365 ac_aux_dir=$ac_dir
4366 ac_install_sh="$ac_aux_dir/install.sh -c"
4367 break
4368 elif test -f "$ac_dir/shtool"; then
4369 ac_aux_dir=$ac_dir
4370 ac_install_sh="$ac_aux_dir/shtool install -c"
4371 break
4373 done
4374 if test -z "$ac_aux_dir"; then
4375 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4376 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4377 { (exit 1); exit 1; }; }
4380 # These three variables are undocumented and unsupported,
4381 # and are intended to be withdrawn in a future Autoconf release.
4382 # They can cause serious problems if a builder's source tree is in a directory
4383 # whose full name contains unusual characters.
4384 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4385 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4386 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4389 # Find a good install program. We prefer a C program (faster),
4390 # so one script is as good as another. But avoid the broken or
4391 # incompatible versions:
4392 # SysV /etc/install, /usr/sbin/install
4393 # SunOS /usr/etc/install
4394 # IRIX /sbin/install
4395 # AIX /bin/install
4396 # AmigaOS /C/install, which installs bootblocks on floppy discs
4397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4400 # OS/2's system install, which has a completely different semantic
4401 # ./install, which can be erroneously created by make from ./install.sh.
4402 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4403 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4404 if test -z "$INSTALL"; then
4405 if test "${ac_cv_path_install+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 # Account for people who put trailing slashes in PATH elements.
4414 case $as_dir/ in
4415 ./ | .// | /cC/* | \
4416 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4417 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4418 /usr/ucb/* ) ;;
4420 # OSF1 and SCO ODT 3.0 have their own names for install.
4421 # Don't use installbsd from OSF since it installs stuff as root
4422 # by default.
4423 for ac_prog in ginstall scoinst install; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4426 if test $ac_prog = install &&
4427 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4428 # AIX install. It has an incompatible calling convention.
4430 elif test $ac_prog = install &&
4431 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4432 # program-specific install script used by HP pwplus--don't use.
4434 else
4435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4436 break 3
4439 done
4440 done
4442 esac
4443 done
4444 IFS=$as_save_IFS
4448 if test "${ac_cv_path_install+set}" = set; then
4449 INSTALL=$ac_cv_path_install
4450 else
4451 # As a last resort, use the slow shell script. Don't cache a
4452 # value for INSTALL within a source directory, because that will
4453 # break other packages using the cache if that directory is
4454 # removed, or if the value is a relative name.
4455 INSTALL=$ac_install_sh
4458 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4459 echo "${ECHO_T}$INSTALL" >&6; }
4461 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4462 # It thinks the first close brace ends the variable substitution.
4463 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4465 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4467 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4470 # Not every filesystem supports hard links
4472 if test -z "$LN" ; then
4473 case $ac_sys_system in
4474 BeOS*) LN="ln -s";;
4475 CYGWIN*) LN="ln -s";;
4476 atheos*) LN="ln -s";;
4477 *) LN=ln;;
4478 esac
4481 # Check for --with-pydebug
4482 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4483 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4485 # Check whether --with-pydebug was given.
4486 if test "${with_pydebug+set}" = set; then
4487 withval=$with_pydebug;
4488 if test "$withval" != no
4489 then
4491 cat >>confdefs.h <<\_ACEOF
4492 #define Py_DEBUG 1
4493 _ACEOF
4495 { echo "$as_me:$LINENO: result: yes" >&5
4496 echo "${ECHO_T}yes" >&6; };
4497 Py_DEBUG='true'
4498 else { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4501 else
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4507 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4508 # merged with this chunk of code?
4510 # Optimizer/debugger flags
4511 # ------------------------
4512 # (The following bit of code is complicated enough - please keep things
4513 # indented properly. Just pretend you're editing Python code. ;-)
4515 # There are two parallel sets of case statements below, one that checks to
4516 # see if OPT was set and one that does BASECFLAGS setting based upon
4517 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4518 # user set OPT.
4520 # tweak OPT based on compiler and platform, only if the user didn't set
4521 # it on the command line
4523 if test -z "$OPT"
4524 then
4525 case $GCC in
4526 yes)
4527 if test "$CC" != 'g++' ; then
4528 STRICT_PROTO="-Wstrict-prototypes"
4530 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4531 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4532 WRAP="-fwrapv"
4534 case $ac_cv_prog_cc_g in
4535 yes)
4536 if test "$Py_DEBUG" = 'true' ; then
4537 # Optimization messes up debuggers, so turn it off for
4538 # debug builds.
4539 OPT="-g -Wall $STRICT_PROTO"
4540 else
4541 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4545 OPT="-O3 -Wall $STRICT_PROTO"
4547 esac
4548 case $ac_sys_system in
4549 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4551 esac
4555 OPT="-O"
4557 esac
4559 # The current (beta) Monterey compiler dies with optimizations
4560 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4561 case $ac_sys_system in
4562 Monterey*)
4563 OPT=""
4565 esac
4571 # The -arch flags for universal builds on OSX
4572 UNIVERSAL_ARCH_FLAGS=
4575 # tweak BASECFLAGS based on compiler and platform
4576 case $GCC in
4577 yes)
4578 # Python violates C99 rules, by casting between incompatible
4579 # pointer types. GCC may generate bad code as a result of that,
4580 # so use -fno-strict-aliasing if supported.
4581 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4582 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4583 ac_save_cc="$CC"
4584 CC="$CC -fno-strict-aliasing"
4585 if test "$cross_compiling" = yes; then
4586 ac_cv_no_strict_aliasing_ok=no
4587 else
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 int main() { return 0; }
4595 _ACEOF
4596 rm -f conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_no_strict_aliasing_ok=yes
4617 else
4618 echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ( exit $ac_status )
4623 ac_cv_no_strict_aliasing_ok=no
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4629 CC="$ac_save_cc"
4630 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4631 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4632 if test $ac_cv_no_strict_aliasing_ok = yes
4633 then
4634 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4637 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4638 # support. Without this, treatment of subnormals doesn't follow
4639 # the standard.
4640 case $ac_sys_machine in
4641 alpha*)
4642 BASECFLAGS="$BASECFLAGS -mieee"
4644 esac
4646 case $ac_sys_system in
4647 SCO_SV*)
4648 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4650 # is there any other compiler on Darwin besides gcc?
4651 Darwin*)
4652 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4653 # used to be here, but non-Apple gcc doesn't accept them.
4656 if test "${enable_universalsdk}"; then
4657 UNIVERSAL_ARCH_FLAGS=""
4658 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4659 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4660 ARCH_RUN_32BIT=""
4662 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4663 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4665 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4666 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4667 ARCH_RUN_32BIT="arch -i386 -ppc"
4669 else
4670 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4671 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4672 { (exit 1); exit 1; }; }
4677 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4678 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4679 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4680 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4684 # Calculate the right deployment target for this build.
4686 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4687 if test ${cur_target} '>' 10.2; then
4688 cur_target=10.3
4690 if test "${UNIVERSAL_ARCHS}" = "all"; then
4691 # Ensure that the default platform for a 4-way
4692 # universal build is OSX 10.5, that's the first
4693 # OS release where 4-way builds make sense.
4694 cur_target='10.5'
4696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4698 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4699 # environment with a value that is the same as what we'll use
4700 # in the Makefile to ensure that we'll get the same compiler
4701 # environment during configure and build time.
4702 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4703 export MACOSX_DEPLOYMENT_TARGET
4704 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4707 OSF*)
4708 BASECFLAGS="$BASECFLAGS -mieee"
4710 esac
4714 case $ac_sys_system in
4715 OpenUNIX*|UnixWare*)
4716 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4718 OSF*)
4719 BASECFLAGS="$BASECFLAGS -ieee -std"
4721 SCO_SV*)
4722 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4724 esac
4726 esac
4728 if test "$Py_DEBUG" = 'true'; then
4730 else
4731 OPT="-DNDEBUG $OPT"
4734 if test "$ac_arch_flags"
4735 then
4736 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4739 # disable check for icc since it seems to pass, but generates a warning
4740 if test "$CC" = icc
4741 then
4742 ac_cv_opt_olimit_ok=no
4745 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4746 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4747 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 ac_save_cc="$CC"
4751 CC="$CC -OPT:Olimit=0"
4752 if test "$cross_compiling" = yes; then
4753 ac_cv_opt_olimit_ok=no
4754 else
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 int main() { return 0; }
4762 _ACEOF
4763 rm -f conftest$ac_exeext
4764 if { (ac_try="$ac_link"
4765 case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768 esac
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_link") 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4774 { (case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_try") 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_opt_olimit_ok=yes
4784 else
4785 echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ( exit $ac_status )
4790 ac_cv_opt_olimit_ok=no
4792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4796 CC="$ac_save_cc"
4799 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4800 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4801 if test $ac_cv_opt_olimit_ok = yes; then
4802 case $ac_sys_system in
4803 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4804 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4805 # environment?
4806 Darwin*)
4809 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4811 esac
4812 else
4813 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4814 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4815 if test "${ac_cv_olimit_ok+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 ac_save_cc="$CC"
4819 CC="$CC -Olimit 1500"
4820 if test "$cross_compiling" = yes; then
4821 ac_cv_olimit_ok=no
4822 else
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h. */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4829 int main() { return 0; }
4830 _ACEOF
4831 rm -f conftest$ac_exeext
4832 if { (ac_try="$ac_link"
4833 case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836 esac
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_link") 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4842 { (case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_try") 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_cv_olimit_ok=yes
4852 else
4853 echo "$as_me: program exited with status $ac_status" >&5
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4857 ( exit $ac_status )
4858 ac_cv_olimit_ok=no
4860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4864 CC="$ac_save_cc"
4867 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4868 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4869 if test $ac_cv_olimit_ok = yes; then
4870 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4874 # Check whether GCC supports PyArg_ParseTuple format
4875 if test "$GCC" = "yes"
4876 then
4877 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4878 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4879 save_CFLAGS=$CFLAGS
4880 CFLAGS="$CFLAGS -Werror"
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4888 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4891 main ()
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
4916 cat >>confdefs.h <<\_ACEOF
4917 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4918 _ACEOF
4920 { echo "$as_me:$LINENO: result: yes" >&5
4921 echo "${ECHO_T}yes" >&6; }
4922 else
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 CFLAGS=$save_CFLAGS
4935 # On some compilers, pthreads are available without further options
4936 # (e.g. MacOS X). On some of these systems, the compiler will not
4937 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4938 # So we have to see first whether pthreads are available without
4939 # options before we can check whether -Kpthread improves anything.
4940 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4941 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4942 if test "${ac_cv_pthread_is_default+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 if test "$cross_compiling" = yes; then
4946 ac_cv_pthread_is_default=no
4947 else
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 #include <pthread.h>
4957 void* routine(void* p){return NULL;}
4959 int main(){
4960 pthread_t p;
4961 if(pthread_create(&p,NULL,routine,NULL)!=0)
4962 return 1;
4963 (void)pthread_detach(p);
4964 return 0;
4967 _ACEOF
4968 rm -f conftest$ac_exeext
4969 if { (ac_try="$ac_link"
4970 case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973 esac
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_link") 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979 { (case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4989 ac_cv_pthread_is_default=yes
4990 ac_cv_kthread=no
4991 ac_cv_pthread=no
4993 else
4994 echo "$as_me: program exited with status $ac_status" >&5
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 ( exit $ac_status )
4999 ac_cv_pthread_is_default=no
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5008 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5009 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5012 if test $ac_cv_pthread_is_default = yes
5013 then
5014 ac_cv_kpthread=no
5015 else
5016 # -Kpthread, if available, provides the right #defines
5017 # and linker options to make pthread_create available
5018 # Some compilers won't report that they do not support -Kpthread,
5019 # so we need to run a program to see whether it really made the
5020 # function available.
5021 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5022 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5023 if test "${ac_cv_kpthread+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 ac_save_cc="$CC"
5027 CC="$CC -Kpthread"
5028 if test "$cross_compiling" = yes; then
5029 ac_cv_kpthread=no
5030 else
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5038 #include <pthread.h>
5040 void* routine(void* p){return NULL;}
5042 int main(){
5043 pthread_t p;
5044 if(pthread_create(&p,NULL,routine,NULL)!=0)
5045 return 1;
5046 (void)pthread_detach(p);
5047 return 0;
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062 { (case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_try") 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_kpthread=yes
5072 else
5073 echo "$as_me: program exited with status $ac_status" >&5
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ( exit $ac_status )
5078 ac_cv_kpthread=no
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5084 CC="$ac_save_cc"
5087 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5088 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5091 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5092 then
5093 # -Kthread, if available, provides the right #defines
5094 # and linker options to make pthread_create available
5095 # Some compilers won't report that they do not support -Kthread,
5096 # so we need to run a program to see whether it really made the
5097 # function available.
5098 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5099 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5100 if test "${ac_cv_kthread+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 ac_save_cc="$CC"
5104 CC="$CC -Kthread"
5105 if test "$cross_compiling" = yes; then
5106 ac_cv_kthread=no
5107 else
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5115 #include <pthread.h>
5117 void* routine(void* p){return NULL;}
5119 int main(){
5120 pthread_t p;
5121 if(pthread_create(&p,NULL,routine,NULL)!=0)
5122 return 1;
5123 (void)pthread_detach(p);
5124 return 0;
5127 _ACEOF
5128 rm -f conftest$ac_exeext
5129 if { (ac_try="$ac_link"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_link") 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5139 { (case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_try") 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_kthread=yes
5149 else
5150 echo "$as_me: program exited with status $ac_status" >&5
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ( exit $ac_status )
5155 ac_cv_kthread=no
5157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5161 CC="$ac_save_cc"
5164 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5165 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5168 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5169 then
5170 # -pthread, if available, provides the right #defines
5171 # and linker options to make pthread_create available
5172 # Some compilers won't report that they do not support -pthread,
5173 # so we need to run a program to see whether it really made the
5174 # function available.
5175 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5176 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5177 if test "${ac_cv_thread+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 ac_save_cc="$CC"
5181 CC="$CC -pthread"
5182 if test "$cross_compiling" = yes; then
5183 ac_cv_pthread=no
5184 else
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 #include <pthread.h>
5194 void* routine(void* p){return NULL;}
5196 int main(){
5197 pthread_t p;
5198 if(pthread_create(&p,NULL,routine,NULL)!=0)
5199 return 1;
5200 (void)pthread_detach(p);
5201 return 0;
5204 _ACEOF
5205 rm -f conftest$ac_exeext
5206 if { (ac_try="$ac_link"
5207 case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_link") 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5216 { (case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219 esac
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_try") 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 ac_cv_pthread=yes
5226 else
5227 echo "$as_me: program exited with status $ac_status" >&5
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 ( exit $ac_status )
5232 ac_cv_pthread=no
5234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5238 CC="$ac_save_cc"
5241 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5242 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5245 # If we have set a CC compiler flag for thread support then
5246 # check if it works for CXX, too.
5247 ac_cv_cxx_thread=no
5248 if test ! -z "$CXX"
5249 then
5250 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5251 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5252 ac_save_cxx="$CXX"
5254 if test "$ac_cv_kpthread" = "yes"
5255 then
5256 CXX="$CXX -Kpthread"
5257 ac_cv_cxx_thread=yes
5258 elif test "$ac_cv_kthread" = "yes"
5259 then
5260 CXX="$CXX -Kthread"
5261 ac_cv_cxx_thread=yes
5262 elif test "$ac_cv_pthread" = "yes"
5263 then
5264 CXX="$CXX -pthread"
5265 ac_cv_cxx_thread=yes
5268 if test $ac_cv_cxx_thread = yes
5269 then
5270 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5271 $CXX -c conftest.$ac_ext 2>&5
5272 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5273 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5274 then
5275 ac_cv_cxx_thread=yes
5276 else
5277 ac_cv_cxx_thread=no
5279 rm -fr conftest*
5281 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5282 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5284 CXX="$ac_save_cxx"
5287 # checks for header files
5288 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5290 if test "${ac_cv_header_stdc+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <stdlib.h>
5300 #include <stdarg.h>
5301 #include <string.h>
5302 #include <float.h>
5305 main ()
5309 return 0;
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5314 case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compile") 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_c_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest.$ac_objext; then
5329 ac_cv_header_stdc=yes
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_cv_header_stdc=no
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 if test $ac_cv_header_stdc = yes; then
5340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <string.h>
5349 _ACEOF
5350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5351 $EGREP "memchr" >/dev/null 2>&1; then
5353 else
5354 ac_cv_header_stdc=no
5356 rm -f conftest*
5360 if test $ac_cv_header_stdc = yes; then
5361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <stdlib.h>
5370 _ACEOF
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "free" >/dev/null 2>&1; then
5374 else
5375 ac_cv_header_stdc=no
5377 rm -f conftest*
5381 if test $ac_cv_header_stdc = yes; then
5382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5383 if test "$cross_compiling" = yes; then
5385 else
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <ctype.h>
5393 #include <stdlib.h>
5394 #if ((' ' & 0x0FF) == 0x020)
5395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5397 #else
5398 # define ISLOWER(c) \
5399 (('a' <= (c) && (c) <= 'i') \
5400 || ('j' <= (c) && (c) <= 'r') \
5401 || ('s' <= (c) && (c) <= 'z'))
5402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5403 #endif
5405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407 main ()
5409 int i;
5410 for (i = 0; i < 256; i++)
5411 if (XOR (islower (i), ISLOWER (i))
5412 || toupper (i) != TOUPPER (i))
5413 return 2;
5414 return 0;
5416 _ACEOF
5417 rm -f conftest$ac_exeext
5418 if { (ac_try="$ac_link"
5419 case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_link") 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5428 { (case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_try") 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5438 else
5439 echo "$as_me: program exited with status $ac_status" >&5
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 ( exit $ac_status )
5444 ac_cv_header_stdc=no
5446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5452 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5453 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5454 if test $ac_cv_header_stdc = yes; then
5456 cat >>confdefs.h <<\_ACEOF
5457 #define STDC_HEADERS 1
5458 _ACEOF
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5472 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5473 inttypes.h stdint.h unistd.h
5475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5489 #include <$ac_header>
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5493 case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 eval "$as_ac_Header=yes"
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 eval "$as_ac_Header=no"
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 ac_res=`eval echo '${'$as_ac_Header'}'`
5519 { echo "$as_me:$LINENO: result: $ac_res" >&5
5520 echo "${ECHO_T}$ac_res" >&6; }
5521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5522 cat >>confdefs.h <<_ACEOF
5523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5524 _ACEOF
5528 done
5585 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5586 fcntl.h grp.h \
5587 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5588 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5589 unistd.h utime.h \
5590 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5591 sys/lock.h sys/mkdev.h sys/modem.h \
5592 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5593 sys/termio.h sys/time.h \
5594 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5595 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5596 bluetooth/bluetooth.h linux/tipc.h
5598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 ac_res=`eval echo '${'$as_ac_Header'}'`
5606 { echo "$as_me:$LINENO: result: $ac_res" >&5
5607 echo "${ECHO_T}$ac_res" >&6; }
5608 else
5609 # Is the header compilable?
5610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 #include <$ac_header>
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.$ac_objext; then
5638 ac_header_compiler=yes
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 ac_header_compiler=no
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5648 echo "${ECHO_T}$ac_header_compiler" >&6; }
5650 # Is the header present?
5651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <$ac_header>
5660 _ACEOF
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 }; then
5677 ac_header_preproc=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_header_preproc=no
5685 rm -f conftest.err conftest.$ac_ext
5686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5687 echo "${ECHO_T}$ac_header_preproc" >&6; }
5689 # So? What about this header?
5690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5691 yes:no: )
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5696 ac_header_preproc=yes
5698 no:yes:* )
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5711 ( cat <<\_ASBOX
5712 ## ------------------------------------------------ ##
5713 ## Report this to http://www.python.org/python-bugs ##
5714 ## ------------------------------------------------ ##
5715 _ASBOX
5716 ) | sed "s/^/$as_me: WARNING: /" >&2
5718 esac
5719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 eval "$as_ac_Header=\$ac_header_preproc"
5726 ac_res=`eval echo '${'$as_ac_Header'}'`
5727 { echo "$as_me:$LINENO: result: $ac_res" >&5
5728 echo "${ECHO_T}$ac_res" >&6; }
5731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5732 cat >>confdefs.h <<_ACEOF
5733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5734 _ACEOF
5738 done
5745 ac_header_dirent=no
5746 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5747 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5748 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5749 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 #include <$ac_hdr>
5763 main ()
5765 if ((DIR *) 0)
5766 return 0;
5768 return 0;
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (ac_try="$ac_compile"
5773 case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 eval "$as_ac_Header=yes"
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 eval "$as_ac_Header=no"
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_res=`eval echo '${'$as_ac_Header'}'`
5799 { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5804 _ACEOF
5806 ac_header_dirent=$ac_hdr; break
5809 done
5810 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5811 if test $ac_header_dirent = dirent.h; then
5812 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5814 if test "${ac_cv_search_opendir+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 ac_func_search_save_LIBS=$LIBS
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5825 /* Override any GCC internal prototype to avoid an error.
5826 Use char because int might match the return type of a GCC
5827 builtin and then its argument prototype would still apply. */
5828 #ifdef __cplusplus
5829 extern "C"
5830 #endif
5831 char opendir ();
5833 main ()
5835 return opendir ();
5837 return 0;
5839 _ACEOF
5840 for ac_lib in '' dir; do
5841 if test -z "$ac_lib"; then
5842 ac_res="none required"
5843 else
5844 ac_res=-l$ac_lib
5845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (ac_try="$ac_link"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_link") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest$ac_exeext &&
5864 $as_test_x conftest$ac_exeext; then
5865 ac_cv_search_opendir=$ac_res
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5874 conftest$ac_exeext
5875 if test "${ac_cv_search_opendir+set}" = set; then
5876 break
5878 done
5879 if test "${ac_cv_search_opendir+set}" = set; then
5881 else
5882 ac_cv_search_opendir=no
5884 rm conftest.$ac_ext
5885 LIBS=$ac_func_search_save_LIBS
5887 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5888 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5889 ac_res=$ac_cv_search_opendir
5890 if test "$ac_res" != no; then
5891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5895 else
5896 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5897 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5898 if test "${ac_cv_search_opendir+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 ac_func_search_save_LIBS=$LIBS
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5909 /* Override any GCC internal prototype to avoid an error.
5910 Use char because int might match the return type of a GCC
5911 builtin and then its argument prototype would still apply. */
5912 #ifdef __cplusplus
5913 extern "C"
5914 #endif
5915 char opendir ();
5917 main ()
5919 return opendir ();
5921 return 0;
5923 _ACEOF
5924 for ac_lib in '' x; do
5925 if test -z "$ac_lib"; then
5926 ac_res="none required"
5927 else
5928 ac_res=-l$ac_lib
5929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && {
5945 test -z "$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 } && test -s conftest$ac_exeext &&
5948 $as_test_x conftest$ac_exeext; then
5949 ac_cv_search_opendir=$ac_res
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5958 conftest$ac_exeext
5959 if test "${ac_cv_search_opendir+set}" = set; then
5960 break
5962 done
5963 if test "${ac_cv_search_opendir+set}" = set; then
5965 else
5966 ac_cv_search_opendir=no
5968 rm conftest.$ac_ext
5969 LIBS=$ac_func_search_save_LIBS
5971 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5972 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5973 ac_res=$ac_cv_search_opendir
5974 if test "$ac_res" != no; then
5975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5981 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5982 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5983 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5994 main ()
5996 return makedev(0, 0);
5998 return 0;
6000 _ACEOF
6001 rm -f conftest.$ac_objext conftest$ac_exeext
6002 if { (ac_try="$ac_link"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_link") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest$ac_exeext &&
6018 $as_test_x conftest$ac_exeext; then
6019 ac_cv_header_sys_types_h_makedev=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_cv_header_sys_types_h_makedev=no
6027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6028 conftest$ac_exeext conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6032 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6034 if test $ac_cv_header_sys_types_h_makedev = no; then
6035 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6036 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6037 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6038 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6042 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6043 else
6044 # Is the header compilable?
6045 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6046 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6054 #include <sys/mkdev.h>
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (ac_try="$ac_compile"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compile") 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest.$ac_objext; then
6073 ac_header_compiler=yes
6074 else
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_header_compiler=no
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6083 echo "${ECHO_T}$ac_header_compiler" >&6; }
6085 # Is the header present?
6086 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6087 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <sys/mkdev.h>
6095 _ACEOF
6096 if { (ac_try="$ac_cpp conftest.$ac_ext"
6097 case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } >/dev/null && {
6109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6110 test ! -s conftest.err
6111 }; then
6112 ac_header_preproc=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_header_preproc=no
6120 rm -f conftest.err conftest.$ac_ext
6121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122 echo "${ECHO_T}$ac_header_preproc" >&6; }
6124 # So? What about this header?
6125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6126 yes:no: )
6127 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6128 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6130 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6131 ac_header_preproc=yes
6133 no:yes:* )
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6143 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6145 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6146 ( cat <<\_ASBOX
6147 ## ------------------------------------------------ ##
6148 ## Report this to http://www.python.org/python-bugs ##
6149 ## ------------------------------------------------ ##
6150 _ASBOX
6151 ) | sed "s/^/$as_me: WARNING: /" >&2
6153 esac
6154 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6155 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6156 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6161 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6162 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6165 if test $ac_cv_header_sys_mkdev_h = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define MAJOR_IN_MKDEV 1
6169 _ACEOF
6175 if test $ac_cv_header_sys_mkdev_h = no; then
6176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6177 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6178 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6179 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6183 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6184 else
6185 # Is the header compilable?
6186 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6187 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 $ac_includes_default
6195 #include <sys/sysmacros.h>
6196 _ACEOF
6197 rm -f conftest.$ac_objext
6198 if { (ac_try="$ac_compile"
6199 case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compile") 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_c_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest.$ac_objext; then
6214 ac_header_compiler=yes
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6219 ac_header_compiler=no
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6224 echo "${ECHO_T}$ac_header_compiler" >&6; }
6226 # Is the header present?
6227 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6228 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <sys/sysmacros.h>
6236 _ACEOF
6237 if { (ac_try="$ac_cpp conftest.$ac_ext"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null && {
6250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6252 }; then
6253 ac_header_preproc=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_header_preproc=no
6261 rm -f conftest.err conftest.$ac_ext
6262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6263 echo "${ECHO_T}$ac_header_preproc" >&6; }
6265 # So? What about this header?
6266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6267 yes:no: )
6268 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6269 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6270 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6271 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6272 ac_header_preproc=yes
6274 no:yes:* )
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6284 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6286 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6287 ( cat <<\_ASBOX
6288 ## ------------------------------------------------ ##
6289 ## Report this to http://www.python.org/python-bugs ##
6290 ## ------------------------------------------------ ##
6291 _ASBOX
6292 ) | sed "s/^/$as_me: WARNING: /" >&2
6294 esac
6295 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6296 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6297 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6302 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6303 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6306 if test $ac_cv_header_sys_sysmacros_h = yes; then
6308 cat >>confdefs.h <<\_ACEOF
6309 #define MAJOR_IN_SYSMACROS 1
6310 _ACEOF
6319 # On Solaris, term.h requires curses.h
6321 for ac_header in term.h
6323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6336 #ifdef HAVE_CURSES_H
6337 #include <curses.h>
6338 #endif
6341 #include <$ac_header>
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (ac_try="$ac_compile"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest.$ac_objext; then
6360 eval "$as_ac_Header=yes"
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 eval "$as_ac_Header=no"
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 ac_res=`eval echo '${'$as_ac_Header'}'`
6371 { echo "$as_me:$LINENO: result: $ac_res" >&5
6372 echo "${ECHO_T}$ac_res" >&6; }
6373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6374 cat >>confdefs.h <<_ACEOF
6375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6376 _ACEOF
6380 done
6383 # On Linux, netlink.h requires asm/types.h
6385 for ac_header in linux/netlink.h
6387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h. */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6400 #ifdef HAVE_ASM_TYPES_H
6401 #include <asm/types.h>
6402 #endif
6403 #ifdef HAVE_SYS_SOCKET_H
6404 #include <sys/socket.h>
6405 #endif
6408 #include <$ac_header>
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (ac_try="$ac_compile"
6412 case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compile") 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest.$ac_objext; then
6427 eval "$as_ac_Header=yes"
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 eval "$as_ac_Header=no"
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 ac_res=`eval echo '${'$as_ac_Header'}'`
6438 { echo "$as_me:$LINENO: result: $ac_res" >&5
6439 echo "${ECHO_T}$ac_res" >&6; }
6440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6441 cat >>confdefs.h <<_ACEOF
6442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443 _ACEOF
6447 done
6450 # checks for typedefs
6451 was_it_defined=no
6452 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6453 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <time.h>
6462 _ACEOF
6463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464 $EGREP "clock_t" >/dev/null 2>&1; then
6465 was_it_defined=yes
6466 else
6469 cat >>confdefs.h <<\_ACEOF
6470 #define clock_t long
6471 _ACEOF
6475 rm -f conftest*
6477 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6478 echo "${ECHO_T}$was_it_defined" >&6; }
6480 # Check whether using makedev requires defining _OSF_SOURCE
6481 { echo "$as_me:$LINENO: checking for makedev" >&5
6482 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <sys/types.h>
6491 main ()
6493 makedev(0, 0)
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (ac_try="$ac_link"
6500 case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_link") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest$ac_exeext &&
6515 $as_test_x conftest$ac_exeext; then
6516 ac_cv_has_makedev=yes
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6521 ac_cv_has_makedev=no
6524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6525 conftest$ac_exeext conftest.$ac_ext
6526 if test "$ac_cv_has_makedev" = "no"; then
6527 # we didn't link, try if _OSF_SOURCE will allow us to link
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6535 #define _OSF_SOURCE 1
6536 #include <sys/types.h>
6539 main ()
6541 makedev(0, 0)
6543 return 0;
6545 _ACEOF
6546 rm -f conftest.$ac_objext conftest$ac_exeext
6547 if { (ac_try="$ac_link"
6548 case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551 esac
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_link") 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } && {
6560 test -z "$ac_c_werror_flag" ||
6561 test ! -s conftest.err
6562 } && test -s conftest$ac_exeext &&
6563 $as_test_x conftest$ac_exeext; then
6564 ac_cv_has_makedev=yes
6565 else
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_has_makedev=no
6572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6573 conftest$ac_exeext conftest.$ac_ext
6574 if test "$ac_cv_has_makedev" = "yes"; then
6576 cat >>confdefs.h <<\_ACEOF
6577 #define _OSF_SOURCE 1
6578 _ACEOF
6582 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6583 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6584 if test "$ac_cv_has_makedev" = "yes"; then
6586 cat >>confdefs.h <<\_ACEOF
6587 #define HAVE_MAKEDEV 1
6588 _ACEOF
6592 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6593 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6594 # defined, but the compiler does not support pragma redefine_extname,
6595 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6596 # structures (such as rlimit64) without declaring them. As a
6597 # work-around, disable LFS on such configurations
6599 use_lfs=yes
6600 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6601 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6609 #define _LARGEFILE_SOURCE 1
6610 #define _FILE_OFFSET_BITS 64
6611 #include <sys/resource.h>
6614 main ()
6616 struct rlimit foo;
6618 return 0;
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6623 case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 sol_lfs_bug=no
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 sol_lfs_bug=yes
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6648 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6649 if test "$sol_lfs_bug" = "yes"; then
6650 use_lfs=no
6653 if test "$use_lfs" = "yes"; then
6654 # Two defines needed to enable largefile support on various platforms
6655 # These may affect some typedefs
6657 cat >>confdefs.h <<\_ACEOF
6658 #define _LARGEFILE_SOURCE 1
6659 _ACEOF
6662 cat >>confdefs.h <<\_ACEOF
6663 #define _FILE_OFFSET_BITS 64
6664 _ACEOF
6668 # Add some code to confdefs.h so that the test for off_t works on SCO
6669 cat >> confdefs.h <<\EOF
6670 #if defined(SCO_DS)
6671 #undef _OFF_T
6672 #endif
6675 # Type availability checks
6676 { echo "$as_me:$LINENO: checking for mode_t" >&5
6677 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6678 if test "${ac_cv_type_mode_t+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6688 typedef mode_t ac__type_new_;
6690 main ()
6692 if ((ac__type_new_ *) 0)
6693 return 0;
6694 if (sizeof (ac__type_new_))
6695 return 0;
6697 return 0;
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (ac_try="$ac_compile"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 ac_cv_type_mode_t=yes
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_cv_type_mode_t=no
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6728 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6729 if test $ac_cv_type_mode_t = yes; then
6731 else
6733 cat >>confdefs.h <<_ACEOF
6734 #define mode_t int
6735 _ACEOF
6739 { echo "$as_me:$LINENO: checking for off_t" >&5
6740 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6741 if test "${ac_cv_type_off_t+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6751 typedef off_t ac__type_new_;
6753 main ()
6755 if ((ac__type_new_ *) 0)
6756 return 0;
6757 if (sizeof (ac__type_new_))
6758 return 0;
6760 return 0;
6762 _ACEOF
6763 rm -f conftest.$ac_objext
6764 if { (ac_try="$ac_compile"
6765 case "(($ac_try" in
6766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767 *) ac_try_echo=$ac_try;;
6768 esac
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_cv_type_off_t=yes
6781 else
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ac_cv_type_off_t=no
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6791 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6792 if test $ac_cv_type_off_t = yes; then
6794 else
6796 cat >>confdefs.h <<_ACEOF
6797 #define off_t long int
6798 _ACEOF
6802 { echo "$as_me:$LINENO: checking for pid_t" >&5
6803 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6804 if test "${ac_cv_type_pid_t+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 $ac_includes_default
6814 typedef pid_t ac__type_new_;
6816 main ()
6818 if ((ac__type_new_ *) 0)
6819 return 0;
6820 if (sizeof (ac__type_new_))
6821 return 0;
6823 return 0;
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (ac_try="$ac_compile"
6828 case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_cv_type_pid_t=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_cv_type_pid_t=no
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6854 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6855 if test $ac_cv_type_pid_t = yes; then
6857 else
6859 cat >>confdefs.h <<_ACEOF
6860 #define pid_t int
6861 _ACEOF
6865 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6866 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6867 if test "${ac_cv_type_signal+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 #include <sys/types.h>
6877 #include <signal.h>
6880 main ()
6882 return *(signal (0, 0)) (0) == 1;
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_type_signal=int
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_type_signal=void
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6915 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6917 cat >>confdefs.h <<_ACEOF
6918 #define RETSIGTYPE $ac_cv_type_signal
6919 _ACEOF
6922 { echo "$as_me:$LINENO: checking for size_t" >&5
6923 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6924 if test "${ac_cv_type_size_t+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6934 typedef size_t ac__type_new_;
6936 main ()
6938 if ((ac__type_new_ *) 0)
6939 return 0;
6940 if (sizeof (ac__type_new_))
6941 return 0;
6943 return 0;
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6948 case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951 esac
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_type_size_t=yes
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_type_size_t=no
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6974 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6975 if test $ac_cv_type_size_t = yes; then
6977 else
6979 cat >>confdefs.h <<_ACEOF
6980 #define size_t unsigned int
6981 _ACEOF
6985 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6986 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6987 if test "${ac_cv_type_uid_t+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 #include <sys/types.h>
6998 _ACEOF
6999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000 $EGREP "uid_t" >/dev/null 2>&1; then
7001 ac_cv_type_uid_t=yes
7002 else
7003 ac_cv_type_uid_t=no
7005 rm -f conftest*
7008 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7009 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7010 if test $ac_cv_type_uid_t = no; then
7012 cat >>confdefs.h <<\_ACEOF
7013 #define uid_t int
7014 _ACEOF
7017 cat >>confdefs.h <<\_ACEOF
7018 #define gid_t int
7019 _ACEOF
7024 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7025 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7026 if test "${ac_cv_c_uint32_t+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 ac_cv_c_uint32_t=no
7030 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7031 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7040 main ()
7042 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7043 test_array [0] = 0
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7066 case $ac_type in
7067 uint32_t) ac_cv_c_uint32_t=yes ;;
7068 *) ac_cv_c_uint32_t=$ac_type ;;
7069 esac
7071 else
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 test "$ac_cv_c_uint32_t" != no && break
7080 done
7082 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7083 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7084 case $ac_cv_c_uint32_t in #(
7085 no|yes) ;; #(
7088 cat >>confdefs.h <<\_ACEOF
7089 #define _UINT32_T 1
7090 _ACEOF
7093 cat >>confdefs.h <<_ACEOF
7094 #define uint32_t $ac_cv_c_uint32_t
7095 _ACEOF
7097 esac
7100 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7101 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7102 if test "${ac_cv_c_uint64_t+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 ac_cv_c_uint64_t=no
7106 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7107 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7116 main ()
7118 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7119 test_array [0] = 0
7122 return 0;
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7127 case "(($ac_try" in
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7130 esac
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_compile") 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
7142 case $ac_type in
7143 uint64_t) ac_cv_c_uint64_t=yes ;;
7144 *) ac_cv_c_uint64_t=$ac_type ;;
7145 esac
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 test "$ac_cv_c_uint64_t" != no && break
7156 done
7158 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7159 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7160 case $ac_cv_c_uint64_t in #(
7161 no|yes) ;; #(
7164 cat >>confdefs.h <<\_ACEOF
7165 #define _UINT64_T 1
7166 _ACEOF
7169 cat >>confdefs.h <<_ACEOF
7170 #define uint64_t $ac_cv_c_uint64_t
7171 _ACEOF
7173 esac
7176 { echo "$as_me:$LINENO: checking for int32_t" >&5
7177 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7178 if test "${ac_cv_c_int32_t+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181 ac_cv_c_int32_t=no
7182 for ac_type in 'int32_t' 'int' 'long int' \
7183 'long long int' 'short int' 'signed char'; do
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7192 main ()
7194 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7195 test_array [0] = 0
7198 return 0;
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7203 case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206 esac
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h. */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 $ac_includes_default
7226 main ()
7228 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7229 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7230 test_array [0] = 0
7233 return 0;
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (ac_try="$ac_compile"
7238 case "(($ac_try" in
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7241 esac
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_compile") 2>conftest.er1
7244 ac_status=$?
7245 grep -v '^ *+' conftest.er1 >conftest.err
7246 rm -f conftest.er1
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest.$ac_objext; then
7254 else
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 case $ac_type in
7259 int32_t) ac_cv_c_int32_t=yes ;;
7260 *) ac_cv_c_int32_t=$ac_type ;;
7261 esac
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 test "$ac_cv_c_int32_t" != no && break
7275 done
7277 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7278 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7279 case $ac_cv_c_int32_t in #(
7280 no|yes) ;; #(
7283 cat >>confdefs.h <<_ACEOF
7284 #define int32_t $ac_cv_c_int32_t
7285 _ACEOF
7287 esac
7290 { echo "$as_me:$LINENO: checking for int64_t" >&5
7291 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7292 if test "${ac_cv_c_int64_t+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 ac_cv_c_int64_t=no
7296 for ac_type in 'int64_t' 'int' 'long int' \
7297 'long long int' 'short int' 'signed char'; do
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7306 main ()
7308 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7309 test_array [0] = 0
7312 return 0;
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (ac_try="$ac_compile"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest.$ac_objext; then
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7340 main ()
7342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7343 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7344 test_array [0] = 0
7347 return 0;
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 case $ac_type in
7373 int64_t) ac_cv_c_int64_t=yes ;;
7374 *) ac_cv_c_int64_t=$ac_type ;;
7375 esac
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 test "$ac_cv_c_int64_t" != no && break
7389 done
7391 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7392 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7393 case $ac_cv_c_int64_t in #(
7394 no|yes) ;; #(
7397 cat >>confdefs.h <<_ACEOF
7398 #define int64_t $ac_cv_c_int64_t
7399 _ACEOF
7401 esac
7403 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7404 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7405 if test "${ac_cv_type_ssize_t+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 typedef ssize_t ac__type_new_;
7417 main ()
7419 if ((ac__type_new_ *) 0)
7420 return 0;
7421 if (sizeof (ac__type_new_))
7422 return 0;
7424 return 0;
7426 _ACEOF
7427 rm -f conftest.$ac_objext
7428 if { (ac_try="$ac_compile"
7429 case "(($ac_try" in
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
7444 ac_cv_type_ssize_t=yes
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_cv_type_ssize_t=no
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7455 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7456 if test $ac_cv_type_ssize_t = yes; then
7458 cat >>confdefs.h <<\_ACEOF
7459 #define HAVE_SSIZE_T 1
7460 _ACEOF
7465 # Sizes of various common basic types
7466 # ANSI C requires sizeof(char) == 1, so no need to check it
7467 { echo "$as_me:$LINENO: checking for int" >&5
7468 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7469 if test "${ac_cv_type_int+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472 cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h. */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7479 typedef int ac__type_new_;
7481 main ()
7483 if ((ac__type_new_ *) 0)
7484 return 0;
7485 if (sizeof (ac__type_new_))
7486 return 0;
7488 return 0;
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7493 case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7508 ac_cv_type_int=yes
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_cv_type_int=no
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7519 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7521 # The cast to long int works around a bug in the HP C Compiler
7522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7524 # This bug is HP SR number 8606223364.
7525 { echo "$as_me:$LINENO: checking size of int" >&5
7526 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7527 if test "${ac_cv_sizeof_int+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 if test "$cross_compiling" = yes; then
7531 # Depending upon the size, compute the lo and hi bounds.
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 $ac_includes_default
7539 typedef int ac__type_sizeof_;
7541 main ()
7543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7544 test_array [0] = 0
7547 return 0;
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7552 case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 ac_lo=0 ac_mid=0
7568 while :; do
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 $ac_includes_default
7576 typedef int ac__type_sizeof_;
7578 main ()
7580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7581 test_array [0] = 0
7584 return 0;
7586 _ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (ac_try="$ac_compile"
7589 case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592 esac
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_compile") 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } && {
7601 test -z "$ac_c_werror_flag" ||
7602 test ! -s conftest.err
7603 } && test -s conftest.$ac_objext; then
7604 ac_hi=$ac_mid; break
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 ac_lo=`expr $ac_mid + 1`
7610 if test $ac_lo -le $ac_mid; then
7611 ac_lo= ac_hi=
7612 break
7614 ac_mid=`expr 2 '*' $ac_mid + 1`
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 done
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7630 typedef int ac__type_sizeof_;
7632 main ()
7634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7635 test_array [0] = 0
7638 return 0;
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 ac_hi=-1 ac_mid=-1
7659 while :; do
7660 cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 $ac_includes_default
7667 typedef int ac__type_sizeof_;
7669 main ()
7671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7672 test_array [0] = 0
7675 return 0;
7677 _ACEOF
7678 rm -f conftest.$ac_objext
7679 if { (ac_try="$ac_compile"
7680 case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683 esac
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_compile") 2>conftest.er1
7686 ac_status=$?
7687 grep -v '^ *+' conftest.er1 >conftest.err
7688 rm -f conftest.er1
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } && {
7692 test -z "$ac_c_werror_flag" ||
7693 test ! -s conftest.err
7694 } && test -s conftest.$ac_objext; then
7695 ac_lo=$ac_mid; break
7696 else
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_hi=`expr '(' $ac_mid ')' - 1`
7701 if test $ac_mid -le $ac_hi; then
7702 ac_lo= ac_hi=
7703 break
7705 ac_mid=`expr 2 '*' $ac_mid`
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 done
7710 else
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_lo= ac_hi=
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 # Binary search between lo and hi bounds.
7722 while test "x$ac_lo" != "x$ac_hi"; do
7723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 $ac_includes_default
7731 typedef int ac__type_sizeof_;
7733 main ()
7735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7736 test_array [0] = 0
7739 return 0;
7741 _ACEOF
7742 rm -f conftest.$ac_objext
7743 if { (ac_try="$ac_compile"
7744 case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_compile") 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest.$ac_objext; then
7759 ac_hi=$ac_mid
7760 else
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 ac_lo=`expr '(' $ac_mid ')' + 1`
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 done
7769 case $ac_lo in
7770 ?*) ac_cv_sizeof_int=$ac_lo;;
7771 '') if test "$ac_cv_type_int" = yes; then
7772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7773 See \`config.log' for more details." >&5
7774 echo "$as_me: error: cannot compute sizeof (int)
7775 See \`config.log' for more details." >&2;}
7776 { (exit 77); exit 77; }; }
7777 else
7778 ac_cv_sizeof_int=0
7779 fi ;;
7780 esac
7781 else
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 typedef int ac__type_sizeof_;
7790 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7791 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7792 #include <stdio.h>
7793 #include <stdlib.h>
7795 main ()
7798 FILE *f = fopen ("conftest.val", "w");
7799 if (! f)
7800 return 1;
7801 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7803 long int i = longval ();
7804 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7805 return 1;
7806 fprintf (f, "%ld\n", i);
7808 else
7810 unsigned long int i = ulongval ();
7811 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7812 return 1;
7813 fprintf (f, "%lu\n", i);
7815 return ferror (f) || fclose (f) != 0;
7818 return 0;
7820 _ACEOF
7821 rm -f conftest$ac_exeext
7822 if { (ac_try="$ac_link"
7823 case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_link") 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7832 { (case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_sizeof_int=`cat conftest.val`
7842 else
7843 echo "$as_me: program exited with status $ac_status" >&5
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ( exit $ac_status )
7848 if test "$ac_cv_type_int" = yes; then
7849 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7850 See \`config.log' for more details." >&5
7851 echo "$as_me: error: cannot compute sizeof (int)
7852 See \`config.log' for more details." >&2;}
7853 { (exit 77); exit 77; }; }
7854 else
7855 ac_cv_sizeof_int=0
7858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7860 rm -f conftest.val
7862 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7863 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7867 cat >>confdefs.h <<_ACEOF
7868 #define SIZEOF_INT $ac_cv_sizeof_int
7869 _ACEOF
7872 { echo "$as_me:$LINENO: checking for long" >&5
7873 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7874 if test "${ac_cv_type_long+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h. */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7883 $ac_includes_default
7884 typedef long ac__type_new_;
7886 main ()
7888 if ((ac__type_new_ *) 0)
7889 return 0;
7890 if (sizeof (ac__type_new_))
7891 return 0;
7893 return 0;
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7898 case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 ac_cv_type_long=yes
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 ac_cv_type_long=no
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7924 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7926 # The cast to long int works around a bug in the HP C Compiler
7927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7929 # This bug is HP SR number 8606223364.
7930 { echo "$as_me:$LINENO: checking size of long" >&5
7931 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7932 if test "${ac_cv_sizeof_long+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935 if test "$cross_compiling" = yes; then
7936 # Depending upon the size, compute the lo and hi bounds.
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h. */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 $ac_includes_default
7944 typedef long ac__type_sizeof_;
7946 main ()
7948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7949 test_array [0] = 0
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_lo=0 ac_mid=0
7973 while :; do
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 typedef long ac__type_sizeof_;
7983 main ()
7985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7986 test_array [0] = 0
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7994 case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8009 ac_hi=$ac_mid; break
8010 else
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 ac_lo=`expr $ac_mid + 1`
8015 if test $ac_lo -le $ac_mid; then
8016 ac_lo= ac_hi=
8017 break
8019 ac_mid=`expr 2 '*' $ac_mid + 1`
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023 done
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 $ac_includes_default
8035 typedef long ac__type_sizeof_;
8037 main ()
8039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8040 test_array [0] = 0
8043 return 0;
8045 _ACEOF
8046 rm -f conftest.$ac_objext
8047 if { (ac_try="$ac_compile"
8048 case "(($ac_try" in
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8051 esac
8052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8053 (eval "$ac_compile") 2>conftest.er1
8054 ac_status=$?
8055 grep -v '^ *+' conftest.er1 >conftest.err
8056 rm -f conftest.er1
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } && {
8060 test -z "$ac_c_werror_flag" ||
8061 test ! -s conftest.err
8062 } && test -s conftest.$ac_objext; then
8063 ac_hi=-1 ac_mid=-1
8064 while :; do
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 typedef long ac__type_sizeof_;
8074 main ()
8076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8077 test_array [0] = 0
8080 return 0;
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (ac_try="$ac_compile"
8085 case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8100 ac_lo=$ac_mid; break
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_hi=`expr '(' $ac_mid ')' - 1`
8106 if test $ac_mid -le $ac_hi; then
8107 ac_lo= ac_hi=
8108 break
8110 ac_mid=`expr 2 '*' $ac_mid`
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 done
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_lo= ac_hi=
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 # Binary search between lo and hi bounds.
8127 while test "x$ac_lo" != "x$ac_hi"; do
8128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 $ac_includes_default
8136 typedef long ac__type_sizeof_;
8138 main ()
8140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8141 test_array [0] = 0
8144 return 0;
8146 _ACEOF
8147 rm -f conftest.$ac_objext
8148 if { (ac_try="$ac_compile"
8149 case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152 esac
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_hi=$ac_mid
8165 else
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_lo=`expr '(' $ac_mid ')' + 1`
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 done
8174 case $ac_lo in
8175 ?*) ac_cv_sizeof_long=$ac_lo;;
8176 '') if test "$ac_cv_type_long" = yes; then
8177 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8178 See \`config.log' for more details." >&5
8179 echo "$as_me: error: cannot compute sizeof (long)
8180 See \`config.log' for more details." >&2;}
8181 { (exit 77); exit 77; }; }
8182 else
8183 ac_cv_sizeof_long=0
8184 fi ;;
8185 esac
8186 else
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h. */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 $ac_includes_default
8194 typedef long ac__type_sizeof_;
8195 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8196 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8197 #include <stdio.h>
8198 #include <stdlib.h>
8200 main ()
8203 FILE *f = fopen ("conftest.val", "w");
8204 if (! f)
8205 return 1;
8206 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8208 long int i = longval ();
8209 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8210 return 1;
8211 fprintf (f, "%ld\n", i);
8213 else
8215 unsigned long int i = ulongval ();
8216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8217 return 1;
8218 fprintf (f, "%lu\n", i);
8220 return ferror (f) || fclose (f) != 0;
8223 return 0;
8225 _ACEOF
8226 rm -f conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8237 { (case "(($ac_try" in
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8240 esac
8241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_try") 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_sizeof_long=`cat conftest.val`
8247 else
8248 echo "$as_me: program exited with status $ac_status" >&5
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 ( exit $ac_status )
8253 if test "$ac_cv_type_long" = yes; then
8254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8255 See \`config.log' for more details." >&5
8256 echo "$as_me: error: cannot compute sizeof (long)
8257 See \`config.log' for more details." >&2;}
8258 { (exit 77); exit 77; }; }
8259 else
8260 ac_cv_sizeof_long=0
8263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8265 rm -f conftest.val
8267 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8268 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8272 cat >>confdefs.h <<_ACEOF
8273 #define SIZEOF_LONG $ac_cv_sizeof_long
8274 _ACEOF
8277 { echo "$as_me:$LINENO: checking for void *" >&5
8278 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8279 if test "${ac_cv_type_void_p+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 typedef void * ac__type_new_;
8291 main ()
8293 if ((ac__type_new_ *) 0)
8294 return 0;
8295 if (sizeof (ac__type_new_))
8296 return 0;
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 ac_cv_type_void_p=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_cv_type_void_p=no
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8329 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8331 # The cast to long int works around a bug in the HP C Compiler
8332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8334 # This bug is HP SR number 8606223364.
8335 { echo "$as_me:$LINENO: checking size of void *" >&5
8336 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8337 if test "${ac_cv_sizeof_void_p+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 if test "$cross_compiling" = yes; then
8341 # Depending upon the size, compute the lo and hi bounds.
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 typedef void * ac__type_sizeof_;
8351 main ()
8353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8354 test_array [0] = 0
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8362 case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_lo=0 ac_mid=0
8378 while :; do
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 typedef void * ac__type_sizeof_;
8388 main ()
8390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8391 test_array [0] = 0
8394 return 0;
8396 _ACEOF
8397 rm -f conftest.$ac_objext
8398 if { (ac_try="$ac_compile"
8399 case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_compile") 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest.$ac_objext; then
8414 ac_hi=$ac_mid; break
8415 else
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_lo=`expr $ac_mid + 1`
8420 if test $ac_lo -le $ac_mid; then
8421 ac_lo= ac_hi=
8422 break
8424 ac_mid=`expr 2 '*' $ac_mid + 1`
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 done
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h. */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 typedef void * ac__type_sizeof_;
8442 main ()
8444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8445 test_array [0] = 0
8448 return 0;
8450 _ACEOF
8451 rm -f conftest.$ac_objext
8452 if { (ac_try="$ac_compile"
8453 case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_compile") 2>conftest.er1
8459 ac_status=$?
8460 grep -v '^ *+' conftest.er1 >conftest.err
8461 rm -f conftest.er1
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest.$ac_objext; then
8468 ac_hi=-1 ac_mid=-1
8469 while :; do
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 typedef void * ac__type_sizeof_;
8479 main ()
8481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8482 test_array [0] = 0
8485 return 0;
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (ac_try="$ac_compile"
8490 case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_lo=$ac_mid; break
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_hi=`expr '(' $ac_mid ')' - 1`
8511 if test $ac_mid -le $ac_hi; then
8512 ac_lo= ac_hi=
8513 break
8515 ac_mid=`expr 2 '*' $ac_mid`
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 done
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_lo= ac_hi=
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 # Binary search between lo and hi bounds.
8532 while test "x$ac_lo" != "x$ac_hi"; do
8533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8541 typedef void * ac__type_sizeof_;
8543 main ()
8545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8546 test_array [0] = 0
8549 return 0;
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (ac_try="$ac_compile"
8554 case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557 esac
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_compile") 2>conftest.er1
8560 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && {
8566 test -z "$ac_c_werror_flag" ||
8567 test ! -s conftest.err
8568 } && test -s conftest.$ac_objext; then
8569 ac_hi=$ac_mid
8570 else
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_lo=`expr '(' $ac_mid ')' + 1`
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 done
8579 case $ac_lo in
8580 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8581 '') if test "$ac_cv_type_void_p" = yes; then
8582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8583 See \`config.log' for more details." >&5
8584 echo "$as_me: error: cannot compute sizeof (void *)
8585 See \`config.log' for more details." >&2;}
8586 { (exit 77); exit 77; }; }
8587 else
8588 ac_cv_sizeof_void_p=0
8589 fi ;;
8590 esac
8591 else
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h. */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 $ac_includes_default
8599 typedef void * ac__type_sizeof_;
8600 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8601 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8602 #include <stdio.h>
8603 #include <stdlib.h>
8605 main ()
8608 FILE *f = fopen ("conftest.val", "w");
8609 if (! f)
8610 return 1;
8611 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8613 long int i = longval ();
8614 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8615 return 1;
8616 fprintf (f, "%ld\n", i);
8618 else
8620 unsigned long int i = ulongval ();
8621 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8622 return 1;
8623 fprintf (f, "%lu\n", i);
8625 return ferror (f) || fclose (f) != 0;
8628 return 0;
8630 _ACEOF
8631 rm -f conftest$ac_exeext
8632 if { (ac_try="$ac_link"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_link") 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8642 { (case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_try") 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_sizeof_void_p=`cat conftest.val`
8652 else
8653 echo "$as_me: program exited with status $ac_status" >&5
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ( exit $ac_status )
8658 if test "$ac_cv_type_void_p" = yes; then
8659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8660 See \`config.log' for more details." >&5
8661 echo "$as_me: error: cannot compute sizeof (void *)
8662 See \`config.log' for more details." >&2;}
8663 { (exit 77); exit 77; }; }
8664 else
8665 ac_cv_sizeof_void_p=0
8668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8670 rm -f conftest.val
8672 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8673 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8677 cat >>confdefs.h <<_ACEOF
8678 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8679 _ACEOF
8682 { echo "$as_me:$LINENO: checking for short" >&5
8683 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8684 if test "${ac_cv_type_short+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 $ac_includes_default
8694 typedef short ac__type_new_;
8696 main ()
8698 if ((ac__type_new_ *) 0)
8699 return 0;
8700 if (sizeof (ac__type_new_))
8701 return 0;
8703 return 0;
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_cv_type_short=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_type_short=no
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8734 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8736 # The cast to long int works around a bug in the HP C Compiler
8737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8739 # This bug is HP SR number 8606223364.
8740 { echo "$as_me:$LINENO: checking size of short" >&5
8741 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8742 if test "${ac_cv_sizeof_short+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 if test "$cross_compiling" = yes; then
8746 # Depending upon the size, compute the lo and hi bounds.
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 typedef short ac__type_sizeof_;
8756 main ()
8758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8759 test_array [0] = 0
8762 return 0;
8764 _ACEOF
8765 rm -f conftest.$ac_objext
8766 if { (ac_try="$ac_compile"
8767 case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8770 esac
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_compile") 2>conftest.er1
8773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } && {
8779 test -z "$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 } && test -s conftest.$ac_objext; then
8782 ac_lo=0 ac_mid=0
8783 while :; do
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 $ac_includes_default
8791 typedef short ac__type_sizeof_;
8793 main ()
8795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8796 test_array [0] = 0
8799 return 0;
8801 _ACEOF
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8804 case "(($ac_try" in
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8807 esac
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
8819 ac_hi=$ac_mid; break
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_lo=`expr $ac_mid + 1`
8825 if test $ac_lo -le $ac_mid; then
8826 ac_lo= ac_hi=
8827 break
8829 ac_mid=`expr 2 '*' $ac_mid + 1`
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 done
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 typedef short ac__type_sizeof_;
8847 main ()
8849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8850 test_array [0] = 0
8853 return 0;
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8858 case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861 esac
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && {
8870 test -z "$ac_c_werror_flag" ||
8871 test ! -s conftest.err
8872 } && test -s conftest.$ac_objext; then
8873 ac_hi=-1 ac_mid=-1
8874 while :; do
8875 cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h. */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 $ac_includes_default
8882 typedef short ac__type_sizeof_;
8884 main ()
8886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8887 test_array [0] = 0
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (ac_try="$ac_compile"
8895 case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_compile") 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest.$ac_objext; then
8910 ac_lo=$ac_mid; break
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_hi=`expr '(' $ac_mid ')' - 1`
8916 if test $ac_mid -le $ac_hi; then
8917 ac_lo= ac_hi=
8918 break
8920 ac_mid=`expr 2 '*' $ac_mid`
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 done
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_lo= ac_hi=
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 # Binary search between lo and hi bounds.
8937 while test "x$ac_lo" != "x$ac_hi"; do
8938 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 typedef short ac__type_sizeof_;
8948 main ()
8950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8951 test_array [0] = 0
8954 return 0;
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (ac_try="$ac_compile"
8959 case "(($ac_try" in
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8962 esac
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && {
8971 test -z "$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8973 } && test -s conftest.$ac_objext; then
8974 ac_hi=$ac_mid
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_lo=`expr '(' $ac_mid ')' + 1`
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 done
8984 case $ac_lo in
8985 ?*) ac_cv_sizeof_short=$ac_lo;;
8986 '') if test "$ac_cv_type_short" = yes; then
8987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8988 See \`config.log' for more details." >&5
8989 echo "$as_me: error: cannot compute sizeof (short)
8990 See \`config.log' for more details." >&2;}
8991 { (exit 77); exit 77; }; }
8992 else
8993 ac_cv_sizeof_short=0
8994 fi ;;
8995 esac
8996 else
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 $ac_includes_default
9004 typedef short ac__type_sizeof_;
9005 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9006 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9007 #include <stdio.h>
9008 #include <stdlib.h>
9010 main ()
9013 FILE *f = fopen ("conftest.val", "w");
9014 if (! f)
9015 return 1;
9016 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9018 long int i = longval ();
9019 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9020 return 1;
9021 fprintf (f, "%ld\n", i);
9023 else
9025 unsigned long int i = ulongval ();
9026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9027 return 1;
9028 fprintf (f, "%lu\n", i);
9030 return ferror (f) || fclose (f) != 0;
9033 return 0;
9035 _ACEOF
9036 rm -f conftest$ac_exeext
9037 if { (ac_try="$ac_link"
9038 case "(($ac_try" in
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9041 esac
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_link") 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9047 { (case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_try") 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_cv_sizeof_short=`cat conftest.val`
9057 else
9058 echo "$as_me: program exited with status $ac_status" >&5
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9062 ( exit $ac_status )
9063 if test "$ac_cv_type_short" = yes; then
9064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9065 See \`config.log' for more details." >&5
9066 echo "$as_me: error: cannot compute sizeof (short)
9067 See \`config.log' for more details." >&2;}
9068 { (exit 77); exit 77; }; }
9069 else
9070 ac_cv_sizeof_short=0
9073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9075 rm -f conftest.val
9077 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9078 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9082 cat >>confdefs.h <<_ACEOF
9083 #define SIZEOF_SHORT $ac_cv_sizeof_short
9084 _ACEOF
9087 { echo "$as_me:$LINENO: checking for float" >&5
9088 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9089 if test "${ac_cv_type_float+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 typedef float ac__type_new_;
9101 main ()
9103 if ((ac__type_new_ *) 0)
9104 return 0;
9105 if (sizeof (ac__type_new_))
9106 return 0;
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9113 case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116 esac
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
9128 ac_cv_type_float=yes
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_cv_type_float=no
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9139 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9141 # The cast to long int works around a bug in the HP C Compiler
9142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9144 # This bug is HP SR number 8606223364.
9145 { echo "$as_me:$LINENO: checking size of float" >&5
9146 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9147 if test "${ac_cv_sizeof_float+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150 if test "$cross_compiling" = yes; then
9151 # Depending upon the size, compute the lo and hi bounds.
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 typedef float ac__type_sizeof_;
9161 main ()
9163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9164 test_array [0] = 0
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_compile") 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest.$ac_objext; then
9187 ac_lo=0 ac_mid=0
9188 while :; do
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 $ac_includes_default
9196 typedef float ac__type_sizeof_;
9198 main ()
9200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9201 test_array [0] = 0
9204 return 0;
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (ac_try="$ac_compile"
9209 case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212 esac
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } && {
9221 test -z "$ac_c_werror_flag" ||
9222 test ! -s conftest.err
9223 } && test -s conftest.$ac_objext; then
9224 ac_hi=$ac_mid; break
9225 else
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 ac_lo=`expr $ac_mid + 1`
9230 if test $ac_lo -le $ac_mid; then
9231 ac_lo= ac_hi=
9232 break
9234 ac_mid=`expr 2 '*' $ac_mid + 1`
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 done
9239 else
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $ac_includes_default
9250 typedef float ac__type_sizeof_;
9252 main ()
9254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9255 test_array [0] = 0
9258 return 0;
9260 _ACEOF
9261 rm -f conftest.$ac_objext
9262 if { (ac_try="$ac_compile"
9263 case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9266 esac
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_compile") 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && {
9275 test -z "$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9277 } && test -s conftest.$ac_objext; then
9278 ac_hi=-1 ac_mid=-1
9279 while :; do
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 $ac_includes_default
9287 typedef float ac__type_sizeof_;
9289 main ()
9291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9292 test_array [0] = 0
9295 return 0;
9297 _ACEOF
9298 rm -f conftest.$ac_objext
9299 if { (ac_try="$ac_compile"
9300 case "(($ac_try" in
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9303 esac
9304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_compile") 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest.$ac_objext; then
9315 ac_lo=$ac_mid; break
9316 else
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_hi=`expr '(' $ac_mid ')' - 1`
9321 if test $ac_mid -le $ac_hi; then
9322 ac_lo= ac_hi=
9323 break
9325 ac_mid=`expr 2 '*' $ac_mid`
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 done
9330 else
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ac_lo= ac_hi=
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 # Binary search between lo and hi bounds.
9342 while test "x$ac_lo" != "x$ac_hi"; do
9343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 typedef float ac__type_sizeof_;
9353 main ()
9355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9356 test_array [0] = 0
9359 return 0;
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (ac_try="$ac_compile"
9364 case "(($ac_try" in
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9367 esac
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_compile") 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && {
9376 test -z "$ac_c_werror_flag" ||
9377 test ! -s conftest.err
9378 } && test -s conftest.$ac_objext; then
9379 ac_hi=$ac_mid
9380 else
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ac_lo=`expr '(' $ac_mid ')' + 1`
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 done
9389 case $ac_lo in
9390 ?*) ac_cv_sizeof_float=$ac_lo;;
9391 '') if test "$ac_cv_type_float" = yes; then
9392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9393 See \`config.log' for more details." >&5
9394 echo "$as_me: error: cannot compute sizeof (float)
9395 See \`config.log' for more details." >&2;}
9396 { (exit 77); exit 77; }; }
9397 else
9398 ac_cv_sizeof_float=0
9399 fi ;;
9400 esac
9401 else
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9409 typedef float ac__type_sizeof_;
9410 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9411 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9412 #include <stdio.h>
9413 #include <stdlib.h>
9415 main ()
9418 FILE *f = fopen ("conftest.val", "w");
9419 if (! f)
9420 return 1;
9421 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9423 long int i = longval ();
9424 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9425 return 1;
9426 fprintf (f, "%ld\n", i);
9428 else
9430 unsigned long int i = ulongval ();
9431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9432 return 1;
9433 fprintf (f, "%lu\n", i);
9435 return ferror (f) || fclose (f) != 0;
9438 return 0;
9440 _ACEOF
9441 rm -f conftest$ac_exeext
9442 if { (ac_try="$ac_link"
9443 case "(($ac_try" in
9444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9446 esac
9447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448 (eval "$ac_link") 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9452 { (case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455 esac
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_try") 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 ac_cv_sizeof_float=`cat conftest.val`
9462 else
9463 echo "$as_me: program exited with status $ac_status" >&5
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ( exit $ac_status )
9468 if test "$ac_cv_type_float" = yes; then
9469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9470 See \`config.log' for more details." >&5
9471 echo "$as_me: error: cannot compute sizeof (float)
9472 See \`config.log' for more details." >&2;}
9473 { (exit 77); exit 77; }; }
9474 else
9475 ac_cv_sizeof_float=0
9478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9480 rm -f conftest.val
9482 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9483 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9487 cat >>confdefs.h <<_ACEOF
9488 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9489 _ACEOF
9492 { echo "$as_me:$LINENO: checking for double" >&5
9493 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9494 if test "${ac_cv_type_double+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 $ac_includes_default
9504 typedef double ac__type_new_;
9506 main ()
9508 if ((ac__type_new_ *) 0)
9509 return 0;
9510 if (sizeof (ac__type_new_))
9511 return 0;
9513 return 0;
9515 _ACEOF
9516 rm -f conftest.$ac_objext
9517 if { (ac_try="$ac_compile"
9518 case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_c_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.$ac_objext; then
9533 ac_cv_type_double=yes
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_cv_type_double=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9544 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9546 # The cast to long int works around a bug in the HP C Compiler
9547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9549 # This bug is HP SR number 8606223364.
9550 { echo "$as_me:$LINENO: checking size of double" >&5
9551 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9552 if test "${ac_cv_sizeof_double+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 if test "$cross_compiling" = yes; then
9556 # Depending upon the size, compute the lo and hi bounds.
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 typedef double ac__type_sizeof_;
9566 main ()
9568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9569 test_array [0] = 0
9572 return 0;
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (ac_try="$ac_compile"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_compile") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest.$ac_objext; then
9592 ac_lo=0 ac_mid=0
9593 while :; do
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 $ac_includes_default
9601 typedef double ac__type_sizeof_;
9603 main ()
9605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9606 test_array [0] = 0
9609 return 0;
9611 _ACEOF
9612 rm -f conftest.$ac_objext
9613 if { (ac_try="$ac_compile"
9614 case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_compile") 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_c_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest.$ac_objext; then
9629 ac_hi=$ac_mid; break
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_lo=`expr $ac_mid + 1`
9635 if test $ac_lo -le $ac_mid; then
9636 ac_lo= ac_hi=
9637 break
9639 ac_mid=`expr 2 '*' $ac_mid + 1`
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643 done
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9655 typedef double ac__type_sizeof_;
9657 main ()
9659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9660 test_array [0] = 0
9663 return 0;
9665 _ACEOF
9666 rm -f conftest.$ac_objext
9667 if { (ac_try="$ac_compile"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_compile") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
9683 ac_hi=-1 ac_mid=-1
9684 while :; do
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 $ac_includes_default
9692 typedef double ac__type_sizeof_;
9694 main ()
9696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9697 test_array [0] = 0
9700 return 0;
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (ac_try="$ac_compile"
9705 case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_compile") 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } && {
9717 test -z "$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 } && test -s conftest.$ac_objext; then
9720 ac_lo=$ac_mid; break
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_hi=`expr '(' $ac_mid ')' - 1`
9726 if test $ac_mid -le $ac_hi; then
9727 ac_lo= ac_hi=
9728 break
9730 ac_mid=`expr 2 '*' $ac_mid`
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 done
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_lo= ac_hi=
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746 # Binary search between lo and hi bounds.
9747 while test "x$ac_lo" != "x$ac_hi"; do
9748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 typedef double ac__type_sizeof_;
9758 main ()
9760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9761 test_array [0] = 0
9764 return 0;
9766 _ACEOF
9767 rm -f conftest.$ac_objext
9768 if { (ac_try="$ac_compile"
9769 case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772 esac
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_compile") 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest.$ac_objext; then
9784 ac_hi=$ac_mid
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_lo=`expr '(' $ac_mid ')' + 1`
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 done
9794 case $ac_lo in
9795 ?*) ac_cv_sizeof_double=$ac_lo;;
9796 '') if test "$ac_cv_type_double" = yes; then
9797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9798 See \`config.log' for more details." >&5
9799 echo "$as_me: error: cannot compute sizeof (double)
9800 See \`config.log' for more details." >&2;}
9801 { (exit 77); exit 77; }; }
9802 else
9803 ac_cv_sizeof_double=0
9804 fi ;;
9805 esac
9806 else
9807 cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h. */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 $ac_includes_default
9814 typedef double ac__type_sizeof_;
9815 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9816 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9817 #include <stdio.h>
9818 #include <stdlib.h>
9820 main ()
9823 FILE *f = fopen ("conftest.val", "w");
9824 if (! f)
9825 return 1;
9826 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9828 long int i = longval ();
9829 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9830 return 1;
9831 fprintf (f, "%ld\n", i);
9833 else
9835 unsigned long int i = ulongval ();
9836 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9837 return 1;
9838 fprintf (f, "%lu\n", i);
9840 return ferror (f) || fclose (f) != 0;
9843 return 0;
9845 _ACEOF
9846 rm -f conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_cv_sizeof_double=`cat conftest.val`
9867 else
9868 echo "$as_me: program exited with status $ac_status" >&5
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 ( exit $ac_status )
9873 if test "$ac_cv_type_double" = yes; then
9874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9875 See \`config.log' for more details." >&5
9876 echo "$as_me: error: cannot compute sizeof (double)
9877 See \`config.log' for more details." >&2;}
9878 { (exit 77); exit 77; }; }
9879 else
9880 ac_cv_sizeof_double=0
9883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9885 rm -f conftest.val
9887 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9888 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9892 cat >>confdefs.h <<_ACEOF
9893 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9894 _ACEOF
9897 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9898 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9899 if test "${ac_cv_type_fpos_t+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h. */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908 $ac_includes_default
9909 typedef fpos_t ac__type_new_;
9911 main ()
9913 if ((ac__type_new_ *) 0)
9914 return 0;
9915 if (sizeof (ac__type_new_))
9916 return 0;
9918 return 0;
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 ac_cv_type_fpos_t=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_type_fpos_t=no
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9949 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9951 # The cast to long int works around a bug in the HP C Compiler
9952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9954 # This bug is HP SR number 8606223364.
9955 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9956 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9957 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960 if test "$cross_compiling" = yes; then
9961 # Depending upon the size, compute the lo and hi bounds.
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 $ac_includes_default
9969 typedef fpos_t ac__type_sizeof_;
9971 main ()
9973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9974 test_array [0] = 0
9977 return 0;
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (ac_try="$ac_compile"
9982 case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_compile") 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest.$ac_objext; then
9997 ac_lo=0 ac_mid=0
9998 while :; do
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 $ac_includes_default
10006 typedef fpos_t ac__type_sizeof_;
10008 main ()
10010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10011 test_array [0] = 0
10014 return 0;
10016 _ACEOF
10017 rm -f conftest.$ac_objext
10018 if { (ac_try="$ac_compile"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_compile") 2>conftest.er1
10025 ac_status=$?
10026 grep -v '^ *+' conftest.er1 >conftest.err
10027 rm -f conftest.er1
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && {
10031 test -z "$ac_c_werror_flag" ||
10032 test ! -s conftest.err
10033 } && test -s conftest.$ac_objext; then
10034 ac_hi=$ac_mid; break
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_lo=`expr $ac_mid + 1`
10040 if test $ac_lo -le $ac_mid; then
10041 ac_lo= ac_hi=
10042 break
10044 ac_mid=`expr 2 '*' $ac_mid + 1`
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 done
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h. */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 $ac_includes_default
10060 typedef fpos_t ac__type_sizeof_;
10062 main ()
10064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10065 test_array [0] = 0
10068 return 0;
10070 _ACEOF
10071 rm -f conftest.$ac_objext
10072 if { (ac_try="$ac_compile"
10073 case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076 esac
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_compile") 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest.$ac_objext; then
10088 ac_hi=-1 ac_mid=-1
10089 while :; do
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 $ac_includes_default
10097 typedef fpos_t ac__type_sizeof_;
10099 main ()
10101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10102 test_array [0] = 0
10105 return 0;
10107 _ACEOF
10108 rm -f conftest.$ac_objext
10109 if { (ac_try="$ac_compile"
10110 case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_compile") 2>conftest.er1
10116 ac_status=$?
10117 grep -v '^ *+' conftest.er1 >conftest.err
10118 rm -f conftest.er1
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && {
10122 test -z "$ac_c_werror_flag" ||
10123 test ! -s conftest.err
10124 } && test -s conftest.$ac_objext; then
10125 ac_lo=$ac_mid; break
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_hi=`expr '(' $ac_mid ')' - 1`
10131 if test $ac_mid -le $ac_hi; then
10132 ac_lo= ac_hi=
10133 break
10135 ac_mid=`expr 2 '*' $ac_mid`
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 done
10140 else
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_lo= ac_hi=
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 # Binary search between lo and hi bounds.
10152 while test "x$ac_lo" != "x$ac_hi"; do
10153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 $ac_includes_default
10161 typedef fpos_t ac__type_sizeof_;
10163 main ()
10165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10166 test_array [0] = 0
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (ac_try="$ac_compile"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_compile") 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest.$ac_objext; then
10189 ac_hi=$ac_mid
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_lo=`expr '(' $ac_mid ')' + 1`
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 done
10199 case $ac_lo in
10200 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10201 '') if test "$ac_cv_type_fpos_t" = yes; then
10202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10203 See \`config.log' for more details." >&5
10204 echo "$as_me: error: cannot compute sizeof (fpos_t)
10205 See \`config.log' for more details." >&2;}
10206 { (exit 77); exit 77; }; }
10207 else
10208 ac_cv_sizeof_fpos_t=0
10209 fi ;;
10210 esac
10211 else
10212 cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h. */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 $ac_includes_default
10219 typedef fpos_t ac__type_sizeof_;
10220 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10221 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10222 #include <stdio.h>
10223 #include <stdlib.h>
10225 main ()
10228 FILE *f = fopen ("conftest.val", "w");
10229 if (! f)
10230 return 1;
10231 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10233 long int i = longval ();
10234 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10235 return 1;
10236 fprintf (f, "%ld\n", i);
10238 else
10240 unsigned long int i = ulongval ();
10241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10242 return 1;
10243 fprintf (f, "%lu\n", i);
10245 return ferror (f) || fclose (f) != 0;
10248 return 0;
10250 _ACEOF
10251 rm -f conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_link") 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_sizeof_fpos_t=`cat conftest.val`
10272 else
10273 echo "$as_me: program exited with status $ac_status" >&5
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ( exit $ac_status )
10278 if test "$ac_cv_type_fpos_t" = yes; then
10279 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10280 See \`config.log' for more details." >&5
10281 echo "$as_me: error: cannot compute sizeof (fpos_t)
10282 See \`config.log' for more details." >&2;}
10283 { (exit 77); exit 77; }; }
10284 else
10285 ac_cv_sizeof_fpos_t=0
10288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10290 rm -f conftest.val
10292 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10293 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10297 cat >>confdefs.h <<_ACEOF
10298 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10299 _ACEOF
10302 { echo "$as_me:$LINENO: checking for size_t" >&5
10303 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10304 if test "${ac_cv_type_size_t+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10314 typedef size_t ac__type_new_;
10316 main ()
10318 if ((ac__type_new_ *) 0)
10319 return 0;
10320 if (sizeof (ac__type_new_))
10321 return 0;
10323 return 0;
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (ac_try="$ac_compile"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_compile") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest.$ac_objext; then
10343 ac_cv_type_size_t=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ac_cv_type_size_t=no
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10354 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10356 # The cast to long int works around a bug in the HP C Compiler
10357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10359 # This bug is HP SR number 8606223364.
10360 { echo "$as_me:$LINENO: checking size of size_t" >&5
10361 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10362 if test "${ac_cv_sizeof_size_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365 if test "$cross_compiling" = yes; then
10366 # Depending upon the size, compute the lo and hi bounds.
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 $ac_includes_default
10374 typedef size_t ac__type_sizeof_;
10376 main ()
10378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10379 test_array [0] = 0
10382 return 0;
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_compile") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest.$ac_objext; then
10402 ac_lo=0 ac_mid=0
10403 while :; do
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 $ac_includes_default
10411 typedef size_t ac__type_sizeof_;
10413 main ()
10415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10416 test_array [0] = 0
10419 return 0;
10421 _ACEOF
10422 rm -f conftest.$ac_objext
10423 if { (ac_try="$ac_compile"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_compile") 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && {
10436 test -z "$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10438 } && test -s conftest.$ac_objext; then
10439 ac_hi=$ac_mid; break
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_lo=`expr $ac_mid + 1`
10445 if test $ac_lo -le $ac_mid; then
10446 ac_lo= ac_hi=
10447 break
10449 ac_mid=`expr 2 '*' $ac_mid + 1`
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 done
10454 else
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 $ac_includes_default
10465 typedef size_t ac__type_sizeof_;
10467 main ()
10469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10470 test_array [0] = 0
10473 return 0;
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (ac_try="$ac_compile"
10478 case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10481 esac
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_compile") 2>conftest.er1
10484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && {
10490 test -z "$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10492 } && test -s conftest.$ac_objext; then
10493 ac_hi=-1 ac_mid=-1
10494 while :; do
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 typedef size_t ac__type_sizeof_;
10504 main ()
10506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10507 test_array [0] = 0
10510 return 0;
10512 _ACEOF
10513 rm -f conftest.$ac_objext
10514 if { (ac_try="$ac_compile"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_compile") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest.$ac_objext; then
10530 ac_lo=$ac_mid; break
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ac_hi=`expr '(' $ac_mid ')' - 1`
10536 if test $ac_mid -le $ac_hi; then
10537 ac_lo= ac_hi=
10538 break
10540 ac_mid=`expr 2 '*' $ac_mid`
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 done
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_lo= ac_hi=
10552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 # Binary search between lo and hi bounds.
10557 while test "x$ac_lo" != "x$ac_hi"; do
10558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h. */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 typedef size_t ac__type_sizeof_;
10568 main ()
10570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10571 test_array [0] = 0
10574 return 0;
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.$ac_objext; then
10594 ac_hi=$ac_mid
10595 else
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10599 ac_lo=`expr '(' $ac_mid ')' + 1`
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 done
10604 case $ac_lo in
10605 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10606 '') if test "$ac_cv_type_size_t" = yes; then
10607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10608 See \`config.log' for more details." >&5
10609 echo "$as_me: error: cannot compute sizeof (size_t)
10610 See \`config.log' for more details." >&2;}
10611 { (exit 77); exit 77; }; }
10612 else
10613 ac_cv_sizeof_size_t=0
10614 fi ;;
10615 esac
10616 else
10617 cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h. */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 $ac_includes_default
10624 typedef size_t ac__type_sizeof_;
10625 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10626 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10627 #include <stdio.h>
10628 #include <stdlib.h>
10630 main ()
10633 FILE *f = fopen ("conftest.val", "w");
10634 if (! f)
10635 return 1;
10636 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10638 long int i = longval ();
10639 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10640 return 1;
10641 fprintf (f, "%ld\n", i);
10643 else
10645 unsigned long int i = ulongval ();
10646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10647 return 1;
10648 fprintf (f, "%lu\n", i);
10650 return ferror (f) || fclose (f) != 0;
10653 return 0;
10655 _ACEOF
10656 rm -f conftest$ac_exeext
10657 if { (ac_try="$ac_link"
10658 case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10661 esac
10662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_link") 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_sizeof_size_t=`cat conftest.val`
10677 else
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ( exit $ac_status )
10683 if test "$ac_cv_type_size_t" = yes; then
10684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10685 See \`config.log' for more details." >&5
10686 echo "$as_me: error: cannot compute sizeof (size_t)
10687 See \`config.log' for more details." >&2;}
10688 { (exit 77); exit 77; }; }
10689 else
10690 ac_cv_sizeof_size_t=0
10693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10695 rm -f conftest.val
10697 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10698 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10702 cat >>confdefs.h <<_ACEOF
10703 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10704 _ACEOF
10707 { echo "$as_me:$LINENO: checking for pid_t" >&5
10708 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10709 if test "${ac_cv_type_pid_t+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 typedef pid_t ac__type_new_;
10721 main ()
10723 if ((ac__type_new_ *) 0)
10724 return 0;
10725 if (sizeof (ac__type_new_))
10726 return 0;
10728 return 0;
10730 _ACEOF
10731 rm -f conftest.$ac_objext
10732 if { (ac_try="$ac_compile"
10733 case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10736 esac
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_compile") 2>conftest.er1
10739 ac_status=$?
10740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest.$ac_objext; then
10748 ac_cv_type_pid_t=yes
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_cv_type_pid_t=no
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10759 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10761 # The cast to long int works around a bug in the HP C Compiler
10762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10764 # This bug is HP SR number 8606223364.
10765 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10766 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10767 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 if test "$cross_compiling" = yes; then
10771 # Depending upon the size, compute the lo and hi bounds.
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 $ac_includes_default
10779 typedef pid_t ac__type_sizeof_;
10781 main ()
10783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10784 test_array [0] = 0
10787 return 0;
10789 _ACEOF
10790 rm -f conftest.$ac_objext
10791 if { (ac_try="$ac_compile"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_compile") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest.$ac_objext; then
10807 ac_lo=0 ac_mid=0
10808 while :; do
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10816 typedef pid_t ac__type_sizeof_;
10818 main ()
10820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10821 test_array [0] = 0
10824 return 0;
10826 _ACEOF
10827 rm -f conftest.$ac_objext
10828 if { (ac_try="$ac_compile"
10829 case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_compile") 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest.$ac_objext; then
10844 ac_hi=$ac_mid; break
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_lo=`expr $ac_mid + 1`
10850 if test $ac_lo -le $ac_mid; then
10851 ac_lo= ac_hi=
10852 break
10854 ac_mid=`expr 2 '*' $ac_mid + 1`
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 done
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h. */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 $ac_includes_default
10870 typedef pid_t ac__type_sizeof_;
10872 main ()
10874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10875 test_array [0] = 0
10878 return 0;
10880 _ACEOF
10881 rm -f conftest.$ac_objext
10882 if { (ac_try="$ac_compile"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_compile") 2>conftest.er1
10889 ac_status=$?
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && {
10895 test -z "$ac_c_werror_flag" ||
10896 test ! -s conftest.err
10897 } && test -s conftest.$ac_objext; then
10898 ac_hi=-1 ac_mid=-1
10899 while :; do
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 typedef pid_t ac__type_sizeof_;
10909 main ()
10911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10912 test_array [0] = 0
10915 return 0;
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest.$ac_objext; then
10935 ac_lo=$ac_mid; break
10936 else
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 ac_hi=`expr '(' $ac_mid ')' - 1`
10941 if test $ac_mid -le $ac_hi; then
10942 ac_lo= ac_hi=
10943 break
10945 ac_mid=`expr 2 '*' $ac_mid`
10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949 done
10950 else
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10954 ac_lo= ac_hi=
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 # Binary search between lo and hi bounds.
10962 while test "x$ac_lo" != "x$ac_hi"; do
10963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 $ac_includes_default
10971 typedef pid_t ac__type_sizeof_;
10973 main ()
10975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10976 test_array [0] = 0
10979 return 0;
10981 _ACEOF
10982 rm -f conftest.$ac_objext
10983 if { (ac_try="$ac_compile"
10984 case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_compile") 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && {
10996 test -z "$ac_c_werror_flag" ||
10997 test ! -s conftest.err
10998 } && test -s conftest.$ac_objext; then
10999 ac_hi=$ac_mid
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ac_lo=`expr '(' $ac_mid ')' + 1`
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 done
11009 case $ac_lo in
11010 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11011 '') if test "$ac_cv_type_pid_t" = yes; then
11012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11013 See \`config.log' for more details." >&5
11014 echo "$as_me: error: cannot compute sizeof (pid_t)
11015 See \`config.log' for more details." >&2;}
11016 { (exit 77); exit 77; }; }
11017 else
11018 ac_cv_sizeof_pid_t=0
11019 fi ;;
11020 esac
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 typedef pid_t ac__type_sizeof_;
11030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11032 #include <stdio.h>
11033 #include <stdlib.h>
11035 main ()
11038 FILE *f = fopen ("conftest.val", "w");
11039 if (! f)
11040 return 1;
11041 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11043 long int i = longval ();
11044 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11045 return 1;
11046 fprintf (f, "%ld\n", i);
11048 else
11050 unsigned long int i = ulongval ();
11051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11052 return 1;
11053 fprintf (f, "%lu\n", i);
11055 return ferror (f) || fclose (f) != 0;
11058 return 0;
11060 _ACEOF
11061 rm -f conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_sizeof_pid_t=`cat conftest.val`
11082 else
11083 echo "$as_me: program exited with status $ac_status" >&5
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ( exit $ac_status )
11088 if test "$ac_cv_type_pid_t" = yes; then
11089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11090 See \`config.log' for more details." >&5
11091 echo "$as_me: error: cannot compute sizeof (pid_t)
11092 See \`config.log' for more details." >&2;}
11093 { (exit 77); exit 77; }; }
11094 else
11095 ac_cv_sizeof_pid_t=0
11098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11100 rm -f conftest.val
11102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11103 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11107 cat >>confdefs.h <<_ACEOF
11108 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11109 _ACEOF
11113 { echo "$as_me:$LINENO: checking for long long support" >&5
11114 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11115 have_long_long=no
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11124 main ()
11126 long long x; x = (long long)0;
11128 return 0;
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (ac_try="$ac_compile"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_compile") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } && {
11145 test -z "$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 } && test -s conftest.$ac_objext; then
11150 cat >>confdefs.h <<\_ACEOF
11151 #define HAVE_LONG_LONG 1
11152 _ACEOF
11154 have_long_long=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11165 echo "${ECHO_T}$have_long_long" >&6; }
11166 if test "$have_long_long" = yes ; then
11167 { echo "$as_me:$LINENO: checking for long long" >&5
11168 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11169 if test "${ac_cv_type_long_long+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 typedef long long ac__type_new_;
11181 main ()
11183 if ((ac__type_new_ *) 0)
11184 return 0;
11185 if (sizeof (ac__type_new_))
11186 return 0;
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 ac_cv_type_long_long=yes
11209 else
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_cv_type_long_long=no
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11219 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11221 # The cast to long int works around a bug in the HP C Compiler
11222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11224 # This bug is HP SR number 8606223364.
11225 { echo "$as_me:$LINENO: checking size of long long" >&5
11226 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11227 if test "${ac_cv_sizeof_long_long+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230 if test "$cross_compiling" = yes; then
11231 # Depending upon the size, compute the lo and hi bounds.
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 $ac_includes_default
11239 typedef long long ac__type_sizeof_;
11241 main ()
11243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11244 test_array [0] = 0
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.$ac_objext; then
11267 ac_lo=0 ac_mid=0
11268 while :; do
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 typedef long long ac__type_sizeof_;
11278 main ()
11280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11281 test_array [0] = 0
11284 return 0;
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (ac_try="$ac_compile"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_compile") 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } && {
11301 test -z "$ac_c_werror_flag" ||
11302 test ! -s conftest.err
11303 } && test -s conftest.$ac_objext; then
11304 ac_hi=$ac_mid; break
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_lo=`expr $ac_mid + 1`
11310 if test $ac_lo -le $ac_mid; then
11311 ac_lo= ac_hi=
11312 break
11314 ac_mid=`expr 2 '*' $ac_mid + 1`
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 done
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h. */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 $ac_includes_default
11330 typedef long long ac__type_sizeof_;
11332 main ()
11334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11335 test_array [0] = 0
11338 return 0;
11340 _ACEOF
11341 rm -f conftest.$ac_objext
11342 if { (ac_try="$ac_compile"
11343 case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_compile") 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } && {
11355 test -z "$ac_c_werror_flag" ||
11356 test ! -s conftest.err
11357 } && test -s conftest.$ac_objext; then
11358 ac_hi=-1 ac_mid=-1
11359 while :; do
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11367 typedef long long ac__type_sizeof_;
11369 main ()
11371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11372 test_array [0] = 0
11375 return 0;
11377 _ACEOF
11378 rm -f conftest.$ac_objext
11379 if { (ac_try="$ac_compile"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_compile") 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest.$ac_objext; then
11395 ac_lo=$ac_mid; break
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_hi=`expr '(' $ac_mid ')' - 1`
11401 if test $ac_mid -le $ac_hi; then
11402 ac_lo= ac_hi=
11403 break
11405 ac_mid=`expr 2 '*' $ac_mid`
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 done
11410 else
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_lo= ac_hi=
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 # Binary search between lo and hi bounds.
11422 while test "x$ac_lo" != "x$ac_hi"; do
11423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 typedef long long ac__type_sizeof_;
11433 main ()
11435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11436 test_array [0] = 0
11439 return 0;
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_compile") 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest.$ac_objext; then
11459 ac_hi=$ac_mid
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_lo=`expr '(' $ac_mid ')' + 1`
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 done
11469 case $ac_lo in
11470 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11471 '') if test "$ac_cv_type_long_long" = yes; then
11472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11473 See \`config.log' for more details." >&5
11474 echo "$as_me: error: cannot compute sizeof (long long)
11475 See \`config.log' for more details." >&2;}
11476 { (exit 77); exit 77; }; }
11477 else
11478 ac_cv_sizeof_long_long=0
11479 fi ;;
11480 esac
11481 else
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11489 typedef long long ac__type_sizeof_;
11490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11492 #include <stdio.h>
11493 #include <stdlib.h>
11495 main ()
11498 FILE *f = fopen ("conftest.val", "w");
11499 if (! f)
11500 return 1;
11501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11503 long int i = longval ();
11504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11505 return 1;
11506 fprintf (f, "%ld\n", i);
11508 else
11510 unsigned long int i = ulongval ();
11511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11512 return 1;
11513 fprintf (f, "%lu\n", i);
11515 return ferror (f) || fclose (f) != 0;
11518 return 0;
11520 _ACEOF
11521 rm -f conftest$ac_exeext
11522 if { (ac_try="$ac_link"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_link") 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11532 { (case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535 esac
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_try") 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ac_cv_sizeof_long_long=`cat conftest.val`
11542 else
11543 echo "$as_me: program exited with status $ac_status" >&5
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ( exit $ac_status )
11548 if test "$ac_cv_type_long_long" = yes; then
11549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11550 See \`config.log' for more details." >&5
11551 echo "$as_me: error: cannot compute sizeof (long long)
11552 See \`config.log' for more details." >&2;}
11553 { (exit 77); exit 77; }; }
11554 else
11555 ac_cv_sizeof_long_long=0
11558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11560 rm -f conftest.val
11562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11563 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11567 cat >>confdefs.h <<_ACEOF
11568 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11569 _ACEOF
11574 { echo "$as_me:$LINENO: checking for long double support" >&5
11575 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11576 have_long_double=no
11577 cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h. */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11585 main ()
11587 long double x; x = (long double)0.;
11589 return 0;
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_compile") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } && {
11606 test -z "$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11608 } && test -s conftest.$ac_objext; then
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_LONG_DOUBLE 1
11613 _ACEOF
11615 have_long_double=yes
11617 else
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11626 echo "${ECHO_T}$have_long_double" >&6; }
11627 if test "$have_long_double" = yes ; then
11628 { echo "$as_me:$LINENO: checking for long double" >&5
11629 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11630 if test "${ac_cv_type_long_double+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 $ac_includes_default
11640 typedef long double ac__type_new_;
11642 main ()
11644 if ((ac__type_new_ *) 0)
11645 return 0;
11646 if (sizeof (ac__type_new_))
11647 return 0;
11649 return 0;
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest.$ac_objext; then
11669 ac_cv_type_long_double=yes
11670 else
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_cv_type_long_double=no
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11680 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11682 # The cast to long int works around a bug in the HP C Compiler
11683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11685 # This bug is HP SR number 8606223364.
11686 { echo "$as_me:$LINENO: checking size of long double" >&5
11687 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11688 if test "${ac_cv_sizeof_long_double+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691 if test "$cross_compiling" = yes; then
11692 # Depending upon the size, compute the lo and hi bounds.
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h. */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 $ac_includes_default
11700 typedef long double ac__type_sizeof_;
11702 main ()
11704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11705 test_array [0] = 0
11708 return 0;
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_compile") 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest.$ac_objext; then
11728 ac_lo=0 ac_mid=0
11729 while :; do
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 $ac_includes_default
11737 typedef long double ac__type_sizeof_;
11739 main ()
11741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11742 test_array [0] = 0
11745 return 0;
11747 _ACEOF
11748 rm -f conftest.$ac_objext
11749 if { (ac_try="$ac_compile"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_compile") 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest.$ac_objext; then
11765 ac_hi=$ac_mid; break
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 ac_lo=`expr $ac_mid + 1`
11771 if test $ac_lo -le $ac_mid; then
11772 ac_lo= ac_hi=
11773 break
11775 ac_mid=`expr 2 '*' $ac_mid + 1`
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11779 done
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h. */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 $ac_includes_default
11791 typedef long double ac__type_sizeof_;
11793 main ()
11795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11796 test_array [0] = 0
11799 return 0;
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (ac_try="$ac_compile"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_compile") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest.$ac_objext; then
11819 ac_hi=-1 ac_mid=-1
11820 while :; do
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11828 typedef long double ac__type_sizeof_;
11830 main ()
11832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11833 test_array [0] = 0
11836 return 0;
11838 _ACEOF
11839 rm -f conftest.$ac_objext
11840 if { (ac_try="$ac_compile"
11841 case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.$ac_objext; then
11856 ac_lo=$ac_mid; break
11857 else
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 ac_hi=`expr '(' $ac_mid ')' - 1`
11862 if test $ac_mid -le $ac_hi; then
11863 ac_lo= ac_hi=
11864 break
11866 ac_mid=`expr 2 '*' $ac_mid`
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 done
11871 else
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 ac_lo= ac_hi=
11878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 # Binary search between lo and hi bounds.
11883 while test "x$ac_lo" != "x$ac_hi"; do
11884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11892 typedef long double ac__type_sizeof_;
11894 main ()
11896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11897 test_array [0] = 0
11900 return 0;
11902 _ACEOF
11903 rm -f conftest.$ac_objext
11904 if { (ac_try="$ac_compile"
11905 case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_compile") 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && {
11917 test -z "$ac_c_werror_flag" ||
11918 test ! -s conftest.err
11919 } && test -s conftest.$ac_objext; then
11920 ac_hi=$ac_mid
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_lo=`expr '(' $ac_mid ')' + 1`
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 done
11930 case $ac_lo in
11931 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11932 '') if test "$ac_cv_type_long_double" = yes; then
11933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11934 See \`config.log' for more details." >&5
11935 echo "$as_me: error: cannot compute sizeof (long double)
11936 See \`config.log' for more details." >&2;}
11937 { (exit 77); exit 77; }; }
11938 else
11939 ac_cv_sizeof_long_double=0
11940 fi ;;
11941 esac
11942 else
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 $ac_includes_default
11950 typedef long double ac__type_sizeof_;
11951 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11952 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11953 #include <stdio.h>
11954 #include <stdlib.h>
11956 main ()
11959 FILE *f = fopen ("conftest.val", "w");
11960 if (! f)
11961 return 1;
11962 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11964 long int i = longval ();
11965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11966 return 1;
11967 fprintf (f, "%ld\n", i);
11969 else
11971 unsigned long int i = ulongval ();
11972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11973 return 1;
11974 fprintf (f, "%lu\n", i);
11976 return ferror (f) || fclose (f) != 0;
11979 return 0;
11981 _ACEOF
11982 rm -f conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_sizeof_long_double=`cat conftest.val`
12003 else
12004 echo "$as_me: program exited with status $ac_status" >&5
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ( exit $ac_status )
12009 if test "$ac_cv_type_long_double" = yes; then
12010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12011 See \`config.log' for more details." >&5
12012 echo "$as_me: error: cannot compute sizeof (long double)
12013 See \`config.log' for more details." >&2;}
12014 { (exit 77); exit 77; }; }
12015 else
12016 ac_cv_sizeof_long_double=0
12019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12021 rm -f conftest.val
12023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12024 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12028 cat >>confdefs.h <<_ACEOF
12029 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12030 _ACEOF
12035 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12036 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12037 have_c99_bool=no
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h. */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12046 main ()
12048 _Bool x; x = (_Bool)0;
12050 return 0;
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest.$ac_objext; then
12072 cat >>confdefs.h <<\_ACEOF
12073 #define HAVE_C99_BOOL 1
12074 _ACEOF
12076 have_c99_bool=yes
12078 else
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12087 echo "${ECHO_T}$have_c99_bool" >&6; }
12088 if test "$have_c99_bool" = yes ; then
12089 { echo "$as_me:$LINENO: checking for _Bool" >&5
12090 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12091 if test "${ac_cv_type__Bool+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12101 typedef _Bool ac__type_new_;
12103 main ()
12105 if ((ac__type_new_ *) 0)
12106 return 0;
12107 if (sizeof (ac__type_new_))
12108 return 0;
12110 return 0;
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (ac_try="$ac_compile"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_compile") 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && {
12127 test -z "$ac_c_werror_flag" ||
12128 test ! -s conftest.err
12129 } && test -s conftest.$ac_objext; then
12130 ac_cv_type__Bool=yes
12131 else
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_cv_type__Bool=no
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12141 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12143 # The cast to long int works around a bug in the HP C Compiler
12144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12146 # This bug is HP SR number 8606223364.
12147 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12148 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12149 if test "${ac_cv_sizeof__Bool+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 if test "$cross_compiling" = yes; then
12153 # Depending upon the size, compute the lo and hi bounds.
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 typedef _Bool ac__type_sizeof_;
12163 main ()
12165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12166 test_array [0] = 0
12169 return 0;
12171 _ACEOF
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12189 ac_lo=0 ac_mid=0
12190 while :; do
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 $ac_includes_default
12198 typedef _Bool ac__type_sizeof_;
12200 main ()
12202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12203 test_array [0] = 0
12206 return 0;
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_hi=$ac_mid; break
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_lo=`expr $ac_mid + 1`
12232 if test $ac_lo -le $ac_mid; then
12233 ac_lo= ac_hi=
12234 break
12236 ac_mid=`expr 2 '*' $ac_mid + 1`
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240 done
12241 else
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 $ac_includes_default
12252 typedef _Bool ac__type_sizeof_;
12254 main ()
12256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12257 test_array [0] = 0
12260 return 0;
12262 _ACEOF
12263 rm -f conftest.$ac_objext
12264 if { (ac_try="$ac_compile"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268 esac
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_compile") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest.$ac_objext; then
12280 ac_hi=-1 ac_mid=-1
12281 while :; do
12282 cat >conftest.$ac_ext <<_ACEOF
12283 /* confdefs.h. */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 $ac_includes_default
12289 typedef _Bool ac__type_sizeof_;
12291 main ()
12293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12294 test_array [0] = 0
12297 return 0;
12299 _ACEOF
12300 rm -f conftest.$ac_objext
12301 if { (ac_try="$ac_compile"
12302 case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_compile") 2>conftest.er1
12308 ac_status=$?
12309 grep -v '^ *+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && {
12314 test -z "$ac_c_werror_flag" ||
12315 test ! -s conftest.err
12316 } && test -s conftest.$ac_objext; then
12317 ac_lo=$ac_mid; break
12318 else
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_hi=`expr '(' $ac_mid ')' - 1`
12323 if test $ac_mid -le $ac_hi; then
12324 ac_lo= ac_hi=
12325 break
12327 ac_mid=`expr 2 '*' $ac_mid`
12330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331 done
12332 else
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_lo= ac_hi=
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 # Binary search between lo and hi bounds.
12344 while test "x$ac_lo" != "x$ac_hi"; do
12345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12353 typedef _Bool ac__type_sizeof_;
12355 main ()
12357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12358 test_array [0] = 0
12361 return 0;
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_compile") 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest.$ac_objext; then
12381 ac_hi=$ac_mid
12382 else
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_lo=`expr '(' $ac_mid ')' + 1`
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 done
12391 case $ac_lo in
12392 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12393 '') if test "$ac_cv_type__Bool" = yes; then
12394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12395 See \`config.log' for more details." >&5
12396 echo "$as_me: error: cannot compute sizeof (_Bool)
12397 See \`config.log' for more details." >&2;}
12398 { (exit 77); exit 77; }; }
12399 else
12400 ac_cv_sizeof__Bool=0
12401 fi ;;
12402 esac
12403 else
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12411 typedef _Bool ac__type_sizeof_;
12412 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12413 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12414 #include <stdio.h>
12415 #include <stdlib.h>
12417 main ()
12420 FILE *f = fopen ("conftest.val", "w");
12421 if (! f)
12422 return 1;
12423 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12425 long int i = longval ();
12426 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12427 return 1;
12428 fprintf (f, "%ld\n", i);
12430 else
12432 unsigned long int i = ulongval ();
12433 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12434 return 1;
12435 fprintf (f, "%lu\n", i);
12437 return ferror (f) || fclose (f) != 0;
12440 return 0;
12442 _ACEOF
12443 rm -f conftest$ac_exeext
12444 if { (ac_try="$ac_link"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_link") 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12454 { (case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_try") 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_cv_sizeof__Bool=`cat conftest.val`
12464 else
12465 echo "$as_me: program exited with status $ac_status" >&5
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ( exit $ac_status )
12470 if test "$ac_cv_type__Bool" = yes; then
12471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12472 See \`config.log' for more details." >&5
12473 echo "$as_me: error: cannot compute sizeof (_Bool)
12474 See \`config.log' for more details." >&2;}
12475 { (exit 77); exit 77; }; }
12476 else
12477 ac_cv_sizeof__Bool=0
12480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12482 rm -f conftest.val
12484 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12485 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12489 cat >>confdefs.h <<_ACEOF
12490 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12491 _ACEOF
12496 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12497 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12498 if test "${ac_cv_type_uintptr_t+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 #ifdef HAVE_STDINT_H
12508 #include <stdint.h>
12509 #endif
12511 typedef uintptr_t ac__type_new_;
12513 main ()
12515 if ((ac__type_new_ *) 0)
12516 return 0;
12517 if (sizeof (ac__type_new_))
12518 return 0;
12520 return 0;
12522 _ACEOF
12523 rm -f conftest.$ac_objext
12524 if { (ac_try="$ac_compile"
12525 case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12528 esac
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_compile") 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && {
12537 test -z "$ac_c_werror_flag" ||
12538 test ! -s conftest.err
12539 } && test -s conftest.$ac_objext; then
12540 ac_cv_type_uintptr_t=yes
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_cv_type_uintptr_t=no
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12551 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12552 if test $ac_cv_type_uintptr_t = yes; then
12554 cat >>confdefs.h <<_ACEOF
12555 #define HAVE_UINTPTR_T 1
12556 _ACEOF
12558 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12559 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12560 if test "${ac_cv_type_uintptr_t+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h. */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12569 $ac_includes_default
12570 typedef uintptr_t ac__type_new_;
12572 main ()
12574 if ((ac__type_new_ *) 0)
12575 return 0;
12576 if (sizeof (ac__type_new_))
12577 return 0;
12579 return 0;
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (ac_try="$ac_compile"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 ac_cv_type_uintptr_t=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_type_uintptr_t=no
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12610 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12612 # The cast to long int works around a bug in the HP C Compiler
12613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12615 # This bug is HP SR number 8606223364.
12616 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12617 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12618 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621 if test "$cross_compiling" = yes; then
12622 # Depending upon the size, compute the lo and hi bounds.
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 $ac_includes_default
12630 typedef uintptr_t ac__type_sizeof_;
12632 main ()
12634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12635 test_array [0] = 0
12638 return 0;
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (ac_try="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_compile") 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_c_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest.$ac_objext; then
12658 ac_lo=0 ac_mid=0
12659 while :; do
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h. */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 $ac_includes_default
12667 typedef uintptr_t ac__type_sizeof_;
12669 main ()
12671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12672 test_array [0] = 0
12675 return 0;
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (ac_try="$ac_compile"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_compile") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest.$ac_objext; then
12695 ac_hi=$ac_mid; break
12696 else
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ac_lo=`expr $ac_mid + 1`
12701 if test $ac_lo -le $ac_mid; then
12702 ac_lo= ac_hi=
12703 break
12705 ac_mid=`expr 2 '*' $ac_mid + 1`
12708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12709 done
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h. */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 $ac_includes_default
12721 typedef uintptr_t ac__type_sizeof_;
12723 main ()
12725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12726 test_array [0] = 0
12729 return 0;
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (ac_try="$ac_compile"
12734 case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_compile") 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest.$ac_objext; then
12749 ac_hi=-1 ac_mid=-1
12750 while :; do
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 $ac_includes_default
12758 typedef uintptr_t ac__type_sizeof_;
12760 main ()
12762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12763 test_array [0] = 0
12766 return 0;
12768 _ACEOF
12769 rm -f conftest.$ac_objext
12770 if { (ac_try="$ac_compile"
12771 case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_compile") 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && {
12783 test -z "$ac_c_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest.$ac_objext; then
12786 ac_lo=$ac_mid; break
12787 else
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 ac_hi=`expr '(' $ac_mid ')' - 1`
12792 if test $ac_mid -le $ac_hi; then
12793 ac_lo= ac_hi=
12794 break
12796 ac_mid=`expr 2 '*' $ac_mid`
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 done
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 ac_lo= ac_hi=
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812 # Binary search between lo and hi bounds.
12813 while test "x$ac_lo" != "x$ac_hi"; do
12814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12815 cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h. */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821 $ac_includes_default
12822 typedef uintptr_t ac__type_sizeof_;
12824 main ()
12826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12827 test_array [0] = 0
12830 return 0;
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest.$ac_objext; then
12850 ac_hi=$ac_mid
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 ac_lo=`expr '(' $ac_mid ')' + 1`
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 done
12860 case $ac_lo in
12861 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12862 '') if test "$ac_cv_type_uintptr_t" = yes; then
12863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12864 See \`config.log' for more details." >&5
12865 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12866 See \`config.log' for more details." >&2;}
12867 { (exit 77); exit 77; }; }
12868 else
12869 ac_cv_sizeof_uintptr_t=0
12870 fi ;;
12871 esac
12872 else
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 $ac_includes_default
12880 typedef uintptr_t ac__type_sizeof_;
12881 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12882 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12883 #include <stdio.h>
12884 #include <stdlib.h>
12886 main ()
12889 FILE *f = fopen ("conftest.val", "w");
12890 if (! f)
12891 return 1;
12892 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12894 long int i = longval ();
12895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12896 return 1;
12897 fprintf (f, "%ld\n", i);
12899 else
12901 unsigned long int i = ulongval ();
12902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12903 return 1;
12904 fprintf (f, "%lu\n", i);
12906 return ferror (f) || fclose (f) != 0;
12909 return 0;
12911 _ACEOF
12912 rm -f conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_link") 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12923 { (case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_try") 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12933 else
12934 echo "$as_me: program exited with status $ac_status" >&5
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ( exit $ac_status )
12939 if test "$ac_cv_type_uintptr_t" = yes; then
12940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12941 See \`config.log' for more details." >&5
12942 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12943 See \`config.log' for more details." >&2;}
12944 { (exit 77); exit 77; }; }
12945 else
12946 ac_cv_sizeof_uintptr_t=0
12949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12951 rm -f conftest.val
12953 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12954 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12958 cat >>confdefs.h <<_ACEOF
12959 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12960 _ACEOF
12967 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12968 { echo "$as_me:$LINENO: checking size of off_t" >&5
12969 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12970 if test "${ac_cv_sizeof_off_t+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973 if test "$cross_compiling" = yes; then
12974 ac_cv_sizeof_off_t=4
12975 else
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h. */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982 #include <stdio.h>
12983 #include <sys/types.h>
12984 main()
12986 FILE *f=fopen("conftestval", "w");
12987 if (!f) exit(1);
12988 fprintf(f, "%d\n", sizeof(off_t));
12989 exit(0);
12991 _ACEOF
12992 rm -f conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_sizeof_off_t=`cat conftestval`
13013 else
13014 echo "$as_me: program exited with status $ac_status" >&5
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ( exit $ac_status )
13019 ac_cv_sizeof_off_t=0
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13028 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13029 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13031 cat >>confdefs.h <<_ACEOF
13032 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13033 _ACEOF
13036 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13037 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13038 if test "$have_long_long" = yes -a \
13039 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13040 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_LARGEFILE_SUPPORT 1
13044 _ACEOF
13046 { echo "$as_me:$LINENO: result: yes" >&5
13047 echo "${ECHO_T}yes" >&6; }
13048 else
13049 { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13053 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13054 { echo "$as_me:$LINENO: checking size of time_t" >&5
13055 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13056 if test "${ac_cv_sizeof_time_t+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059 if test "$cross_compiling" = yes; then
13060 ac_cv_sizeof_time_t=4
13061 else
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h. */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 #include <stdio.h>
13069 #include <time.h>
13070 main()
13072 FILE *f=fopen("conftestval", "w");
13073 if (!f) exit(1);
13074 fprintf(f, "%d\n", sizeof(time_t));
13075 exit(0);
13077 _ACEOF
13078 rm -f conftest$ac_exeext
13079 if { (ac_try="$ac_link"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_link") 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13089 { (case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_try") 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_sizeof_time_t=`cat conftestval`
13099 else
13100 echo "$as_me: program exited with status $ac_status" >&5
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ( exit $ac_status )
13105 ac_cv_sizeof_time_t=0
13107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13114 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13115 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13117 cat >>confdefs.h <<_ACEOF
13118 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13119 _ACEOF
13123 # if have pthread_t then define SIZEOF_PTHREAD_T
13124 ac_save_cc="$CC"
13125 if test "$ac_cv_kpthread" = "yes"
13126 then CC="$CC -Kpthread"
13127 elif test "$ac_cv_kthread" = "yes"
13128 then CC="$CC -Kthread"
13129 elif test "$ac_cv_pthread" = "yes"
13130 then CC="$CC -pthread"
13132 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13133 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13134 have_pthread_t=no
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h. */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <pthread.h>
13143 main ()
13145 pthread_t x; x = *(pthread_t*)0;
13147 return 0;
13149 _ACEOF
13150 rm -f conftest.$ac_objext
13151 if { (ac_try="$ac_compile"
13152 case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_compile") 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } && {
13164 test -z "$ac_c_werror_flag" ||
13165 test ! -s conftest.err
13166 } && test -s conftest.$ac_objext; then
13167 have_pthread_t=yes
13168 else
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13177 echo "${ECHO_T}$have_pthread_t" >&6; }
13178 if test "$have_pthread_t" = yes ; then
13179 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13180 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13181 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13182 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185 if test "$cross_compiling" = yes; then
13186 ac_cv_sizeof_pthread_t=4
13187 else
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h. */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 #include <stdio.h>
13195 #include <pthread.h>
13196 main()
13198 FILE *f=fopen("conftestval", "w");
13199 if (!f) exit(1);
13200 fprintf(f, "%d\n", sizeof(pthread_t));
13201 exit(0);
13203 _ACEOF
13204 rm -f conftest$ac_exeext
13205 if { (ac_try="$ac_link"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_link") 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13215 { (case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13218 esac
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_try") 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_cv_sizeof_pthread_t=`cat conftestval`
13225 else
13226 echo "$as_me: program exited with status $ac_status" >&5
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ( exit $ac_status )
13231 ac_cv_sizeof_pthread_t=0
13233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13241 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13243 cat >>confdefs.h <<_ACEOF
13244 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13245 _ACEOF
13248 CC="$ac_save_cc"
13250 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13251 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13252 # Check whether --enable-toolbox-glue was given.
13253 if test "${enable_toolbox_glue+set}" = set; then
13254 enableval=$enable_toolbox_glue;
13258 if test -z "$enable_toolbox_glue"
13259 then
13260 case $ac_sys_system/$ac_sys_release in
13261 Darwin/*)
13262 enable_toolbox_glue="yes";;
13264 enable_toolbox_glue="no";;
13265 esac
13267 case "$enable_toolbox_glue" in
13268 yes)
13269 extra_machdep_objs="Python/mactoolboxglue.o"
13270 extra_undefs="-u _PyMac_Error"
13272 cat >>confdefs.h <<\_ACEOF
13273 #define USE_TOOLBOX_OBJECT_GLUE 1
13274 _ACEOF
13278 extra_machdep_objs=""
13279 extra_undefs=""
13281 esac
13282 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13283 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13287 case $ac_sys_system/$ac_sys_release in
13288 Darwin/[01567]\..*)
13289 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13291 Darwin/*)
13292 OTHER_LIBTOOL_OPT=""
13294 esac
13297 case $ac_sys_system/$ac_sys_release in
13298 Darwin/[01567]\..*)
13299 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13300 if test "${enable_universalsdk}"; then
13302 else
13303 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13305 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13306 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13307 Darwin/*)
13308 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13309 if test ${gcc_version} '<' 4.0
13310 then
13311 LIBTOOL_CRUFT="-lcc_dynamic"
13312 else
13313 LIBTOOL_CRUFT=""
13315 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13316 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13317 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13318 esac
13320 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13321 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13322 if test "$enable_framework"
13323 then
13324 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13325 # -F. is needed to allow linking to the framework while
13326 # in the build location.
13328 cat >>confdefs.h <<\_ACEOF
13329 #define WITH_NEXT_FRAMEWORK 1
13330 _ACEOF
13332 { echo "$as_me:$LINENO: result: yes" >&5
13333 echo "${ECHO_T}yes" >&6; }
13334 else
13335 { echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6; }
13339 { echo "$as_me:$LINENO: checking for dyld" >&5
13340 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13341 case $ac_sys_system/$ac_sys_release in
13342 Darwin/*)
13344 cat >>confdefs.h <<\_ACEOF
13345 #define WITH_DYLD 1
13346 _ACEOF
13348 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13349 echo "${ECHO_T}always on for Darwin" >&6; }
13352 { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13355 esac
13357 # Set info about shared libraries.
13363 # SO is the extension of shared libraries `(including the dot!)
13364 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13365 { echo "$as_me:$LINENO: checking SO" >&5
13366 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13367 if test -z "$SO"
13368 then
13369 case $ac_sys_system in
13370 hp*|HP*)
13371 case `uname -m` in
13372 ia64) SO=.so;;
13373 *) SO=.sl;;
13374 esac
13376 CYGWIN*) SO=.dll;;
13377 *) SO=.so;;
13378 esac
13379 else
13380 # this might also be a termcap variable, see #610332
13381 echo
13382 echo '====================================================================='
13383 echo '+ +'
13384 echo '+ WARNING: You have set SO in your environment. +'
13385 echo '+ Do you really mean to change the extension for shared libraries? +'
13386 echo '+ Continuing in 10 seconds to let you to ponder. +'
13387 echo '+ +'
13388 echo '====================================================================='
13389 sleep 10
13391 { echo "$as_me:$LINENO: result: $SO" >&5
13392 echo "${ECHO_T}$SO" >&6; }
13395 cat >>confdefs.h <<_ACEOF
13396 #define SHLIB_EXT "$SO"
13397 _ACEOF
13399 # LDSHARED is the ld *command* used to create shared library
13400 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13401 # (Shared libraries in this instance are shared modules to be loaded into
13402 # Python, as opposed to building Python itself as a shared library.)
13403 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13404 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13405 if test -z "$LDSHARED"
13406 then
13407 case $ac_sys_system/$ac_sys_release in
13408 AIX*)
13409 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13410 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13412 BeOS*)
13413 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13414 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13416 IRIX/5*) LDSHARED="ld -shared";;
13417 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13418 SunOS/5*)
13419 if test "$GCC" = "yes"
13420 then LDSHARED='$(CC) -shared'
13421 else LDSHARED='$(CC) -G';
13422 fi ;;
13423 hp*|HP*)
13424 if test "$GCC" = "yes"
13425 then LDSHARED='$(CC) -shared'
13426 else LDSHARED='ld -b';
13427 fi ;;
13428 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13429 Darwin/1.3*)
13430 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13431 if test "$enable_framework" ; then
13432 # Link against the framework. All externals should be defined.
13433 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13434 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13435 else
13436 # No framework. Ignore undefined symbols, assuming they come from Python
13437 LDSHARED="$LDSHARED -undefined suppress"
13438 fi ;;
13439 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13440 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13441 if test "$enable_framework" ; then
13442 # Link against the framework. All externals should be defined.
13443 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13444 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13445 else
13446 # No framework, use the Python app as bundle-loader
13447 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13448 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13449 fi ;;
13450 Darwin/*)
13451 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13452 # This allows an extension to be used in any Python
13454 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13455 then
13456 if test "${enable_universalsdk}"; then
13457 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13459 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13460 BLDSHARED="$LDSHARED"
13461 else
13462 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13463 if test "$enable_framework" ; then
13464 # Link against the framework. All externals should be defined.
13465 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13466 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13467 else
13468 # No framework, use the Python app as bundle-loader
13469 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13470 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13474 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13475 BSD/OS*/4*) LDSHARED="gcc -shared";;
13476 FreeBSD*)
13477 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13478 then
13479 LDSHARED="$CC -shared ${LDFLAGS}"
13480 else
13481 LDSHARED="ld -Bshareable ${LDFLAGS}"
13482 fi;;
13483 OpenBSD*)
13484 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13485 then
13486 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13487 else
13488 case `uname -r` in
13489 [01].* | 2.[0-7] | 2.[0-7].*)
13490 LDSHARED="ld -Bshareable ${LDFLAGS}"
13493 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13495 esac
13496 fi;;
13497 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13498 OpenUNIX*|UnixWare*)
13499 if test "$GCC" = "yes"
13500 then LDSHARED='$(CC) -shared'
13501 else LDSHARED='$(CC) -G'
13502 fi;;
13503 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13504 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13505 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13506 atheos*) LDSHARED="gcc -shared";;
13507 *) LDSHARED="ld";;
13508 esac
13510 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13511 echo "${ECHO_T}$LDSHARED" >&6; }
13512 BLDSHARED=${BLDSHARED-$LDSHARED}
13513 # CCSHARED are the C *flags* used to create objects to go into a shared
13514 # library (module) -- this is only needed for a few systems
13515 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13516 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13517 if test -z "$CCSHARED"
13518 then
13519 case $ac_sys_system/$ac_sys_release in
13520 SunOS*) if test "$GCC" = yes;
13521 then CCSHARED="-fPIC";
13522 elif test `uname -p` = sparc;
13523 then CCSHARED="-xcode=pic32";
13524 else CCSHARED="-Kpic";
13525 fi;;
13526 hp*|HP*) if test "$GCC" = yes;
13527 then CCSHARED="-fPIC";
13528 else CCSHARED="+z";
13529 fi;;
13530 Linux*|GNU*) CCSHARED="-fPIC";;
13531 BSD/OS*/4*) CCSHARED="-fpic";;
13532 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13533 OpenUNIX*|UnixWare*)
13534 if test "$GCC" = "yes"
13535 then CCSHARED="-fPIC"
13536 else CCSHARED="-KPIC"
13537 fi;;
13538 SCO_SV*)
13539 if test "$GCC" = "yes"
13540 then CCSHARED="-fPIC"
13541 else CCSHARED="-Kpic -belf"
13542 fi;;
13543 Monterey*) CCSHARED="-G";;
13544 IRIX*/6*) case $CC in
13545 *gcc*) CCSHARED="-shared";;
13546 *) CCSHARED="";;
13547 esac;;
13548 atheos*) CCSHARED="-fPIC";;
13549 esac
13551 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13552 echo "${ECHO_T}$CCSHARED" >&6; }
13553 # LINKFORSHARED are the flags passed to the $(CC) command that links
13554 # the python executable -- this is only needed for a few systems
13555 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13556 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13557 if test -z "$LINKFORSHARED"
13558 then
13559 case $ac_sys_system/$ac_sys_release in
13560 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13561 hp*|HP*)
13562 LINKFORSHARED="-Wl,-E -Wl,+s";;
13563 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13564 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13565 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13566 # -u libsys_s pulls in all symbols in libsys
13567 Darwin/*)
13568 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13569 # which is
13570 # not used by the core itself but which needs to be in the core so
13571 # that dynamically loaded extension modules have access to it.
13572 # -prebind is no longer used, because it actually seems to give a
13573 # slowdown in stead of a speedup, maybe due to the large number of
13574 # dynamic loads Python does.
13576 LINKFORSHARED="$extra_undefs"
13577 if test "$enable_framework"
13578 then
13579 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13581 LINKFORSHARED="$LINKFORSHARED";;
13582 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13583 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13584 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13585 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13586 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13587 then
13588 LINKFORSHARED="-Wl,--export-dynamic"
13589 fi;;
13590 SunOS/5*) case $CC in
13591 *gcc*)
13592 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13593 then
13594 LINKFORSHARED="-Xlinker --export-dynamic"
13595 fi;;
13596 esac;;
13597 CYGWIN*)
13598 if test $enable_shared = "no"
13599 then
13600 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13601 fi;;
13602 QNX*)
13603 # -Wl,-E causes the symbols to be added to the dynamic
13604 # symbol table so that they can be found when a module
13605 # is loaded. -N 2048K causes the stack size to be set
13606 # to 2048 kilobytes so that the stack doesn't overflow
13607 # when running test_compile.py.
13608 LINKFORSHARED='-Wl,-E -N 2048K';;
13609 esac
13611 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13612 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13616 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13617 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13618 if test ! "$LIBRARY" = "$LDLIBRARY"
13619 then
13620 case $ac_sys_system in
13621 CYGWIN*)
13622 # Cygwin needs CCSHARED when building extension DLLs
13623 # but not when building the interpreter DLL.
13624 CFLAGSFORSHARED='';;
13626 CFLAGSFORSHARED='$(CCSHARED)'
13627 esac
13629 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13630 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13632 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13633 # library (with --enable-shared).
13634 # For platforms on which shared libraries are not allowed to have unresolved
13635 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13636 # if it is not required, since it creates a dependency of the shared library
13637 # to LIBS. This, in turn, means that applications linking the shared libpython
13638 # don't need to link LIBS explicitly. The default should be only changed
13639 # on systems where this approach causes problems.
13641 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13642 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13643 case "$ac_sys_system" in
13645 SHLIBS='$(LIBS)';;
13646 esac
13647 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13648 echo "${ECHO_T}$SHLIBS" >&6; }
13651 # checks for libraries
13653 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658 ac_check_lib_save_LIBS=$LIBS
13659 LIBS="-ldl $LIBS"
13660 cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h. */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13667 /* Override any GCC internal prototype to avoid an error.
13668 Use char because int might match the return type of a GCC
13669 builtin and then its argument prototype would still apply. */
13670 #ifdef __cplusplus
13671 extern "C"
13672 #endif
13673 char dlopen ();
13675 main ()
13677 return dlopen ();
13679 return 0;
13681 _ACEOF
13682 rm -f conftest.$ac_objext conftest$ac_exeext
13683 if { (ac_try="$ac_link"
13684 case "(($ac_try" in
13685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686 *) ac_try_echo=$ac_try;;
13687 esac
13688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689 (eval "$ac_link") 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13698 } && test -s conftest$ac_exeext &&
13699 $as_test_x conftest$ac_exeext; then
13700 ac_cv_lib_dl_dlopen=yes
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_cv_lib_dl_dlopen=no
13708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13713 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13714 if test $ac_cv_lib_dl_dlopen = yes; then
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_LIBDL 1
13717 _ACEOF
13719 LIBS="-ldl $LIBS"
13722 # Dynamic linking for SunOS/Solaris and SYSV
13724 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13725 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13726 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729 ac_check_lib_save_LIBS=$LIBS
13730 LIBS="-ldld $LIBS"
13731 cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h. */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13738 /* Override any GCC internal prototype to avoid an error.
13739 Use char because int might match the return type of a GCC
13740 builtin and then its argument prototype would still apply. */
13741 #ifdef __cplusplus
13742 extern "C"
13743 #endif
13744 char shl_load ();
13746 main ()
13748 return shl_load ();
13750 return 0;
13752 _ACEOF
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_link") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } && {
13767 test -z "$ac_c_werror_flag" ||
13768 test ! -s conftest.err
13769 } && test -s conftest$ac_exeext &&
13770 $as_test_x conftest$ac_exeext; then
13771 ac_cv_lib_dld_shl_load=yes
13772 else
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_cv_lib_dld_shl_load=no
13779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13780 conftest$ac_exeext conftest.$ac_ext
13781 LIBS=$ac_check_lib_save_LIBS
13783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13784 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13785 if test $ac_cv_lib_dld_shl_load = yes; then
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_LIBDLD 1
13788 _ACEOF
13790 LIBS="-ldld $LIBS"
13793 # Dynamic linking for HP-UX
13795 # only check for sem_init if thread support is requested
13796 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13797 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13798 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13799 if test "${ac_cv_search_sem_init+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802 ac_func_search_save_LIBS=$LIBS
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h. */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13810 /* Override any GCC internal prototype to avoid an error.
13811 Use char because int might match the return type of a GCC
13812 builtin and then its argument prototype would still apply. */
13813 #ifdef __cplusplus
13814 extern "C"
13815 #endif
13816 char sem_init ();
13818 main ()
13820 return sem_init ();
13822 return 0;
13824 _ACEOF
13825 for ac_lib in '' pthread rt posix4; do
13826 if test -z "$ac_lib"; then
13827 ac_res="none required"
13828 else
13829 ac_res=-l$ac_lib
13830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13832 rm -f conftest.$ac_objext conftest$ac_exeext
13833 if { (ac_try="$ac_link"
13834 case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13837 esac
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_link") 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } && {
13846 test -z "$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 } && test -s conftest$ac_exeext &&
13849 $as_test_x conftest$ac_exeext; then
13850 ac_cv_search_sem_init=$ac_res
13851 else
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13859 conftest$ac_exeext
13860 if test "${ac_cv_search_sem_init+set}" = set; then
13861 break
13863 done
13864 if test "${ac_cv_search_sem_init+set}" = set; then
13866 else
13867 ac_cv_search_sem_init=no
13869 rm conftest.$ac_ext
13870 LIBS=$ac_func_search_save_LIBS
13872 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13873 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13874 ac_res=$ac_cv_search_sem_init
13875 if test "$ac_res" != no; then
13876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13879 # 'Real Time' functions on Solaris
13880 # posix4 on Solaris 2.6
13881 # pthread (first!) on Linux
13884 # check if we need libintl for locale functions
13885 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13886 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13887 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890 ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lintl $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h. */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13902 #ifdef __cplusplus
13903 extern "C"
13904 #endif
13905 char textdomain ();
13907 main ()
13909 return textdomain ();
13911 return 0;
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_link") 2>conftest.er1
13922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && {
13928 test -z "$ac_c_werror_flag" ||
13929 test ! -s conftest.err
13930 } && test -s conftest$ac_exeext &&
13931 $as_test_x conftest$ac_exeext; then
13932 ac_cv_lib_intl_textdomain=yes
13933 else
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_cv_lib_intl_textdomain=no
13940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13941 conftest$ac_exeext conftest.$ac_ext
13942 LIBS=$ac_check_lib_save_LIBS
13944 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13945 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13946 if test $ac_cv_lib_intl_textdomain = yes; then
13948 cat >>confdefs.h <<\_ACEOF
13949 #define WITH_LIBINTL 1
13950 _ACEOF
13955 # checks for system dependent C++ extensions support
13956 case "$ac_sys_system" in
13957 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13958 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include "/usr/lpp/xlC/include/load.h"
13967 main ()
13969 loadAndInit("", 0, "")
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (ac_try="$ac_link"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_link") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && {
13988 test -z "$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 } && test -s conftest$ac_exeext &&
13991 $as_test_x conftest$ac_exeext; then
13993 cat >>confdefs.h <<\_ACEOF
13994 #define AIX_GENUINE_CPLUSPLUS 1
13995 _ACEOF
13997 { echo "$as_me:$LINENO: result: yes" >&5
13998 echo "${ECHO_T}yes" >&6; }
13999 else
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 { echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6; }
14007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14008 conftest$ac_exeext conftest.$ac_ext;;
14009 *) ;;
14010 esac
14012 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14013 # BeOS' sockets are stashed in libnet.
14014 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14015 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14016 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 else
14019 ac_check_lib_save_LIBS=$LIBS
14020 LIBS="-lnsl $LIBS"
14021 cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h. */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14031 #ifdef __cplusplus
14032 extern "C"
14033 #endif
14034 char t_open ();
14036 main ()
14038 return t_open ();
14040 return 0;
14042 _ACEOF
14043 rm -f conftest.$ac_objext conftest$ac_exeext
14044 if { (ac_try="$ac_link"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_link") 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest$ac_exeext &&
14060 $as_test_x conftest$ac_exeext; then
14061 ac_cv_lib_nsl_t_open=yes
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_cv_lib_nsl_t_open=no
14069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14074 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14075 if test $ac_cv_lib_nsl_t_open = yes; then
14076 LIBS="-lnsl $LIBS"
14078 # SVR4
14079 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14080 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14081 if test "${ac_cv_lib_socket_socket+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-lsocket $LIBS $LIBS"
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14096 #ifdef __cplusplus
14097 extern "C"
14098 #endif
14099 char socket ();
14101 main ()
14103 return socket ();
14105 return 0;
14107 _ACEOF
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (ac_try="$ac_link"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_link") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest$ac_exeext &&
14125 $as_test_x conftest$ac_exeext; then
14126 ac_cv_lib_socket_socket=yes
14127 else
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_cv_lib_socket_socket=no
14134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14139 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14140 if test $ac_cv_lib_socket_socket = yes; then
14141 LIBS="-lsocket $LIBS"
14143 # SVR4 sockets
14145 case "$ac_sys_system" in
14146 BeOS*)
14147 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14148 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14149 if test "${ac_cv_lib_net_socket+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 ac_check_lib_save_LIBS=$LIBS
14153 LIBS="-lnet $LIBS $LIBS"
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14164 #ifdef __cplusplus
14165 extern "C"
14166 #endif
14167 char socket ();
14169 main ()
14171 return socket ();
14173 return 0;
14175 _ACEOF
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14184 ac_status=$?
14185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext &&
14193 $as_test_x conftest$ac_exeext; then
14194 ac_cv_lib_net_socket=yes
14195 else
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_cv_lib_net_socket=no
14202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14207 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14208 if test $ac_cv_lib_net_socket = yes; then
14209 LIBS="-lnet $LIBS"
14211 # BeOS
14213 esac
14215 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14216 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14218 # Check whether --with-libs was given.
14219 if test "${with_libs+set}" = set; then
14220 withval=$with_libs;
14221 { echo "$as_me:$LINENO: result: $withval" >&5
14222 echo "${ECHO_T}$withval" >&6; }
14223 LIBS="$withval $LIBS"
14225 else
14226 { echo "$as_me:$LINENO: result: no" >&5
14227 echo "${ECHO_T}no" >&6; }
14231 # Check for use of the system libffi library
14232 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14233 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14235 # Check whether --with-system_ffi was given.
14236 if test "${with_system_ffi+set}" = set; then
14237 withval=$with_system_ffi;
14241 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14242 echo "${ECHO_T}$with_system_ffi" >&6; }
14244 # Determine if signalmodule should be used.
14247 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14248 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14250 # Check whether --with-signal-module was given.
14251 if test "${with_signal_module+set}" = set; then
14252 withval=$with_signal_module;
14256 if test -z "$with_signal_module"
14257 then with_signal_module="yes"
14259 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14260 echo "${ECHO_T}$with_signal_module" >&6; }
14262 if test "${with_signal_module}" = "yes"; then
14263 USE_SIGNAL_MODULE=""
14264 SIGNAL_OBJS=""
14265 else
14266 USE_SIGNAL_MODULE="#"
14267 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14270 # This is used to generate Setup.config
14272 USE_THREAD_MODULE=""
14274 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14275 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14278 # Check whether --with-dec-threads was given.
14279 if test "${with_dec_threads+set}" = set; then
14280 withval=$with_dec_threads;
14281 { echo "$as_me:$LINENO: result: $withval" >&5
14282 echo "${ECHO_T}$withval" >&6; }
14283 LDLAST=-threads
14284 if test "${with_thread+set}" != set; then
14285 with_thread="$withval";
14287 else
14288 { echo "$as_me:$LINENO: result: no" >&5
14289 echo "${ECHO_T}no" >&6; }
14293 # Templates for things AC_DEFINEd more than once.
14294 # For a single AC_DEFINE, no template is needed.
14302 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14303 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14305 # Check whether --with-threads was given.
14306 if test "${with_threads+set}" = set; then
14307 withval=$with_threads;
14311 # --with-thread is deprecated, but check for it anyway
14313 # Check whether --with-thread was given.
14314 if test "${with_thread+set}" = set; then
14315 withval=$with_thread; with_threads=$with_thread
14319 if test -z "$with_threads"
14320 then with_threads="yes"
14322 { echo "$as_me:$LINENO: result: $with_threads" >&5
14323 echo "${ECHO_T}$with_threads" >&6; }
14326 if test "$with_threads" = "no"
14327 then
14328 USE_THREAD_MODULE="#"
14329 elif test "$ac_cv_pthread_is_default" = yes
14330 then
14331 cat >>confdefs.h <<\_ACEOF
14332 #define WITH_THREAD 1
14333 _ACEOF
14335 # Defining _REENTRANT on system with POSIX threads should not hurt.
14336 cat >>confdefs.h <<\_ACEOF
14337 #define _REENTRANT 1
14338 _ACEOF
14340 posix_threads=yes
14341 THREADOBJ="Python/thread.o"
14342 elif test "$ac_cv_kpthread" = "yes"
14343 then
14344 CC="$CC -Kpthread"
14345 if test "$ac_cv_cxx_thread" = "yes"; then
14346 CXX="$CXX -Kpthread"
14348 cat >>confdefs.h <<\_ACEOF
14349 #define WITH_THREAD 1
14350 _ACEOF
14352 posix_threads=yes
14353 THREADOBJ="Python/thread.o"
14354 elif test "$ac_cv_kthread" = "yes"
14355 then
14356 CC="$CC -Kthread"
14357 if test "$ac_cv_cxx_thread" = "yes"; then
14358 CXX="$CXX -Kthread"
14360 cat >>confdefs.h <<\_ACEOF
14361 #define WITH_THREAD 1
14362 _ACEOF
14364 posix_threads=yes
14365 THREADOBJ="Python/thread.o"
14366 elif test "$ac_cv_pthread" = "yes"
14367 then
14368 CC="$CC -pthread"
14369 if test "$ac_cv_cxx_thread" = "yes"; then
14370 CXX="$CXX -pthread"
14372 cat >>confdefs.h <<\_ACEOF
14373 #define WITH_THREAD 1
14374 _ACEOF
14376 posix_threads=yes
14377 THREADOBJ="Python/thread.o"
14378 else
14379 if test ! -z "$with_threads" -a -d "$with_threads"
14380 then LDFLAGS="$LDFLAGS -L$with_threads"
14382 if test ! -z "$withval" -a -d "$withval"
14383 then LDFLAGS="$LDFLAGS -L$withval"
14386 # According to the POSIX spec, a pthreads implementation must
14387 # define _POSIX_THREADS in unistd.h. Some apparently don't
14388 # (e.g. gnu pth with pthread emulation)
14389 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14390 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14398 #include <unistd.h>
14399 #ifdef _POSIX_THREADS
14401 #endif
14403 _ACEOF
14404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14405 $EGREP "yes" >/dev/null 2>&1; then
14406 unistd_defines_pthreads=yes
14407 else
14408 unistd_defines_pthreads=no
14410 rm -f conftest*
14412 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14413 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14415 cat >>confdefs.h <<\_ACEOF
14416 #define _REENTRANT 1
14417 _ACEOF
14419 if test "${ac_cv_header_cthreads_h+set}" = set; then
14420 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14421 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14422 if test "${ac_cv_header_cthreads_h+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14426 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14427 else
14428 # Is the header compilable?
14429 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14430 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 $ac_includes_default
14438 #include <cthreads.h>
14439 _ACEOF
14440 rm -f conftest.$ac_objext
14441 if { (ac_try="$ac_compile"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest.$ac_objext; then
14457 ac_header_compiler=yes
14458 else
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_header_compiler=no
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 echo "${ECHO_T}$ac_header_compiler" >&6; }
14469 # Is the header present?
14470 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14471 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <cthreads.h>
14479 _ACEOF
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } >/dev/null && {
14493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 }; then
14496 ac_header_preproc=yes
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 ac_header_preproc=no
14504 rm -f conftest.err conftest.$ac_ext
14505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14506 echo "${ECHO_T}$ac_header_preproc" >&6; }
14508 # So? What about this header?
14509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14510 yes:no: )
14511 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14512 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14514 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14515 ac_header_preproc=yes
14517 no:yes:* )
14518 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14519 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14521 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14523 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14525 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14527 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14529 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14530 ( cat <<\_ASBOX
14531 ## ------------------------------------------------ ##
14532 ## Report this to http://www.python.org/python-bugs ##
14533 ## ------------------------------------------------ ##
14534 _ASBOX
14535 ) | sed "s/^/$as_me: WARNING: /" >&2
14537 esac
14538 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14539 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14540 if test "${ac_cv_header_cthreads_h+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 ac_cv_header_cthreads_h=$ac_header_preproc
14545 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14546 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14549 if test $ac_cv_header_cthreads_h = yes; then
14550 cat >>confdefs.h <<\_ACEOF
14551 #define WITH_THREAD 1
14552 _ACEOF
14554 cat >>confdefs.h <<\_ACEOF
14555 #define C_THREADS 1
14556 _ACEOF
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HURD_C_THREADS 1
14561 _ACEOF
14563 LIBS="$LIBS -lthreads"
14564 THREADOBJ="Python/thread.o"
14565 else
14567 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14568 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14569 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14570 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14574 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14575 else
14576 # Is the header compilable?
14577 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14578 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14586 #include <mach/cthreads.h>
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (ac_try="$ac_compile"
14590 case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14593 esac
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_compile") 2>conftest.er1
14596 ac_status=$?
14597 grep -v '^ *+' conftest.er1 >conftest.err
14598 rm -f conftest.er1
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && {
14602 test -z "$ac_c_werror_flag" ||
14603 test ! -s conftest.err
14604 } && test -s conftest.$ac_objext; then
14605 ac_header_compiler=yes
14606 else
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14610 ac_header_compiler=no
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14615 echo "${ECHO_T}$ac_header_compiler" >&6; }
14617 # Is the header present?
14618 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14619 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h. */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <mach/cthreads.h>
14627 _ACEOF
14628 if { (ac_try="$ac_cpp conftest.$ac_ext"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } >/dev/null && {
14641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14642 test ! -s conftest.err
14643 }; then
14644 ac_header_preproc=yes
14645 else
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ac_header_preproc=no
14652 rm -f conftest.err conftest.$ac_ext
14653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14654 echo "${ECHO_T}$ac_header_preproc" >&6; }
14656 # So? What about this header?
14657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14658 yes:no: )
14659 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14660 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14662 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14663 ac_header_preproc=yes
14665 no:yes:* )
14666 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14667 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14669 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14671 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14673 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14675 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14677 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14678 ( cat <<\_ASBOX
14679 ## ------------------------------------------------ ##
14680 ## Report this to http://www.python.org/python-bugs ##
14681 ## ------------------------------------------------ ##
14682 _ASBOX
14683 ) | sed "s/^/$as_me: WARNING: /" >&2
14685 esac
14686 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14687 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14688 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14693 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14694 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14697 if test $ac_cv_header_mach_cthreads_h = yes; then
14698 cat >>confdefs.h <<\_ACEOF
14699 #define WITH_THREAD 1
14700 _ACEOF
14702 cat >>confdefs.h <<\_ACEOF
14703 #define C_THREADS 1
14704 _ACEOF
14707 cat >>confdefs.h <<\_ACEOF
14708 #define MACH_C_THREADS 1
14709 _ACEOF
14711 THREADOBJ="Python/thread.o"
14712 else
14714 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14715 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14717 # Check whether --with-pth was given.
14718 if test "${with_pth+set}" = set; then
14719 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14720 echo "${ECHO_T}$withval" >&6; }
14721 cat >>confdefs.h <<\_ACEOF
14722 #define WITH_THREAD 1
14723 _ACEOF
14726 cat >>confdefs.h <<\_ACEOF
14727 #define HAVE_PTH 1
14728 _ACEOF
14730 LIBS="-lpth $LIBS"
14731 THREADOBJ="Python/thread.o"
14732 else
14733 { echo "$as_me:$LINENO: result: no" >&5
14734 echo "${ECHO_T}no" >&6; }
14736 # Just looking for pthread_create in libpthread is not enough:
14737 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14738 # So we really have to include pthread.h, and then link.
14739 _libs=$LIBS
14740 LIBS="$LIBS -lpthread"
14741 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14742 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <pthread.h>
14751 void * start_routine (void *arg) { exit (0); }
14753 main ()
14756 pthread_create (NULL, NULL, start_routine, NULL)
14758 return 0;
14760 _ACEOF
14761 rm -f conftest.$ac_objext conftest$ac_exeext
14762 if { (ac_try="$ac_link"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_link") 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest$ac_exeext &&
14778 $as_test_x conftest$ac_exeext; then
14780 { echo "$as_me:$LINENO: result: yes" >&5
14781 echo "${ECHO_T}yes" >&6; }
14782 cat >>confdefs.h <<\_ACEOF
14783 #define WITH_THREAD 1
14784 _ACEOF
14786 posix_threads=yes
14787 THREADOBJ="Python/thread.o"
14788 else
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14793 LIBS=$_libs
14794 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14795 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14796 if test "${ac_cv_func_pthread_detach+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h. */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14807 #define pthread_detach innocuous_pthread_detach
14809 /* System header to define __stub macros and hopefully few prototypes,
14810 which can conflict with char pthread_detach (); below.
14811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812 <limits.h> exists even on freestanding compilers. */
14814 #ifdef __STDC__
14815 # include <limits.h>
14816 #else
14817 # include <assert.h>
14818 #endif
14820 #undef pthread_detach
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 char pthread_detach ();
14829 /* The GNU C library defines this for functions which it implements
14830 to always fail with ENOSYS. Some functions are actually named
14831 something starting with __ and the normal name is an alias. */
14832 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14833 choke me
14834 #endif
14837 main ()
14839 return pthread_detach ();
14841 return 0;
14843 _ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_link") 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest$ac_exeext &&
14861 $as_test_x conftest$ac_exeext; then
14862 ac_cv_func_pthread_detach=yes
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_cv_func_pthread_detach=no
14870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14871 conftest$ac_exeext conftest.$ac_ext
14873 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14874 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14875 if test $ac_cv_func_pthread_detach = yes; then
14876 cat >>confdefs.h <<\_ACEOF
14877 #define WITH_THREAD 1
14878 _ACEOF
14880 posix_threads=yes
14881 THREADOBJ="Python/thread.o"
14882 else
14884 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14885 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14886 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14887 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14891 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14892 else
14893 # Is the header compilable?
14894 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14895 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h. */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 #include <atheos/threads.h>
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest.$ac_objext; then
14922 ac_header_compiler=yes
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_header_compiler=no
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 echo "${ECHO_T}$ac_header_compiler" >&6; }
14934 # Is the header present?
14935 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14936 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 #include <atheos/threads.h>
14944 _ACEOF
14945 if { (ac_try="$ac_cpp conftest.$ac_ext"
14946 case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } >/dev/null && {
14958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14960 }; then
14961 ac_header_preproc=yes
14962 else
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_header_preproc=no
14969 rm -f conftest.err conftest.$ac_ext
14970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14971 echo "${ECHO_T}$ac_header_preproc" >&6; }
14973 # So? What about this header?
14974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14975 yes:no: )
14976 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14977 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14979 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14980 ac_header_preproc=yes
14982 no:yes:* )
14983 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14984 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14986 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14988 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14990 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14992 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14994 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14995 ( cat <<\_ASBOX
14996 ## ------------------------------------------------ ##
14997 ## Report this to http://www.python.org/python-bugs ##
14998 ## ------------------------------------------------ ##
14999 _ASBOX
15000 ) | sed "s/^/$as_me: WARNING: /" >&2
15002 esac
15003 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15004 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15005 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008 ac_cv_header_atheos_threads_h=$ac_header_preproc
15010 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15011 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15014 if test $ac_cv_header_atheos_threads_h = yes; then
15015 cat >>confdefs.h <<\_ACEOF
15016 #define WITH_THREAD 1
15017 _ACEOF
15020 cat >>confdefs.h <<\_ACEOF
15021 #define ATHEOS_THREADS 1
15022 _ACEOF
15024 THREADOBJ="Python/thread.o"
15025 else
15027 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15028 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15029 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15030 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15034 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15035 else
15036 # Is the header compilable?
15037 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15038 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h. */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 $ac_includes_default
15046 #include <kernel/OS.h>
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (ac_try="$ac_compile"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_compile") 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest.$ac_objext; then
15065 ac_header_compiler=yes
15066 else
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_header_compiler=no
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075 echo "${ECHO_T}$ac_header_compiler" >&6; }
15077 # Is the header present?
15078 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15079 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h. */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <kernel/OS.h>
15087 _ACEOF
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } >/dev/null && {
15101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15102 test ! -s conftest.err
15103 }; then
15104 ac_header_preproc=yes
15105 else
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_header_preproc=no
15112 rm -f conftest.err conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15114 echo "${ECHO_T}$ac_header_preproc" >&6; }
15116 # So? What about this header?
15117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15118 yes:no: )
15119 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15120 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15122 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15123 ac_header_preproc=yes
15125 no:yes:* )
15126 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15127 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15129 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15131 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15133 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15135 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15137 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15138 ( cat <<\_ASBOX
15139 ## ------------------------------------------------ ##
15140 ## Report this to http://www.python.org/python-bugs ##
15141 ## ------------------------------------------------ ##
15142 _ASBOX
15143 ) | sed "s/^/$as_me: WARNING: /" >&2
15145 esac
15146 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15147 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15148 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151 ac_cv_header_kernel_OS_h=$ac_header_preproc
15153 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15154 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15157 if test $ac_cv_header_kernel_OS_h = yes; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define WITH_THREAD 1
15160 _ACEOF
15163 cat >>confdefs.h <<\_ACEOF
15164 #define BEOS_THREADS 1
15165 _ACEOF
15167 THREADOBJ="Python/thread.o"
15168 else
15170 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15171 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lpthreads $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15187 #ifdef __cplusplus
15188 extern "C"
15189 #endif
15190 char pthread_create ();
15192 main ()
15194 return pthread_create ();
15196 return 0;
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest$ac_exeext &&
15216 $as_test_x conftest$ac_exeext; then
15217 ac_cv_lib_pthreads_pthread_create=yes
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_lib_pthreads_pthread_create=no
15225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15230 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15231 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15232 cat >>confdefs.h <<\_ACEOF
15233 #define WITH_THREAD 1
15234 _ACEOF
15236 posix_threads=yes
15237 LIBS="$LIBS -lpthreads"
15238 THREADOBJ="Python/thread.o"
15239 else
15241 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15242 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15243 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246 ac_check_lib_save_LIBS=$LIBS
15247 LIBS="-lc_r $LIBS"
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15255 /* Override any GCC internal prototype to avoid an error.
15256 Use char because int might match the return type of a GCC
15257 builtin and then its argument prototype would still apply. */
15258 #ifdef __cplusplus
15259 extern "C"
15260 #endif
15261 char pthread_create ();
15263 main ()
15265 return pthread_create ();
15267 return 0;
15269 _ACEOF
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (ac_try="$ac_link"
15272 case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_link") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest$ac_exeext &&
15287 $as_test_x conftest$ac_exeext; then
15288 ac_cv_lib_c_r_pthread_create=yes
15289 else
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 ac_cv_lib_c_r_pthread_create=no
15296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15297 conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15300 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15301 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15302 if test $ac_cv_lib_c_r_pthread_create = yes; then
15303 cat >>confdefs.h <<\_ACEOF
15304 #define WITH_THREAD 1
15305 _ACEOF
15307 posix_threads=yes
15308 LIBS="$LIBS -lc_r"
15309 THREADOBJ="Python/thread.o"
15310 else
15312 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15313 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15314 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317 ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-lpthread $LIBS"
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15326 /* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15329 #ifdef __cplusplus
15330 extern "C"
15331 #endif
15332 char __pthread_create_system ();
15334 main ()
15336 return __pthread_create_system ();
15338 return 0;
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 ac_cv_lib_pthread___pthread_create_system=yes
15360 else
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_cv_lib_pthread___pthread_create_system=no
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368 conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15371 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15372 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15373 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15374 cat >>confdefs.h <<\_ACEOF
15375 #define WITH_THREAD 1
15376 _ACEOF
15378 posix_threads=yes
15379 LIBS="$LIBS -lpthread"
15380 THREADOBJ="Python/thread.o"
15381 else
15383 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15384 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15385 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 ac_check_lib_save_LIBS=$LIBS
15389 LIBS="-lcma $LIBS"
15390 cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h. */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15397 /* Override any GCC internal prototype to avoid an error.
15398 Use char because int might match the return type of a GCC
15399 builtin and then its argument prototype would still apply. */
15400 #ifdef __cplusplus
15401 extern "C"
15402 #endif
15403 char pthread_create ();
15405 main ()
15407 return pthread_create ();
15409 return 0;
15411 _ACEOF
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (ac_try="$ac_link"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_link") 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest$ac_exeext &&
15429 $as_test_x conftest$ac_exeext; then
15430 ac_cv_lib_cma_pthread_create=yes
15431 else
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_cv_lib_cma_pthread_create=no
15438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15439 conftest$ac_exeext conftest.$ac_ext
15440 LIBS=$ac_check_lib_save_LIBS
15442 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15443 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15444 if test $ac_cv_lib_cma_pthread_create = yes; then
15445 cat >>confdefs.h <<\_ACEOF
15446 #define WITH_THREAD 1
15447 _ACEOF
15449 posix_threads=yes
15450 LIBS="$LIBS -lcma"
15451 THREADOBJ="Python/thread.o"
15452 else
15454 USE_THREAD_MODULE="#"
15474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15475 conftest$ac_exeext conftest.$ac_ext
15485 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15486 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15487 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490 ac_check_lib_save_LIBS=$LIBS
15491 LIBS="-lmpc $LIBS"
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15499 /* Override any GCC internal prototype to avoid an error.
15500 Use char because int might match the return type of a GCC
15501 builtin and then its argument prototype would still apply. */
15502 #ifdef __cplusplus
15503 extern "C"
15504 #endif
15505 char usconfig ();
15507 main ()
15509 return usconfig ();
15511 return 0;
15513 _ACEOF
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15519 esac
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_link") 2>conftest.er1
15522 ac_status=$?
15523 grep -v '^ *+' conftest.er1 >conftest.err
15524 rm -f conftest.er1
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } && {
15528 test -z "$ac_c_werror_flag" ||
15529 test ! -s conftest.err
15530 } && test -s conftest$ac_exeext &&
15531 $as_test_x conftest$ac_exeext; then
15532 ac_cv_lib_mpc_usconfig=yes
15533 else
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ac_cv_lib_mpc_usconfig=no
15540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15541 conftest$ac_exeext conftest.$ac_ext
15542 LIBS=$ac_check_lib_save_LIBS
15544 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15545 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15546 if test $ac_cv_lib_mpc_usconfig = yes; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define WITH_THREAD 1
15549 _ACEOF
15551 LIBS="$LIBS -lmpc"
15552 THREADOBJ="Python/thread.o"
15553 USE_THREAD_MODULE=""
15557 if test "$posix_threads" != "yes"; then
15558 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15559 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15560 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lthread $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15575 #ifdef __cplusplus
15576 extern "C"
15577 #endif
15578 char thr_create ();
15580 main ()
15582 return thr_create ();
15584 return 0;
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (ac_try="$ac_link"
15589 case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_link") 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest$ac_exeext &&
15604 $as_test_x conftest$ac_exeext; then
15605 ac_cv_lib_thread_thr_create=yes
15606 else
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_lib_thread_thr_create=no
15613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15614 conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15617 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15618 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15619 if test $ac_cv_lib_thread_thr_create = yes; then
15620 cat >>confdefs.h <<\_ACEOF
15621 #define WITH_THREAD 1
15622 _ACEOF
15624 LIBS="$LIBS -lthread"
15625 THREADOBJ="Python/thread.o"
15626 USE_THREAD_MODULE=""
15631 if test "$USE_THREAD_MODULE" != "#"
15632 then
15633 # If the above checks didn't disable threads, (at least) OSF1
15634 # needs this '-threads' argument during linking.
15635 case $ac_sys_system in
15636 OSF1) LDLAST=-threads;;
15637 esac
15641 if test "$posix_threads" = "yes"; then
15642 if test "$unistd_defines_pthreads" = "no"; then
15644 cat >>confdefs.h <<\_ACEOF
15645 #define _POSIX_THREADS 1
15646 _ACEOF
15650 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15651 case $ac_sys_system/$ac_sys_release in
15652 SunOS/5.6)
15653 cat >>confdefs.h <<\_ACEOF
15654 #define HAVE_PTHREAD_DESTRUCTOR 1
15655 _ACEOF
15658 SunOS/5.8)
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15661 _ACEOF
15664 AIX/5)
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15667 _ACEOF
15670 esac
15672 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15673 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15674 if test "${ac_cv_pthread_system_supported+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677 if test "$cross_compiling" = yes; then
15678 ac_cv_pthread_system_supported=no
15679 else
15680 cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h. */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <pthread.h>
15687 void *foo(void *parm) {
15688 return NULL;
15690 main() {
15691 pthread_attr_t attr;
15692 pthread_t id;
15693 if (pthread_attr_init(&attr)) exit(-1);
15694 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15695 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15696 exit(0);
15698 _ACEOF
15699 rm -f conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 ac_cv_pthread_system_supported=yes
15720 else
15721 echo "$as_me: program exited with status $ac_status" >&5
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 ( exit $ac_status )
15726 ac_cv_pthread_system_supported=no
15728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15735 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15736 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15737 if test "$ac_cv_pthread_system_supported" = "yes"; then
15739 cat >>confdefs.h <<\_ACEOF
15740 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15741 _ACEOF
15745 for ac_func in pthread_sigmask
15747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h. */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15761 #define $ac_func innocuous_$ac_func
15763 /* System header to define __stub macros and hopefully few prototypes,
15764 which can conflict with char $ac_func (); below.
15765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766 <limits.h> exists even on freestanding compilers. */
15768 #ifdef __STDC__
15769 # include <limits.h>
15770 #else
15771 # include <assert.h>
15772 #endif
15774 #undef $ac_func
15776 /* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15779 #ifdef __cplusplus
15780 extern "C"
15781 #endif
15782 char $ac_func ();
15783 /* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786 #if defined __stub_$ac_func || defined __stub___$ac_func
15787 choke me
15788 #endif
15791 main ()
15793 return $ac_func ();
15795 return 0;
15797 _ACEOF
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (ac_try="$ac_link"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_link") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest$ac_exeext &&
15815 $as_test_x conftest$ac_exeext; then
15816 eval "$as_ac_var=yes"
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 eval "$as_ac_var=no"
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15827 ac_res=`eval echo '${'$as_ac_var'}'`
15828 { echo "$as_me:$LINENO: result: $ac_res" >&5
15829 echo "${ECHO_T}$ac_res" >&6; }
15830 if test `eval echo '${'$as_ac_var'}'` = yes; then
15831 cat >>confdefs.h <<_ACEOF
15832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15833 _ACEOF
15834 case $ac_sys_system in
15835 CYGWIN*)
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15839 _ACEOF
15842 esac
15844 done
15849 # Check for enable-ipv6
15852 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15853 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15854 # Check whether --enable-ipv6 was given.
15855 if test "${enable_ipv6+set}" = set; then
15856 enableval=$enable_ipv6; case "$enableval" in
15858 { echo "$as_me:$LINENO: result: no" >&5
15859 echo "${ECHO_T}no" >&6; }
15860 ipv6=no
15862 *) { echo "$as_me:$LINENO: result: yes" >&5
15863 echo "${ECHO_T}yes" >&6; }
15864 cat >>confdefs.h <<\_ACEOF
15865 #define ENABLE_IPV6 1
15866 _ACEOF
15868 ipv6=yes
15870 esac
15871 else
15873 if test "$cross_compiling" = yes; then
15874 { echo "$as_me:$LINENO: result: no" >&5
15875 echo "${ECHO_T}no" >&6; }
15876 ipv6=no
15878 else
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 /* AF_INET6 available check */
15886 #include <sys/types.h>
15887 #include <sys/socket.h>
15888 main()
15890 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15891 exit(1);
15892 else
15893 exit(0);
15896 _ACEOF
15897 rm -f conftest$ac_exeext
15898 if { (ac_try="$ac_link"
15899 case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15902 esac
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_link") 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15908 { (case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15911 esac
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_try") 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 { echo "$as_me:$LINENO: result: yes" >&5
15918 echo "${ECHO_T}yes" >&6; }
15919 ipv6=yes
15920 else
15921 echo "$as_me: program exited with status $ac_status" >&5
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ( exit $ac_status )
15926 { echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6; }
15928 ipv6=no
15930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15935 if test "$ipv6" = "yes"; then
15936 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15937 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15938 cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h. */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 #include <sys/types.h>
15945 #include <netinet/in.h>
15947 main ()
15949 struct sockaddr_in6 x;
15950 x.sin6_scope_id;
15952 return 0;
15954 _ACEOF
15955 rm -f conftest.$ac_objext
15956 if { (ac_try="$ac_compile"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960 esac
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_compile") 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } && {
15969 test -z "$ac_c_werror_flag" ||
15970 test ! -s conftest.err
15971 } && test -s conftest.$ac_objext; then
15972 { echo "$as_me:$LINENO: result: yes" >&5
15973 echo "${ECHO_T}yes" >&6; }
15974 ipv6=yes
15975 else
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15981 ipv6=no
15984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987 if test "$ipv6" = "yes"; then
15988 cat >>confdefs.h <<\_ACEOF
15989 #define ENABLE_IPV6 1
15990 _ACEOF
15997 ipv6type=unknown
15998 ipv6lib=none
15999 ipv6trylibc=no
16001 if test "$ipv6" = "yes"; then
16002 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16003 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16004 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16006 case $i in
16007 inria)
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16015 #include <netinet/in.h>
16016 #ifdef IPV6_INRIA_VERSION
16018 #endif
16019 _ACEOF
16020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16021 $EGREP "yes" >/dev/null 2>&1; then
16022 ipv6type=$i
16024 rm -f conftest*
16027 kame)
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16035 #include <netinet/in.h>
16036 #ifdef __KAME__
16038 #endif
16039 _ACEOF
16040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16041 $EGREP "yes" >/dev/null 2>&1; then
16042 ipv6type=$i;
16043 ipv6lib=inet6
16044 ipv6libdir=/usr/local/v6/lib
16045 ipv6trylibc=yes
16047 rm -f conftest*
16050 linux-glibc)
16051 cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h. */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16058 #include <features.h>
16059 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16061 #endif
16062 _ACEOF
16063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16064 $EGREP "yes" >/dev/null 2>&1; then
16065 ipv6type=$i;
16066 ipv6trylibc=yes
16068 rm -f conftest*
16071 linux-inet6)
16072 if test -d /usr/inet6; then
16073 ipv6type=$i
16074 ipv6lib=inet6
16075 ipv6libdir=/usr/inet6/lib
16076 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16079 solaris)
16080 if test -f /etc/netconfig; then
16081 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16082 ipv6type=$i
16083 ipv6trylibc=yes
16087 toshiba)
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h. */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16095 #include <sys/param.h>
16096 #ifdef _TOSHIBA_INET6
16098 #endif
16099 _ACEOF
16100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16101 $EGREP "yes" >/dev/null 2>&1; then
16102 ipv6type=$i;
16103 ipv6lib=inet6;
16104 ipv6libdir=/usr/local/v6/lib
16106 rm -f conftest*
16109 v6d)
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16117 #include </usr/local/v6/include/sys/v6config.h>
16118 #ifdef __V6D__
16120 #endif
16121 _ACEOF
16122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16123 $EGREP "yes" >/dev/null 2>&1; then
16124 ipv6type=$i;
16125 ipv6lib=v6;
16126 ipv6libdir=/usr/local/v6/lib;
16127 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16129 rm -f conftest*
16132 zeta)
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h. */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16140 #include <sys/param.h>
16141 #ifdef _ZETA_MINAMI_INET6
16143 #endif
16144 _ACEOF
16145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16146 $EGREP "yes" >/dev/null 2>&1; then
16147 ipv6type=$i;
16148 ipv6lib=inet6;
16149 ipv6libdir=/usr/local/v6/lib
16151 rm -f conftest*
16154 esac
16155 if test "$ipv6type" != "unknown"; then
16156 break
16158 done
16159 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16160 echo "${ECHO_T}$ipv6type" >&6; }
16163 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16164 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16165 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16166 echo "using lib$ipv6lib"
16167 else
16168 if test $ipv6trylibc = "yes"; then
16169 echo "using libc"
16170 else
16171 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16172 echo "You need to fetch lib$ipv6lib.a from appropriate"
16173 echo 'ipv6 kit and compile beforehand.'
16174 exit 1
16179 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16180 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 #include <Carbon/Carbon.h>
16189 main ()
16191 FSIORefNum fRef = 0
16193 return 0;
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_compile") 2>conftest.er1
16204 ac_status=$?
16205 grep -v '^ *+' conftest.er1 >conftest.err
16206 rm -f conftest.er1
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } && {
16210 test -z "$ac_c_werror_flag" ||
16211 test ! -s conftest.err
16212 } && test -s conftest.$ac_objext; then
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_OSX105_SDK 1
16216 _ACEOF
16218 { echo "$as_me:$LINENO: result: yes" >&5
16219 echo "${ECHO_T}yes" >&6; }
16220 else
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 { echo "$as_me:$LINENO: result: no" >&5
16225 echo "${ECHO_T}no" >&6; }
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 # Check for --with-doc-strings
16232 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16233 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16235 # Check whether --with-doc-strings was given.
16236 if test "${with_doc_strings+set}" = set; then
16237 withval=$with_doc_strings;
16241 if test -z "$with_doc_strings"
16242 then with_doc_strings="yes"
16244 if test "$with_doc_strings" != "no"
16245 then
16247 cat >>confdefs.h <<\_ACEOF
16248 #define WITH_DOC_STRINGS 1
16249 _ACEOF
16252 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16253 echo "${ECHO_T}$with_doc_strings" >&6; }
16255 # Check for Python-specific malloc support
16256 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16257 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16259 # Check whether --with-tsc was given.
16260 if test "${with_tsc+set}" = set; then
16261 withval=$with_tsc;
16262 if test "$withval" != no
16263 then
16265 cat >>confdefs.h <<\_ACEOF
16266 #define WITH_TSC 1
16267 _ACEOF
16269 { echo "$as_me:$LINENO: result: yes" >&5
16270 echo "${ECHO_T}yes" >&6; }
16271 else { echo "$as_me:$LINENO: result: no" >&5
16272 echo "${ECHO_T}no" >&6; }
16274 else
16275 { echo "$as_me:$LINENO: result: no" >&5
16276 echo "${ECHO_T}no" >&6; }
16280 # Check for Python-specific malloc support
16281 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16282 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16284 # Check whether --with-pymalloc was given.
16285 if test "${with_pymalloc+set}" = set; then
16286 withval=$with_pymalloc;
16290 if test -z "$with_pymalloc"
16291 then with_pymalloc="yes"
16293 if test "$with_pymalloc" != "no"
16294 then
16296 cat >>confdefs.h <<\_ACEOF
16297 #define WITH_PYMALLOC 1
16298 _ACEOF
16301 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16302 echo "${ECHO_T}$with_pymalloc" >&6; }
16304 # Check for --with-wctype-functions
16305 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16306 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16308 # Check whether --with-wctype-functions was given.
16309 if test "${with_wctype_functions+set}" = set; then
16310 withval=$with_wctype_functions;
16311 if test "$withval" != no
16312 then
16314 cat >>confdefs.h <<\_ACEOF
16315 #define WANT_WCTYPE_FUNCTIONS 1
16316 _ACEOF
16318 { echo "$as_me:$LINENO: result: yes" >&5
16319 echo "${ECHO_T}yes" >&6; }
16320 else { echo "$as_me:$LINENO: result: no" >&5
16321 echo "${ECHO_T}no" >&6; }
16323 else
16324 { echo "$as_me:$LINENO: result: no" >&5
16325 echo "${ECHO_T}no" >&6; }
16329 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16331 DLINCLDIR=.
16333 # the dlopen() function means we might want to use dynload_shlib.o. some
16334 # platforms, such as AIX, have dlopen(), but don't want to use it.
16336 for ac_func in dlopen
16338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352 #define $ac_func innocuous_$ac_func
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16359 #ifdef __STDC__
16360 # include <limits.h>
16361 #else
16362 # include <assert.h>
16363 #endif
16365 #undef $ac_func
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16370 #ifdef __cplusplus
16371 extern "C"
16372 #endif
16373 char $ac_func ();
16374 /* The GNU C library defines this for functions which it implements
16375 to always fail with ENOSYS. Some functions are actually named
16376 something starting with __ and the normal name is an alias. */
16377 #if defined __stub_$ac_func || defined __stub___$ac_func
16378 choke me
16379 #endif
16382 main ()
16384 return $ac_func ();
16386 return 0;
16388 _ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (ac_try="$ac_link"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_link") 2>conftest.er1
16397 ac_status=$?
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext &&
16406 $as_test_x conftest$ac_exeext; then
16407 eval "$as_ac_var=yes"
16408 else
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 eval "$as_ac_var=no"
16415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16416 conftest$ac_exeext conftest.$ac_ext
16418 ac_res=`eval echo '${'$as_ac_var'}'`
16419 { echo "$as_me:$LINENO: result: $ac_res" >&5
16420 echo "${ECHO_T}$ac_res" >&6; }
16421 if test `eval echo '${'$as_ac_var'}'` = yes; then
16422 cat >>confdefs.h <<_ACEOF
16423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16424 _ACEOF
16427 done
16430 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16431 # loading of modules.
16433 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16434 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16435 if test -z "$DYNLOADFILE"
16436 then
16437 case $ac_sys_system/$ac_sys_release in
16438 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16439 if test "$ac_cv_func_dlopen" = yes
16440 then DYNLOADFILE="dynload_shlib.o"
16441 else DYNLOADFILE="dynload_aix.o"
16444 BeOS*) DYNLOADFILE="dynload_beos.o";;
16445 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16446 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16447 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16448 atheos*) DYNLOADFILE="dynload_atheos.o";;
16450 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16451 # out any dynamic loading
16452 if test "$ac_cv_func_dlopen" = yes
16453 then DYNLOADFILE="dynload_shlib.o"
16454 else DYNLOADFILE="dynload_stub.o"
16457 esac
16459 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16460 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16461 if test "$DYNLOADFILE" != "dynload_stub.o"
16462 then
16464 cat >>confdefs.h <<\_ACEOF
16465 #define HAVE_DYNAMIC_LOADING 1
16466 _ACEOF
16470 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16473 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16474 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16475 if test -z "$MACHDEP_OBJS"
16476 then
16477 MACHDEP_OBJS=$extra_machdep_objs
16478 else
16479 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16481 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16482 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16484 # checks for library functions
16566 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16567 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16568 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16569 getpriority getpwent getspnam getspent getsid getwd \
16570 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16571 mremap nice pathconf pause plock poll pthread_init \
16572 putenv readlink realpath \
16573 select setegid seteuid setgid \
16574 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16575 sigaction siginterrupt sigrelse strftime \
16576 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16577 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16593 #define $ac_func innocuous_$ac_func
16595 /* System header to define __stub macros and hopefully few prototypes,
16596 which can conflict with char $ac_func (); below.
16597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16598 <limits.h> exists even on freestanding compilers. */
16600 #ifdef __STDC__
16601 # include <limits.h>
16602 #else
16603 # include <assert.h>
16604 #endif
16606 #undef $ac_func
16608 /* Override any GCC internal prototype to avoid an error.
16609 Use char because int might match the return type of a GCC
16610 builtin and then its argument prototype would still apply. */
16611 #ifdef __cplusplus
16612 extern "C"
16613 #endif
16614 char $ac_func ();
16615 /* The GNU C library defines this for functions which it implements
16616 to always fail with ENOSYS. Some functions are actually named
16617 something starting with __ and the normal name is an alias. */
16618 #if defined __stub_$ac_func || defined __stub___$ac_func
16619 choke me
16620 #endif
16623 main ()
16625 return $ac_func ();
16627 return 0;
16629 _ACEOF
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_link") 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && {
16644 test -z "$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 } && test -s conftest$ac_exeext &&
16647 $as_test_x conftest$ac_exeext; then
16648 eval "$as_ac_var=yes"
16649 else
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 eval "$as_ac_var=no"
16656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16657 conftest$ac_exeext conftest.$ac_ext
16659 ac_res=`eval echo '${'$as_ac_var'}'`
16660 { echo "$as_me:$LINENO: result: $ac_res" >&5
16661 echo "${ECHO_T}$ac_res" >&6; }
16662 if test `eval echo '${'$as_ac_var'}'` = yes; then
16663 cat >>confdefs.h <<_ACEOF
16664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16665 _ACEOF
16668 done
16671 # For some functions, having a definition is not sufficient, since
16672 # we want to take their address.
16673 { echo "$as_me:$LINENO: checking for chroot" >&5
16674 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16675 cat >conftest.$ac_ext <<_ACEOF
16676 /* confdefs.h. */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 #include <unistd.h>
16683 main ()
16685 void *x=chroot
16687 return 0;
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } && {
16704 test -z "$ac_c_werror_flag" ||
16705 test ! -s conftest.err
16706 } && test -s conftest.$ac_objext; then
16708 cat >>confdefs.h <<\_ACEOF
16709 #define HAVE_CHROOT 1
16710 _ACEOF
16712 { echo "$as_me:$LINENO: result: yes" >&5
16713 echo "${ECHO_T}yes" >&6; }
16714 else
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 { echo "$as_me:$LINENO: result: no" >&5
16719 echo "${ECHO_T}no" >&6; }
16723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 { echo "$as_me:$LINENO: checking for link" >&5
16725 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16726 cat >conftest.$ac_ext <<_ACEOF
16727 /* confdefs.h. */
16728 _ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16732 #include <unistd.h>
16734 main ()
16736 void *x=link
16738 return 0;
16740 _ACEOF
16741 rm -f conftest.$ac_objext
16742 if { (ac_try="$ac_compile"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_compile") 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } && {
16755 test -z "$ac_c_werror_flag" ||
16756 test ! -s conftest.err
16757 } && test -s conftest.$ac_objext; then
16759 cat >>confdefs.h <<\_ACEOF
16760 #define HAVE_LINK 1
16761 _ACEOF
16763 { echo "$as_me:$LINENO: result: yes" >&5
16764 echo "${ECHO_T}yes" >&6; }
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 { echo "$as_me:$LINENO: result: no" >&5
16770 echo "${ECHO_T}no" >&6; }
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16775 { echo "$as_me:$LINENO: checking for symlink" >&5
16776 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16777 cat >conftest.$ac_ext <<_ACEOF
16778 /* confdefs.h. */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783 #include <unistd.h>
16785 main ()
16787 void *x=symlink
16789 return 0;
16791 _ACEOF
16792 rm -f conftest.$ac_objext
16793 if { (ac_try="$ac_compile"
16794 case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_compile") 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } && {
16806 test -z "$ac_c_werror_flag" ||
16807 test ! -s conftest.err
16808 } && test -s conftest.$ac_objext; then
16810 cat >>confdefs.h <<\_ACEOF
16811 #define HAVE_SYMLINK 1
16812 _ACEOF
16814 { echo "$as_me:$LINENO: result: yes" >&5
16815 echo "${ECHO_T}yes" >&6; }
16816 else
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 { echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6; }
16825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826 { echo "$as_me:$LINENO: checking for fchdir" >&5
16827 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <unistd.h>
16836 main ()
16838 void *x=fchdir
16840 return 0;
16842 _ACEOF
16843 rm -f conftest.$ac_objext
16844 if { (ac_try="$ac_compile"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_compile") 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && {
16857 test -z "$ac_c_werror_flag" ||
16858 test ! -s conftest.err
16859 } && test -s conftest.$ac_objext; then
16861 cat >>confdefs.h <<\_ACEOF
16862 #define HAVE_FCHDIR 1
16863 _ACEOF
16865 { echo "$as_me:$LINENO: result: yes" >&5
16866 echo "${ECHO_T}yes" >&6; }
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 { echo "$as_me:$LINENO: result: no" >&5
16872 echo "${ECHO_T}no" >&6; }
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877 { echo "$as_me:$LINENO: checking for fsync" >&5
16878 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h. */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 #include <unistd.h>
16887 main ()
16889 void *x=fsync
16891 return 0;
16893 _ACEOF
16894 rm -f conftest.$ac_objext
16895 if { (ac_try="$ac_compile"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.$ac_objext; then
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_FSYNC 1
16914 _ACEOF
16916 { echo "$as_me:$LINENO: result: yes" >&5
16917 echo "${ECHO_T}yes" >&6; }
16918 else
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 { echo "$as_me:$LINENO: result: no" >&5
16923 echo "${ECHO_T}no" >&6; }
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16929 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16930 cat >conftest.$ac_ext <<_ACEOF
16931 /* confdefs.h. */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 #include <unistd.h>
16938 main ()
16940 void *x=fdatasync
16942 return 0;
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest.$ac_objext; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_FDATASYNC 1
16965 _ACEOF
16967 { echo "$as_me:$LINENO: result: yes" >&5
16968 echo "${ECHO_T}yes" >&6; }
16969 else
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 { echo "$as_me:$LINENO: result: no" >&5
16974 echo "${ECHO_T}no" >&6; }
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 { echo "$as_me:$LINENO: checking for epoll" >&5
16980 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16981 cat >conftest.$ac_ext <<_ACEOF
16982 /* confdefs.h. */
16983 _ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h. */
16987 #include <sys/epoll.h>
16989 main ()
16991 void *x=epoll_create
16993 return 0;
16995 _ACEOF
16996 rm -f conftest.$ac_objext
16997 if { (ac_try="$ac_compile"
16998 case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_compile") 2>conftest.er1
17004 ac_status=$?
17005 grep -v '^ *+' conftest.er1 >conftest.err
17006 rm -f conftest.er1
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && {
17010 test -z "$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17012 } && test -s conftest.$ac_objext; then
17014 cat >>confdefs.h <<\_ACEOF
17015 #define HAVE_EPOLL 1
17016 _ACEOF
17018 { echo "$as_me:$LINENO: result: yes" >&5
17019 echo "${ECHO_T}yes" >&6; }
17020 else
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 { echo "$as_me:$LINENO: result: no" >&5
17025 echo "${ECHO_T}no" >&6; }
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 { echo "$as_me:$LINENO: checking for kqueue" >&5
17031 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17039 #include <sys/types.h>
17040 #include <sys/event.h>
17043 main ()
17045 int x=kqueue()
17047 return 0;
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_compile") 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } && {
17064 test -z "$ac_c_werror_flag" ||
17065 test ! -s conftest.err
17066 } && test -s conftest.$ac_objext; then
17068 cat >>confdefs.h <<\_ACEOF
17069 #define HAVE_KQUEUE 1
17070 _ACEOF
17072 { echo "$as_me:$LINENO: result: yes" >&5
17073 echo "${ECHO_T}yes" >&6; }
17074 else
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 { echo "$as_me:$LINENO: result: no" >&5
17079 echo "${ECHO_T}no" >&6; }
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084 # On some systems (eg. FreeBSD 5), we would find a definition of the
17085 # functions ctermid_r, setgroups in the library, but no prototype
17086 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17087 # address to avoid compiler warnings and potential miscompilations
17088 # because of the missing prototypes.
17090 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17091 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17092 cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h. */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17099 #include "confdefs.h"
17100 #include <stdio.h>
17103 main ()
17105 void* p = ctermid_r
17107 return 0;
17109 _ACEOF
17110 rm -f conftest.$ac_objext
17111 if { (ac_try="$ac_compile"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_compile") 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest.$ac_objext; then
17128 cat >>confdefs.h <<\_ACEOF
17129 #define HAVE_CTERMID_R 1
17130 _ACEOF
17132 { echo "$as_me:$LINENO: result: yes" >&5
17133 echo "${ECHO_T}yes" >&6; }
17134 else
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 { echo "$as_me:$LINENO: result: no" >&5
17139 echo "${ECHO_T}no" >&6; }
17143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 { echo "$as_me:$LINENO: checking for flock" >&5
17146 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17147 cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h. */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17154 #include "confdefs.h"
17155 #include <sys/file.h>
17158 main ()
17160 void* p = flock
17162 return 0;
17164 _ACEOF
17165 rm -f conftest.$ac_objext
17166 if { (ac_try="$ac_compile"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_compile") 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } && {
17179 test -z "$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 } && test -s conftest.$ac_objext; then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_FLOCK 1
17185 _ACEOF
17187 { echo "$as_me:$LINENO: result: yes" >&5
17188 echo "${ECHO_T}yes" >&6; }
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 { echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6; }
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17201 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17209 #include "confdefs.h"
17210 #include <unistd.h>
17213 main ()
17215 void* p = getpagesize
17217 return 0;
17219 _ACEOF
17220 rm -f conftest.$ac_objext
17221 if { (ac_try="$ac_compile"
17222 case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_compile") 2>conftest.er1
17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest.$ac_objext; then
17238 cat >>confdefs.h <<\_ACEOF
17239 #define HAVE_GETPAGESIZE 1
17240 _ACEOF
17242 { echo "$as_me:$LINENO: result: yes" >&5
17243 echo "${ECHO_T}yes" >&6; }
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 { echo "$as_me:$LINENO: result: no" >&5
17249 echo "${ECHO_T}no" >&6; }
17253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17255 for ac_prog in true
17257 # Extract the first word of "$ac_prog", so it can be a program name with args.
17258 set dummy $ac_prog; ac_word=$2
17259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17261 if test "${ac_cv_prog_TRUE+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264 if test -n "$TRUE"; then
17265 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17266 else
17267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17268 for as_dir in $PATH
17270 IFS=$as_save_IFS
17271 test -z "$as_dir" && as_dir=.
17272 for ac_exec_ext in '' $ac_executable_extensions; do
17273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17274 ac_cv_prog_TRUE="$ac_prog"
17275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17276 break 2
17278 done
17279 done
17280 IFS=$as_save_IFS
17284 TRUE=$ac_cv_prog_TRUE
17285 if test -n "$TRUE"; then
17286 { echo "$as_me:$LINENO: result: $TRUE" >&5
17287 echo "${ECHO_T}$TRUE" >&6; }
17288 else
17289 { echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6; }
17294 test -n "$TRUE" && break
17295 done
17296 test -n "$TRUE" || TRUE="/bin/true"
17299 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17300 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17301 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304 ac_check_lib_save_LIBS=$LIBS
17305 LIBS="-lc $LIBS"
17306 cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h. */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 /* Override any GCC internal prototype to avoid an error.
17314 Use char because int might match the return type of a GCC
17315 builtin and then its argument prototype would still apply. */
17316 #ifdef __cplusplus
17317 extern "C"
17318 #endif
17319 char inet_aton ();
17321 main ()
17323 return inet_aton ();
17325 return 0;
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && {
17342 test -z "$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 } && test -s conftest$ac_exeext &&
17345 $as_test_x conftest$ac_exeext; then
17346 ac_cv_lib_c_inet_aton=yes
17347 else
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_cv_lib_c_inet_aton=no
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17358 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17359 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17360 if test $ac_cv_lib_c_inet_aton = yes; then
17361 $ac_cv_prog_TRUE
17362 else
17364 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17365 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17366 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369 ac_check_lib_save_LIBS=$LIBS
17370 LIBS="-lresolv $LIBS"
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17378 /* Override any GCC internal prototype to avoid an error.
17379 Use char because int might match the return type of a GCC
17380 builtin and then its argument prototype would still apply. */
17381 #ifdef __cplusplus
17382 extern "C"
17383 #endif
17384 char inet_aton ();
17386 main ()
17388 return inet_aton ();
17390 return 0;
17392 _ACEOF
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest$ac_exeext &&
17410 $as_test_x conftest$ac_exeext; then
17411 ac_cv_lib_resolv_inet_aton=yes
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ac_cv_lib_resolv_inet_aton=no
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420 conftest$ac_exeext conftest.$ac_ext
17421 LIBS=$ac_check_lib_save_LIBS
17423 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17424 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17425 if test $ac_cv_lib_resolv_inet_aton = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define HAVE_LIBRESOLV 1
17428 _ACEOF
17430 LIBS="-lresolv $LIBS"
17438 # On Tru64, chflags seems to be present, but calling it will
17439 # exit Python
17440 { echo "$as_me:$LINENO: checking for chflags" >&5
17441 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17442 if test "$cross_compiling" = yes; then
17443 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17444 See \`config.log' for more details." >&5
17445 echo "$as_me: error: cannot run test program while cross compiling
17446 See \`config.log' for more details." >&2;}
17447 { (exit 1); exit 1; }; }
17448 else
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 #include <sys/stat.h>
17457 #include <unistd.h>
17458 int main(int argc, char*argv[])
17460 if(chflags(argv[0], 0) != 0)
17461 return 1;
17462 return 0;
17465 _ACEOF
17466 rm -f conftest$ac_exeext
17467 if { (ac_try="$ac_link"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17487 cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_CHFLAGS 1
17489 _ACEOF
17491 { echo "$as_me:$LINENO: result: yes" >&5
17492 echo "${ECHO_T}yes" >&6; }
17493 else
17494 echo "$as_me: program exited with status $ac_status" >&5
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ( exit $ac_status )
17499 { echo "$as_me:$LINENO: result: no" >&5
17500 echo "${ECHO_T}no" >&6; }
17503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17508 { echo "$as_me:$LINENO: checking for lchflags" >&5
17509 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17510 if test "$cross_compiling" = yes; then
17511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17512 See \`config.log' for more details." >&5
17513 echo "$as_me: error: cannot run test program while cross compiling
17514 See \`config.log' for more details." >&2;}
17515 { (exit 1); exit 1; }; }
17516 else
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17524 #include <sys/stat.h>
17525 #include <unistd.h>
17526 int main(int argc, char*argv[])
17528 if(lchflags(argv[0], 0) != 0)
17529 return 1;
17530 return 0;
17533 _ACEOF
17534 rm -f conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17555 cat >>confdefs.h <<\_ACEOF
17556 #define HAVE_LCHFLAGS 1
17557 _ACEOF
17559 { echo "$as_me:$LINENO: result: yes" >&5
17560 echo "${ECHO_T}yes" >&6; }
17561 else
17562 echo "$as_me: program exited with status $ac_status" >&5
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 ( exit $ac_status )
17567 { echo "$as_me:$LINENO: result: no" >&5
17568 echo "${ECHO_T}no" >&6; }
17571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17576 case $ac_sys_system/$ac_sys_release in
17577 Darwin/*)
17578 _CUR_CFLAGS="${CFLAGS}"
17579 _CUR_LDFLAGS="${LDFLAGS}"
17580 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17581 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17583 esac
17585 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17586 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17587 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590 ac_check_lib_save_LIBS=$LIBS
17591 LIBS="-lz $LIBS"
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17599 /* Override any GCC internal prototype to avoid an error.
17600 Use char because int might match the return type of a GCC
17601 builtin and then its argument prototype would still apply. */
17602 #ifdef __cplusplus
17603 extern "C"
17604 #endif
17605 char inflateCopy ();
17607 main ()
17609 return inflateCopy ();
17611 return 0;
17613 _ACEOF
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_link") 2>conftest.er1
17622 ac_status=$?
17623 grep -v '^ *+' conftest.er1 >conftest.err
17624 rm -f conftest.er1
17625 cat conftest.err >&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } && {
17628 test -z "$ac_c_werror_flag" ||
17629 test ! -s conftest.err
17630 } && test -s conftest$ac_exeext &&
17631 $as_test_x conftest$ac_exeext; then
17632 ac_cv_lib_z_inflateCopy=yes
17633 else
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17637 ac_cv_lib_z_inflateCopy=no
17640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641 conftest$ac_exeext conftest.$ac_ext
17642 LIBS=$ac_check_lib_save_LIBS
17644 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17645 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17646 if test $ac_cv_lib_z_inflateCopy = yes; then
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_ZLIB_COPY 1
17650 _ACEOF
17655 case $ac_sys_system/$ac_sys_release in
17656 Darwin/*)
17657 CFLAGS="${_CUR_CFLAGS}"
17658 LDFLAGS="${_CUR_LDFLAGS}"
17660 esac
17662 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17663 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17671 #include "confdefs.h"
17672 #include <netdb.h>
17675 main ()
17677 void* p = hstrerror; hstrerror(0)
17679 return 0;
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (ac_try="$ac_link"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_link") 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && {
17696 test -z "$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 } && test -s conftest$ac_exeext &&
17699 $as_test_x conftest$ac_exeext; then
17701 cat >>confdefs.h <<\_ACEOF
17702 #define HAVE_HSTRERROR 1
17703 _ACEOF
17705 { echo "$as_me:$LINENO: result: yes" >&5
17706 echo "${ECHO_T}yes" >&6; }
17707 else
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 { echo "$as_me:$LINENO: result: no" >&5
17712 echo "${ECHO_T}no" >&6; }
17716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17717 conftest$ac_exeext conftest.$ac_ext
17719 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17720 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h. */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17728 #include "confdefs.h"
17729 #include <sys/types.h>
17730 #include <sys/socket.h>
17731 #include <netinet/in.h>
17732 #include <arpa/inet.h>
17735 main ()
17737 void* p = inet_aton;inet_aton(0,0)
17739 return 0;
17741 _ACEOF
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (ac_try="$ac_link"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17747 esac
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_link") 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest$ac_exeext &&
17759 $as_test_x conftest$ac_exeext; then
17761 cat >>confdefs.h <<\_ACEOF
17762 #define HAVE_INET_ATON 1
17763 _ACEOF
17765 { echo "$as_me:$LINENO: result: yes" >&5
17766 echo "${ECHO_T}yes" >&6; }
17767 else
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 { echo "$as_me:$LINENO: result: no" >&5
17772 echo "${ECHO_T}no" >&6; }
17776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17777 conftest$ac_exeext conftest.$ac_ext
17779 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17780 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17788 #include "confdefs.h"
17789 #include <sys/types.h>
17790 #include <sys/socket.h>
17791 #include <netinet/in.h>
17792 #include <arpa/inet.h>
17795 main ()
17797 void* p = inet_pton
17799 return 0;
17801 _ACEOF
17802 rm -f conftest.$ac_objext
17803 if { (ac_try="$ac_compile"
17804 case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest.$ac_objext; then
17820 cat >>confdefs.h <<\_ACEOF
17821 #define HAVE_INET_PTON 1
17822 _ACEOF
17824 { echo "$as_me:$LINENO: result: yes" >&5
17825 echo "${ECHO_T}yes" >&6; }
17826 else
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 { echo "$as_me:$LINENO: result: no" >&5
17831 echo "${ECHO_T}no" >&6; }
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 # On some systems, setgroups is in unistd.h, on others, in grp.h
17838 { echo "$as_me:$LINENO: checking for setgroups" >&5
17839 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17840 cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h. */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17847 #include "confdefs.h"
17848 #include <unistd.h>
17849 #ifdef HAVE_GRP_H
17850 #include <grp.h>
17851 #endif
17854 main ()
17856 void* p = setgroups
17858 return 0;
17860 _ACEOF
17861 rm -f conftest.$ac_objext
17862 if { (ac_try="$ac_compile"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_compile") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest.$ac_objext; then
17879 cat >>confdefs.h <<\_ACEOF
17880 #define HAVE_SETGROUPS 1
17881 _ACEOF
17883 { echo "$as_me:$LINENO: result: yes" >&5
17884 echo "${ECHO_T}yes" >&6; }
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 { echo "$as_me:$LINENO: result: no" >&5
17890 echo "${ECHO_T}no" >&6; }
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896 # check for openpty and forkpty
17899 for ac_func in openpty
17901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 else
17907 cat >conftest.$ac_ext <<_ACEOF
17908 /* confdefs.h. */
17909 _ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17915 #define $ac_func innocuous_$ac_func
17917 /* System header to define __stub macros and hopefully few prototypes,
17918 which can conflict with char $ac_func (); below.
17919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17920 <limits.h> exists even on freestanding compilers. */
17922 #ifdef __STDC__
17923 # include <limits.h>
17924 #else
17925 # include <assert.h>
17926 #endif
17928 #undef $ac_func
17930 /* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17933 #ifdef __cplusplus
17934 extern "C"
17935 #endif
17936 char $ac_func ();
17937 /* The GNU C library defines this for functions which it implements
17938 to always fail with ENOSYS. Some functions are actually named
17939 something starting with __ and the normal name is an alias. */
17940 #if defined __stub_$ac_func || defined __stub___$ac_func
17941 choke me
17942 #endif
17945 main ()
17947 return $ac_func ();
17949 return 0;
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_link") 2>conftest.er1
17960 ac_status=$?
17961 grep -v '^ *+' conftest.er1 >conftest.err
17962 rm -f conftest.er1
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest$ac_exeext &&
17969 $as_test_x conftest$ac_exeext; then
17970 eval "$as_ac_var=yes"
17971 else
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 eval "$as_ac_var=no"
17978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17979 conftest$ac_exeext conftest.$ac_ext
17981 ac_res=`eval echo '${'$as_ac_var'}'`
17982 { echo "$as_me:$LINENO: result: $ac_res" >&5
17983 echo "${ECHO_T}$ac_res" >&6; }
17984 if test `eval echo '${'$as_ac_var'}'` = yes; then
17985 cat >>confdefs.h <<_ACEOF
17986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17987 _ACEOF
17989 else
17990 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17991 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17992 if test "${ac_cv_lib_util_openpty+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995 ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lutil $LIBS"
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char openpty ();
18012 main ()
18014 return openpty ();
18016 return 0;
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_link") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && {
18033 test -z "$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 } && test -s conftest$ac_exeext &&
18036 $as_test_x conftest$ac_exeext; then
18037 ac_cv_lib_util_openpty=yes
18038 else
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 ac_cv_lib_util_openpty=no
18045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18046 conftest$ac_exeext conftest.$ac_ext
18047 LIBS=$ac_check_lib_save_LIBS
18049 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18050 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18051 if test $ac_cv_lib_util_openpty = yes; then
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE_OPENPTY 1
18054 _ACEOF
18055 LIBS="$LIBS -lutil"
18056 else
18057 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18058 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18059 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062 ac_check_lib_save_LIBS=$LIBS
18063 LIBS="-lbsd $LIBS"
18064 cat >conftest.$ac_ext <<_ACEOF
18065 /* confdefs.h. */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18071 /* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 char openpty ();
18079 main ()
18081 return openpty ();
18083 return 0;
18085 _ACEOF
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest$ac_exeext &&
18103 $as_test_x conftest$ac_exeext; then
18104 ac_cv_lib_bsd_openpty=yes
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_cv_lib_bsd_openpty=no
18112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18113 conftest$ac_exeext conftest.$ac_ext
18114 LIBS=$ac_check_lib_save_LIBS
18116 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18117 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18118 if test $ac_cv_lib_bsd_openpty = yes; then
18119 cat >>confdefs.h <<\_ACEOF
18120 #define HAVE_OPENPTY 1
18121 _ACEOF
18122 LIBS="$LIBS -lbsd"
18130 done
18133 for ac_func in forkpty
18135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141 cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h. */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18149 #define $ac_func innocuous_$ac_func
18151 /* System header to define __stub macros and hopefully few prototypes,
18152 which can conflict with char $ac_func (); below.
18153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18154 <limits.h> exists even on freestanding compilers. */
18156 #ifdef __STDC__
18157 # include <limits.h>
18158 #else
18159 # include <assert.h>
18160 #endif
18162 #undef $ac_func
18164 /* Override any GCC internal prototype to avoid an error.
18165 Use char because int might match the return type of a GCC
18166 builtin and then its argument prototype would still apply. */
18167 #ifdef __cplusplus
18168 extern "C"
18169 #endif
18170 char $ac_func ();
18171 /* The GNU C library defines this for functions which it implements
18172 to always fail with ENOSYS. Some functions are actually named
18173 something starting with __ and the normal name is an alias. */
18174 #if defined __stub_$ac_func || defined __stub___$ac_func
18175 choke me
18176 #endif
18179 main ()
18181 return $ac_func ();
18183 return 0;
18185 _ACEOF
18186 rm -f conftest.$ac_objext conftest$ac_exeext
18187 if { (ac_try="$ac_link"
18188 case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_link") 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } && {
18200 test -z "$ac_c_werror_flag" ||
18201 test ! -s conftest.err
18202 } && test -s conftest$ac_exeext &&
18203 $as_test_x conftest$ac_exeext; then
18204 eval "$as_ac_var=yes"
18205 else
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 eval "$as_ac_var=no"
18212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18213 conftest$ac_exeext conftest.$ac_ext
18215 ac_res=`eval echo '${'$as_ac_var'}'`
18216 { echo "$as_me:$LINENO: result: $ac_res" >&5
18217 echo "${ECHO_T}$ac_res" >&6; }
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18221 _ACEOF
18223 else
18224 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18225 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18226 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18227 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 else
18229 ac_check_lib_save_LIBS=$LIBS
18230 LIBS="-lutil $LIBS"
18231 cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h. */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18238 /* Override any GCC internal prototype to avoid an error.
18239 Use char because int might match the return type of a GCC
18240 builtin and then its argument prototype would still apply. */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 char forkpty ();
18246 main ()
18248 return forkpty ();
18250 return 0;
18252 _ACEOF
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (ac_try="$ac_link"
18255 case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258 esac
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_link") 2>conftest.er1
18261 ac_status=$?
18262 grep -v '^ *+' conftest.er1 >conftest.err
18263 rm -f conftest.er1
18264 cat conftest.err >&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } && {
18267 test -z "$ac_c_werror_flag" ||
18268 test ! -s conftest.err
18269 } && test -s conftest$ac_exeext &&
18270 $as_test_x conftest$ac_exeext; then
18271 ac_cv_lib_util_forkpty=yes
18272 else
18273 echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18276 ac_cv_lib_util_forkpty=no
18279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18280 conftest$ac_exeext conftest.$ac_ext
18281 LIBS=$ac_check_lib_save_LIBS
18283 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18284 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18285 if test $ac_cv_lib_util_forkpty = yes; then
18286 cat >>confdefs.h <<\_ACEOF
18287 #define HAVE_FORKPTY 1
18288 _ACEOF
18289 LIBS="$LIBS -lutil"
18290 else
18291 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18292 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18293 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296 ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lbsd $LIBS"
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 char forkpty ();
18313 main ()
18315 return forkpty ();
18317 return 0;
18319 _ACEOF
18320 rm -f conftest.$ac_objext conftest$ac_exeext
18321 if { (ac_try="$ac_link"
18322 case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18325 esac
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_link") 2>conftest.er1
18328 ac_status=$?
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } && {
18334 test -z "$ac_c_werror_flag" ||
18335 test ! -s conftest.err
18336 } && test -s conftest$ac_exeext &&
18337 $as_test_x conftest$ac_exeext; then
18338 ac_cv_lib_bsd_forkpty=yes
18339 else
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_cv_lib_bsd_forkpty=no
18346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18347 conftest$ac_exeext conftest.$ac_ext
18348 LIBS=$ac_check_lib_save_LIBS
18350 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18351 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18352 if test $ac_cv_lib_bsd_forkpty = yes; then
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_FORKPTY 1
18355 _ACEOF
18356 LIBS="$LIBS -lbsd"
18364 done
18367 # Stuff for expat.
18369 for ac_func in memmove
18371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define $ac_func innocuous_$ac_func
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char $ac_func (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18392 #ifdef __STDC__
18393 # include <limits.h>
18394 #else
18395 # include <assert.h>
18396 #endif
18398 #undef $ac_func
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 char $ac_func ();
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined __stub_$ac_func || defined __stub___$ac_func
18411 choke me
18412 #endif
18415 main ()
18417 return $ac_func ();
18419 return 0;
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } && {
18436 test -z "$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 } && test -s conftest$ac_exeext &&
18439 $as_test_x conftest$ac_exeext; then
18440 eval "$as_ac_var=yes"
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 eval "$as_ac_var=no"
18448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18449 conftest$ac_exeext conftest.$ac_ext
18451 ac_res=`eval echo '${'$as_ac_var'}'`
18452 { echo "$as_me:$LINENO: result: $ac_res" >&5
18453 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18460 done
18463 # check for long file support functions
18470 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478 cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h. */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18486 #define $ac_func innocuous_$ac_func
18488 /* System header to define __stub macros and hopefully few prototypes,
18489 which can conflict with char $ac_func (); below.
18490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18491 <limits.h> exists even on freestanding compilers. */
18493 #ifdef __STDC__
18494 # include <limits.h>
18495 #else
18496 # include <assert.h>
18497 #endif
18499 #undef $ac_func
18501 /* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18504 #ifdef __cplusplus
18505 extern "C"
18506 #endif
18507 char $ac_func ();
18508 /* The GNU C library defines this for functions which it implements
18509 to always fail with ENOSYS. Some functions are actually named
18510 something starting with __ and the normal name is an alias. */
18511 #if defined __stub_$ac_func || defined __stub___$ac_func
18512 choke me
18513 #endif
18516 main ()
18518 return $ac_func ();
18520 return 0;
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } && {
18537 test -z "$ac_c_werror_flag" ||
18538 test ! -s conftest.err
18539 } && test -s conftest$ac_exeext &&
18540 $as_test_x conftest$ac_exeext; then
18541 eval "$as_ac_var=yes"
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 eval "$as_ac_var=no"
18549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18550 conftest$ac_exeext conftest.$ac_ext
18552 ac_res=`eval echo '${'$as_ac_var'}'`
18553 { echo "$as_me:$LINENO: result: $ac_res" >&5
18554 echo "${ECHO_T}$ac_res" >&6; }
18555 if test `eval echo '${'$as_ac_var'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18558 _ACEOF
18561 done
18567 for ac_func in dup2 getcwd strdup
18569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18583 #define $ac_func innocuous_$ac_func
18585 /* System header to define __stub macros and hopefully few prototypes,
18586 which can conflict with char $ac_func (); below.
18587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18588 <limits.h> exists even on freestanding compilers. */
18590 #ifdef __STDC__
18591 # include <limits.h>
18592 #else
18593 # include <assert.h>
18594 #endif
18596 #undef $ac_func
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18601 #ifdef __cplusplus
18602 extern "C"
18603 #endif
18604 char $ac_func ();
18605 /* The GNU C library defines this for functions which it implements
18606 to always fail with ENOSYS. Some functions are actually named
18607 something starting with __ and the normal name is an alias. */
18608 #if defined __stub_$ac_func || defined __stub___$ac_func
18609 choke me
18610 #endif
18613 main ()
18615 return $ac_func ();
18617 return 0;
18619 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_link") 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext &&
18637 $as_test_x conftest$ac_exeext; then
18638 eval "$as_ac_var=yes"
18639 else
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 eval "$as_ac_var=no"
18646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647 conftest$ac_exeext conftest.$ac_ext
18649 ac_res=`eval echo '${'$as_ac_var'}'`
18650 { echo "$as_me:$LINENO: result: $ac_res" >&5
18651 echo "${ECHO_T}$ac_res" >&6; }
18652 if test `eval echo '${'$as_ac_var'}'` = yes; then
18653 cat >>confdefs.h <<_ACEOF
18654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18655 _ACEOF
18657 else
18658 case " $LIBOBJS " in
18659 *" $ac_func.$ac_objext "* ) ;;
18660 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18662 esac
18665 done
18669 for ac_func in getpgrp
18671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define $ac_func innocuous_$ac_func
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char $ac_func (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18692 #ifdef __STDC__
18693 # include <limits.h>
18694 #else
18695 # include <assert.h>
18696 #endif
18698 #undef $ac_func
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 char $ac_func ();
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_$ac_func || defined __stub___$ac_func
18711 choke me
18712 #endif
18715 main ()
18717 return $ac_func ();
18719 return 0;
18721 _ACEOF
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest$ac_exeext &&
18739 $as_test_x conftest$ac_exeext; then
18740 eval "$as_ac_var=yes"
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 eval "$as_ac_var=no"
18748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18749 conftest$ac_exeext conftest.$ac_ext
18751 ac_res=`eval echo '${'$as_ac_var'}'`
18752 { echo "$as_me:$LINENO: result: $ac_res" >&5
18753 echo "${ECHO_T}$ac_res" >&6; }
18754 if test `eval echo '${'$as_ac_var'}'` = yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18757 _ACEOF
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h. */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 #include <unistd.h>
18766 main ()
18768 getpgrp(0);
18770 return 0;
18772 _ACEOF
18773 rm -f conftest.$ac_objext
18774 if { (ac_try="$ac_compile"
18775 case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_compile") 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } && {
18787 test -z "$ac_c_werror_flag" ||
18788 test ! -s conftest.err
18789 } && test -s conftest.$ac_objext; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define GETPGRP_HAVE_ARG 1
18793 _ACEOF
18796 else
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18806 done
18809 for ac_func in setpgrp
18811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18825 #define $ac_func innocuous_$ac_func
18827 /* System header to define __stub macros and hopefully few prototypes,
18828 which can conflict with char $ac_func (); below.
18829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18830 <limits.h> exists even on freestanding compilers. */
18832 #ifdef __STDC__
18833 # include <limits.h>
18834 #else
18835 # include <assert.h>
18836 #endif
18838 #undef $ac_func
18840 /* Override any GCC internal prototype to avoid an error.
18841 Use char because int might match the return type of a GCC
18842 builtin and then its argument prototype would still apply. */
18843 #ifdef __cplusplus
18844 extern "C"
18845 #endif
18846 char $ac_func ();
18847 /* The GNU C library defines this for functions which it implements
18848 to always fail with ENOSYS. Some functions are actually named
18849 something starting with __ and the normal name is an alias. */
18850 #if defined __stub_$ac_func || defined __stub___$ac_func
18851 choke me
18852 #endif
18855 main ()
18857 return $ac_func ();
18859 return 0;
18861 _ACEOF
18862 rm -f conftest.$ac_objext conftest$ac_exeext
18863 if { (ac_try="$ac_link"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_link") 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest$ac_exeext &&
18879 $as_test_x conftest$ac_exeext; then
18880 eval "$as_ac_var=yes"
18881 else
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 eval "$as_ac_var=no"
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18891 ac_res=`eval echo '${'$as_ac_var'}'`
18892 { echo "$as_me:$LINENO: result: $ac_res" >&5
18893 echo "${ECHO_T}$ac_res" >&6; }
18894 if test `eval echo '${'$as_ac_var'}'` = yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18897 _ACEOF
18898 cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h. */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 #include <unistd.h>
18906 main ()
18908 setpgrp(0,0);
18910 return 0;
18912 _ACEOF
18913 rm -f conftest.$ac_objext
18914 if { (ac_try="$ac_compile"
18915 case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_compile") 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest.$ac_objext; then
18931 cat >>confdefs.h <<\_ACEOF
18932 #define SETPGRP_HAVE_ARG 1
18933 _ACEOF
18936 else
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18946 done
18949 for ac_func in gettimeofday
18951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18965 #define $ac_func innocuous_$ac_func
18967 /* System header to define __stub macros and hopefully few prototypes,
18968 which can conflict with char $ac_func (); below.
18969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970 <limits.h> exists even on freestanding compilers. */
18972 #ifdef __STDC__
18973 # include <limits.h>
18974 #else
18975 # include <assert.h>
18976 #endif
18978 #undef $ac_func
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char $ac_func ();
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined __stub_$ac_func || defined __stub___$ac_func
18991 choke me
18992 #endif
18995 main ()
18997 return $ac_func ();
18999 return 0;
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && {
19016 test -z "$ac_c_werror_flag" ||
19017 test ! -s conftest.err
19018 } && test -s conftest$ac_exeext &&
19019 $as_test_x conftest$ac_exeext; then
19020 eval "$as_ac_var=yes"
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 eval "$as_ac_var=no"
19028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19029 conftest$ac_exeext conftest.$ac_ext
19031 ac_res=`eval echo '${'$as_ac_var'}'`
19032 { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19034 if test `eval echo '${'$as_ac_var'}'` = yes; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19037 _ACEOF
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h. */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <sys/time.h>
19046 main ()
19048 gettimeofday((struct timeval*)0,(struct timezone*)0);
19050 return 0;
19052 _ACEOF
19053 rm -f conftest.$ac_objext
19054 if { (ac_try="$ac_compile"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_compile") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest.$ac_objext; then
19071 else
19072 echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19076 cat >>confdefs.h <<\_ACEOF
19077 #define GETTIMEOFDAY_NO_TZ 1
19078 _ACEOF
19083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19086 done
19089 { echo "$as_me:$LINENO: checking for major" >&5
19090 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19091 cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h. */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19098 #if defined(MAJOR_IN_MKDEV)
19099 #include <sys/mkdev.h>
19100 #elif defined(MAJOR_IN_SYSMACROS)
19101 #include <sys/sysmacros.h>
19102 #else
19103 #include <sys/types.h>
19104 #endif
19107 main ()
19110 makedev(major(0),minor(0));
19113 return 0;
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19136 cat >>confdefs.h <<\_ACEOF
19137 #define HAVE_DEVICE_MACROS 1
19138 _ACEOF
19140 { echo "$as_me:$LINENO: result: yes" >&5
19141 echo "${ECHO_T}yes" >&6; }
19143 else
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19148 { echo "$as_me:$LINENO: result: no" >&5
19149 echo "${ECHO_T}no" >&6; }
19153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19154 conftest$ac_exeext conftest.$ac_ext
19156 # On OSF/1 V5.1, getaddrinfo is available, but a define
19157 # for [no]getaddrinfo in netdb.h.
19158 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19159 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h. */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19167 #include <sys/types.h>
19168 #include <sys/socket.h>
19169 #include <netdb.h>
19170 #include <stdio.h>
19173 main ()
19176 getaddrinfo(NULL, NULL, NULL, NULL);
19179 return 0;
19181 _ACEOF
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_link") 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest$ac_exeext &&
19199 $as_test_x conftest$ac_exeext; then
19201 { echo "$as_me:$LINENO: result: yes" >&5
19202 echo "${ECHO_T}yes" >&6; }
19203 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19204 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19205 if test "$cross_compiling" = yes; then
19206 { echo "$as_me:$LINENO: result: buggy" >&5
19207 echo "${ECHO_T}buggy" >&6; }
19208 buggygetaddrinfo=yes
19209 else
19210 cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h. */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19217 #include <sys/types.h>
19218 #include <netdb.h>
19219 #include <string.h>
19220 #include <sys/socket.h>
19221 #include <netinet/in.h>
19223 main()
19225 int passive, gaierr, inet4 = 0, inet6 = 0;
19226 struct addrinfo hints, *ai, *aitop;
19227 char straddr[INET6_ADDRSTRLEN], strport[16];
19229 for (passive = 0; passive <= 1; passive++) {
19230 memset(&hints, 0, sizeof(hints));
19231 hints.ai_family = AF_UNSPEC;
19232 hints.ai_flags = passive ? AI_PASSIVE : 0;
19233 hints.ai_socktype = SOCK_STREAM;
19234 hints.ai_protocol = IPPROTO_TCP;
19235 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19236 (void)gai_strerror(gaierr);
19237 goto bad;
19239 for (ai = aitop; ai; ai = ai->ai_next) {
19240 if (ai->ai_addr == NULL ||
19241 ai->ai_addrlen == 0 ||
19242 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19243 straddr, sizeof(straddr), strport, sizeof(strport),
19244 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19245 goto bad;
19247 switch (ai->ai_family) {
19248 case AF_INET:
19249 if (strcmp(strport, "54321") != 0) {
19250 goto bad;
19252 if (passive) {
19253 if (strcmp(straddr, "0.0.0.0") != 0) {
19254 goto bad;
19256 } else {
19257 if (strcmp(straddr, "127.0.0.1") != 0) {
19258 goto bad;
19261 inet4++;
19262 break;
19263 case AF_INET6:
19264 if (strcmp(strport, "54321") != 0) {
19265 goto bad;
19267 if (passive) {
19268 if (strcmp(straddr, "::") != 0) {
19269 goto bad;
19271 } else {
19272 if (strcmp(straddr, "::1") != 0) {
19273 goto bad;
19276 inet6++;
19277 break;
19278 case AF_UNSPEC:
19279 goto bad;
19280 break;
19281 default:
19282 /* another family support? */
19283 break;
19288 if (!(inet4 == 0 || inet4 == 2))
19289 goto bad;
19290 if (!(inet6 == 0 || inet6 == 2))
19291 goto bad;
19293 if (aitop)
19294 freeaddrinfo(aitop);
19295 exit(0);
19297 bad:
19298 if (aitop)
19299 freeaddrinfo(aitop);
19300 exit(1);
19303 _ACEOF
19304 rm -f conftest$ac_exeext
19305 if { (ac_try="$ac_link"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19315 { (case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_try") 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 { echo "$as_me:$LINENO: result: good" >&5
19325 echo "${ECHO_T}good" >&6; }
19326 buggygetaddrinfo=no
19327 else
19328 echo "$as_me: program exited with status $ac_status" >&5
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ( exit $ac_status )
19333 { echo "$as_me:$LINENO: result: buggy" >&5
19334 echo "${ECHO_T}buggy" >&6; }
19335 buggygetaddrinfo=yes
19337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19341 else
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19346 { echo "$as_me:$LINENO: result: no" >&5
19347 echo "${ECHO_T}no" >&6; }
19348 buggygetaddrinfo=yes
19352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19353 conftest$ac_exeext conftest.$ac_ext
19355 if test "$buggygetaddrinfo" = "yes"; then
19356 if test "$ipv6" = "yes"; then
19357 echo 'Fatal: You must get working getaddrinfo() function.'
19358 echo ' or you can specify "--disable-ipv6"'.
19359 exit 1
19361 else
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_GETADDRINFO 1
19365 _ACEOF
19369 for ac_func in getnameinfo
19371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377 cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h. */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19385 #define $ac_func innocuous_$ac_func
19387 /* System header to define __stub macros and hopefully few prototypes,
19388 which can conflict with char $ac_func (); below.
19389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19390 <limits.h> exists even on freestanding compilers. */
19392 #ifdef __STDC__
19393 # include <limits.h>
19394 #else
19395 # include <assert.h>
19396 #endif
19398 #undef $ac_func
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19403 #ifdef __cplusplus
19404 extern "C"
19405 #endif
19406 char $ac_func ();
19407 /* The GNU C library defines this for functions which it implements
19408 to always fail with ENOSYS. Some functions are actually named
19409 something starting with __ and the normal name is an alias. */
19410 #if defined __stub_$ac_func || defined __stub___$ac_func
19411 choke me
19412 #endif
19415 main ()
19417 return $ac_func ();
19419 return 0;
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest$ac_exeext &&
19439 $as_test_x conftest$ac_exeext; then
19440 eval "$as_ac_var=yes"
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 eval "$as_ac_var=no"
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449 conftest$ac_exeext conftest.$ac_ext
19451 ac_res=`eval echo '${'$as_ac_var'}'`
19452 { echo "$as_me:$LINENO: result: $ac_res" >&5
19453 echo "${ECHO_T}$ac_res" >&6; }
19454 if test `eval echo '${'$as_ac_var'}'` = yes; then
19455 cat >>confdefs.h <<_ACEOF
19456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19457 _ACEOF
19460 done
19463 # checks for structures
19464 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19465 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19466 if test "${ac_cv_header_time+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 #include <sys/types.h>
19476 #include <sys/time.h>
19477 #include <time.h>
19480 main ()
19482 if ((struct tm *) 0)
19483 return 0;
19485 return 0;
19487 _ACEOF
19488 rm -f conftest.$ac_objext
19489 if { (ac_try="$ac_compile"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_compile") 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && {
19502 test -z "$ac_c_werror_flag" ||
19503 test ! -s conftest.err
19504 } && test -s conftest.$ac_objext; then
19505 ac_cv_header_time=yes
19506 else
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19510 ac_cv_header_time=no
19513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19515 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19516 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19517 if test $ac_cv_header_time = yes; then
19519 cat >>confdefs.h <<\_ACEOF
19520 #define TIME_WITH_SYS_TIME 1
19521 _ACEOF
19525 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19526 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19527 if test "${ac_cv_struct_tm+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530 cat >conftest.$ac_ext <<_ACEOF
19531 /* confdefs.h. */
19532 _ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19536 #include <sys/types.h>
19537 #include <time.h>
19540 main ()
19542 struct tm tm;
19543 int *p = &tm.tm_sec;
19544 return !p;
19546 return 0;
19548 _ACEOF
19549 rm -f conftest.$ac_objext
19550 if { (ac_try="$ac_compile"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_compile") 2>conftest.er1
19557 ac_status=$?
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest.$ac_objext; then
19566 ac_cv_struct_tm=time.h
19567 else
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_cv_struct_tm=sys/time.h
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19577 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19578 if test $ac_cv_struct_tm = sys/time.h; then
19580 cat >>confdefs.h <<\_ACEOF
19581 #define TM_IN_SYS_TIME 1
19582 _ACEOF
19586 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19587 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19588 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591 cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h. */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19597 #include <sys/types.h>
19598 #include <$ac_cv_struct_tm>
19602 main ()
19604 static struct tm ac_aggr;
19605 if (ac_aggr.tm_zone)
19606 return 0;
19608 return 0;
19610 _ACEOF
19611 rm -f conftest.$ac_objext
19612 if { (ac_try="$ac_compile"
19613 case "(($ac_try" in
19614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615 *) ac_try_echo=$ac_try;;
19616 esac
19617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618 (eval "$ac_compile") 2>conftest.er1
19619 ac_status=$?
19620 grep -v '^ *+' conftest.er1 >conftest.err
19621 rm -f conftest.er1
19622 cat conftest.err >&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } && {
19625 test -z "$ac_c_werror_flag" ||
19626 test ! -s conftest.err
19627 } && test -s conftest.$ac_objext; then
19628 ac_cv_member_struct_tm_tm_zone=yes
19629 else
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <sys/types.h>
19640 #include <$ac_cv_struct_tm>
19644 main ()
19646 static struct tm ac_aggr;
19647 if (sizeof ac_aggr.tm_zone)
19648 return 0;
19650 return 0;
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_compile") 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && {
19667 test -z "$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19669 } && test -s conftest.$ac_objext; then
19670 ac_cv_member_struct_tm_tm_zone=yes
19671 else
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_cv_member_struct_tm_tm_zone=no
19678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19684 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19685 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19687 cat >>confdefs.h <<_ACEOF
19688 #define HAVE_STRUCT_TM_TM_ZONE 1
19689 _ACEOF
19694 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19696 cat >>confdefs.h <<\_ACEOF
19697 #define HAVE_TM_ZONE 1
19698 _ACEOF
19700 else
19701 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19702 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19703 if test "${ac_cv_have_decl_tzname+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 #include <time.h>
19715 main ()
19717 #ifndef tzname
19718 (void) tzname;
19719 #endif
19722 return 0;
19724 _ACEOF
19725 rm -f conftest.$ac_objext
19726 if { (ac_try="$ac_compile"
19727 case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_compile") 2>conftest.er1
19733 ac_status=$?
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } && {
19739 test -z "$ac_c_werror_flag" ||
19740 test ! -s conftest.err
19741 } && test -s conftest.$ac_objext; then
19742 ac_cv_have_decl_tzname=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_have_decl_tzname=no
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19753 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19754 if test $ac_cv_have_decl_tzname = yes; then
19756 cat >>confdefs.h <<_ACEOF
19757 #define HAVE_DECL_TZNAME 1
19758 _ACEOF
19761 else
19762 cat >>confdefs.h <<_ACEOF
19763 #define HAVE_DECL_TZNAME 0
19764 _ACEOF
19770 { echo "$as_me:$LINENO: checking for tzname" >&5
19771 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19772 if test "${ac_cv_var_tzname+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 #include <time.h>
19782 #if !HAVE_DECL_TZNAME
19783 extern char *tzname[];
19784 #endif
19787 main ()
19789 return tzname[0][0];
19791 return 0;
19793 _ACEOF
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_var_tzname=yes
19813 else
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_var_tzname=no
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19823 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19824 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19825 if test $ac_cv_var_tzname = yes; then
19827 cat >>confdefs.h <<\_ACEOF
19828 #define HAVE_TZNAME 1
19829 _ACEOF
19834 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19835 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19836 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 $ac_includes_default
19847 main ()
19849 static struct stat ac_aggr;
19850 if (ac_aggr.st_rdev)
19851 return 0;
19853 return 0;
19855 _ACEOF
19856 rm -f conftest.$ac_objext
19857 if { (ac_try="$ac_compile"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_compile") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest.$ac_objext; then
19873 ac_cv_member_struct_stat_st_rdev=yes
19874 else
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h. */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 $ac_includes_default
19886 main ()
19888 static struct stat ac_aggr;
19889 if (sizeof ac_aggr.st_rdev)
19890 return 0;
19892 return 0;
19894 _ACEOF
19895 rm -f conftest.$ac_objext
19896 if { (ac_try="$ac_compile"
19897 case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_compile") 2>conftest.er1
19903 ac_status=$?
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } && {
19909 test -z "$ac_c_werror_flag" ||
19910 test ! -s conftest.err
19911 } && test -s conftest.$ac_objext; then
19912 ac_cv_member_struct_stat_st_rdev=yes
19913 else
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_member_struct_stat_st_rdev=no
19920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19926 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19927 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19929 cat >>confdefs.h <<_ACEOF
19930 #define HAVE_STRUCT_STAT_ST_RDEV 1
19931 _ACEOF
19936 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19937 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19938 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 $ac_includes_default
19949 main ()
19951 static struct stat ac_aggr;
19952 if (ac_aggr.st_blksize)
19953 return 0;
19955 return 0;
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19963 esac
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_compile") 2>conftest.er1
19966 ac_status=$?
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.$ac_objext; then
19975 ac_cv_member_struct_stat_st_blksize=yes
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h. */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 $ac_includes_default
19988 main ()
19990 static struct stat ac_aggr;
19991 if (sizeof ac_aggr.st_blksize)
19992 return 0;
19994 return 0;
19996 _ACEOF
19997 rm -f conftest.$ac_objext
19998 if { (ac_try="$ac_compile"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
20005 ac_status=$?
20006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && {
20011 test -z "$ac_c_werror_flag" ||
20012 test ! -s conftest.err
20013 } && test -s conftest.$ac_objext; then
20014 ac_cv_member_struct_stat_st_blksize=yes
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_cv_member_struct_stat_st_blksize=no
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20028 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20029 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20033 _ACEOF
20038 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20039 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20040 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h. */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 $ac_includes_default
20051 main ()
20053 static struct stat ac_aggr;
20054 if (ac_aggr.st_flags)
20055 return 0;
20057 return 0;
20059 _ACEOF
20060 rm -f conftest.$ac_objext
20061 if { (ac_try="$ac_compile"
20062 case "(($ac_try" in
20063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064 *) ac_try_echo=$ac_try;;
20065 esac
20066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067 (eval "$ac_compile") 2>conftest.er1
20068 ac_status=$?
20069 grep -v '^ *+' conftest.er1 >conftest.err
20070 rm -f conftest.er1
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } && {
20074 test -z "$ac_c_werror_flag" ||
20075 test ! -s conftest.err
20076 } && test -s conftest.$ac_objext; then
20077 ac_cv_member_struct_stat_st_flags=yes
20078 else
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h. */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 $ac_includes_default
20090 main ()
20092 static struct stat ac_aggr;
20093 if (sizeof ac_aggr.st_flags)
20094 return 0;
20096 return 0;
20098 _ACEOF
20099 rm -f conftest.$ac_objext
20100 if { (ac_try="$ac_compile"
20101 case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20104 esac
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_compile") 2>conftest.er1
20107 ac_status=$?
20108 grep -v '^ *+' conftest.er1 >conftest.err
20109 rm -f conftest.er1
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } && {
20113 test -z "$ac_c_werror_flag" ||
20114 test ! -s conftest.err
20115 } && test -s conftest.$ac_objext; then
20116 ac_cv_member_struct_stat_st_flags=yes
20117 else
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_member_struct_stat_st_flags=no
20124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20130 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20131 if test $ac_cv_member_struct_stat_st_flags = yes; then
20133 cat >>confdefs.h <<_ACEOF
20134 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20135 _ACEOF
20140 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20141 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20142 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20153 main ()
20155 static struct stat ac_aggr;
20156 if (ac_aggr.st_gen)
20157 return 0;
20159 return 0;
20161 _ACEOF
20162 rm -f conftest.$ac_objext
20163 if { (ac_try="$ac_compile"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 ac_cv_member_struct_stat_st_gen=yes
20180 else
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 $ac_includes_default
20192 main ()
20194 static struct stat ac_aggr;
20195 if (sizeof ac_aggr.st_gen)
20196 return 0;
20198 return 0;
20200 _ACEOF
20201 rm -f conftest.$ac_objext
20202 if { (ac_try="$ac_compile"
20203 case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_compile") 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && {
20215 test -z "$ac_c_werror_flag" ||
20216 test ! -s conftest.err
20217 } && test -s conftest.$ac_objext; then
20218 ac_cv_member_struct_stat_st_gen=yes
20219 else
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20223 ac_cv_member_struct_stat_st_gen=no
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20232 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20233 if test $ac_cv_member_struct_stat_st_gen = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define HAVE_STRUCT_STAT_ST_GEN 1
20237 _ACEOF
20242 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20243 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20244 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247 cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h. */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 $ac_includes_default
20255 main ()
20257 static struct stat ac_aggr;
20258 if (ac_aggr.st_birthtime)
20259 return 0;
20261 return 0;
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_compile") 2>conftest.er1
20272 ac_status=$?
20273 grep -v '^ *+' conftest.er1 >conftest.err
20274 rm -f conftest.er1
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } && {
20278 test -z "$ac_c_werror_flag" ||
20279 test ! -s conftest.err
20280 } && test -s conftest.$ac_objext; then
20281 ac_cv_member_struct_stat_st_birthtime=yes
20282 else
20283 echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20286 cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h. */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20292 $ac_includes_default
20294 main ()
20296 static struct stat ac_aggr;
20297 if (sizeof ac_aggr.st_birthtime)
20298 return 0;
20300 return 0;
20302 _ACEOF
20303 rm -f conftest.$ac_objext
20304 if { (ac_try="$ac_compile"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_compile") 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest.$ac_objext; then
20320 ac_cv_member_struct_stat_st_birthtime=yes
20321 else
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_cv_member_struct_stat_st_birthtime=no
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20334 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20335 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20337 cat >>confdefs.h <<_ACEOF
20338 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20339 _ACEOF
20344 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20345 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20346 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 $ac_includes_default
20357 main ()
20359 static struct stat ac_aggr;
20360 if (ac_aggr.st_blocks)
20361 return 0;
20363 return 0;
20365 _ACEOF
20366 rm -f conftest.$ac_objext
20367 if { (ac_try="$ac_compile"
20368 case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371 esac
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_compile") 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } && {
20380 test -z "$ac_c_werror_flag" ||
20381 test ! -s conftest.err
20382 } && test -s conftest.$ac_objext; then
20383 ac_cv_member_struct_stat_st_blocks=yes
20384 else
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 $ac_includes_default
20396 main ()
20398 static struct stat ac_aggr;
20399 if (sizeof ac_aggr.st_blocks)
20400 return 0;
20402 return 0;
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_compile") 2>conftest.er1
20413 ac_status=$?
20414 grep -v '^ *+' conftest.er1 >conftest.err
20415 rm -f conftest.er1
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest.$ac_objext; then
20422 ac_cv_member_struct_stat_st_blocks=yes
20423 else
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_member_struct_stat_st_blocks=no
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20436 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20437 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20439 cat >>confdefs.h <<_ACEOF
20440 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20441 _ACEOF
20444 cat >>confdefs.h <<\_ACEOF
20445 #define HAVE_ST_BLOCKS 1
20446 _ACEOF
20448 else
20449 case " $LIBOBJS " in
20450 *" fileblocks.$ac_objext "* ) ;;
20451 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20453 esac
20459 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20460 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20461 if test "${ac_cv_header_time_altzone+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464 cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h. */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470 #include <time.h>
20472 main ()
20474 return altzone;
20476 return 0;
20478 _ACEOF
20479 rm -f conftest.$ac_objext
20480 if { (ac_try="$ac_compile"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_compile") 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } && {
20493 test -z "$ac_c_werror_flag" ||
20494 test ! -s conftest.err
20495 } && test -s conftest.$ac_objext; then
20496 ac_cv_header_time_altzone=yes
20497 else
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 ac_cv_header_time_altzone=no
20504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20508 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20509 if test $ac_cv_header_time_altzone = yes; then
20511 cat >>confdefs.h <<\_ACEOF
20512 #define HAVE_ALTZONE 1
20513 _ACEOF
20517 was_it_defined=no
20518 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20519 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h. */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20527 #include <sys/types.h>
20528 #include <sys/select.h>
20529 #include <sys/time.h>
20532 main ()
20536 return 0;
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (ac_try="$ac_compile"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_compile") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest.$ac_objext; then
20558 cat >>confdefs.h <<\_ACEOF
20559 #define SYS_SELECT_WITH_SYS_TIME 1
20560 _ACEOF
20562 was_it_defined=yes
20564 else
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20573 echo "${ECHO_T}$was_it_defined" >&6; }
20575 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20576 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20577 if test "${ac_cv_struct_addrinfo+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580 cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h. */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20587 # include <netdb.h>
20589 main ()
20591 struct addrinfo a
20593 return 0;
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_compile") 2>conftest.er1
20604 ac_status=$?
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -f conftest.er1
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest.$ac_objext; then
20613 ac_cv_struct_addrinfo=yes
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_cv_struct_addrinfo=no
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20625 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20626 if test $ac_cv_struct_addrinfo = yes; then
20628 cat >>confdefs.h <<\_ACEOF
20629 #define HAVE_ADDRINFO 1
20630 _ACEOF
20634 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20635 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20636 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639 cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h. */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 # include <sys/types.h>
20647 # include <sys/socket.h>
20649 main ()
20651 struct sockaddr_storage s
20653 return 0;
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.$ac_objext; then
20673 ac_cv_struct_sockaddr_storage=yes
20674 else
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_cv_struct_sockaddr_storage=no
20681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20685 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20686 if test $ac_cv_struct_sockaddr_storage = yes; then
20688 cat >>confdefs.h <<\_ACEOF
20689 #define HAVE_SOCKADDR_STORAGE 1
20690 _ACEOF
20694 # checks for compiler characteristics
20697 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20698 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20699 if test "${ac_cv_c_char_unsigned+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702 cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h. */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 $ac_includes_default
20710 main ()
20712 static int test_array [1 - 2 * !(((char) -1) < 0)];
20713 test_array [0] = 0
20716 return 0;
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest.$ac_objext; then
20736 ac_cv_c_char_unsigned=no
20737 else
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 ac_cv_c_char_unsigned=yes
20744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20747 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20748 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20749 cat >>confdefs.h <<\_ACEOF
20750 #define __CHAR_UNSIGNED__ 1
20751 _ACEOF
20755 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20756 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20757 if test "${ac_cv_c_const+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 else
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20768 main ()
20770 /* FIXME: Include the comments suggested by Paul. */
20771 #ifndef __cplusplus
20772 /* Ultrix mips cc rejects this. */
20773 typedef int charset[2];
20774 const charset cs;
20775 /* SunOS 4.1.1 cc rejects this. */
20776 char const *const *pcpcc;
20777 char **ppc;
20778 /* NEC SVR4.0.2 mips cc rejects this. */
20779 struct point {int x, y;};
20780 static struct point const zero = {0,0};
20781 /* AIX XL C 1.02.0.0 rejects this.
20782 It does not let you subtract one const X* pointer from another in
20783 an arm of an if-expression whose if-part is not a constant
20784 expression */
20785 const char *g = "string";
20786 pcpcc = &g + (g ? g-g : 0);
20787 /* HPUX 7.0 cc rejects these. */
20788 ++pcpcc;
20789 ppc = (char**) pcpcc;
20790 pcpcc = (char const *const *) ppc;
20791 { /* SCO 3.2v4 cc rejects this. */
20792 char *t;
20793 char const *s = 0 ? (char *) 0 : (char const *) 0;
20795 *t++ = 0;
20796 if (s) return 0;
20798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20799 int x[] = {25, 17};
20800 const int *foo = &x[0];
20801 ++foo;
20803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20804 typedef const int *iptr;
20805 iptr p = 0;
20806 ++p;
20808 { /* AIX XL C 1.02.0.0 rejects this saying
20809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20810 struct s { int j; const int *ap[3]; };
20811 struct s *b; b->j = 5;
20813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20814 const int foo = 10;
20815 if (!foo) return 0;
20817 return !cs[0] && !zero.x;
20818 #endif
20821 return 0;
20823 _ACEOF
20824 rm -f conftest.$ac_objext
20825 if { (ac_try="$ac_compile"
20826 case "(($ac_try" in
20827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828 *) ac_try_echo=$ac_try;;
20829 esac
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831 (eval "$ac_compile") 2>conftest.er1
20832 ac_status=$?
20833 grep -v '^ *+' conftest.er1 >conftest.err
20834 rm -f conftest.er1
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } && {
20838 test -z "$ac_c_werror_flag" ||
20839 test ! -s conftest.err
20840 } && test -s conftest.$ac_objext; then
20841 ac_cv_c_const=yes
20842 else
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_cv_c_const=no
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20852 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20853 if test $ac_cv_c_const = no; then
20855 cat >>confdefs.h <<\_ACEOF
20856 #define const
20857 _ACEOF
20862 works=no
20863 { echo "$as_me:$LINENO: checking for working volatile" >&5
20864 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h. */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20873 main ()
20875 volatile int x; x = 0;
20877 return 0;
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (ac_try="$ac_compile"
20882 case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_compile") 2>conftest.er1
20888 ac_status=$?
20889 grep -v '^ *+' conftest.er1 >conftest.err
20890 rm -f conftest.er1
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest.$ac_objext; then
20897 works=yes
20898 else
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20903 cat >>confdefs.h <<\_ACEOF
20904 #define volatile
20905 _ACEOF
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result: $works" >&5
20912 echo "${ECHO_T}$works" >&6; }
20914 works=no
20915 { echo "$as_me:$LINENO: checking for working signed char" >&5
20916 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h. */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20925 main ()
20927 signed char c;
20929 return 0;
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.$ac_objext; then
20949 works=yes
20950 else
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20955 cat >>confdefs.h <<\_ACEOF
20956 #define signed
20957 _ACEOF
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 { echo "$as_me:$LINENO: result: $works" >&5
20964 echo "${ECHO_T}$works" >&6; }
20966 have_prototypes=no
20967 { echo "$as_me:$LINENO: checking for prototypes" >&5
20968 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 int foo(int x) { return 0; }
20977 main ()
20979 return foo(10);
20981 return 0;
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_PROTOTYPES 1
21005 _ACEOF
21007 have_prototypes=yes
21009 else
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21018 echo "${ECHO_T}$have_prototypes" >&6; }
21020 works=no
21021 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21022 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h. */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21030 #include <stdarg.h>
21031 int foo(int x, ...) {
21032 va_list va;
21033 va_start(va, x);
21034 va_arg(va, int);
21035 va_arg(va, char *);
21036 va_arg(va, double);
21037 return 0;
21041 main ()
21043 return foo(10, "", 3.14);
21045 return 0;
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21053 esac
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055 (eval "$ac_compile") 2>conftest.er1
21056 ac_status=$?
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && {
21062 test -z "$ac_c_werror_flag" ||
21063 test ! -s conftest.err
21064 } && test -s conftest.$ac_objext; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_STDARG_PROTOTYPES 1
21069 _ACEOF
21071 works=yes
21073 else
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21081 { echo "$as_me:$LINENO: result: $works" >&5
21082 echo "${ECHO_T}$works" >&6; }
21084 # check for socketpair
21085 { echo "$as_me:$LINENO: checking for socketpair" >&5
21086 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21094 #include <sys/types.h>
21095 #include <sys/socket.h>
21098 main ()
21100 void *x=socketpair
21102 return 0;
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (ac_try="$ac_compile"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_compile") 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest.$ac_objext; then
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_SOCKETPAIR 1
21125 _ACEOF
21127 { echo "$as_me:$LINENO: result: yes" >&5
21128 echo "${ECHO_T}yes" >&6; }
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 { echo "$as_me:$LINENO: result: no" >&5
21134 echo "${ECHO_T}no" >&6; }
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140 # check if sockaddr has sa_len member
21141 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21142 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <sys/types.h>
21150 #include <sys/socket.h>
21152 main ()
21154 struct sockaddr x;
21155 x.sa_len = 0;
21157 return 0;
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21168 ac_status=$?
21169 grep -v '^ *+' conftest.er1 >conftest.err
21170 rm -f conftest.er1
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21177 { echo "$as_me:$LINENO: result: yes" >&5
21178 echo "${ECHO_T}yes" >&6; }
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_SOCKADDR_SA_LEN 1
21182 _ACEOF
21184 else
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 { echo "$as_me:$LINENO: result: no" >&5
21189 echo "${ECHO_T}no" >&6; }
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 va_list_is_array=no
21195 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21196 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21197 cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h. */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21204 #ifdef HAVE_STDARG_PROTOTYPES
21205 #include <stdarg.h>
21206 #else
21207 #include <varargs.h>
21208 #endif
21211 main ()
21213 va_list list1, list2; list1 = list2;
21215 return 0;
21217 _ACEOF
21218 rm -f conftest.$ac_objext
21219 if { (ac_try="$ac_compile"
21220 case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223 esac
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_compile") 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest.$ac_objext; then
21236 else
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21242 cat >>confdefs.h <<\_ACEOF
21243 #define VA_LIST_IS_ARRAY 1
21244 _ACEOF
21246 va_list_is_array=yes
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21252 echo "${ECHO_T}$va_list_is_array" >&6; }
21254 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21258 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21259 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21260 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 else
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21271 #define gethostbyname_r innocuous_gethostbyname_r
21273 /* System header to define __stub macros and hopefully few prototypes,
21274 which can conflict with char gethostbyname_r (); below.
21275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21276 <limits.h> exists even on freestanding compilers. */
21278 #ifdef __STDC__
21279 # include <limits.h>
21280 #else
21281 # include <assert.h>
21282 #endif
21284 #undef gethostbyname_r
21286 /* Override any GCC internal prototype to avoid an error.
21287 Use char because int might match the return type of a GCC
21288 builtin and then its argument prototype would still apply. */
21289 #ifdef __cplusplus
21290 extern "C"
21291 #endif
21292 char gethostbyname_r ();
21293 /* The GNU C library defines this for functions which it implements
21294 to always fail with ENOSYS. Some functions are actually named
21295 something starting with __ and the normal name is an alias. */
21296 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21297 choke me
21298 #endif
21301 main ()
21303 return gethostbyname_r ();
21305 return 0;
21307 _ACEOF
21308 rm -f conftest.$ac_objext conftest$ac_exeext
21309 if { (ac_try="$ac_link"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_link") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest$ac_exeext &&
21325 $as_test_x conftest$ac_exeext; then
21326 ac_cv_func_gethostbyname_r=yes
21327 else
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 ac_cv_func_gethostbyname_r=no
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21338 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21339 if test $ac_cv_func_gethostbyname_r = yes; then
21341 cat >>confdefs.h <<\_ACEOF
21342 #define HAVE_GETHOSTBYNAME_R 1
21343 _ACEOF
21345 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21346 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21347 OLD_CFLAGS=$CFLAGS
21348 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h. */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21356 # include <netdb.h>
21359 main ()
21362 char *name;
21363 struct hostent *he, *res;
21364 char buffer[2048];
21365 int buflen = 2048;
21366 int h_errnop;
21368 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21371 return 0;
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21382 ac_status=$?
21383 grep -v '^ *+' conftest.er1 >conftest.err
21384 rm -f conftest.er1
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest.$ac_objext; then
21392 cat >>confdefs.h <<\_ACEOF
21393 #define HAVE_GETHOSTBYNAME_R 1
21394 _ACEOF
21397 cat >>confdefs.h <<\_ACEOF
21398 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21399 _ACEOF
21401 { echo "$as_me:$LINENO: result: yes" >&5
21402 echo "${ECHO_T}yes" >&6; }
21404 else
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21409 { echo "$as_me:$LINENO: result: no" >&5
21410 echo "${ECHO_T}no" >&6; }
21411 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21412 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h. */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21420 # include <netdb.h>
21423 main ()
21426 char *name;
21427 struct hostent *he;
21428 char buffer[2048];
21429 int buflen = 2048;
21430 int h_errnop;
21432 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21435 return 0;
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21443 esac
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_GETHOSTBYNAME_R 1
21458 _ACEOF
21461 cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21463 _ACEOF
21465 { echo "$as_me:$LINENO: result: yes" >&5
21466 echo "${ECHO_T}yes" >&6; }
21468 else
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21473 { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; }
21475 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21476 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h. */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21484 # include <netdb.h>
21487 main ()
21490 char *name;
21491 struct hostent *he;
21492 struct hostent_data data;
21494 (void) gethostbyname_r(name, he, &data);
21497 return 0;
21499 _ACEOF
21500 rm -f conftest.$ac_objext
21501 if { (ac_try="$ac_compile"
21502 case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_compile") 2>conftest.er1
21508 ac_status=$?
21509 grep -v '^ *+' conftest.er1 >conftest.err
21510 rm -f conftest.er1
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } && {
21514 test -z "$ac_c_werror_flag" ||
21515 test ! -s conftest.err
21516 } && test -s conftest.$ac_objext; then
21518 cat >>confdefs.h <<\_ACEOF
21519 #define HAVE_GETHOSTBYNAME_R 1
21520 _ACEOF
21523 cat >>confdefs.h <<\_ACEOF
21524 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21525 _ACEOF
21527 { echo "$as_me:$LINENO: result: yes" >&5
21528 echo "${ECHO_T}yes" >&6; }
21530 else
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21535 { echo "$as_me:$LINENO: result: no" >&5
21536 echo "${ECHO_T}no" >&6; }
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21549 CFLAGS=$OLD_CFLAGS
21551 else
21554 for ac_func in gethostbyname
21556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561 else
21562 cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h. */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21570 #define $ac_func innocuous_$ac_func
21572 /* System header to define __stub macros and hopefully few prototypes,
21573 which can conflict with char $ac_func (); below.
21574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21575 <limits.h> exists even on freestanding compilers. */
21577 #ifdef __STDC__
21578 # include <limits.h>
21579 #else
21580 # include <assert.h>
21581 #endif
21583 #undef $ac_func
21585 /* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21588 #ifdef __cplusplus
21589 extern "C"
21590 #endif
21591 char $ac_func ();
21592 /* The GNU C library defines this for functions which it implements
21593 to always fail with ENOSYS. Some functions are actually named
21594 something starting with __ and the normal name is an alias. */
21595 #if defined __stub_$ac_func || defined __stub___$ac_func
21596 choke me
21597 #endif
21600 main ()
21602 return $ac_func ();
21604 return 0;
21606 _ACEOF
21607 rm -f conftest.$ac_objext conftest$ac_exeext
21608 if { (ac_try="$ac_link"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_link") 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest$ac_exeext &&
21624 $as_test_x conftest$ac_exeext; then
21625 eval "$as_ac_var=yes"
21626 else
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 eval "$as_ac_var=no"
21633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21634 conftest$ac_exeext conftest.$ac_ext
21636 ac_res=`eval echo '${'$as_ac_var'}'`
21637 { echo "$as_me:$LINENO: result: $ac_res" >&5
21638 echo "${ECHO_T}$ac_res" >&6; }
21639 if test `eval echo '${'$as_ac_var'}'` = yes; then
21640 cat >>confdefs.h <<_ACEOF
21641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21642 _ACEOF
21645 done
21656 # checks for system services
21657 # (none yet)
21659 # Linux requires this for correct f.p. operations
21660 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21661 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21662 if test "${ac_cv_func___fpu_control+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 else
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21673 #define __fpu_control innocuous___fpu_control
21675 /* System header to define __stub macros and hopefully few prototypes,
21676 which can conflict with char __fpu_control (); below.
21677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21678 <limits.h> exists even on freestanding compilers. */
21680 #ifdef __STDC__
21681 # include <limits.h>
21682 #else
21683 # include <assert.h>
21684 #endif
21686 #undef __fpu_control
21688 /* Override any GCC internal prototype to avoid an error.
21689 Use char because int might match the return type of a GCC
21690 builtin and then its argument prototype would still apply. */
21691 #ifdef __cplusplus
21692 extern "C"
21693 #endif
21694 char __fpu_control ();
21695 /* The GNU C library defines this for functions which it implements
21696 to always fail with ENOSYS. Some functions are actually named
21697 something starting with __ and the normal name is an alias. */
21698 #if defined __stub___fpu_control || defined __stub_____fpu_control
21699 choke me
21700 #endif
21703 main ()
21705 return __fpu_control ();
21707 return 0;
21709 _ACEOF
21710 rm -f conftest.$ac_objext conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_link") 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest$ac_exeext &&
21727 $as_test_x conftest$ac_exeext; then
21728 ac_cv_func___fpu_control=yes
21729 else
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 ac_cv_func___fpu_control=no
21736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21737 conftest$ac_exeext conftest.$ac_ext
21739 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21740 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21741 if test $ac_cv_func___fpu_control = yes; then
21743 else
21745 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21746 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21747 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 ac_check_lib_save_LIBS=$LIBS
21751 LIBS="-lieee $LIBS"
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21759 /* Override any GCC internal prototype to avoid an error.
21760 Use char because int might match the return type of a GCC
21761 builtin and then its argument prototype would still apply. */
21762 #ifdef __cplusplus
21763 extern "C"
21764 #endif
21765 char __fpu_control ();
21767 main ()
21769 return __fpu_control ();
21771 return 0;
21773 _ACEOF
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (ac_try="$ac_link"
21776 case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_link") 2>conftest.er1
21782 ac_status=$?
21783 grep -v '^ *+' conftest.er1 >conftest.err
21784 rm -f conftest.er1
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } && {
21788 test -z "$ac_c_werror_flag" ||
21789 test ! -s conftest.err
21790 } && test -s conftest$ac_exeext &&
21791 $as_test_x conftest$ac_exeext; then
21792 ac_cv_lib_ieee___fpu_control=yes
21793 else
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797 ac_cv_lib_ieee___fpu_control=no
21800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21801 conftest$ac_exeext conftest.$ac_ext
21802 LIBS=$ac_check_lib_save_LIBS
21804 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21805 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21806 if test $ac_cv_lib_ieee___fpu_control = yes; then
21807 cat >>confdefs.h <<_ACEOF
21808 #define HAVE_LIBIEEE 1
21809 _ACEOF
21811 LIBS="-lieee $LIBS"
21819 # Check for --with-fpectl
21820 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21821 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21823 # Check whether --with-fpectl was given.
21824 if test "${with_fpectl+set}" = set; then
21825 withval=$with_fpectl;
21826 if test "$withval" != no
21827 then
21829 cat >>confdefs.h <<\_ACEOF
21830 #define WANT_SIGFPE_HANDLER 1
21831 _ACEOF
21833 { echo "$as_me:$LINENO: result: yes" >&5
21834 echo "${ECHO_T}yes" >&6; }
21835 else { echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6; }
21838 else
21839 { echo "$as_me:$LINENO: result: no" >&5
21840 echo "${ECHO_T}no" >&6; }
21844 # check for --with-libm=...
21846 case $ac_sys_system in
21847 Darwin) ;;
21848 BeOS) ;;
21849 *) LIBM=-lm
21850 esac
21851 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21852 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21854 # Check whether --with-libm was given.
21855 if test "${with_libm+set}" = set; then
21856 withval=$with_libm;
21857 if test "$withval" = no
21858 then LIBM=
21859 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21860 echo "${ECHO_T}force LIBM empty" >&6; }
21861 elif test "$withval" != yes
21862 then LIBM=$withval
21863 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21864 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21865 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21866 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21867 { (exit 1); exit 1; }; }
21869 else
21870 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21871 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21875 # check for --with-libc=...
21877 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21878 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21880 # Check whether --with-libc was given.
21881 if test "${with_libc+set}" = set; then
21882 withval=$with_libc;
21883 if test "$withval" = no
21884 then LIBC=
21885 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21886 echo "${ECHO_T}force LIBC empty" >&6; }
21887 elif test "$withval" != yes
21888 then LIBC=$withval
21889 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21890 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21891 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21892 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21893 { (exit 1); exit 1; }; }
21895 else
21896 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21897 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21901 # ************************************
21902 # * Check for mathematical functions *
21903 # ************************************
21905 LIBS_SAVE=$LIBS
21906 LIBS="$LIBS $LIBM"
21908 # Detect whether system arithmetic is subject to x87-style double
21909 # rounding issues. The result of this test has little meaning on non
21910 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21911 # mode is round-to-nearest and double rounding issues are present, and
21912 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21913 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21914 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21915 if test "${ac_cv_x87_double_rounding+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21919 if test "$cross_compiling" = yes; then
21920 ac_cv_x87_double_rounding=no
21921 else
21922 cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h. */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 #include <stdlib.h>
21930 #include <math.h>
21931 int main() {
21932 volatile double x, y, z;
21933 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21934 x = 0.99999999999999989; /* 1-2**-53 */
21935 y = 1./x;
21936 if (y != 1.)
21937 exit(0);
21938 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21939 x = 1e16;
21940 y = 2.99999;
21941 z = x + y;
21942 if (z != 1e16+4.)
21943 exit(0);
21944 /* both tests show evidence of double rounding */
21945 exit(1);
21948 _ACEOF
21949 rm -f conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_link") 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21960 { (case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_try") 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 ac_cv_x87_double_rounding=no
21970 else
21971 echo "$as_me: program exited with status $ac_status" >&5
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ( exit $ac_status )
21976 ac_cv_x87_double_rounding=yes
21978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21985 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21986 if test "$ac_cv_x87_double_rounding" = yes
21987 then
21989 cat >>confdefs.h <<\_ACEOF
21990 #define X87_DOUBLE_ROUNDING 1
21991 _ACEOF
21996 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21997 # -0. on some architectures.
21998 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21999 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22000 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22004 if test "$cross_compiling" = yes; then
22005 ac_cv_tanh_preserves_zero_sign=no
22006 else
22007 cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h. */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22014 #include <math.h>
22015 #include <stdlib.h>
22016 int main() {
22017 /* return 0 if either negative zeros don't exist
22018 on this platform or if negative zeros exist
22019 and tanh(-0.) == -0. */
22020 if (atan2(0., -1.) == atan2(-0., -1.) ||
22021 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22022 else exit(1);
22025 _ACEOF
22026 rm -f conftest$ac_exeext
22027 if { (ac_try="$ac_link"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_link") 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22037 { (case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22040 esac
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_try") 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; }; then
22046 ac_cv_tanh_preserves_zero_sign=yes
22047 else
22048 echo "$as_me: program exited with status $ac_status" >&5
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ( exit $ac_status )
22053 ac_cv_tanh_preserves_zero_sign=no
22055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22061 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22062 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22063 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22064 then
22066 cat >>confdefs.h <<\_ACEOF
22067 #define TANH_PRESERVES_ZERO_SIGN 1
22068 _ACEOF
22080 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
22082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22096 #define $ac_func innocuous_$ac_func
22098 /* System header to define __stub macros and hopefully few prototypes,
22099 which can conflict with char $ac_func (); below.
22100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22101 <limits.h> exists even on freestanding compilers. */
22103 #ifdef __STDC__
22104 # include <limits.h>
22105 #else
22106 # include <assert.h>
22107 #endif
22109 #undef $ac_func
22111 /* Override any GCC internal prototype to avoid an error.
22112 Use char because int might match the return type of a GCC
22113 builtin and then its argument prototype would still apply. */
22114 #ifdef __cplusplus
22115 extern "C"
22116 #endif
22117 char $ac_func ();
22118 /* The GNU C library defines this for functions which it implements
22119 to always fail with ENOSYS. Some functions are actually named
22120 something starting with __ and the normal name is an alias. */
22121 #if defined __stub_$ac_func || defined __stub___$ac_func
22122 choke me
22123 #endif
22126 main ()
22128 return $ac_func ();
22130 return 0;
22132 _ACEOF
22133 rm -f conftest.$ac_objext conftest$ac_exeext
22134 if { (ac_try="$ac_link"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22138 esac
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_link") 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest$ac_exeext &&
22150 $as_test_x conftest$ac_exeext; then
22151 eval "$as_ac_var=yes"
22152 else
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 eval "$as_ac_var=no"
22159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22160 conftest$ac_exeext conftest.$ac_ext
22162 ac_res=`eval echo '${'$as_ac_var'}'`
22163 { echo "$as_me:$LINENO: result: $ac_res" >&5
22164 echo "${ECHO_T}$ac_res" >&6; }
22165 if test `eval echo '${'$as_ac_var'}'` = yes; then
22166 cat >>confdefs.h <<_ACEOF
22167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22168 _ACEOF
22171 done
22173 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22174 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22175 if test "${ac_cv_have_decl_isinf+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178 cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h. */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22184 #include <math.h>
22187 main ()
22189 #ifndef isinf
22190 (void) isinf;
22191 #endif
22194 return 0;
22196 _ACEOF
22197 rm -f conftest.$ac_objext
22198 if { (ac_try="$ac_compile"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_compile") 2>conftest.er1
22205 ac_status=$?
22206 grep -v '^ *+' conftest.er1 >conftest.err
22207 rm -f conftest.er1
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } && {
22211 test -z "$ac_c_werror_flag" ||
22212 test ! -s conftest.err
22213 } && test -s conftest.$ac_objext; then
22214 ac_cv_have_decl_isinf=yes
22215 else
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22219 ac_cv_have_decl_isinf=no
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22225 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22226 if test $ac_cv_have_decl_isinf = yes; then
22228 cat >>confdefs.h <<_ACEOF
22229 #define HAVE_DECL_ISINF 1
22230 _ACEOF
22233 else
22234 cat >>confdefs.h <<_ACEOF
22235 #define HAVE_DECL_ISINF 0
22236 _ACEOF
22240 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22241 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22242 if test "${ac_cv_have_decl_isnan+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245 cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h. */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22251 #include <math.h>
22254 main ()
22256 #ifndef isnan
22257 (void) isnan;
22258 #endif
22261 return 0;
22263 _ACEOF
22264 rm -f conftest.$ac_objext
22265 if { (ac_try="$ac_compile"
22266 case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_compile") 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest.$ac_objext; then
22281 ac_cv_have_decl_isnan=yes
22282 else
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ac_cv_have_decl_isnan=no
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22292 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22293 if test $ac_cv_have_decl_isnan = yes; then
22295 cat >>confdefs.h <<_ACEOF
22296 #define HAVE_DECL_ISNAN 1
22297 _ACEOF
22300 else
22301 cat >>confdefs.h <<_ACEOF
22302 #define HAVE_DECL_ISNAN 0
22303 _ACEOF
22307 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22308 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22309 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312 cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h. */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22318 #include <math.h>
22321 main ()
22323 #ifndef isfinite
22324 (void) isfinite;
22325 #endif
22328 return 0;
22330 _ACEOF
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22339 ac_status=$?
22340 grep -v '^ *+' conftest.er1 >conftest.err
22341 rm -f conftest.er1
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_cv_have_decl_isfinite=yes
22349 else
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_have_decl_isfinite=no
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22359 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22360 if test $ac_cv_have_decl_isfinite = yes; then
22362 cat >>confdefs.h <<_ACEOF
22363 #define HAVE_DECL_ISFINITE 1
22364 _ACEOF
22367 else
22368 cat >>confdefs.h <<_ACEOF
22369 #define HAVE_DECL_ISFINITE 0
22370 _ACEOF
22377 LIBS=$LIBS_SAVE
22379 # determine what size digit to use for Python's longs
22380 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22381 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22382 # Check whether --enable-big-digits was given.
22383 if test "${enable_big_digits+set}" = set; then
22384 enableval=$enable_big_digits; case $enable_big_digits in
22385 yes)
22386 enable_big_digits=30 ;;
22388 enable_big_digits=15 ;;
22389 15|30)
22392 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22393 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22394 { (exit 1); exit 1; }; } ;;
22395 esac
22396 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22397 echo "${ECHO_T}$enable_big_digits" >&6; }
22399 cat >>confdefs.h <<_ACEOF
22400 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22401 _ACEOF
22404 else
22405 { echo "$as_me:$LINENO: result: no value specified" >&5
22406 echo "${ECHO_T}no value specified" >&6; }
22410 # check for wchar.h
22411 if test "${ac_cv_header_wchar_h+set}" = set; then
22412 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22413 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22414 if test "${ac_cv_header_wchar_h+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22418 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22419 else
22420 # Is the header compilable?
22421 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22422 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h. */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22430 #include <wchar.h>
22431 _ACEOF
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_compile") 2>conftest.er1
22440 ac_status=$?
22441 grep -v '^ *+' conftest.er1 >conftest.err
22442 rm -f conftest.er1
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest.$ac_objext; then
22449 ac_header_compiler=yes
22450 else
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ac_header_compiler=no
22457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22459 echo "${ECHO_T}$ac_header_compiler" >&6; }
22461 # Is the header present?
22462 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22463 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22464 cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h. */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470 #include <wchar.h>
22471 _ACEOF
22472 if { (ac_try="$ac_cpp conftest.$ac_ext"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } >/dev/null && {
22485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 }; then
22488 ac_header_preproc=yes
22489 else
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_header_preproc=no
22496 rm -f conftest.err conftest.$ac_ext
22497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22498 echo "${ECHO_T}$ac_header_preproc" >&6; }
22500 # So? What about this header?
22501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22502 yes:no: )
22503 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22504 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22505 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22506 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22507 ac_header_preproc=yes
22509 no:yes:* )
22510 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22511 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22513 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22515 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22517 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22519 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22521 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22522 ( cat <<\_ASBOX
22523 ## ------------------------------------------------ ##
22524 ## Report this to http://www.python.org/python-bugs ##
22525 ## ------------------------------------------------ ##
22526 _ASBOX
22527 ) | sed "s/^/$as_me: WARNING: /" >&2
22529 esac
22530 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22531 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22532 if test "${ac_cv_header_wchar_h+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535 ac_cv_header_wchar_h=$ac_header_preproc
22537 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22538 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22541 if test $ac_cv_header_wchar_h = yes; then
22544 cat >>confdefs.h <<\_ACEOF
22545 #define HAVE_WCHAR_H 1
22546 _ACEOF
22548 wchar_h="yes"
22550 else
22551 wchar_h="no"
22557 # determine wchar_t size
22558 if test "$wchar_h" = yes
22559 then
22560 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22561 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22562 if test "${ac_cv_type_wchar_t+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22564 else
22565 cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h. */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22571 #include <wchar.h>
22573 typedef wchar_t ac__type_new_;
22575 main ()
22577 if ((ac__type_new_ *) 0)
22578 return 0;
22579 if (sizeof (ac__type_new_))
22580 return 0;
22582 return 0;
22584 _ACEOF
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22590 esac
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22593 ac_status=$?
22594 grep -v '^ *+' conftest.er1 >conftest.err
22595 rm -f conftest.er1
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.$ac_objext; then
22602 ac_cv_type_wchar_t=yes
22603 else
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 ac_cv_type_wchar_t=no
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22613 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22615 # The cast to long int works around a bug in the HP C Compiler
22616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22618 # This bug is HP SR number 8606223364.
22619 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22620 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22621 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 else
22624 if test "$cross_compiling" = yes; then
22625 # Depending upon the size, compute the lo and hi bounds.
22626 cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h. */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22632 #include <wchar.h>
22634 typedef wchar_t ac__type_sizeof_;
22636 main ()
22638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22639 test_array [0] = 0
22642 return 0;
22644 _ACEOF
22645 rm -f conftest.$ac_objext
22646 if { (ac_try="$ac_compile"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22650 esac
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_compile") 2>conftest.er1
22653 ac_status=$?
22654 grep -v '^ *+' conftest.er1 >conftest.err
22655 rm -f conftest.er1
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest.$ac_objext; then
22662 ac_lo=0 ac_mid=0
22663 while :; do
22664 cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h. */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #include <wchar.h>
22672 typedef wchar_t ac__type_sizeof_;
22674 main ()
22676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22677 test_array [0] = 0
22680 return 0;
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22688 esac
22689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22690 (eval "$ac_compile") 2>conftest.er1
22691 ac_status=$?
22692 grep -v '^ *+' conftest.er1 >conftest.err
22693 rm -f conftest.er1
22694 cat conftest.err >&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } && {
22697 test -z "$ac_c_werror_flag" ||
22698 test ! -s conftest.err
22699 } && test -s conftest.$ac_objext; then
22700 ac_hi=$ac_mid; break
22701 else
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 ac_lo=`expr $ac_mid + 1`
22706 if test $ac_lo -le $ac_mid; then
22707 ac_lo= ac_hi=
22708 break
22710 ac_mid=`expr 2 '*' $ac_mid + 1`
22713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714 done
22715 else
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22719 cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h. */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22725 #include <wchar.h>
22727 typedef wchar_t ac__type_sizeof_;
22729 main ()
22731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22732 test_array [0] = 0
22735 return 0;
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743 esac
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22746 ac_status=$?
22747 grep -v '^ *+' conftest.er1 >conftest.err
22748 rm -f conftest.er1
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_hi=-1 ac_mid=-1
22756 while :; do
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 #include <wchar.h>
22765 typedef wchar_t ac__type_sizeof_;
22767 main ()
22769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22770 test_array [0] = 0
22773 return 0;
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_compile") 2>conftest.er1
22784 ac_status=$?
22785 grep -v '^ *+' conftest.er1 >conftest.err
22786 rm -f conftest.er1
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest.$ac_objext; then
22793 ac_lo=$ac_mid; break
22794 else
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 ac_hi=`expr '(' $ac_mid ')' - 1`
22799 if test $ac_mid -le $ac_hi; then
22800 ac_lo= ac_hi=
22801 break
22803 ac_mid=`expr 2 '*' $ac_mid`
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 done
22808 else
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 ac_lo= ac_hi=
22815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22819 # Binary search between lo and hi bounds.
22820 while test "x$ac_lo" != "x$ac_hi"; do
22821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h. */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 #include <wchar.h>
22830 typedef wchar_t ac__type_sizeof_;
22832 main ()
22834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22835 test_array [0] = 0
22838 return 0;
22840 _ACEOF
22841 rm -f conftest.$ac_objext
22842 if { (ac_try="$ac_compile"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22849 ac_status=$?
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22858 ac_hi=$ac_mid
22859 else
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_lo=`expr '(' $ac_mid ')' + 1`
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 done
22868 case $ac_lo in
22869 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22870 '') if test "$ac_cv_type_wchar_t" = yes; then
22871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22872 See \`config.log' for more details." >&5
22873 echo "$as_me: error: cannot compute sizeof (wchar_t)
22874 See \`config.log' for more details." >&2;}
22875 { (exit 77); exit 77; }; }
22876 else
22877 ac_cv_sizeof_wchar_t=0
22878 fi ;;
22879 esac
22880 else
22881 cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h. */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 #include <wchar.h>
22889 typedef wchar_t ac__type_sizeof_;
22890 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22891 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22892 #include <stdio.h>
22893 #include <stdlib.h>
22895 main ()
22898 FILE *f = fopen ("conftest.val", "w");
22899 if (! f)
22900 return 1;
22901 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22903 long int i = longval ();
22904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22905 return 1;
22906 fprintf (f, "%ld\n", i);
22908 else
22910 unsigned long int i = ulongval ();
22911 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22912 return 1;
22913 fprintf (f, "%lu\n", i);
22915 return ferror (f) || fclose (f) != 0;
22918 return 0;
22920 _ACEOF
22921 rm -f conftest$ac_exeext
22922 if { (ac_try="$ac_link"
22923 case "(($ac_try" in
22924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925 *) ac_try_echo=$ac_try;;
22926 esac
22927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928 (eval "$ac_link") 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22932 { (case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_try") 2>&5
22938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; }; then
22941 ac_cv_sizeof_wchar_t=`cat conftest.val`
22942 else
22943 echo "$as_me: program exited with status $ac_status" >&5
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 ( exit $ac_status )
22948 if test "$ac_cv_type_wchar_t" = yes; then
22949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22950 See \`config.log' for more details." >&5
22951 echo "$as_me: error: cannot compute sizeof (wchar_t)
22952 See \`config.log' for more details." >&2;}
22953 { (exit 77); exit 77; }; }
22954 else
22955 ac_cv_sizeof_wchar_t=0
22958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22960 rm -f conftest.val
22962 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22963 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22967 cat >>confdefs.h <<_ACEOF
22968 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22969 _ACEOF
22974 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22975 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22976 have_ucs4_tcl=no
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22984 #include <tcl.h>
22985 #if TCL_UTF_MAX != 6
22986 # error "NOT UCS4_TCL"
22987 #endif
22989 main ()
22993 return 0;
22995 _ACEOF
22996 rm -f conftest.$ac_objext
22997 if { (ac_try="$ac_compile"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_compile") 2>conftest.er1
23004 ac_status=$?
23005 grep -v '^ *+' conftest.er1 >conftest.err
23006 rm -f conftest.er1
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest.$ac_objext; then
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_UCS4_TCL 1
23017 _ACEOF
23019 have_ucs4_tcl=yes
23021 else
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23029 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23030 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23032 # check whether wchar_t is signed or not
23033 if test "$wchar_h" = yes
23034 then
23035 # check whether wchar_t is signed or not
23036 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23037 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23038 if test "${ac_cv_wchar_t_signed+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23042 if test "$cross_compiling" = yes; then
23043 ac_cv_wchar_t_signed=yes
23044 else
23045 cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h. */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23052 #include <wchar.h>
23053 int main()
23055 /* Success: exit code 0 */
23056 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23059 _ACEOF
23060 rm -f conftest$ac_exeext
23061 if { (ac_try="$ac_link"
23062 case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23065 esac
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067 (eval "$ac_link") 2>&5
23068 ac_status=$?
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23071 { (case "(($ac_try" in
23072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23074 esac
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_try") 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_wchar_t_signed=yes
23081 else
23082 echo "$as_me: program exited with status $ac_status" >&5
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ( exit $ac_status )
23087 ac_cv_wchar_t_signed=no
23089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23095 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23096 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23099 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23100 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23101 # Check whether --enable-unicode was given.
23102 if test "${enable_unicode+set}" = set; then
23103 enableval=$enable_unicode;
23104 else
23105 enable_unicode=yes
23109 if test $enable_unicode = yes
23110 then
23111 # Without any arguments, Py_UNICODE defaults to two-byte mode
23112 case "$have_ucs4_tcl" in
23113 yes) enable_unicode="ucs4"
23115 *) enable_unicode="ucs2"
23117 esac
23122 case "$enable_unicode" in
23123 ucs2) unicode_size="2"
23124 cat >>confdefs.h <<\_ACEOF
23125 #define Py_UNICODE_SIZE 2
23126 _ACEOF
23129 ucs4) unicode_size="4"
23130 cat >>confdefs.h <<\_ACEOF
23131 #define Py_UNICODE_SIZE 4
23132 _ACEOF
23135 esac
23141 if test "$enable_unicode" = "no"
23142 then
23143 UNICODE_OBJS=""
23144 { echo "$as_me:$LINENO: result: not used" >&5
23145 echo "${ECHO_T}not used" >&6; }
23146 else
23147 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23149 cat >>confdefs.h <<\_ACEOF
23150 #define Py_USING_UNICODE 1
23151 _ACEOF
23154 # wchar_t is only usable if it maps to an unsigned type
23155 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23156 -a "$ac_cv_wchar_t_signed" = "no"
23157 then
23158 PY_UNICODE_TYPE="wchar_t"
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_USABLE_WCHAR_T 1
23162 _ACEOF
23164 cat >>confdefs.h <<\_ACEOF
23165 #define PY_UNICODE_TYPE wchar_t
23166 _ACEOF
23168 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23169 then
23170 PY_UNICODE_TYPE="unsigned short"
23171 cat >>confdefs.h <<\_ACEOF
23172 #define PY_UNICODE_TYPE unsigned short
23173 _ACEOF
23175 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23176 then
23177 PY_UNICODE_TYPE="unsigned long"
23178 cat >>confdefs.h <<\_ACEOF
23179 #define PY_UNICODE_TYPE unsigned long
23180 _ACEOF
23182 else
23183 PY_UNICODE_TYPE="no type found"
23185 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23186 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23189 # check for endianness
23190 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23191 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23192 if test "${ac_cv_c_bigendian+set}" = set; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23194 else
23195 # See if sys/param.h defines the BYTE_ORDER macro.
23196 cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h. */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 #include <sys/types.h>
23203 #include <sys/param.h>
23206 main ()
23208 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23209 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23210 bogus endian macros
23211 #endif
23214 return 0;
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23225 ac_status=$?
23226 grep -v '^ *+' conftest.er1 >conftest.err
23227 rm -f conftest.er1
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 # It does; now see whether it defined to BIG_ENDIAN or not.
23235 cat >conftest.$ac_ext <<_ACEOF
23236 /* confdefs.h. */
23237 _ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 #include <sys/types.h>
23242 #include <sys/param.h>
23245 main ()
23247 #if BYTE_ORDER != BIG_ENDIAN
23248 not big endian
23249 #endif
23252 return 0;
23254 _ACEOF
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23263 ac_status=$?
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23272 ac_cv_c_bigendian=yes
23273 else
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_cv_c_bigendian=no
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23281 else
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23285 # It does not; compile a test program.
23286 if test "$cross_compiling" = yes; then
23287 # try to guess the endianness by grepping values into an object file
23288 ac_cv_c_bigendian=unknown
23289 cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h. */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23295 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23296 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23297 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23298 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23299 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23300 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23302 main ()
23304 _ascii (); _ebcdic ();
23306 return 0;
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (ac_try="$ac_compile"
23311 case "(($ac_try" in
23312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313 *) ac_try_echo=$ac_try;;
23314 esac
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316 (eval "$ac_compile") 2>conftest.er1
23317 ac_status=$?
23318 grep -v '^ *+' conftest.er1 >conftest.err
23319 rm -f conftest.er1
23320 cat conftest.err >&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } && {
23323 test -z "$ac_c_werror_flag" ||
23324 test ! -s conftest.err
23325 } && test -s conftest.$ac_objext; then
23326 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23327 ac_cv_c_bigendian=yes
23329 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23330 if test "$ac_cv_c_bigendian" = unknown; then
23331 ac_cv_c_bigendian=no
23332 else
23333 # finding both strings is unlikely to happen, but who knows?
23334 ac_cv_c_bigendian=unknown
23337 else
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 else
23346 cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h. */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352 $ac_includes_default
23354 main ()
23357 /* Are we little or big endian? From Harbison&Steele. */
23358 union
23360 long int l;
23361 char c[sizeof (long int)];
23362 } u;
23363 u.l = 1;
23364 return u.c[sizeof (long int) - 1] == 1;
23367 return 0;
23369 _ACEOF
23370 rm -f conftest$ac_exeext
23371 if { (ac_try="$ac_link"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_link") 2>&5
23378 ac_status=$?
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23381 { (case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23384 esac
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_try") 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_c_bigendian=no
23391 else
23392 echo "$as_me: program exited with status $ac_status" >&5
23393 echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ( exit $ac_status )
23397 ac_cv_c_bigendian=yes
23399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23407 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23408 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23409 case $ac_cv_c_bigendian in
23410 yes)
23412 cat >>confdefs.h <<\_ACEOF
23413 #define WORDS_BIGENDIAN 1
23414 _ACEOF
23419 { { echo "$as_me:$LINENO: error: unknown endianness
23420 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23421 echo "$as_me: error: unknown endianness
23422 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23423 { (exit 1); exit 1; }; } ;;
23424 esac
23427 # Check whether right shifting a negative integer extends the sign bit
23428 # or fills with zeros (like the Cray J90, according to Tim Peters).
23429 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23430 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23431 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23433 else
23435 if test "$cross_compiling" = yes; then
23436 ac_cv_rshift_extends_sign=yes
23437 else
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h. */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23445 int main()
23447 exit(((-1)>>3 == -1) ? 0 : 1);
23450 _ACEOF
23451 rm -f conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23462 { (case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_try") 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_rshift_extends_sign=yes
23472 else
23473 echo "$as_me: program exited with status $ac_status" >&5
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ( exit $ac_status )
23478 ac_cv_rshift_extends_sign=no
23480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23486 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23487 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23488 if test "$ac_cv_rshift_extends_sign" = no
23489 then
23491 cat >>confdefs.h <<\_ACEOF
23492 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23493 _ACEOF
23497 # check for getc_unlocked and related locking functions
23498 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23499 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23500 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23504 cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h. */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 #include <stdio.h>
23512 main ()
23515 FILE *f = fopen("/dev/null", "r");
23516 flockfile(f);
23517 getc_unlocked(f);
23518 funlockfile(f);
23521 return 0;
23523 _ACEOF
23524 rm -f conftest.$ac_objext conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23529 esac
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_link") 2>conftest.er1
23532 ac_status=$?
23533 grep -v '^ *+' conftest.er1 >conftest.err
23534 rm -f conftest.er1
23535 cat conftest.err >&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } && {
23538 test -z "$ac_c_werror_flag" ||
23539 test ! -s conftest.err
23540 } && test -s conftest$ac_exeext &&
23541 $as_test_x conftest$ac_exeext; then
23542 ac_cv_have_getc_unlocked=yes
23543 else
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 ac_cv_have_getc_unlocked=no
23550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23551 conftest$ac_exeext conftest.$ac_ext
23554 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23555 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23556 if test "$ac_cv_have_getc_unlocked" = yes
23557 then
23559 cat >>confdefs.h <<\_ACEOF
23560 #define HAVE_GETC_UNLOCKED 1
23561 _ACEOF
23565 # check where readline lives
23566 # save the value of LIBS so we don't actually link Python with readline
23567 LIBS_no_readline=$LIBS
23569 # On some systems we need to link readline to a termcap compatible
23570 # library. NOTE: Keep the precedence of listed libraries synchronised
23571 # with setup.py.
23572 py_cv_lib_readline=no
23573 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23574 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23575 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23576 if test -z "$py_libtermcap"; then
23577 READLINE_LIBS="-lreadline"
23578 else
23579 READLINE_LIBS="-lreadline -l$py_libtermcap"
23581 LIBS="$READLINE_LIBS $LIBS_no_readline"
23582 cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h. */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23589 /* Override any GCC internal prototype to avoid an error.
23590 Use char because int might match the return type of a GCC
23591 builtin and then its argument prototype would still apply. */
23592 #ifdef __cplusplus
23593 extern "C"
23594 #endif
23595 char readline ();
23597 main ()
23599 return readline ();
23601 return 0;
23603 _ACEOF
23604 rm -f conftest.$ac_objext conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>conftest.er1
23612 ac_status=$?
23613 grep -v '^ *+' conftest.er1 >conftest.err
23614 rm -f conftest.er1
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } && {
23618 test -z "$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23620 } && test -s conftest$ac_exeext &&
23621 $as_test_x conftest$ac_exeext; then
23622 py_cv_lib_readline=yes
23623 else
23624 echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23631 conftest$ac_exeext conftest.$ac_ext
23632 if test $py_cv_lib_readline = yes; then
23633 break
23635 done
23636 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23637 #AC_SUBST([READLINE_LIBS])
23638 if test $py_cv_lib_readline = no; then
23639 { echo "$as_me:$LINENO: result: none" >&5
23640 echo "${ECHO_T}none" >&6; }
23641 else
23642 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23643 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23645 cat >>confdefs.h <<\_ACEOF
23646 #define HAVE_LIBREADLINE 1
23647 _ACEOF
23651 # check for readline 2.1
23652 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23653 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23654 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23656 else
23657 ac_check_lib_save_LIBS=$LIBS
23658 LIBS="-lreadline $READLINE_LIBS $LIBS"
23659 cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h. */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23666 /* Override any GCC internal prototype to avoid an error.
23667 Use char because int might match the return type of a GCC
23668 builtin and then its argument prototype would still apply. */
23669 #ifdef __cplusplus
23670 extern "C"
23671 #endif
23672 char rl_callback_handler_install ();
23674 main ()
23676 return rl_callback_handler_install ();
23678 return 0;
23680 _ACEOF
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_link") 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest$ac_exeext &&
23698 $as_test_x conftest$ac_exeext; then
23699 ac_cv_lib_readline_rl_callback_handler_install=yes
23700 else
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ac_cv_lib_readline_rl_callback_handler_install=no
23707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23708 conftest$ac_exeext conftest.$ac_ext
23709 LIBS=$ac_check_lib_save_LIBS
23711 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23712 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23713 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23715 cat >>confdefs.h <<\_ACEOF
23716 #define HAVE_RL_CALLBACK 1
23717 _ACEOF
23722 # check for readline 2.2
23723 cat >conftest.$ac_ext <<_ACEOF
23724 /* confdefs.h. */
23725 _ACEOF
23726 cat confdefs.h >>conftest.$ac_ext
23727 cat >>conftest.$ac_ext <<_ACEOF
23728 /* end confdefs.h. */
23729 #include <readline/readline.h>
23730 _ACEOF
23731 if { (ac_try="$ac_cpp conftest.$ac_ext"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23735 esac
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23738 ac_status=$?
23739 grep -v '^ *+' conftest.er1 >conftest.err
23740 rm -f conftest.er1
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } >/dev/null && {
23744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 }; then
23747 have_readline=yes
23748 else
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23752 have_readline=no
23755 rm -f conftest.err conftest.$ac_ext
23756 if test $have_readline = yes
23757 then
23758 cat >conftest.$ac_ext <<_ACEOF
23759 /* confdefs.h. */
23760 _ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23764 #include <readline/readline.h>
23766 _ACEOF
23767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23768 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23770 cat >>confdefs.h <<\_ACEOF
23771 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23772 _ACEOF
23775 rm -f conftest*
23779 # check for readline 4.0
23780 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23781 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23782 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 else
23785 ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lreadline $READLINE_LIBS $LIBS"
23787 cat >conftest.$ac_ext <<_ACEOF
23788 /* confdefs.h. */
23789 _ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23794 /* Override any GCC internal prototype to avoid an error.
23795 Use char because int might match the return type of a GCC
23796 builtin and then its argument prototype would still apply. */
23797 #ifdef __cplusplus
23798 extern "C"
23799 #endif
23800 char rl_pre_input_hook ();
23802 main ()
23804 return rl_pre_input_hook ();
23806 return 0;
23808 _ACEOF
23809 rm -f conftest.$ac_objext conftest$ac_exeext
23810 if { (ac_try="$ac_link"
23811 case "(($ac_try" in
23812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813 *) ac_try_echo=$ac_try;;
23814 esac
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816 (eval "$ac_link") 2>conftest.er1
23817 ac_status=$?
23818 grep -v '^ *+' conftest.er1 >conftest.err
23819 rm -f conftest.er1
23820 cat conftest.err >&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && {
23823 test -z "$ac_c_werror_flag" ||
23824 test ! -s conftest.err
23825 } && test -s conftest$ac_exeext &&
23826 $as_test_x conftest$ac_exeext; then
23827 ac_cv_lib_readline_rl_pre_input_hook=yes
23828 else
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23832 ac_cv_lib_readline_rl_pre_input_hook=no
23835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23836 conftest$ac_exeext conftest.$ac_ext
23837 LIBS=$ac_check_lib_save_LIBS
23839 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23840 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23841 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23843 cat >>confdefs.h <<\_ACEOF
23844 #define HAVE_RL_PRE_INPUT_HOOK 1
23845 _ACEOF
23850 # also in 4.0
23851 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23852 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23853 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856 ac_check_lib_save_LIBS=$LIBS
23857 LIBS="-lreadline $READLINE_LIBS $LIBS"
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h. */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23865 /* Override any GCC internal prototype to avoid an error.
23866 Use char because int might match the return type of a GCC
23867 builtin and then its argument prototype would still apply. */
23868 #ifdef __cplusplus
23869 extern "C"
23870 #endif
23871 char rl_completion_display_matches_hook ();
23873 main ()
23875 return rl_completion_display_matches_hook ();
23877 return 0;
23879 _ACEOF
23880 rm -f conftest.$ac_objext conftest$ac_exeext
23881 if { (ac_try="$ac_link"
23882 case "(($ac_try" in
23883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23885 esac
23886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887 (eval "$ac_link") 2>conftest.er1
23888 ac_status=$?
23889 grep -v '^ *+' conftest.er1 >conftest.err
23890 rm -f conftest.er1
23891 cat conftest.err >&5
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } && {
23894 test -z "$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23896 } && test -s conftest$ac_exeext &&
23897 $as_test_x conftest$ac_exeext; then
23898 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23899 else
23900 echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23903 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23907 conftest$ac_exeext conftest.$ac_ext
23908 LIBS=$ac_check_lib_save_LIBS
23910 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23911 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23912 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23914 cat >>confdefs.h <<\_ACEOF
23915 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23916 _ACEOF
23921 # check for readline 4.2
23922 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23923 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23924 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23925 echo $ECHO_N "(cached) $ECHO_C" >&6
23926 else
23927 ac_check_lib_save_LIBS=$LIBS
23928 LIBS="-lreadline $READLINE_LIBS $LIBS"
23929 cat >conftest.$ac_ext <<_ACEOF
23930 /* confdefs.h. */
23931 _ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h. */
23936 /* Override any GCC internal prototype to avoid an error.
23937 Use char because int might match the return type of a GCC
23938 builtin and then its argument prototype would still apply. */
23939 #ifdef __cplusplus
23940 extern "C"
23941 #endif
23942 char rl_completion_matches ();
23944 main ()
23946 return rl_completion_matches ();
23948 return 0;
23950 _ACEOF
23951 rm -f conftest.$ac_objext conftest$ac_exeext
23952 if { (ac_try="$ac_link"
23953 case "(($ac_try" in
23954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23955 *) ac_try_echo=$ac_try;;
23956 esac
23957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23958 (eval "$ac_link") 2>conftest.er1
23959 ac_status=$?
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } && {
23965 test -z "$ac_c_werror_flag" ||
23966 test ! -s conftest.err
23967 } && test -s conftest$ac_exeext &&
23968 $as_test_x conftest$ac_exeext; then
23969 ac_cv_lib_readline_rl_completion_matches=yes
23970 else
23971 echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23974 ac_cv_lib_readline_rl_completion_matches=no
23977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23978 conftest$ac_exeext conftest.$ac_ext
23979 LIBS=$ac_check_lib_save_LIBS
23981 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23982 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23983 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23985 cat >>confdefs.h <<\_ACEOF
23986 #define HAVE_RL_COMPLETION_MATCHES 1
23987 _ACEOF
23992 # also in readline 4.2
23993 cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h. */
23995 _ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
23999 #include <readline/readline.h>
24000 _ACEOF
24001 if { (ac_try="$ac_cpp conftest.$ac_ext"
24002 case "(($ac_try" in
24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24005 esac
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24008 ac_status=$?
24009 grep -v '^ *+' conftest.er1 >conftest.err
24010 rm -f conftest.er1
24011 cat conftest.err >&5
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } >/dev/null && {
24014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24015 test ! -s conftest.err
24016 }; then
24017 have_readline=yes
24018 else
24019 echo "$as_me: failed program was:" >&5
24020 sed 's/^/| /' conftest.$ac_ext >&5
24022 have_readline=no
24025 rm -f conftest.err conftest.$ac_ext
24026 if test $have_readline = yes
24027 then
24028 cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h. */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 #include <readline/readline.h>
24036 _ACEOF
24037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24038 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24040 cat >>confdefs.h <<\_ACEOF
24041 #define HAVE_RL_CATCH_SIGNAL 1
24042 _ACEOF
24045 rm -f conftest*
24049 # End of readline checks: restore LIBS
24050 LIBS=$LIBS_no_readline
24052 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24053 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24054 if test "${ac_cv_broken_nice+set}" = set; then
24055 echo $ECHO_N "(cached) $ECHO_C" >&6
24056 else
24058 if test "$cross_compiling" = yes; then
24059 ac_cv_broken_nice=no
24060 else
24061 cat >conftest.$ac_ext <<_ACEOF
24062 /* confdefs.h. */
24063 _ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h. */
24068 int main()
24070 int val1 = nice(1);
24071 if (val1 != -1 && val1 == nice(2))
24072 exit(0);
24073 exit(1);
24076 _ACEOF
24077 rm -f conftest$ac_exeext
24078 if { (ac_try="$ac_link"
24079 case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24082 esac
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_link") 2>&5
24085 ac_status=$?
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24088 { (case "(($ac_try" in
24089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24091 esac
24092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24093 (eval "$ac_try") 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 ac_cv_broken_nice=yes
24098 else
24099 echo "$as_me: program exited with status $ac_status" >&5
24100 echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ( exit $ac_status )
24104 ac_cv_broken_nice=no
24106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24112 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24113 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24114 if test "$ac_cv_broken_nice" = yes
24115 then
24117 cat >>confdefs.h <<\_ACEOF
24118 #define HAVE_BROKEN_NICE 1
24119 _ACEOF
24123 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24124 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24125 if test "$cross_compiling" = yes; then
24126 ac_cv_broken_poll=no
24127 else
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h. */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24135 #include <poll.h>
24137 int main (void)
24139 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24141 close (42);
24143 int poll_test = poll (&poll_struct, 1, 0);
24145 if (poll_test < 0)
24147 exit(0);
24149 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24151 exit(0);
24153 else
24155 exit(1);
24159 _ACEOF
24160 rm -f conftest$ac_exeext
24161 if { (ac_try="$ac_link"
24162 case "(($ac_try" in
24163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24164 *) ac_try_echo=$ac_try;;
24165 esac
24166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24167 (eval "$ac_link") 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24171 { (case "(($ac_try" in
24172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24174 esac
24175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24176 (eval "$ac_try") 2>&5
24177 ac_status=$?
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24180 ac_cv_broken_poll=yes
24181 else
24182 echo "$as_me: program exited with status $ac_status" >&5
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24186 ( exit $ac_status )
24187 ac_cv_broken_poll=no
24189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24193 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24194 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24195 if test "$ac_cv_broken_poll" = yes
24196 then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_BROKEN_POLL 1
24200 _ACEOF
24204 # Before we can test tzset, we need to check if struct tm has a tm_zone
24205 # (which is not required by ISO C or UNIX spec) and/or if we support
24206 # tzname[]
24207 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24208 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24209 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24211 else
24212 cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h. */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 #include <sys/types.h>
24219 #include <$ac_cv_struct_tm>
24223 main ()
24225 static struct tm ac_aggr;
24226 if (ac_aggr.tm_zone)
24227 return 0;
24229 return 0;
24231 _ACEOF
24232 rm -f conftest.$ac_objext
24233 if { (ac_try="$ac_compile"
24234 case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24237 esac
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_compile") 2>conftest.er1
24240 ac_status=$?
24241 grep -v '^ *+' conftest.er1 >conftest.err
24242 rm -f conftest.er1
24243 cat conftest.err >&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); } && {
24246 test -z "$ac_c_werror_flag" ||
24247 test ! -s conftest.err
24248 } && test -s conftest.$ac_objext; then
24249 ac_cv_member_struct_tm_tm_zone=yes
24250 else
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24254 cat >conftest.$ac_ext <<_ACEOF
24255 /* confdefs.h. */
24256 _ACEOF
24257 cat confdefs.h >>conftest.$ac_ext
24258 cat >>conftest.$ac_ext <<_ACEOF
24259 /* end confdefs.h. */
24260 #include <sys/types.h>
24261 #include <$ac_cv_struct_tm>
24265 main ()
24267 static struct tm ac_aggr;
24268 if (sizeof ac_aggr.tm_zone)
24269 return 0;
24271 return 0;
24273 _ACEOF
24274 rm -f conftest.$ac_objext
24275 if { (ac_try="$ac_compile"
24276 case "(($ac_try" in
24277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24278 *) ac_try_echo=$ac_try;;
24279 esac
24280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24281 (eval "$ac_compile") 2>conftest.er1
24282 ac_status=$?
24283 grep -v '^ *+' conftest.er1 >conftest.err
24284 rm -f conftest.er1
24285 cat conftest.err >&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } && {
24288 test -z "$ac_c_werror_flag" ||
24289 test ! -s conftest.err
24290 } && test -s conftest.$ac_objext; then
24291 ac_cv_member_struct_tm_tm_zone=yes
24292 else
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 ac_cv_member_struct_tm_tm_zone=no
24299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24305 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24306 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24308 cat >>confdefs.h <<_ACEOF
24309 #define HAVE_STRUCT_TM_TM_ZONE 1
24310 _ACEOF
24315 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24317 cat >>confdefs.h <<\_ACEOF
24318 #define HAVE_TM_ZONE 1
24319 _ACEOF
24321 else
24322 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24323 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24324 if test "${ac_cv_have_decl_tzname+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326 else
24327 cat >conftest.$ac_ext <<_ACEOF
24328 /* confdefs.h. */
24329 _ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24333 #include <time.h>
24336 main ()
24338 #ifndef tzname
24339 (void) tzname;
24340 #endif
24343 return 0;
24345 _ACEOF
24346 rm -f conftest.$ac_objext
24347 if { (ac_try="$ac_compile"
24348 case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24351 esac
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_compile") 2>conftest.er1
24354 ac_status=$?
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } && {
24360 test -z "$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 } && test -s conftest.$ac_objext; then
24363 ac_cv_have_decl_tzname=yes
24364 else
24365 echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24368 ac_cv_have_decl_tzname=no
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24373 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24374 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24375 if test $ac_cv_have_decl_tzname = yes; then
24377 cat >>confdefs.h <<_ACEOF
24378 #define HAVE_DECL_TZNAME 1
24379 _ACEOF
24382 else
24383 cat >>confdefs.h <<_ACEOF
24384 #define HAVE_DECL_TZNAME 0
24385 _ACEOF
24391 { echo "$as_me:$LINENO: checking for tzname" >&5
24392 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24393 if test "${ac_cv_var_tzname+set}" = set; then
24394 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 else
24396 cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h. */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24402 #include <time.h>
24403 #if !HAVE_DECL_TZNAME
24404 extern char *tzname[];
24405 #endif
24408 main ()
24410 return tzname[0][0];
24412 return 0;
24414 _ACEOF
24415 rm -f conftest.$ac_objext conftest$ac_exeext
24416 if { (ac_try="$ac_link"
24417 case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24420 esac
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422 (eval "$ac_link") 2>conftest.er1
24423 ac_status=$?
24424 grep -v '^ *+' conftest.er1 >conftest.err
24425 rm -f conftest.er1
24426 cat conftest.err >&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest$ac_exeext &&
24432 $as_test_x conftest$ac_exeext; then
24433 ac_cv_var_tzname=yes
24434 else
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 ac_cv_var_tzname=no
24441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24442 conftest$ac_exeext conftest.$ac_ext
24444 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24445 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24446 if test $ac_cv_var_tzname = yes; then
24448 cat >>confdefs.h <<\_ACEOF
24449 #define HAVE_TZNAME 1
24450 _ACEOF
24456 # check tzset(3) exists and works like we expect it to
24457 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24458 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24459 if test "${ac_cv_working_tzset+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24461 else
24463 if test "$cross_compiling" = yes; then
24464 ac_cv_working_tzset=no
24465 else
24466 cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h. */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24473 #include <stdlib.h>
24474 #include <time.h>
24475 #include <string.h>
24477 #if HAVE_TZNAME
24478 extern char *tzname[];
24479 #endif
24481 int main()
24483 /* Note that we need to ensure that not only does tzset(3)
24484 do 'something' with localtime, but it works as documented
24485 in the library reference and as expected by the test suite.
24486 This includes making sure that tzname is set properly if
24487 tm->tm_zone does not exist since it is the alternative way
24488 of getting timezone info.
24490 Red Hat 6.2 doesn't understand the southern hemisphere
24491 after New Year's Day.
24494 time_t groundhogday = 1044144000; /* GMT-based */
24495 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24497 putenv("TZ=UTC+0");
24498 tzset();
24499 if (localtime(&groundhogday)->tm_hour != 0)
24500 exit(1);
24501 #if HAVE_TZNAME
24502 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24503 if (strcmp(tzname[0], "UTC") ||
24504 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24505 exit(1);
24506 #endif
24508 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24509 tzset();
24510 if (localtime(&groundhogday)->tm_hour != 19)
24511 exit(1);
24512 #if HAVE_TZNAME
24513 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24514 exit(1);
24515 #endif
24517 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24518 tzset();
24519 if (localtime(&groundhogday)->tm_hour != 11)
24520 exit(1);
24521 #if HAVE_TZNAME
24522 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24523 exit(1);
24524 #endif
24526 #if HAVE_STRUCT_TM_TM_ZONE
24527 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24528 exit(1);
24529 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24530 exit(1);
24531 #endif
24533 exit(0);
24536 _ACEOF
24537 rm -f conftest$ac_exeext
24538 if { (ac_try="$ac_link"
24539 case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24542 esac
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_link") 2>&5
24545 ac_status=$?
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24548 { (case "(($ac_try" in
24549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24551 esac
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553 (eval "$ac_try") 2>&5
24554 ac_status=$?
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); }; }; then
24557 ac_cv_working_tzset=yes
24558 else
24559 echo "$as_me: program exited with status $ac_status" >&5
24560 echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24563 ( exit $ac_status )
24564 ac_cv_working_tzset=no
24566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24572 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24573 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24574 if test "$ac_cv_working_tzset" = yes
24575 then
24577 cat >>confdefs.h <<\_ACEOF
24578 #define HAVE_WORKING_TZSET 1
24579 _ACEOF
24583 # Look for subsecond timestamps in struct stat
24584 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24585 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24586 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24588 else
24589 cat >conftest.$ac_ext <<_ACEOF
24590 /* confdefs.h. */
24591 _ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h. */
24595 #include <sys/stat.h>
24597 main ()
24600 struct stat st;
24601 st.st_mtim.tv_nsec = 1;
24604 return 0;
24606 _ACEOF
24607 rm -f conftest.$ac_objext
24608 if { (ac_try="$ac_compile"
24609 case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24612 esac
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614 (eval "$ac_compile") 2>conftest.er1
24615 ac_status=$?
24616 grep -v '^ *+' conftest.er1 >conftest.err
24617 rm -f conftest.er1
24618 cat conftest.err >&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } && {
24621 test -z "$ac_c_werror_flag" ||
24622 test ! -s conftest.err
24623 } && test -s conftest.$ac_objext; then
24624 ac_cv_stat_tv_nsec=yes
24625 else
24626 echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24629 ac_cv_stat_tv_nsec=no
24632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24636 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24637 if test "$ac_cv_stat_tv_nsec" = yes
24638 then
24640 cat >>confdefs.h <<\_ACEOF
24641 #define HAVE_STAT_TV_NSEC 1
24642 _ACEOF
24646 # Look for BSD style subsecond timestamps in struct stat
24647 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24648 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24649 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652 cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h. */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h. */
24658 #include <sys/stat.h>
24660 main ()
24663 struct stat st;
24664 st.st_mtimespec.tv_nsec = 1;
24667 return 0;
24669 _ACEOF
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_compile") 2>conftest.er1
24678 ac_status=$?
24679 grep -v '^ *+' conftest.er1 >conftest.err
24680 rm -f conftest.er1
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && {
24684 test -z "$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24686 } && test -s conftest.$ac_objext; then
24687 ac_cv_stat_tv_nsec2=yes
24688 else
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 ac_cv_stat_tv_nsec2=no
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24699 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24700 if test "$ac_cv_stat_tv_nsec2" = yes
24701 then
24703 cat >>confdefs.h <<\_ACEOF
24704 #define HAVE_STAT_TV_NSEC2 1
24705 _ACEOF
24709 # On HP/UX 11.0, mvwdelch is a block with a return statement
24710 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24711 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24712 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24713 echo $ECHO_N "(cached) $ECHO_C" >&6
24714 else
24715 cat >conftest.$ac_ext <<_ACEOF
24716 /* confdefs.h. */
24717 _ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24721 #include <curses.h>
24723 main ()
24726 int rtn;
24727 rtn = mvwdelch(0,0,0);
24730 return 0;
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24741 ac_status=$?
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest.$ac_objext; then
24750 ac_cv_mvwdelch_is_expression=yes
24751 else
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24755 ac_cv_mvwdelch_is_expression=no
24758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24761 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24762 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24764 if test "$ac_cv_mvwdelch_is_expression" = yes
24765 then
24767 cat >>confdefs.h <<\_ACEOF
24768 #define MVWDELCH_IS_EXPRESSION 1
24769 _ACEOF
24773 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24774 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24775 if test "${ac_cv_window_has_flags+set}" = set; then
24776 echo $ECHO_N "(cached) $ECHO_C" >&6
24777 else
24778 cat >conftest.$ac_ext <<_ACEOF
24779 /* confdefs.h. */
24780 _ACEOF
24781 cat confdefs.h >>conftest.$ac_ext
24782 cat >>conftest.$ac_ext <<_ACEOF
24783 /* end confdefs.h. */
24784 #include <curses.h>
24786 main ()
24789 WINDOW *w;
24790 w->_flags = 0;
24793 return 0;
24795 _ACEOF
24796 rm -f conftest.$ac_objext
24797 if { (ac_try="$ac_compile"
24798 case "(($ac_try" in
24799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800 *) ac_try_echo=$ac_try;;
24801 esac
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803 (eval "$ac_compile") 2>conftest.er1
24804 ac_status=$?
24805 grep -v '^ *+' conftest.er1 >conftest.err
24806 rm -f conftest.er1
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } && {
24810 test -z "$ac_c_werror_flag" ||
24811 test ! -s conftest.err
24812 } && test -s conftest.$ac_objext; then
24813 ac_cv_window_has_flags=yes
24814 else
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ac_cv_window_has_flags=no
24821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24824 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24825 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24828 if test "$ac_cv_window_has_flags" = yes
24829 then
24831 cat >>confdefs.h <<\_ACEOF
24832 #define WINDOW_HAS_FLAGS 1
24833 _ACEOF
24837 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24838 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24839 cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h. */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 #include <curses.h>
24847 main ()
24849 void *x=is_term_resized
24851 return 0;
24853 _ACEOF
24854 rm -f conftest.$ac_objext
24855 if { (ac_try="$ac_compile"
24856 case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24859 esac
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861 (eval "$ac_compile") 2>conftest.er1
24862 ac_status=$?
24863 grep -v '^ *+' conftest.er1 >conftest.err
24864 rm -f conftest.er1
24865 cat conftest.err >&5
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } && {
24868 test -z "$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 } && test -s conftest.$ac_objext; then
24872 cat >>confdefs.h <<\_ACEOF
24873 #define HAVE_CURSES_IS_TERM_RESIZED 1
24874 _ACEOF
24876 { echo "$as_me:$LINENO: result: yes" >&5
24877 echo "${ECHO_T}yes" >&6; }
24878 else
24879 echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 { echo "$as_me:$LINENO: result: no" >&5
24883 echo "${ECHO_T}no" >&6; }
24887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 { echo "$as_me:$LINENO: checking for resize_term" >&5
24890 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24891 cat >conftest.$ac_ext <<_ACEOF
24892 /* confdefs.h. */
24893 _ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24897 #include <curses.h>
24899 main ()
24901 void *x=resize_term
24903 return 0;
24905 _ACEOF
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24911 esac
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24914 ac_status=$?
24915 grep -v '^ *+' conftest.er1 >conftest.err
24916 rm -f conftest.er1
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest.$ac_objext; then
24924 cat >>confdefs.h <<\_ACEOF
24925 #define HAVE_CURSES_RESIZE_TERM 1
24926 _ACEOF
24928 { echo "$as_me:$LINENO: result: yes" >&5
24929 echo "${ECHO_T}yes" >&6; }
24930 else
24931 echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24934 { echo "$as_me:$LINENO: result: no" >&5
24935 echo "${ECHO_T}no" >&6; }
24939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24942 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24943 cat >conftest.$ac_ext <<_ACEOF
24944 /* confdefs.h. */
24945 _ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 #include <curses.h>
24951 main ()
24953 void *x=resizeterm
24955 return 0;
24957 _ACEOF
24958 rm -f conftest.$ac_objext
24959 if { (ac_try="$ac_compile"
24960 case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24963 esac
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_compile") 2>conftest.er1
24966 ac_status=$?
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest.$ac_objext; then
24976 cat >>confdefs.h <<\_ACEOF
24977 #define HAVE_CURSES_RESIZETERM 1
24978 _ACEOF
24980 { echo "$as_me:$LINENO: result: yes" >&5
24981 echo "${ECHO_T}yes" >&6; }
24982 else
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24986 { echo "$as_me:$LINENO: result: no" >&5
24987 echo "${ECHO_T}no" >&6; }
24991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24993 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24994 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24996 if test -r /dev/ptmx
24997 then
24998 { echo "$as_me:$LINENO: result: yes" >&5
24999 echo "${ECHO_T}yes" >&6; }
25001 cat >>confdefs.h <<\_ACEOF
25002 #define HAVE_DEV_PTMX 1
25003 _ACEOF
25005 else
25006 { echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6; }
25010 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25011 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25013 if test -r /dev/ptc
25014 then
25015 { echo "$as_me:$LINENO: result: yes" >&5
25016 echo "${ECHO_T}yes" >&6; }
25018 cat >>confdefs.h <<\_ACEOF
25019 #define HAVE_DEV_PTC 1
25020 _ACEOF
25022 else
25023 { echo "$as_me:$LINENO: result: no" >&5
25024 echo "${ECHO_T}no" >&6; }
25027 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25028 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25029 if test "$cross_compiling" = yes; then
25030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25031 See \`config.log' for more details." >&5
25032 echo "$as_me: error: cannot run test program while cross compiling
25033 See \`config.log' for more details." >&2;}
25034 { (exit 1); exit 1; }; }
25035 else
25036 cat >conftest.$ac_ext <<_ACEOF
25037 /* confdefs.h. */
25038 _ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042 #include <stdio.h>
25043 #include <stddef.h>
25044 #include <string.h>
25046 #ifdef HAVE_SYS_TYPES_H
25047 #include <sys/types.h>
25048 #endif
25050 #ifdef HAVE_SSIZE_T
25051 typedef ssize_t Py_ssize_t;
25052 #elif SIZEOF_VOID_P == SIZEOF_LONG
25053 typedef long Py_ssize_t;
25054 #else
25055 typedef int Py_ssize_t;
25056 #endif
25058 int main()
25060 char buffer[256];
25062 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25063 return 1;
25065 if (strcmp(buffer, "123"))
25066 return 1;
25068 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25069 return 1;
25071 if (strcmp(buffer, "-123"))
25072 return 1;
25074 return 0;
25076 _ACEOF
25077 rm -f conftest$ac_exeext
25078 if { (ac_try="$ac_link"
25079 case "(($ac_try" in
25080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25081 *) ac_try_echo=$ac_try;;
25082 esac
25083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25084 (eval "$ac_link") 2>&5
25085 ac_status=$?
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25088 { (case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25091 esac
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_try") 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; }; then
25097 { echo "$as_me:$LINENO: result: yes" >&5
25098 echo "${ECHO_T}yes" >&6; }
25100 cat >>confdefs.h <<\_ACEOF
25101 #define PY_FORMAT_SIZE_T "z"
25102 _ACEOF
25104 else
25105 echo "$as_me: program exited with status $ac_status" >&5
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ( exit $ac_status )
25110 { echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6; }
25113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25118 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25119 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25120 if test "${ac_cv_type_socklen_t+set}" = set; then
25121 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 else
25123 cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h. */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25130 #ifdef HAVE_SYS_TYPES_H
25131 #include <sys/types.h>
25132 #endif
25133 #ifdef HAVE_SYS_SOCKET_H
25134 #include <sys/socket.h>
25135 #endif
25138 typedef socklen_t ac__type_new_;
25140 main ()
25142 if ((ac__type_new_ *) 0)
25143 return 0;
25144 if (sizeof (ac__type_new_))
25145 return 0;
25147 return 0;
25149 _ACEOF
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25155 esac
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157 (eval "$ac_compile") 2>conftest.er1
25158 ac_status=$?
25159 grep -v '^ *+' conftest.er1 >conftest.err
25160 rm -f conftest.er1
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } && {
25164 test -z "$ac_c_werror_flag" ||
25165 test ! -s conftest.err
25166 } && test -s conftest.$ac_objext; then
25167 ac_cv_type_socklen_t=yes
25168 else
25169 echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25172 ac_cv_type_socklen_t=no
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25178 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25179 if test $ac_cv_type_socklen_t = yes; then
25181 else
25183 cat >>confdefs.h <<\_ACEOF
25184 #define socklen_t int
25185 _ACEOF
25192 for h in `(cd $srcdir;echo Python/thread_*.h)`
25194 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25195 done
25198 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25199 { echo "$as_me:$LINENO: checking for build directories" >&5
25200 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25201 for dir in $SRCDIRS; do
25202 if test ! -d $dir; then
25203 mkdir $dir
25205 done
25206 { echo "$as_me:$LINENO: result: done" >&5
25207 echo "${ECHO_T}done" >&6; }
25209 # generate output files
25210 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25212 cat >confcache <<\_ACEOF
25213 # This file is a shell script that caches the results of configure
25214 # tests run on this system so they can be shared between configure
25215 # scripts and configure runs, see configure's option --config-cache.
25216 # It is not useful on other systems. If it contains results you don't
25217 # want to keep, you may remove or edit it.
25219 # config.status only pays attention to the cache file if you give it
25220 # the --recheck option to rerun configure.
25222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25224 # following values.
25226 _ACEOF
25228 # The following way of writing the cache mishandles newlines in values,
25229 # but we know of no workaround that is simple, portable, and efficient.
25230 # So, we kill variables containing newlines.
25231 # Ultrix sh set writes to stderr and can't be redirected directly,
25232 # and sets the high bit in the cache file unless we assign to the vars.
25234 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25235 eval ac_val=\$$ac_var
25236 case $ac_val in #(
25237 *${as_nl}*)
25238 case $ac_var in #(
25239 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25240 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25241 esac
25242 case $ac_var in #(
25243 _ | IFS | as_nl) ;; #(
25244 *) $as_unset $ac_var ;;
25245 esac ;;
25246 esac
25247 done
25249 (set) 2>&1 |
25250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25251 *${as_nl}ac_space=\ *)
25252 # `set' does not quote correctly, so add quotes (double-quote
25253 # substitution turns \\\\ into \\, and sed turns \\ into \).
25254 sed -n \
25255 "s/'/'\\\\''/g;
25256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25257 ;; #(
25259 # `set' quotes correctly as required by POSIX, so do not add quotes.
25260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25262 esac |
25263 sort
25265 sed '
25266 /^ac_cv_env_/b end
25267 t clear
25268 :clear
25269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25270 t end
25271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25272 :end' >>confcache
25273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25274 if test -w "$cache_file"; then
25275 test "x$cache_file" != "x/dev/null" &&
25276 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25277 echo "$as_me: updating cache $cache_file" >&6;}
25278 cat confcache >$cache_file
25279 else
25280 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25281 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25284 rm -f confcache
25286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25287 # Let make expand exec_prefix.
25288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25290 DEFS=-DHAVE_CONFIG_H
25292 ac_libobjs=
25293 ac_ltlibobjs=
25294 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25295 # 1. Remove the extension, and $U if already installed.
25296 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25297 ac_i=`echo "$ac_i" | sed "$ac_script"`
25298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25299 # will be set to the directory where LIBOBJS objects are built.
25300 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25301 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25302 done
25303 LIBOBJS=$ac_libobjs
25305 LTLIBOBJS=$ac_ltlibobjs
25309 : ${CONFIG_STATUS=./config.status}
25310 ac_clean_files_save=$ac_clean_files
25311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25312 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25313 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25314 cat >$CONFIG_STATUS <<_ACEOF
25315 #! $SHELL
25316 # Generated by $as_me.
25317 # Run this file to recreate the current configuration.
25318 # Compiler output produced by configure, useful for debugging
25319 # configure, is in config.log if it exists.
25321 debug=false
25322 ac_cs_recheck=false
25323 ac_cs_silent=false
25324 SHELL=\${CONFIG_SHELL-$SHELL}
25325 _ACEOF
25327 cat >>$CONFIG_STATUS <<\_ACEOF
25328 ## --------------------- ##
25329 ## M4sh Initialization. ##
25330 ## --------------------- ##
25332 # Be more Bourne compatible
25333 DUALCASE=1; export DUALCASE # for MKS sh
25334 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25335 emulate sh
25336 NULLCMD=:
25337 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25338 # is contrary to our usage. Disable this feature.
25339 alias -g '${1+"$@"}'='"$@"'
25340 setopt NO_GLOB_SUBST
25341 else
25342 case `(set -o) 2>/dev/null` in
25343 *posix*) set -o posix ;;
25344 esac
25351 # PATH needs CR
25352 # Avoid depending upon Character Ranges.
25353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25356 as_cr_digits='0123456789'
25357 as_cr_alnum=$as_cr_Letters$as_cr_digits
25359 # The user is always right.
25360 if test "${PATH_SEPARATOR+set}" != set; then
25361 echo "#! /bin/sh" >conf$$.sh
25362 echo "exit 0" >>conf$$.sh
25363 chmod +x conf$$.sh
25364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25365 PATH_SEPARATOR=';'
25366 else
25367 PATH_SEPARATOR=:
25369 rm -f conf$$.sh
25372 # Support unset when possible.
25373 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25374 as_unset=unset
25375 else
25376 as_unset=false
25380 # IFS
25381 # We need space, tab and new line, in precisely that order. Quoting is
25382 # there to prevent editors from complaining about space-tab.
25383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25384 # splitting by setting IFS to empty value.)
25385 as_nl='
25387 IFS=" "" $as_nl"
25389 # Find who we are. Look in the path if we contain no directory separator.
25390 case $0 in
25391 *[\\/]* ) as_myself=$0 ;;
25392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25393 for as_dir in $PATH
25395 IFS=$as_save_IFS
25396 test -z "$as_dir" && as_dir=.
25397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25398 done
25399 IFS=$as_save_IFS
25402 esac
25403 # We did not find ourselves, most probably we were run as `sh COMMAND'
25404 # in which case we are not to be found in the path.
25405 if test "x$as_myself" = x; then
25406 as_myself=$0
25408 if test ! -f "$as_myself"; then
25409 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25410 { (exit 1); exit 1; }
25413 # Work around bugs in pre-3.0 UWIN ksh.
25414 for as_var in ENV MAIL MAILPATH
25415 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25416 done
25417 PS1='$ '
25418 PS2='> '
25419 PS4='+ '
25421 # NLS nuisances.
25422 for as_var in \
25423 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25424 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25425 LC_TELEPHONE LC_TIME
25427 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25428 eval $as_var=C; export $as_var
25429 else
25430 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25432 done
25434 # Required to use basename.
25435 if expr a : '\(a\)' >/dev/null 2>&1 &&
25436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25437 as_expr=expr
25438 else
25439 as_expr=false
25442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25443 as_basename=basename
25444 else
25445 as_basename=false
25449 # Name of the executable.
25450 as_me=`$as_basename -- "$0" ||
25451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25452 X"$0" : 'X\(//\)$' \| \
25453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25454 echo X/"$0" |
25455 sed '/^.*\/\([^/][^/]*\)\/*$/{
25456 s//\1/
25459 /^X\/\(\/\/\)$/{
25460 s//\1/
25463 /^X\/\(\/\).*/{
25464 s//\1/
25467 s/.*/./; q'`
25469 # CDPATH.
25470 $as_unset CDPATH
25474 as_lineno_1=$LINENO
25475 as_lineno_2=$LINENO
25476 test "x$as_lineno_1" != "x$as_lineno_2" &&
25477 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25479 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25480 # uniformly replaced by the line number. The first 'sed' inserts a
25481 # line-number line after each line using $LINENO; the second 'sed'
25482 # does the real work. The second script uses 'N' to pair each
25483 # line-number line with the line containing $LINENO, and appends
25484 # trailing '-' during substitution so that $LINENO is not a special
25485 # case at line end.
25486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25487 # scripts with optimization help from Paolo Bonzini. Blame Lee
25488 # E. McMahon (1931-1989) for sed's syntax. :-)
25489 sed -n '
25491 /[$]LINENO/=
25492 ' <$as_myself |
25493 sed '
25494 s/[$]LINENO.*/&-/
25495 t lineno
25497 :lineno
25499 :loop
25500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25501 t loop
25502 s/-\n.*//
25503 ' >$as_me.lineno &&
25504 chmod +x "$as_me.lineno" ||
25505 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25506 { (exit 1); exit 1; }; }
25508 # Don't try to exec as it changes $[0], causing all sort of problems
25509 # (the dirname of $[0] is not the place where we might find the
25510 # original and so on. Autoconf is especially sensitive to this).
25511 . "./$as_me.lineno"
25512 # Exit status is that of the last command.
25513 exit
25517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25518 as_dirname=dirname
25519 else
25520 as_dirname=false
25523 ECHO_C= ECHO_N= ECHO_T=
25524 case `echo -n x` in
25525 -n*)
25526 case `echo 'x\c'` in
25527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25528 *) ECHO_C='\c';;
25529 esac;;
25531 ECHO_N='-n';;
25532 esac
25534 if expr a : '\(a\)' >/dev/null 2>&1 &&
25535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25536 as_expr=expr
25537 else
25538 as_expr=false
25541 rm -f conf$$ conf$$.exe conf$$.file
25542 if test -d conf$$.dir; then
25543 rm -f conf$$.dir/conf$$.file
25544 else
25545 rm -f conf$$.dir
25546 mkdir conf$$.dir
25548 echo >conf$$.file
25549 if ln -s conf$$.file conf$$ 2>/dev/null; then
25550 as_ln_s='ln -s'
25551 # ... but there are two gotchas:
25552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25554 # In both cases, we have to default to `cp -p'.
25555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25556 as_ln_s='cp -p'
25557 elif ln conf$$.file conf$$ 2>/dev/null; then
25558 as_ln_s=ln
25559 else
25560 as_ln_s='cp -p'
25562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25563 rmdir conf$$.dir 2>/dev/null
25565 if mkdir -p . 2>/dev/null; then
25566 as_mkdir_p=:
25567 else
25568 test -d ./-p && rmdir ./-p
25569 as_mkdir_p=false
25572 if test -x / >/dev/null 2>&1; then
25573 as_test_x='test -x'
25574 else
25575 if ls -dL / >/dev/null 2>&1; then
25576 as_ls_L_option=L
25577 else
25578 as_ls_L_option=
25580 as_test_x='
25581 eval sh -c '\''
25582 if test -d "$1"; then
25583 test -d "$1/.";
25584 else
25585 case $1 in
25586 -*)set "./$1";;
25587 esac;
25588 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25589 ???[sx]*):;;*)false;;esac;fi
25590 '\'' sh
25593 as_executable_p=$as_test_x
25595 # Sed expression to map a string onto a valid CPP name.
25596 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25598 # Sed expression to map a string onto a valid variable name.
25599 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25602 exec 6>&1
25604 # Save the log message, to keep $[0] and so on meaningful, and to
25605 # report actual input values of CONFIG_FILES etc. instead of their
25606 # values after options handling.
25607 ac_log="
25608 This file was extended by python $as_me 2.7, which was
25609 generated by GNU Autoconf 2.61. Invocation command line was
25611 CONFIG_FILES = $CONFIG_FILES
25612 CONFIG_HEADERS = $CONFIG_HEADERS
25613 CONFIG_LINKS = $CONFIG_LINKS
25614 CONFIG_COMMANDS = $CONFIG_COMMANDS
25615 $ $0 $@
25617 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25620 _ACEOF
25622 cat >>$CONFIG_STATUS <<_ACEOF
25623 # Files that config.status was made for.
25624 config_files="$ac_config_files"
25625 config_headers="$ac_config_headers"
25627 _ACEOF
25629 cat >>$CONFIG_STATUS <<\_ACEOF
25630 ac_cs_usage="\
25631 \`$as_me' instantiates files from templates according to the
25632 current configuration.
25634 Usage: $0 [OPTIONS] [FILE]...
25636 -h, --help print this help, then exit
25637 -V, --version print version number and configuration settings, then exit
25638 -q, --quiet do not print progress messages
25639 -d, --debug don't remove temporary files
25640 --recheck update $as_me by reconfiguring in the same conditions
25641 --file=FILE[:TEMPLATE]
25642 instantiate the configuration file FILE
25643 --header=FILE[:TEMPLATE]
25644 instantiate the configuration header FILE
25646 Configuration files:
25647 $config_files
25649 Configuration headers:
25650 $config_headers
25652 Report bugs to <bug-autoconf@gnu.org>."
25654 _ACEOF
25655 cat >>$CONFIG_STATUS <<_ACEOF
25656 ac_cs_version="\\
25657 python config.status 2.7
25658 configured by $0, generated by GNU Autoconf 2.61,
25659 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25661 Copyright (C) 2006 Free Software Foundation, Inc.
25662 This config.status script is free software; the Free Software Foundation
25663 gives unlimited permission to copy, distribute and modify it."
25665 ac_pwd='$ac_pwd'
25666 srcdir='$srcdir'
25667 INSTALL='$INSTALL'
25668 _ACEOF
25670 cat >>$CONFIG_STATUS <<\_ACEOF
25671 # If no file are specified by the user, then we need to provide default
25672 # value. By we need to know if files were specified by the user.
25673 ac_need_defaults=:
25674 while test $# != 0
25676 case $1 in
25677 --*=*)
25678 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25680 ac_shift=:
25683 ac_option=$1
25684 ac_optarg=$2
25685 ac_shift=shift
25687 esac
25689 case $ac_option in
25690 # Handling of the options.
25691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25692 ac_cs_recheck=: ;;
25693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25694 echo "$ac_cs_version"; exit ;;
25695 --debug | --debu | --deb | --de | --d | -d )
25696 debug=: ;;
25697 --file | --fil | --fi | --f )
25698 $ac_shift
25699 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25700 ac_need_defaults=false;;
25701 --header | --heade | --head | --hea )
25702 $ac_shift
25703 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25704 ac_need_defaults=false;;
25705 --he | --h)
25706 # Conflict between --help and --header
25707 { echo "$as_me: error: ambiguous option: $1
25708 Try \`$0 --help' for more information." >&2
25709 { (exit 1); exit 1; }; };;
25710 --help | --hel | -h )
25711 echo "$ac_cs_usage"; exit ;;
25712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25714 ac_cs_silent=: ;;
25716 # This is an error.
25717 -*) { echo "$as_me: error: unrecognized option: $1
25718 Try \`$0 --help' for more information." >&2
25719 { (exit 1); exit 1; }; } ;;
25721 *) ac_config_targets="$ac_config_targets $1"
25722 ac_need_defaults=false ;;
25724 esac
25725 shift
25726 done
25728 ac_configure_extra_args=
25730 if $ac_cs_silent; then
25731 exec 6>/dev/null
25732 ac_configure_extra_args="$ac_configure_extra_args --silent"
25735 _ACEOF
25736 cat >>$CONFIG_STATUS <<_ACEOF
25737 if \$ac_cs_recheck; then
25738 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25739 CONFIG_SHELL=$SHELL
25740 export CONFIG_SHELL
25741 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25744 _ACEOF
25745 cat >>$CONFIG_STATUS <<\_ACEOF
25746 exec 5>>config.log
25748 echo
25749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25750 ## Running $as_me. ##
25751 _ASBOX
25752 echo "$ac_log"
25753 } >&5
25755 _ACEOF
25756 cat >>$CONFIG_STATUS <<_ACEOF
25757 _ACEOF
25759 cat >>$CONFIG_STATUS <<\_ACEOF
25761 # Handling of arguments.
25762 for ac_config_target in $ac_config_targets
25764 case $ac_config_target in
25765 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25766 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25767 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25768 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25769 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25770 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25771 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25772 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25775 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25776 { (exit 1); exit 1; }; };;
25777 esac
25778 done
25781 # If the user did not use the arguments to specify the items to instantiate,
25782 # then the envvar interface is used. Set only those that are not.
25783 # We use the long form for the default assignment because of an extremely
25784 # bizarre bug on SunOS 4.1.3.
25785 if $ac_need_defaults; then
25786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25790 # Have a temporary directory for convenience. Make it in the build tree
25791 # simply because there is no reason against having it here, and in addition,
25792 # creating and moving files from /tmp can sometimes cause problems.
25793 # Hook for its removal unless debugging.
25794 # Note that there is a small window in which the directory will not be cleaned:
25795 # after its creation but before its name has been assigned to `$tmp'.
25796 $debug ||
25798 tmp=
25799 trap 'exit_status=$?
25800 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25802 trap '{ (exit 1); exit 1; }' 1 2 13 15
25804 # Create a (secure) tmp directory for tmp files.
25807 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25808 test -n "$tmp" && test -d "$tmp"
25809 } ||
25811 tmp=./conf$$-$RANDOM
25812 (umask 077 && mkdir "$tmp")
25813 } ||
25815 echo "$me: cannot create a temporary directory in ." >&2
25816 { (exit 1); exit 1; }
25820 # Set up the sed scripts for CONFIG_FILES section.
25823 # No need to generate the scripts if there are no CONFIG_FILES.
25824 # This happens for instance when ./config.status config.h
25825 if test -n "$CONFIG_FILES"; then
25827 _ACEOF
25831 ac_delim='%!_!# '
25832 for ac_last_try in false false false false false :; do
25833 cat >conf$$subs.sed <<_ACEOF
25834 SHELL!$SHELL$ac_delim
25835 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25836 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25837 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25838 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25839 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25840 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25841 exec_prefix!$exec_prefix$ac_delim
25842 prefix!$prefix$ac_delim
25843 program_transform_name!$program_transform_name$ac_delim
25844 bindir!$bindir$ac_delim
25845 sbindir!$sbindir$ac_delim
25846 libexecdir!$libexecdir$ac_delim
25847 datarootdir!$datarootdir$ac_delim
25848 datadir!$datadir$ac_delim
25849 sysconfdir!$sysconfdir$ac_delim
25850 sharedstatedir!$sharedstatedir$ac_delim
25851 localstatedir!$localstatedir$ac_delim
25852 includedir!$includedir$ac_delim
25853 oldincludedir!$oldincludedir$ac_delim
25854 docdir!$docdir$ac_delim
25855 infodir!$infodir$ac_delim
25856 htmldir!$htmldir$ac_delim
25857 dvidir!$dvidir$ac_delim
25858 pdfdir!$pdfdir$ac_delim
25859 psdir!$psdir$ac_delim
25860 libdir!$libdir$ac_delim
25861 localedir!$localedir$ac_delim
25862 mandir!$mandir$ac_delim
25863 DEFS!$DEFS$ac_delim
25864 ECHO_C!$ECHO_C$ac_delim
25865 ECHO_N!$ECHO_N$ac_delim
25866 ECHO_T!$ECHO_T$ac_delim
25867 LIBS!$LIBS$ac_delim
25868 build_alias!$build_alias$ac_delim
25869 host_alias!$host_alias$ac_delim
25870 target_alias!$target_alias$ac_delim
25871 VERSION!$VERSION$ac_delim
25872 SOVERSION!$SOVERSION$ac_delim
25873 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25874 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25875 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25876 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25877 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25878 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25879 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25880 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25881 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25882 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25883 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25884 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25885 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25886 MACHDEP!$MACHDEP$ac_delim
25887 SGI_ABI!$SGI_ABI$ac_delim
25888 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25889 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25890 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25891 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25892 CC!$CC$ac_delim
25893 CFLAGS!$CFLAGS$ac_delim
25894 LDFLAGS!$LDFLAGS$ac_delim
25895 CPPFLAGS!$CPPFLAGS$ac_delim
25896 ac_ct_CC!$ac_ct_CC$ac_delim
25897 EXEEXT!$EXEEXT$ac_delim
25898 OBJEXT!$OBJEXT$ac_delim
25899 CXX!$CXX$ac_delim
25900 MAINCC!$MAINCC$ac_delim
25901 CPP!$CPP$ac_delim
25902 GREP!$GREP$ac_delim
25903 EGREP!$EGREP$ac_delim
25904 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25905 LIBRARY!$LIBRARY$ac_delim
25906 LDLIBRARY!$LDLIBRARY$ac_delim
25907 DLLLIBRARY!$DLLLIBRARY$ac_delim
25908 BLDLIBRARY!$BLDLIBRARY$ac_delim
25909 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25910 INSTSONAME!$INSTSONAME$ac_delim
25911 RUNSHARED!$RUNSHARED$ac_delim
25912 LINKCC!$LINKCC$ac_delim
25913 RANLIB!$RANLIB$ac_delim
25914 AR!$AR$ac_delim
25915 SVNVERSION!$SVNVERSION$ac_delim
25916 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25917 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25918 INSTALL_DATA!$INSTALL_DATA$ac_delim
25919 LN!$LN$ac_delim
25920 OPT!$OPT$ac_delim
25921 BASECFLAGS!$BASECFLAGS$ac_delim
25922 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25923 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25924 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25925 SO!$SO$ac_delim
25926 LDSHARED!$LDSHARED$ac_delim
25927 BLDSHARED!$BLDSHARED$ac_delim
25928 CCSHARED!$CCSHARED$ac_delim
25929 LINKFORSHARED!$LINKFORSHARED$ac_delim
25930 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25931 _ACEOF
25933 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25934 break
25935 elif $ac_last_try; then
25936 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25938 { (exit 1); exit 1; }; }
25939 else
25940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25942 done
25944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25945 if test -n "$ac_eof"; then
25946 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25947 ac_eof=`expr $ac_eof + 1`
25950 cat >>$CONFIG_STATUS <<_ACEOF
25951 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25953 _ACEOF
25954 sed '
25955 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25956 s/^/s,@/; s/!/@,|#_!!_#|/
25959 s/'"$ac_delim"'$/,g/; t
25960 s/$/\\/; p
25961 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25962 ' >>$CONFIG_STATUS <conf$$subs.sed
25963 rm -f conf$$subs.sed
25964 cat >>$CONFIG_STATUS <<_ACEOF
25965 CEOF$ac_eof
25966 _ACEOF
25969 ac_delim='%!_!# '
25970 for ac_last_try in false false false false false :; do
25971 cat >conf$$subs.sed <<_ACEOF
25972 SHLIBS!$SHLIBS$ac_delim
25973 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25974 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25975 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25976 LDLAST!$LDLAST$ac_delim
25977 THREADOBJ!$THREADOBJ$ac_delim
25978 DLINCLDIR!$DLINCLDIR$ac_delim
25979 DYNLOADFILE!$DYNLOADFILE$ac_delim
25980 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25981 TRUE!$TRUE$ac_delim
25982 LIBOBJS!$LIBOBJS$ac_delim
25983 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25984 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25985 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25986 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25987 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25988 LIBM!$LIBM$ac_delim
25989 LIBC!$LIBC$ac_delim
25990 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25991 THREADHEADERS!$THREADHEADERS$ac_delim
25992 SRCDIRS!$SRCDIRS$ac_delim
25993 LTLIBOBJS!$LTLIBOBJS$ac_delim
25994 _ACEOF
25996 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25997 break
25998 elif $ac_last_try; then
25999 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26000 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26001 { (exit 1); exit 1; }; }
26002 else
26003 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26005 done
26007 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26008 if test -n "$ac_eof"; then
26009 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26010 ac_eof=`expr $ac_eof + 1`
26013 cat >>$CONFIG_STATUS <<_ACEOF
26014 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26016 _ACEOF
26017 sed '
26018 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26019 s/^/s,@/; s/!/@,|#_!!_#|/
26022 s/'"$ac_delim"'$/,g/; t
26023 s/$/\\/; p
26024 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26025 ' >>$CONFIG_STATUS <conf$$subs.sed
26026 rm -f conf$$subs.sed
26027 cat >>$CONFIG_STATUS <<_ACEOF
26028 :end
26029 s/|#_!!_#|//g
26030 CEOF$ac_eof
26031 _ACEOF
26034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26036 # trailing colons and then remove the whole line if VPATH becomes empty
26037 # (actually we leave an empty line to preserve line numbers).
26038 if test "x$srcdir" = x.; then
26039 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26040 s/:*\$(srcdir):*/:/
26041 s/:*\${srcdir}:*/:/
26042 s/:*@srcdir@:*/:/
26043 s/^\([^=]*=[ ]*\):*/\1/
26044 s/:*$//
26045 s/^[^=]*=[ ]*$//
26049 cat >>$CONFIG_STATUS <<\_ACEOF
26050 fi # test -n "$CONFIG_FILES"
26053 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26055 case $ac_tag in
26056 :[FHLC]) ac_mode=$ac_tag; continue;;
26057 esac
26058 case $ac_mode$ac_tag in
26059 :[FHL]*:*);;
26060 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26061 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26062 { (exit 1); exit 1; }; };;
26063 :[FH]-) ac_tag=-:-;;
26064 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26065 esac
26066 ac_save_IFS=$IFS
26067 IFS=:
26068 set x $ac_tag
26069 IFS=$ac_save_IFS
26070 shift
26071 ac_file=$1
26072 shift
26074 case $ac_mode in
26075 :L) ac_source=$1;;
26076 :[FH])
26077 ac_file_inputs=
26078 for ac_f
26080 case $ac_f in
26081 -) ac_f="$tmp/stdin";;
26082 *) # Look for the file first in the build tree, then in the source tree
26083 # (if the path is not absolute). The absolute path cannot be DOS-style,
26084 # because $ac_f cannot contain `:'.
26085 test -f "$ac_f" ||
26086 case $ac_f in
26087 [\\/$]*) false;;
26088 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26089 esac ||
26090 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26091 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26092 { (exit 1); exit 1; }; };;
26093 esac
26094 ac_file_inputs="$ac_file_inputs $ac_f"
26095 done
26097 # Let's still pretend it is `configure' which instantiates (i.e., don't
26098 # use $as_me), people would be surprised to read:
26099 # /* config.h. Generated by config.status. */
26100 configure_input="Generated from "`IFS=:
26101 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26102 if test x"$ac_file" != x-; then
26103 configure_input="$ac_file. $configure_input"
26104 { echo "$as_me:$LINENO: creating $ac_file" >&5
26105 echo "$as_me: creating $ac_file" >&6;}
26108 case $ac_tag in
26109 *:-:* | *:-) cat >"$tmp/stdin";;
26110 esac
26112 esac
26114 ac_dir=`$as_dirname -- "$ac_file" ||
26115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26116 X"$ac_file" : 'X\(//\)[^/]' \| \
26117 X"$ac_file" : 'X\(//\)$' \| \
26118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26119 echo X"$ac_file" |
26120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26121 s//\1/
26124 /^X\(\/\/\)[^/].*/{
26125 s//\1/
26128 /^X\(\/\/\)$/{
26129 s//\1/
26132 /^X\(\/\).*/{
26133 s//\1/
26136 s/.*/./; q'`
26137 { as_dir="$ac_dir"
26138 case $as_dir in #(
26139 -*) as_dir=./$as_dir;;
26140 esac
26141 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26142 as_dirs=
26143 while :; do
26144 case $as_dir in #(
26145 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26146 *) as_qdir=$as_dir;;
26147 esac
26148 as_dirs="'$as_qdir' $as_dirs"
26149 as_dir=`$as_dirname -- "$as_dir" ||
26150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26151 X"$as_dir" : 'X\(//\)[^/]' \| \
26152 X"$as_dir" : 'X\(//\)$' \| \
26153 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26154 echo X"$as_dir" |
26155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26156 s//\1/
26159 /^X\(\/\/\)[^/].*/{
26160 s//\1/
26163 /^X\(\/\/\)$/{
26164 s//\1/
26167 /^X\(\/\).*/{
26168 s//\1/
26171 s/.*/./; q'`
26172 test -d "$as_dir" && break
26173 done
26174 test -z "$as_dirs" || eval "mkdir $as_dirs"
26175 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26176 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26177 { (exit 1); exit 1; }; }; }
26178 ac_builddir=.
26180 case "$ac_dir" in
26181 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26184 # A ".." for each directory in $ac_dir_suffix.
26185 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26186 case $ac_top_builddir_sub in
26187 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26188 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26189 esac ;;
26190 esac
26191 ac_abs_top_builddir=$ac_pwd
26192 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26193 # for backward compatibility:
26194 ac_top_builddir=$ac_top_build_prefix
26196 case $srcdir in
26197 .) # We are building in place.
26198 ac_srcdir=.
26199 ac_top_srcdir=$ac_top_builddir_sub
26200 ac_abs_top_srcdir=$ac_pwd ;;
26201 [\\/]* | ?:[\\/]* ) # Absolute name.
26202 ac_srcdir=$srcdir$ac_dir_suffix;
26203 ac_top_srcdir=$srcdir
26204 ac_abs_top_srcdir=$srcdir ;;
26205 *) # Relative name.
26206 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26207 ac_top_srcdir=$ac_top_build_prefix$srcdir
26208 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26209 esac
26210 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26213 case $ac_mode in
26216 # CONFIG_FILE
26219 case $INSTALL in
26220 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26221 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26222 esac
26223 _ACEOF
26225 cat >>$CONFIG_STATUS <<\_ACEOF
26226 # If the template does not know about datarootdir, expand it.
26227 # FIXME: This hack should be removed a few years after 2.60.
26228 ac_datarootdir_hack=; ac_datarootdir_seen=
26230 case `sed -n '/datarootdir/ {
26234 /@datadir@/p
26235 /@docdir@/p
26236 /@infodir@/p
26237 /@localedir@/p
26238 /@mandir@/p
26239 ' $ac_file_inputs` in
26240 *datarootdir*) ac_datarootdir_seen=yes;;
26241 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26242 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26243 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26244 _ACEOF
26245 cat >>$CONFIG_STATUS <<_ACEOF
26246 ac_datarootdir_hack='
26247 s&@datadir@&$datadir&g
26248 s&@docdir@&$docdir&g
26249 s&@infodir@&$infodir&g
26250 s&@localedir@&$localedir&g
26251 s&@mandir@&$mandir&g
26252 s&\\\${datarootdir}&$datarootdir&g' ;;
26253 esac
26254 _ACEOF
26256 # Neutralize VPATH when `$srcdir' = `.'.
26257 # Shell code in configure.ac might set extrasub.
26258 # FIXME: do we really want to maintain this feature?
26259 cat >>$CONFIG_STATUS <<_ACEOF
26260 sed "$ac_vpsub
26261 $extrasub
26262 _ACEOF
26263 cat >>$CONFIG_STATUS <<\_ACEOF
26265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26266 s&@configure_input@&$configure_input&;t t
26267 s&@top_builddir@&$ac_top_builddir_sub&;t t
26268 s&@srcdir@&$ac_srcdir&;t t
26269 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26270 s&@top_srcdir@&$ac_top_srcdir&;t t
26271 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26272 s&@builddir@&$ac_builddir&;t t
26273 s&@abs_builddir@&$ac_abs_builddir&;t t
26274 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26275 s&@INSTALL@&$ac_INSTALL&;t t
26276 $ac_datarootdir_hack
26277 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26280 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26282 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26283 which seems to be undefined. Please make sure it is defined." >&5
26284 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26285 which seems to be undefined. Please make sure it is defined." >&2;}
26287 rm -f "$tmp/stdin"
26288 case $ac_file in
26289 -) cat "$tmp/out"; rm -f "$tmp/out";;
26290 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26291 esac
26295 # CONFIG_HEADER
26297 _ACEOF
26299 # Transform confdefs.h into a sed script `conftest.defines', that
26300 # substitutes the proper values into config.h.in to produce config.h.
26301 rm -f conftest.defines conftest.tail
26302 # First, append a space to every undef/define line, to ease matching.
26303 echo 's/$/ /' >conftest.defines
26304 # Then, protect against being on the right side of a sed subst, or in
26305 # an unquoted here document, in config.status. If some macros were
26306 # called several times there might be several #defines for the same
26307 # symbol, which is useless. But do not sort them, since the last
26308 # AC_DEFINE must be honored.
26309 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26310 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26311 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26312 # PARAMS is the parameter list in the macro definition--in most cases, it's
26313 # just an empty string.
26314 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26315 ac_dB='\\)[ (].*,\\1define\\2'
26316 ac_dC=' '
26317 ac_dD=' ,'
26319 uniq confdefs.h |
26320 sed -n '
26321 t rset
26322 :rset
26323 s/^[ ]*#[ ]*define[ ][ ]*//
26324 t ok
26327 s/[\\&,]/\\&/g
26328 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26329 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26330 ' >>conftest.defines
26332 # Remove the space that was appended to ease matching.
26333 # Then replace #undef with comments. This is necessary, for
26334 # example, in the case of _POSIX_SOURCE, which is predefined and required
26335 # on some systems where configure will not decide to define it.
26336 # (The regexp can be short, since the line contains either #define or #undef.)
26337 echo 's/ $//
26338 s,^[ #]*u.*,/* & */,' >>conftest.defines
26340 # Break up conftest.defines:
26341 ac_max_sed_lines=50
26343 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26344 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26345 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26346 # et cetera.
26347 ac_in='$ac_file_inputs'
26348 ac_out='"$tmp/out1"'
26349 ac_nxt='"$tmp/out2"'
26351 while :
26353 # Write a here document:
26354 cat >>$CONFIG_STATUS <<_ACEOF
26355 # First, check the format of the line:
26356 cat >"\$tmp/defines.sed" <<\\CEOF
26357 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26358 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26360 :def
26361 _ACEOF
26362 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26363 echo 'CEOF
26364 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26365 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26366 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26367 grep . conftest.tail >/dev/null || break
26368 rm -f conftest.defines
26369 mv conftest.tail conftest.defines
26370 done
26371 rm -f conftest.defines conftest.tail
26373 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26374 cat >>$CONFIG_STATUS <<\_ACEOF
26375 if test x"$ac_file" != x-; then
26376 echo "/* $configure_input */" >"$tmp/config.h"
26377 cat "$ac_result" >>"$tmp/config.h"
26378 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26379 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26380 echo "$as_me: $ac_file is unchanged" >&6;}
26381 else
26382 rm -f $ac_file
26383 mv "$tmp/config.h" $ac_file
26385 else
26386 echo "/* $configure_input */"
26387 cat "$ac_result"
26389 rm -f "$tmp/out12"
26393 esac
26395 done # for ac_tag
26398 { (exit 0); exit 0; }
26399 _ACEOF
26400 chmod +x $CONFIG_STATUS
26401 ac_clean_files=$ac_clean_files_save
26404 # configure is writing to config.log, and then calls config.status.
26405 # config.status does its own redirection, appending to config.log.
26406 # Unfortunately, on DOS this fails, as config.log is still kept open
26407 # by configure, so config.status won't be able to write to it; its
26408 # output is simply discarded. So we exec the FD to /dev/null,
26409 # effectively closing config.log, so it can be properly (re)opened and
26410 # appended to by config.status. When coming back to configure, we
26411 # need to make the FD available again.
26412 if test "$no_create" != yes; then
26413 ac_cs_success=:
26414 ac_config_status_args=
26415 test "$silent" = yes &&
26416 ac_config_status_args="$ac_config_status_args --quiet"
26417 exec 5>/dev/null
26418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26419 exec 5>>config.log
26420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26421 # would make configure fail if this is the last instruction.
26422 $ac_cs_success || { (exit 1); exit 1; }
26426 echo "creating Modules/Setup"
26427 if test ! -f Modules/Setup
26428 then
26429 cp $srcdir/Modules/Setup.dist Modules/Setup
26432 echo "creating Modules/Setup.local"
26433 if test ! -f Modules/Setup.local
26434 then
26435 echo "# Edit this file for local setup changes" >Modules/Setup.local
26438 echo "creating Makefile"
26439 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26440 -s Modules Modules/Setup.config \
26441 Modules/Setup.local Modules/Setup
26443 case $ac_sys_system in
26444 BeOS)
26445 { echo "$as_me:$LINENO: WARNING:
26447 Support for BeOS is deprecated as of Python 2.6.
26448 See PEP 11 for the gory details.
26449 " >&5
26450 echo "$as_me: WARNING:
26452 Support for BeOS is deprecated as of Python 2.6.
26453 See PEP 11 for the gory details.
26454 " >&2;}
26456 *) ;;
26457 esac
26459 mv config.c Modules